summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.py.template1
-rwxr-xr-xmain.py3
2 files changed, 4 insertions, 0 deletions
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 <admin@email.com>"
+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."))