summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2012-04-05 18:58:32 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2012-04-05 18:58:32 +0100
commit8754b59461477ccb1f93c215a2b49935306d13b0 (patch)
tree116d37c452ac43755b90181c6c66f4cf6f7f4e2c
parent69b1e74409bcb227559162f3f0fdcc46a84adb44 (diff)
downloadmanamarket-8754b59461477ccb1f93c215a2b49935306d13b0.tar.gz
manamarket-8754b59461477ccb1f93c215a2b49935306d13b0.tar.bz2
manamarket-8754b59461477ccb1f93c215a2b49935306d13b0.tar.xz
manamarket-8754b59461477ccb1f93c215a2b49935306d13b0.zip
Add - A simple list for items which MM won't sell.
-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."))