From 8754b59461477ccb1f93c215a2b49935306d13b0 Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Thu, 5 Apr 2012 18:58:32 +0100 Subject: Add - A simple list for items which MM won't sell. --- config.py.template | 1 + main.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config.py.template b/config.py.template index 2d3155e..8cad23e 100644 --- a/config.py.template +++ b/config.py.template @@ -6,3 +6,4 @@ password = "" relist_time = 604800 # Time in seconds before an item needs to be relisted. character = 0 #slot character is in, 0 for first, 1 for second, 2 for third admin = "Admin " +nosell = [833, 3000, 727] # Items which can't be sold - just add the itemid to the list. diff --git a/main.py b/main.py index d0297eb..6978401 100755 --- a/main.py +++ b/main.py @@ -444,6 +444,9 @@ def process_whisper(nick, msg, mapserv): if item_id == -10: mapserv.sendall(whisper(nick, "Item not found, check spelling.")) return + elif item_id in config.nosell: + mapserv.sendall(whisper(nick, "That item can't be added to ManaMarket, as its too heavy.")) + return if amount > 1 and ItemDB.getItem(item_id).type != 'equip-ammo' and 'equip' in ItemDB.getItem(item_id).type: mapserv.sendall(whisper(nick, "You can only add one piece of equipment per slot.")) -- cgit v1.2.3-70-g09d2