diff options
author | Livio Recchia <recchialivio@libero.it> | 2020-05-16 20:37:31 +0200 |
---|---|---|
committer | Livio Recchia <recchialivio@libero.it> | 2020-05-16 20:37:31 +0200 |
commit | b1723c304ebe82ac00c674efd86dbe4a7c3f3300 (patch) | |
tree | f4096994a2dd86a9971b749cf1574795f56d38c5 /plugins/shop.py | |
parent | 49c13ccc556405915d7870ffb049b0b3dabf06ea (diff) | |
download | manachat-b1723c304ebe82ac00c674efd86dbe4a7c3f3300.tar.gz manachat-b1723c304ebe82ac00c674efd86dbe4a7c3f3300.tar.bz2 manachat-b1723c304ebe82ac00c674efd86dbe4a7c3f3300.tar.xz manachat-b1723c304ebe82ac00c674efd86dbe4a7c3f3300.zip |
Update
Diffstat (limited to 'plugins/shop.py')
-rwxr-xr-x | plugins/shop.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/shop.py b/plugins/shop.py index c89366d..269d686 100755 --- a/plugins/shop.py +++ b/plugins/shop.py @@ -104,7 +104,7 @@ def selllist(nick, message, is_whisper, match): # ~ if lastNickGreeted != nick: # ~ if nick in nobuy: # ~ mapserv.cmsg_chat_message("Special prize for you, " + nick + "!") - # ~ time.sleep(2) + # ~ time.sleep(10) # ~ else: # ~ answer = random.choice(sell_greetings) # ~ mapserv.cmsg_chat_message(answer.format(nick)) @@ -125,7 +125,7 @@ def selllist(nick, message, is_whisper, match): data += encode_str(id_, 2) data += encode_str(price, 4) data += encode_str(amount, 3) - time.sleep(2) + time.sleep(10) whisper(nick, data) @@ -163,7 +163,7 @@ def buylist(nick, message, is_whisper, match): data += encode_str(price, 4) data += encode_str(amount, 3) - time.sleep(2) + time.sleep(10) whisper(nick, data) def sellitem(nick, message, is_whisper, match): @@ -172,7 +172,7 @@ def sellitem(nick, message, is_whisper, match): if nick in ignored_players: return - time.sleep(2) + time.sleep(10) item_id = amount = 0 # FIXME: check if amount=0 or id=0 @@ -236,7 +236,7 @@ def buyitem(nick, message, is_whisper, match): return item_id = amount = 0 - time.sleep(2) + time.sleep(10) # FIXME: check if amount=0 or id=0 try: @@ -302,7 +302,7 @@ def retrieve(nick, message, is_whisper, match): if not shop_admins.check_player(nick): return - time.sleep(2) + time.sleep(10) item_id = amount = 0 @@ -357,7 +357,7 @@ def invlist(nick, message, is_whisper, match): if not shop_admins.check_player(nick): return - time.sleep(2) + time.sleep(10) ls = status.invlists(50) for l in ls: @@ -393,7 +393,7 @@ def trade_response(data): return code = data.code - time.sleep(2) + time.sleep(10) if code == 0: shoplog.info("%s is too far", s.player) @@ -432,7 +432,7 @@ def trade_item_add(data): cleanup() return - time.sleep(2) + time.sleep(10) item_id, amount = data.id, data.amount @@ -468,7 +468,7 @@ def trade_item_add_response(data): cleanup() return - time.sleep(2) + time.sleep(10) code = data.code amount = data.amount @@ -510,7 +510,7 @@ def trade_ok(data): who = data.who - time.sleep(2) + time.sleep(10) if who == 0: return @@ -557,7 +557,7 @@ def trade_complete(data): cleanup() return - time.sleep(2) + time.sleep(10) if s.mode == 'sell': shoplog.info("Trade with %s completed. I sold %d %s for %d GP", |