diff options
author | Livio Recchia <recchialivio@libero.it> | 2020-04-06 19:40:17 +0200 |
---|---|---|
committer | Livio Recchia <recchialivio@libero.it> | 2020-04-06 19:40:17 +0200 |
commit | 1b38fbbc9ae967c1914d4a9ab6b29bc1e46cacf5 (patch) | |
tree | 26ea4f00be110891cd3f84881bb15798710ccf3a /plugins | |
parent | 0264d39df76a6a23afa7d5e75eb32e4c3bb8f20d (diff) | |
download | manachat-1b38fbbc9ae967c1914d4a9ab6b29bc1e46cacf5.tar.gz manachat-1b38fbbc9ae967c1914d4a9ab6b29bc1e46cacf5.tar.bz2 manachat-1b38fbbc9ae967c1914d4a9ab6b29bc1e46cacf5.tar.xz manachat-1b38fbbc9ae967c1914d4a9ab6b29bc1e46cacf5.zip |
Added puny features to manaboy
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/manaboy.py | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/plugins/manaboy.py b/plugins/manaboy.py index 7831974..c01a8ab 100755 --- a/plugins/manaboy.py +++ b/plugins/manaboy.py @@ -441,9 +441,17 @@ def set_npc_owner(nick): npc_owner = nick +death_words = [ + "Dammit!!! Why me???", + "Nirvana wait for me!", + "Well, at least I will have no more taxes to pay.", +] + @extends('smsg_being_remove') def bot_dies(data): if data.id == charserv.server.account: + mapserv.cmsg_chat_message(random.choice(bye_answers)) + time.sleep(5) mapserv.cmsg_player_respawn() @@ -1141,9 +1149,61 @@ def manaboy_logic(ts): if not storage_is_open and ts > npcdialog['start_time'] + 30.0: reset() + + # ========================================================================= + +def emoteX(nick, message, is_whisper, match): + if not is_whisper: + return + if nick in ignored_players: + return + + if nick not in admins: + return + emote=1 + while(emote < 40): + mapserv.cmsg_player_emote(emote) + emote=emote+1 + commands.set_direction('', 'up') + time.sleep(0.25) + commands.set_direction('', 'right') + time.sleep(0.25) + commands.set_direction('', 'down') + time.sleep(0.25) + commands.set_direction('', 'left') + time.sleep(0.25) + +def spinner(nick, message, is_whisper, match): + if nick in ignored_players: + return + + players = [] + for being in mapserv.beings_cache.itervalues(): + if ((being.type == 'player') and len(being.name) > 1): + players.append(being.name) + + mapserv.cmsg_chat_message('*hugs Soul Menhir*') + + emote=1 + while(emote < 20): + emote=emote+1 + commands.set_direction('', 'up') + time.sleep(0.1) + commands.set_direction('', 'right') + time.sleep(0.1) + commands.set_direction('', 'down') + time.sleep(0.1) + commands.set_direction('', 'left') + time.sleep(0.1) + + mapserv.cmsg_chat_message('*hugs Soul Menhir*') + + manaboy_commands = { + '!emotex' : emoteX, + '!spinner' : spinner, '!where' : cmd_where, '!goto (\d+) (\d+)' : cmd_goto, '!(left|right|up|down)' : cmd_goclose, |