diff options
author | Meistache <crie.fernanda@gmail.com> | 2015-02-22 21:54:57 -0300 |
---|---|---|
committer | Meistache <crie.fernanda@gmail.com> | 2015-02-22 21:54:57 -0300 |
commit | af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f (patch) | |
tree | a74f78fb56474ea9efcbf8355332b4e6a4a27416 | |
parent | bd6b97110b2e73bcdb3ad83c6b605e10bc75736a (diff) | |
download | manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.gz manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.bz2 manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.xz manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.zip |
Remembered to add a very important feature: getback from storage (my bad)
-rwxr-xr-x | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -726,6 +726,9 @@ def process_whisper(nick, msg, mapserv): trader_state.item = item player_id = beingManager.findId(nick) if player_id != -10: + if uid > MAX_INVENTORY: + item.index = storage.find_storage_index(item.id) + storage_operation(storage.storage_get, (item.index, item.amount)) mapserv.sendall(trade_request(player_id)) trader_state.timer = time.time() else: |