diff options
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -135,14 +135,15 @@ def process_whisper(nick, msg, mapserv): mapserv.sendall(whisper(nick, "you would type /whisper ManaMarket !buy 1 6" )) mapserv.sendall(whisper(nick, "This will purchase one of item 6 (Iron Ore).")) - if int(user.get('accesslevel')) >= 5: - mapserv.sendall(whisper(nick, "Ah, you have sellers access level. How lovely!")) # the first words the ticket seller told me when i was in london for the first time. How lovely! - mapserv.sendall(whisper(nick, "Use !add to tell me which items I should trade for you:")) - mapserv.sendall(whisper(nick, "For example !add 10 1000 Iron Ore would tell me to sell 10 [@@640|Iron Ore@@] for a price of 1000 gp")) - mapserv.sendall(whisper(nick, "Later you can whisper me !money to get back your money. In the example given, I'd give you 10*1000 = 10000gp")) - if int(user.get('accesslevel')) == 20: - mapserv.sendall(whisper(nick, "You're my master! How should I serve you?")) - mapserv.sendall(whisper(nick, "You also have access to the following commands: !listusers, !setslots <slots> <name>, !setaccess <access level > <name>, !adduser <access level> <slot> <name>")) + if user != -10: + if int(user.get('accesslevel')) >= 5: + mapserv.sendall(whisper(nick, "Ah, you have sellers access level. How lovely!")) # the first words the ticket seller told me when i was in london for the first time. How lovely! + mapserv.sendall(whisper(nick, "Use !add to tell me which items I should trade for you:")) + mapserv.sendall(whisper(nick, "For example !add 10 1000 Iron Ore would tell me to sell 10 [@@640|Iron Ore@@] for a price of 1000 gp")) + mapserv.sendall(whisper(nick, "Later you can whisper me !money to get back your money. In the example given, I'd give you 10*1000 = 10000gp")) + if int(user.get('accesslevel')) == 20: + mapserv.sendall(whisper(nick, "You're my master! How should I serve you?")) + mapserv.sendall(whisper(nick, "You also have access to the following commands: !listusers, !setslots <slots> <name>, !setaccess <access level > <name>, !adduser <access level> <slot> <name>")) elif len(broken_string) == 2: if broken_string[1] == '!buy': |