From 19a25076dcddb4c1219909cf7572b85e9b4d4a2a Mon Sep 17 00:00:00 2001 From: Livio Recchia Date: Sun, 5 Apr 2020 14:52:49 +0200 Subject: Trying to fix something like setting files. --- .gitignore | 2 + LICENCE | 0 README.md | 0 RULES4BOTS.md | 0 __pycache__/itemdb.cpython-37.pyc | Bin __pycache__/loggers.cpython-37.pyc | Bin __pycache__/monsterdb.cpython-37.pyc | Bin actor.py | 0 actor.pyc | Bin android.txt | 0 auto.sh | 5 +- badge.py | 0 badge.pyc | Bin bot/XCOM.txt | 0 bot/admins.txt | 0 bot/disliked.txt | 0 bot/friends.txt | 0 bot/ignored.txt | 0 bot/jokes.txt | 0 chat.py | 0 chat.pyc | Bin commands.py | 0 commands.pyc | Bin curses/cui.py | 0 curses/cui.pyc | Bin curses/handlers.py | 0 curses/handlers.pyc | Bin curses/tmwcli.py | 0 external/LINCENCE.six | 0 external/README.six | 0 external/construct/LICENSE | 0 external/construct/README.rst | 0 external/construct/__init__.py | 0 external/construct/__init__.pyc | Bin external/construct/adapters.py | 0 external/construct/adapters.pyc | Bin external/construct/core.py | 0 external/construct/core.pyc | Bin external/construct/debug.py | 0 external/construct/debug.pyc | Bin external/construct/formats/__init__.py | 0 external/construct/formats/data/__init__.py | 0 external/construct/formats/data/cap.py | 0 external/construct/formats/data/snoop.py | 0 external/construct/formats/executable/__init__.py | 0 external/construct/formats/executable/elf32.py | 0 external/construct/formats/executable/pe32.py | 0 external/construct/formats/filesystem/__init__.py | 0 external/construct/formats/filesystem/ext2.py | 0 external/construct/formats/filesystem/fat16.py | 0 external/construct/formats/filesystem/mbr.py | 0 external/construct/formats/graphics/__init__.py | 0 external/construct/formats/graphics/bmp.py | 0 external/construct/formats/graphics/emf.py | 0 external/construct/formats/graphics/gif.py | 0 external/construct/formats/graphics/png.py | 0 external/construct/formats/graphics/wmf.py | 0 external/construct/lib/__init__.py | 0 external/construct/lib/__init__.pyc | Bin external/construct/lib/binary.py | 0 external/construct/lib/binary.pyc | Bin external/construct/lib/bitstream.py | 0 external/construct/lib/bitstream.pyc | Bin external/construct/lib/container.py | 0 external/construct/lib/container.pyc | Bin external/construct/lib/expr.py | 0 external/construct/lib/expr.pyc | Bin external/construct/lib/hex.py | 0 external/construct/lib/hex.pyc | Bin external/construct/lib/py3compat.py | 0 external/construct/lib/py3compat.pyc | Bin external/construct/macros.py | 0 external/construct/macros.pyc | Bin external/construct/protocols/__init__.py | 0 external/construct/protocols/__init__.pyc | Bin .../construct/protocols/application/__init__.py | 0 external/construct/protocols/application/dns.py | 0 external/construct/protocols/ipstack.py | 0 external/construct/protocols/layer2/__init__.py | 0 external/construct/protocols/layer2/arp.py | 0 external/construct/protocols/layer2/ethernet.py | 0 external/construct/protocols/layer2/mtp2.py | 0 external/construct/protocols/layer3/__init__.py | 0 external/construct/protocols/layer3/__init__.pyc | Bin external/construct/protocols/layer3/dhcpv4.py | 0 external/construct/protocols/layer3/dhcpv6.py | 0 external/construct/protocols/layer3/icmpv4.py | 0 external/construct/protocols/layer3/igmpv2.py | 0 external/construct/protocols/layer3/ipv4.py | 0 external/construct/protocols/layer3/ipv4.pyc | Bin external/construct/protocols/layer3/ipv6.py | 0 external/construct/protocols/layer3/mtp3.py | 0 external/construct/protocols/layer4/__init__.py | 0 external/construct/protocols/layer4/isup.py | 0 external/construct/protocols/layer4/tcp.py | 0 external/construct/protocols/layer4/udp.py | 0 external/construct/version.py | 0 external/construct/version.pyc | Bin external/plyer/CHANGELOG.md | 0 external/plyer/LICENSE | 0 external/plyer/README.rst | 0 external/plyer/__init__.py | 0 external/plyer/__init__.pyc | Bin external/plyer/compat.py | 0 external/plyer/facades/__init__.py | 0 external/plyer/facades/__init__.pyc | Bin external/plyer/facades/accelerometer.py | 0 external/plyer/facades/accelerometer.pyc | Bin external/plyer/facades/audio.py | 0 external/plyer/facades/audio.pyc | Bin external/plyer/facades/battery.py | 0 external/plyer/facades/battery.pyc | Bin external/plyer/facades/camera.py | 0 external/plyer/facades/camera.pyc | Bin external/plyer/facades/compass.py | 0 external/plyer/facades/compass.pyc | Bin external/plyer/facades/email.py | 0 external/plyer/facades/email.pyc | Bin external/plyer/facades/filechooser.py | 0 external/plyer/facades/filechooser.pyc | Bin external/plyer/facades/gps.py | 0 external/plyer/facades/gps.pyc | Bin external/plyer/facades/gyroscope.py | 0 external/plyer/facades/gyroscope.pyc | Bin external/plyer/facades/irblaster.py | 0 external/plyer/facades/irblaster.pyc | Bin external/plyer/facades/notification.py | 0 external/plyer/facades/notification.pyc | Bin external/plyer/facades/orientation.py | 0 external/plyer/facades/orientation.pyc | Bin external/plyer/facades/sms.py | 0 external/plyer/facades/sms.pyc | Bin external/plyer/facades/tts.py | 0 external/plyer/facades/tts.pyc | Bin external/plyer/facades/uniqueid.py | 0 external/plyer/facades/uniqueid.pyc | Bin external/plyer/facades/vibrator.py | 0 external/plyer/facades/vibrator.pyc | Bin external/plyer/platforms/__init__.py | 0 external/plyer/platforms/android/__init__.py | 0 external/plyer/platforms/android/accelerometer.py | 0 external/plyer/platforms/android/audio.py | 0 external/plyer/platforms/android/battery.py | 0 external/plyer/platforms/android/camera.py | 0 external/plyer/platforms/android/compass.py | 0 external/plyer/platforms/android/email.py | 0 external/plyer/platforms/android/gps.py | 0 external/plyer/platforms/android/gyroscope.py | 0 external/plyer/platforms/android/irblaster.py | 0 external/plyer/platforms/android/notification.py | 0 external/plyer/platforms/android/orientation.py | 0 external/plyer/platforms/android/sms.py | 0 external/plyer/platforms/android/tts.py | 0 external/plyer/platforms/android/uniqueid.py | 0 external/plyer/platforms/android/vibrator.py | 0 external/plyer/platforms/ios/__init__.py | 0 external/plyer/platforms/ios/accelerometer.py | 0 external/plyer/platforms/ios/battery.py | 0 external/plyer/platforms/ios/compass.py | 0 external/plyer/platforms/ios/email.py | 0 external/plyer/platforms/ios/gps.py | 0 external/plyer/platforms/ios/gyroscope.py | 0 external/plyer/platforms/ios/tts.py | 0 external/plyer/platforms/ios/uniqueid.py | 0 external/plyer/platforms/linux/__init__.py | 0 external/plyer/platforms/linux/accelerometer.py | 0 external/plyer/platforms/linux/battery.py | 0 external/plyer/platforms/linux/email.py | 0 external/plyer/platforms/linux/filechooser.py | 0 external/plyer/platforms/linux/notification.py | 0 external/plyer/platforms/linux/tts.py | 0 external/plyer/platforms/linux/uniqueid.py | 0 external/plyer/platforms/macosx/__init__.py | 0 external/plyer/platforms/macosx/accelerometer.py | 0 external/plyer/platforms/macosx/battery.py | 0 external/plyer/platforms/macosx/email.py | 0 external/plyer/platforms/macosx/filechooser.py | 0 external/plyer/platforms/macosx/libs/__init__.py | 0 .../platforms/macosx/libs/osx_motion_sensor.py | 0 external/plyer/platforms/macosx/notification.py | 0 external/plyer/platforms/macosx/tts.py | 0 external/plyer/platforms/macosx/uniqueid.py | 0 external/plyer/platforms/win/__init__.py | 0 external/plyer/platforms/win/battery.py | 0 external/plyer/platforms/win/email.py | 0 external/plyer/platforms/win/filechooser.py | 0 external/plyer/platforms/win/libs/__init__.py | 0 external/plyer/platforms/win/libs/balloontip.py | 0 external/plyer/platforms/win/libs/batterystatus.py | 0 external/plyer/platforms/win/libs/win_api_defs.py | 0 external/plyer/platforms/win/notification.py | 0 external/plyer/platforms/win/tts.py | 0 external/plyer/platforms/win/uniqueid.py | 0 external/plyer/tools/pep8checker/pep8.py | 0 external/plyer/tools/pep8checker/pep8base.html | 0 external/plyer/tools/pep8checker/pep8kivy.py | 0 .../plyer/tools/pep8checker/pre-commit.githook | 0 external/plyer/utils.py | 0 external/plyer/utils.pyc | Bin external/pytmx/LICENSE | 0 external/pytmx/__init__.py | 0 external/pytmx/pytmx.py | 0 external/pytmx/readme.md | 0 external/pytmx/util_pygame.py | 0 external/pytmx/util_pyglet.py | 0 external/pytmx/util_pysdl2.py | 0 external/six.py | 0 external/six.pyc | Bin gui/__init__.py | 0 gui/__init__.pyc | Bin gui/__pycache__/__init__.cpython-37.pyc | Bin gui/__pycache__/managui.cpython-37.pyc | Bin gui/chatlog.py | 0 gui/handlers.py | 0 gui/handlers.pyc | Bin gui/icon.png | Bin gui/managui.kv | 0 gui/managui.py | 0 gui/managui.pyc | Bin gui/pathfind.py | 0 gui/plist.py | 0 gui/tmxmap.py | 0 icon.png | Bin itemdb.py | 0 itemdb.pyc | Bin itemdb.txt | 0 loggers.py | 0 loggers.pyc | Bin logicmanager.py | 0 logicmanager.pyc | Bin main.py | 0 manachat.json | 0 mapdb.zip | Bin mapnames.py | 0 mapnames.pyc | Bin mapnames.txt | 0 monsterdb.py | 0 monsterdb.pyc | Bin monsterdb.txt | 0 net/__init__.py | 0 net/__init__.pyc | Bin net/__pycache__/__init__.cpython-37.pyc | Bin net/being.py | 0 net/being.pyc | Bin net/charserv.py | 0 net/charserv.pyc | Bin net/common.py | 0 net/common.pyc | Bin net/dispatcher.py | 0 net/dispatcher.pyc | Bin net/inventory.py | 0 net/inventory.pyc | Bin net/item.py | 0 net/item.pyc | Bin net/loginsrv.py | 0 net/loginsrv.pyc | Bin net/mapserv.py | 0 net/mapserv.pyc | Bin net/onlineusers.py | 0 net/onlineusers.pyc | Bin net/packetlen.py | 0 net/packetlen.pyc | Bin net/protocol.py | 0 net/protocol.pyc | Bin net/stats.py | 0 net/stats.pyc | Bin net/trade.py | 0 net/trade.pyc | Bin newmessage.wav | Bin playerlist.py | 0 playerlist.pyc | Bin plugins/README.txt | 0 plugins/__init__.py | 0 plugins/__init__.pyc | Bin plugins/autofollow.py | 0 plugins/autofollow.pyc | Bin plugins/autospell.py | 0 plugins/autospell.pyc | Bin plugins/battlebot.py | 0 plugins/battlebot.pyc | Bin plugins/chatbot.py | 0 plugins/chatbot.pyc | Bin plugins/chatlogfile.py | 0 plugins/chatlogfile.pyc | Bin plugins/guildbot/__init__.py | 0 plugins/guildbot/__init__.pyc | Bin plugins/guildbot/create_db.sql | 0 plugins/guildbot/guilddb.py | 0 plugins/guildbot/guilddb.pyc | Bin plugins/guildbot/handlers.py | 0 plugins/guildbot/handlers.pyc | Bin plugins/lazytree.py | 0 plugins/lazytree.pyc | Bin plugins/manaboy.py | 121 +++++++++++++++------ plugins/manaboy.pyc | Bin 38016 -> 39617 bytes plugins/msgqueue.py | 0 plugins/msgqueue.pyc | Bin plugins/notify.py | 0 plugins/notify.pyc | Bin plugins/npc.py | 0 plugins/npc.pyc | Bin plugins/restapi.py | 0 plugins/shop.py | 25 ++++- plugins/shop.pyc | Bin 12766 -> 13383 bytes runshop.py | 0 shopAdmins.txt | 0 shoplist.txt | 13 +++ simple.py | 1 + status.py | 0 status.pyc | Bin textutils.py | 0 textutils.pyc | Bin utils.py | 0 utils.pyc | Bin utils/generate-packet-lengths.py | 0 utils/update-item-db.py | 0 utils/update-map-db.py | 0 utils/update-map-names.py | 0 utils/update-monster-db.py | 0 walkto.py | 0 walkto.pyc | Bin 321 files changed, 128 insertions(+), 39 deletions(-) create mode 100644 .gitignore mode change 100644 => 100755 LICENCE mode change 100644 => 100755 README.md mode change 100644 => 100755 RULES4BOTS.md mode change 100644 => 100755 __pycache__/itemdb.cpython-37.pyc mode change 100644 => 100755 __pycache__/loggers.cpython-37.pyc mode change 100644 => 100755 __pycache__/monsterdb.cpython-37.pyc mode change 100644 => 100755 actor.py mode change 100644 => 100755 actor.pyc mode change 100644 => 100755 android.txt mode change 100644 => 100755 badge.py mode change 100644 => 100755 badge.pyc mode change 100644 => 100755 bot/XCOM.txt mode change 100644 => 100755 bot/admins.txt mode change 100644 => 100755 bot/disliked.txt mode change 100644 => 100755 bot/friends.txt mode change 100644 => 100755 bot/ignored.txt mode change 100644 => 100755 bot/jokes.txt mode change 100644 => 100755 chat.py mode change 100644 => 100755 chat.pyc mode change 100644 => 100755 commands.py mode change 100644 => 100755 commands.pyc mode change 100644 => 100755 curses/cui.py mode change 100644 => 100755 curses/cui.pyc mode change 100644 => 100755 curses/handlers.py mode change 100644 => 100755 curses/handlers.pyc mode change 100644 => 100755 curses/tmwcli.py mode change 100644 => 100755 external/LINCENCE.six mode change 100644 => 100755 external/README.six mode change 100644 => 100755 external/construct/LICENSE mode change 100644 => 100755 external/construct/README.rst mode change 100644 => 100755 external/construct/__init__.py mode change 100644 => 100755 external/construct/__init__.pyc mode change 100644 => 100755 external/construct/adapters.py mode change 100644 => 100755 external/construct/adapters.pyc mode change 100644 => 100755 external/construct/core.py mode change 100644 => 100755 external/construct/core.pyc mode change 100644 => 100755 external/construct/debug.py mode change 100644 => 100755 external/construct/debug.pyc mode change 100644 => 100755 external/construct/formats/__init__.py mode change 100644 => 100755 external/construct/formats/data/__init__.py mode change 100644 => 100755 external/construct/formats/data/cap.py mode change 100644 => 100755 external/construct/formats/data/snoop.py mode change 100644 => 100755 external/construct/formats/executable/__init__.py mode change 100644 => 100755 external/construct/formats/executable/elf32.py mode change 100644 => 100755 external/construct/formats/executable/pe32.py mode change 100644 => 100755 external/construct/formats/filesystem/__init__.py mode change 100644 => 100755 external/construct/formats/filesystem/ext2.py mode change 100644 => 100755 external/construct/formats/filesystem/fat16.py mode change 100644 => 100755 external/construct/formats/filesystem/mbr.py mode change 100644 => 100755 external/construct/formats/graphics/__init__.py mode change 100644 => 100755 external/construct/formats/graphics/bmp.py mode change 100644 => 100755 external/construct/formats/graphics/emf.py mode change 100644 => 100755 external/construct/formats/graphics/gif.py mode change 100644 => 100755 external/construct/formats/graphics/png.py mode change 100644 => 100755 external/construct/formats/graphics/wmf.py mode change 100644 => 100755 external/construct/lib/__init__.py mode change 100644 => 100755 external/construct/lib/__init__.pyc mode change 100644 => 100755 external/construct/lib/binary.py mode change 100644 => 100755 external/construct/lib/binary.pyc mode change 100644 => 100755 external/construct/lib/bitstream.py mode change 100644 => 100755 external/construct/lib/bitstream.pyc mode change 100644 => 100755 external/construct/lib/container.py mode change 100644 => 100755 external/construct/lib/container.pyc mode change 100644 => 100755 external/construct/lib/expr.py mode change 100644 => 100755 external/construct/lib/expr.pyc mode change 100644 => 100755 external/construct/lib/hex.py mode change 100644 => 100755 external/construct/lib/hex.pyc mode change 100644 => 100755 external/construct/lib/py3compat.py mode change 100644 => 100755 external/construct/lib/py3compat.pyc mode change 100644 => 100755 external/construct/macros.py mode change 100644 => 100755 external/construct/macros.pyc mode change 100644 => 100755 external/construct/protocols/__init__.py mode change 100644 => 100755 external/construct/protocols/__init__.pyc mode change 100644 => 100755 external/construct/protocols/application/__init__.py mode change 100644 => 100755 external/construct/protocols/application/dns.py mode change 100644 => 100755 external/construct/protocols/ipstack.py mode change 100644 => 100755 external/construct/protocols/layer2/__init__.py mode change 100644 => 100755 external/construct/protocols/layer2/arp.py mode change 100644 => 100755 external/construct/protocols/layer2/ethernet.py mode change 100644 => 100755 external/construct/protocols/layer2/mtp2.py mode change 100644 => 100755 external/construct/protocols/layer3/__init__.py mode change 100644 => 100755 external/construct/protocols/layer3/__init__.pyc mode change 100644 => 100755 external/construct/protocols/layer3/dhcpv4.py mode change 100644 => 100755 external/construct/protocols/layer3/dhcpv6.py mode change 100644 => 100755 external/construct/protocols/layer3/icmpv4.py mode change 100644 => 100755 external/construct/protocols/layer3/igmpv2.py mode change 100644 => 100755 external/construct/protocols/layer3/ipv4.py mode change 100644 => 100755 external/construct/protocols/layer3/ipv4.pyc mode change 100644 => 100755 external/construct/protocols/layer3/ipv6.py mode change 100644 => 100755 external/construct/protocols/layer3/mtp3.py mode change 100644 => 100755 external/construct/protocols/layer4/__init__.py mode change 100644 => 100755 external/construct/protocols/layer4/isup.py mode change 100644 => 100755 external/construct/protocols/layer4/tcp.py mode change 100644 => 100755 external/construct/protocols/layer4/udp.py mode change 100644 => 100755 external/construct/version.py mode change 100644 => 100755 external/construct/version.pyc mode change 100644 => 100755 external/plyer/CHANGELOG.md mode change 100644 => 100755 external/plyer/LICENSE mode change 100644 => 100755 external/plyer/README.rst mode change 100644 => 100755 external/plyer/__init__.py mode change 100644 => 100755 external/plyer/__init__.pyc mode change 100644 => 100755 external/plyer/compat.py mode change 100644 => 100755 external/plyer/facades/__init__.py mode change 100644 => 100755 external/plyer/facades/__init__.pyc mode change 100644 => 100755 external/plyer/facades/accelerometer.py mode change 100644 => 100755 external/plyer/facades/accelerometer.pyc mode change 100644 => 100755 external/plyer/facades/audio.py mode change 100644 => 100755 external/plyer/facades/audio.pyc mode change 100644 => 100755 external/plyer/facades/battery.py mode change 100644 => 100755 external/plyer/facades/battery.pyc mode change 100644 => 100755 external/plyer/facades/camera.py mode change 100644 => 100755 external/plyer/facades/camera.pyc mode change 100644 => 100755 external/plyer/facades/compass.py mode change 100644 => 100755 external/plyer/facades/compass.pyc mode change 100644 => 100755 external/plyer/facades/email.py mode change 100644 => 100755 external/plyer/facades/email.pyc mode change 100644 => 100755 external/plyer/facades/filechooser.py mode change 100644 => 100755 external/plyer/facades/filechooser.pyc mode change 100644 => 100755 external/plyer/facades/gps.py mode change 100644 => 100755 external/plyer/facades/gps.pyc mode change 100644 => 100755 external/plyer/facades/gyroscope.py mode change 100644 => 100755 external/plyer/facades/gyroscope.pyc mode change 100644 => 100755 external/plyer/facades/irblaster.py mode change 100644 => 100755 external/plyer/facades/irblaster.pyc mode change 100644 => 100755 external/plyer/facades/notification.py mode change 100644 => 100755 external/plyer/facades/notification.pyc mode change 100644 => 100755 external/plyer/facades/orientation.py mode change 100644 => 100755 external/plyer/facades/orientation.pyc mode change 100644 => 100755 external/plyer/facades/sms.py mode change 100644 => 100755 external/plyer/facades/sms.pyc mode change 100644 => 100755 external/plyer/facades/tts.py mode change 100644 => 100755 external/plyer/facades/tts.pyc mode change 100644 => 100755 external/plyer/facades/uniqueid.py mode change 100644 => 100755 external/plyer/facades/uniqueid.pyc mode change 100644 => 100755 external/plyer/facades/vibrator.py mode change 100644 => 100755 external/plyer/facades/vibrator.pyc mode change 100644 => 100755 external/plyer/platforms/__init__.py mode change 100644 => 100755 external/plyer/platforms/android/__init__.py mode change 100644 => 100755 external/plyer/platforms/android/accelerometer.py mode change 100644 => 100755 external/plyer/platforms/android/audio.py mode change 100644 => 100755 external/plyer/platforms/android/battery.py mode change 100644 => 100755 external/plyer/platforms/android/camera.py mode change 100644 => 100755 external/plyer/platforms/android/compass.py mode change 100644 => 100755 external/plyer/platforms/android/email.py mode change 100644 => 100755 external/plyer/platforms/android/gps.py mode change 100644 => 100755 external/plyer/platforms/android/gyroscope.py mode change 100644 => 100755 external/plyer/platforms/android/irblaster.py mode change 100644 => 100755 external/plyer/platforms/android/notification.py mode change 100644 => 100755 external/plyer/platforms/android/orientation.py mode change 100644 => 100755 external/plyer/platforms/android/sms.py mode change 100644 => 100755 external/plyer/platforms/android/tts.py mode change 100644 => 100755 external/plyer/platforms/android/uniqueid.py mode change 100644 => 100755 external/plyer/platforms/android/vibrator.py mode change 100644 => 100755 external/plyer/platforms/ios/__init__.py mode change 100644 => 100755 external/plyer/platforms/ios/accelerometer.py mode change 100644 => 100755 external/plyer/platforms/ios/battery.py mode change 100644 => 100755 external/plyer/platforms/ios/compass.py mode change 100644 => 100755 external/plyer/platforms/ios/email.py mode change 100644 => 100755 external/plyer/platforms/ios/gps.py mode change 100644 => 100755 external/plyer/platforms/ios/gyroscope.py mode change 100644 => 100755 external/plyer/platforms/ios/tts.py mode change 100644 => 100755 external/plyer/platforms/ios/uniqueid.py mode change 100644 => 100755 external/plyer/platforms/linux/__init__.py mode change 100644 => 100755 external/plyer/platforms/linux/accelerometer.py mode change 100644 => 100755 external/plyer/platforms/linux/battery.py mode change 100644 => 100755 external/plyer/platforms/linux/email.py mode change 100644 => 100755 external/plyer/platforms/linux/filechooser.py mode change 100644 => 100755 external/plyer/platforms/linux/notification.py mode change 100644 => 100755 external/plyer/platforms/linux/tts.py mode change 100644 => 100755 external/plyer/platforms/linux/uniqueid.py mode change 100644 => 100755 external/plyer/platforms/macosx/__init__.py mode change 100644 => 100755 external/plyer/platforms/macosx/accelerometer.py mode change 100644 => 100755 external/plyer/platforms/macosx/battery.py mode change 100644 => 100755 external/plyer/platforms/macosx/email.py mode change 100644 => 100755 external/plyer/platforms/macosx/filechooser.py mode change 100644 => 100755 external/plyer/platforms/macosx/libs/__init__.py mode change 100644 => 100755 external/plyer/platforms/macosx/libs/osx_motion_sensor.py mode change 100644 => 100755 external/plyer/platforms/macosx/notification.py mode change 100644 => 100755 external/plyer/platforms/macosx/tts.py mode change 100644 => 100755 external/plyer/platforms/macosx/uniqueid.py mode change 100644 => 100755 external/plyer/platforms/win/__init__.py mode change 100644 => 100755 external/plyer/platforms/win/battery.py mode change 100644 => 100755 external/plyer/platforms/win/email.py mode change 100644 => 100755 external/plyer/platforms/win/filechooser.py mode change 100644 => 100755 external/plyer/platforms/win/libs/__init__.py mode change 100644 => 100755 external/plyer/platforms/win/libs/balloontip.py mode change 100644 => 100755 external/plyer/platforms/win/libs/batterystatus.py mode change 100644 => 100755 external/plyer/platforms/win/libs/win_api_defs.py mode change 100644 => 100755 external/plyer/platforms/win/notification.py mode change 100644 => 100755 external/plyer/platforms/win/tts.py mode change 100644 => 100755 external/plyer/platforms/win/uniqueid.py mode change 100644 => 100755 external/plyer/tools/pep8checker/pep8.py mode change 100644 => 100755 external/plyer/tools/pep8checker/pep8base.html mode change 100644 => 100755 external/plyer/tools/pep8checker/pep8kivy.py mode change 100644 => 100755 external/plyer/tools/pep8checker/pre-commit.githook mode change 100644 => 100755 external/plyer/utils.py mode change 100644 => 100755 external/plyer/utils.pyc mode change 100644 => 100755 external/pytmx/LICENSE mode change 100644 => 100755 external/pytmx/__init__.py mode change 100644 => 100755 external/pytmx/pytmx.py mode change 100644 => 100755 external/pytmx/readme.md mode change 100644 => 100755 external/pytmx/util_pygame.py mode change 100644 => 100755 external/pytmx/util_pyglet.py mode change 100644 => 100755 external/pytmx/util_pysdl2.py mode change 100644 => 100755 external/six.py mode change 100644 => 100755 external/six.pyc mode change 100644 => 100755 gui/__init__.py mode change 100644 => 100755 gui/__init__.pyc mode change 100644 => 100755 gui/__pycache__/__init__.cpython-37.pyc mode change 100644 => 100755 gui/__pycache__/managui.cpython-37.pyc mode change 100644 => 100755 gui/chatlog.py mode change 100644 => 100755 gui/handlers.py mode change 100644 => 100755 gui/handlers.pyc mode change 100644 => 100755 gui/icon.png mode change 100644 => 100755 gui/managui.kv mode change 100644 => 100755 gui/managui.py mode change 100644 => 100755 gui/managui.pyc mode change 100644 => 100755 gui/pathfind.py mode change 100644 => 100755 gui/plist.py mode change 100644 => 100755 gui/tmxmap.py mode change 100644 => 100755 icon.png mode change 100644 => 100755 itemdb.py mode change 100644 => 100755 itemdb.pyc mode change 100644 => 100755 itemdb.txt mode change 100644 => 100755 loggers.py mode change 100644 => 100755 loggers.pyc mode change 100644 => 100755 logicmanager.py mode change 100644 => 100755 logicmanager.pyc mode change 100644 => 100755 main.py mode change 100644 => 100755 manachat.json mode change 100644 => 100755 mapdb.zip mode change 100644 => 100755 mapnames.py mode change 100644 => 100755 mapnames.pyc mode change 100644 => 100755 mapnames.txt mode change 100644 => 100755 monsterdb.py mode change 100644 => 100755 monsterdb.pyc mode change 100644 => 100755 monsterdb.txt mode change 100644 => 100755 net/__init__.py mode change 100644 => 100755 net/__init__.pyc mode change 100644 => 100755 net/__pycache__/__init__.cpython-37.pyc mode change 100644 => 100755 net/being.py mode change 100644 => 100755 net/being.pyc mode change 100644 => 100755 net/charserv.py mode change 100644 => 100755 net/charserv.pyc mode change 100644 => 100755 net/common.py mode change 100644 => 100755 net/common.pyc mode change 100644 => 100755 net/dispatcher.py mode change 100644 => 100755 net/dispatcher.pyc mode change 100644 => 100755 net/inventory.py mode change 100644 => 100755 net/inventory.pyc mode change 100644 => 100755 net/item.py mode change 100644 => 100755 net/item.pyc mode change 100644 => 100755 net/loginsrv.py mode change 100644 => 100755 net/loginsrv.pyc mode change 100644 => 100755 net/mapserv.py mode change 100644 => 100755 net/mapserv.pyc mode change 100644 => 100755 net/onlineusers.py mode change 100644 => 100755 net/onlineusers.pyc mode change 100644 => 100755 net/packetlen.py mode change 100644 => 100755 net/packetlen.pyc mode change 100644 => 100755 net/protocol.py mode change 100644 => 100755 net/protocol.pyc mode change 100644 => 100755 net/stats.py mode change 100644 => 100755 net/stats.pyc mode change 100644 => 100755 net/trade.py mode change 100644 => 100755 net/trade.pyc mode change 100644 => 100755 newmessage.wav mode change 100644 => 100755 playerlist.py mode change 100644 => 100755 playerlist.pyc mode change 100644 => 100755 plugins/README.txt mode change 100644 => 100755 plugins/__init__.py mode change 100644 => 100755 plugins/__init__.pyc mode change 100644 => 100755 plugins/autofollow.py mode change 100644 => 100755 plugins/autofollow.pyc mode change 100644 => 100755 plugins/autospell.py mode change 100644 => 100755 plugins/autospell.pyc mode change 100644 => 100755 plugins/battlebot.py mode change 100644 => 100755 plugins/battlebot.pyc mode change 100644 => 100755 plugins/chatbot.py mode change 100644 => 100755 plugins/chatbot.pyc mode change 100644 => 100755 plugins/chatlogfile.py mode change 100644 => 100755 plugins/chatlogfile.pyc mode change 100644 => 100755 plugins/guildbot/__init__.py mode change 100644 => 100755 plugins/guildbot/__init__.pyc mode change 100644 => 100755 plugins/guildbot/create_db.sql mode change 100644 => 100755 plugins/guildbot/guilddb.py mode change 100644 => 100755 plugins/guildbot/guilddb.pyc mode change 100644 => 100755 plugins/guildbot/handlers.py mode change 100644 => 100755 plugins/guildbot/handlers.pyc mode change 100644 => 100755 plugins/lazytree.py mode change 100644 => 100755 plugins/lazytree.pyc mode change 100644 => 100755 plugins/manaboy.py mode change 100644 => 100755 plugins/manaboy.pyc mode change 100644 => 100755 plugins/msgqueue.py mode change 100644 => 100755 plugins/msgqueue.pyc mode change 100644 => 100755 plugins/notify.py mode change 100644 => 100755 plugins/notify.pyc mode change 100644 => 100755 plugins/npc.py mode change 100644 => 100755 plugins/npc.pyc mode change 100644 => 100755 plugins/restapi.py mode change 100644 => 100755 plugins/shop.py mode change 100644 => 100755 plugins/shop.pyc mode change 100644 => 100755 runshop.py mode change 100644 => 100755 shopAdmins.txt mode change 100644 => 100755 shoplist.txt mode change 100644 => 100755 status.py mode change 100644 => 100755 status.pyc mode change 100644 => 100755 textutils.py mode change 100644 => 100755 textutils.pyc mode change 100644 => 100755 utils.py mode change 100644 => 100755 utils.pyc mode change 100644 => 100755 utils/generate-packet-lengths.py mode change 100644 => 100755 utils/update-item-db.py mode change 100644 => 100755 utils/update-map-db.py mode change 100644 => 100755 utils/update-map-names.py mode change 100644 => 100755 utils/update-monster-db.py mode change 100644 => 100755 walkto.py mode change 100644 => 100755 walkto.pyc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd5d532 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +manachat.ini +bot diff --git a/LICENCE b/LICENCE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/RULES4BOTS.md b/RULES4BOTS.md old mode 100644 new mode 100755 diff --git a/__pycache__/itemdb.cpython-37.pyc b/__pycache__/itemdb.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/__pycache__/loggers.cpython-37.pyc b/__pycache__/loggers.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/__pycache__/monsterdb.cpython-37.pyc b/__pycache__/monsterdb.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/actor.py b/actor.py old mode 100644 new mode 100755 diff --git a/actor.pyc b/actor.pyc old mode 100644 new mode 100755 diff --git a/android.txt b/android.txt old mode 100644 new mode 100755 diff --git a/auto.sh b/auto.sh index 427cb4a..47776e2 100755 --- a/auto.sh +++ b/auto.sh @@ -2,6 +2,7 @@ while : do echo "Loading manachat (abort with CTRL+C)" - ./simple.py - sleep 15 + # Increase nice number in order to be the last served by kernel + nice -n 19 ./simple.py + sleep 60 done diff --git a/badge.py b/badge.py old mode 100644 new mode 100755 diff --git a/badge.pyc b/badge.pyc old mode 100644 new mode 100755 diff --git a/bot/XCOM.txt b/bot/XCOM.txt old mode 100644 new mode 100755 diff --git a/bot/admins.txt b/bot/admins.txt old mode 100644 new mode 100755 diff --git a/bot/disliked.txt b/bot/disliked.txt old mode 100644 new mode 100755 diff --git a/bot/friends.txt b/bot/friends.txt old mode 100644 new mode 100755 diff --git a/bot/ignored.txt b/bot/ignored.txt old mode 100644 new mode 100755 diff --git a/bot/jokes.txt b/bot/jokes.txt old mode 100644 new mode 100755 diff --git a/chat.py b/chat.py old mode 100644 new mode 100755 diff --git a/chat.pyc b/chat.pyc old mode 100644 new mode 100755 diff --git a/commands.py b/commands.py old mode 100644 new mode 100755 diff --git a/commands.pyc b/commands.pyc old mode 100644 new mode 100755 diff --git a/curses/cui.py b/curses/cui.py old mode 100644 new mode 100755 diff --git a/curses/cui.pyc b/curses/cui.pyc old mode 100644 new mode 100755 diff --git a/curses/handlers.py b/curses/handlers.py old mode 100644 new mode 100755 diff --git a/curses/handlers.pyc b/curses/handlers.pyc old mode 100644 new mode 100755 diff --git a/curses/tmwcli.py b/curses/tmwcli.py old mode 100644 new mode 100755 diff --git a/external/LINCENCE.six b/external/LINCENCE.six old mode 100644 new mode 100755 diff --git a/external/README.six b/external/README.six old mode 100644 new mode 100755 diff --git a/external/construct/LICENSE b/external/construct/LICENSE old mode 100644 new mode 100755 diff --git a/external/construct/README.rst b/external/construct/README.rst old mode 100644 new mode 100755 diff --git a/external/construct/__init__.py b/external/construct/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/__init__.pyc b/external/construct/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/construct/adapters.py b/external/construct/adapters.py old mode 100644 new mode 100755 diff --git a/external/construct/adapters.pyc b/external/construct/adapters.pyc old mode 100644 new mode 100755 diff --git a/external/construct/core.py b/external/construct/core.py old mode 100644 new mode 100755 diff --git a/external/construct/core.pyc b/external/construct/core.pyc old mode 100644 new mode 100755 diff --git a/external/construct/debug.py b/external/construct/debug.py old mode 100644 new mode 100755 diff --git a/external/construct/debug.pyc b/external/construct/debug.pyc old mode 100644 new mode 100755 diff --git a/external/construct/formats/__init__.py b/external/construct/formats/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/data/__init__.py b/external/construct/formats/data/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/data/cap.py b/external/construct/formats/data/cap.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/data/snoop.py b/external/construct/formats/data/snoop.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/executable/__init__.py b/external/construct/formats/executable/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/executable/elf32.py b/external/construct/formats/executable/elf32.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/executable/pe32.py b/external/construct/formats/executable/pe32.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/filesystem/__init__.py b/external/construct/formats/filesystem/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/filesystem/ext2.py b/external/construct/formats/filesystem/ext2.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/filesystem/fat16.py b/external/construct/formats/filesystem/fat16.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/filesystem/mbr.py b/external/construct/formats/filesystem/mbr.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/__init__.py b/external/construct/formats/graphics/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/bmp.py b/external/construct/formats/graphics/bmp.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/emf.py b/external/construct/formats/graphics/emf.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/gif.py b/external/construct/formats/graphics/gif.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/png.py b/external/construct/formats/graphics/png.py old mode 100644 new mode 100755 diff --git a/external/construct/formats/graphics/wmf.py b/external/construct/formats/graphics/wmf.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/__init__.py b/external/construct/lib/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/__init__.pyc b/external/construct/lib/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/binary.py b/external/construct/lib/binary.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/binary.pyc b/external/construct/lib/binary.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/bitstream.py b/external/construct/lib/bitstream.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/bitstream.pyc b/external/construct/lib/bitstream.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/container.py b/external/construct/lib/container.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/container.pyc b/external/construct/lib/container.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/expr.py b/external/construct/lib/expr.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/expr.pyc b/external/construct/lib/expr.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/hex.py b/external/construct/lib/hex.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/hex.pyc b/external/construct/lib/hex.pyc old mode 100644 new mode 100755 diff --git a/external/construct/lib/py3compat.py b/external/construct/lib/py3compat.py old mode 100644 new mode 100755 diff --git a/external/construct/lib/py3compat.pyc b/external/construct/lib/py3compat.pyc old mode 100644 new mode 100755 diff --git a/external/construct/macros.py b/external/construct/macros.py old mode 100644 new mode 100755 diff --git a/external/construct/macros.pyc b/external/construct/macros.pyc old mode 100644 new mode 100755 diff --git a/external/construct/protocols/__init__.py b/external/construct/protocols/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/__init__.pyc b/external/construct/protocols/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/construct/protocols/application/__init__.py b/external/construct/protocols/application/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/application/dns.py b/external/construct/protocols/application/dns.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/ipstack.py b/external/construct/protocols/ipstack.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer2/__init__.py b/external/construct/protocols/layer2/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer2/arp.py b/external/construct/protocols/layer2/arp.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer2/ethernet.py b/external/construct/protocols/layer2/ethernet.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer2/mtp2.py b/external/construct/protocols/layer2/mtp2.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/__init__.py b/external/construct/protocols/layer3/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/__init__.pyc b/external/construct/protocols/layer3/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/dhcpv4.py b/external/construct/protocols/layer3/dhcpv4.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/dhcpv6.py b/external/construct/protocols/layer3/dhcpv6.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/icmpv4.py b/external/construct/protocols/layer3/icmpv4.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/igmpv2.py b/external/construct/protocols/layer3/igmpv2.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/ipv4.py b/external/construct/protocols/layer3/ipv4.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/ipv4.pyc b/external/construct/protocols/layer3/ipv4.pyc old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/ipv6.py b/external/construct/protocols/layer3/ipv6.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer3/mtp3.py b/external/construct/protocols/layer3/mtp3.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer4/__init__.py b/external/construct/protocols/layer4/__init__.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer4/isup.py b/external/construct/protocols/layer4/isup.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer4/tcp.py b/external/construct/protocols/layer4/tcp.py old mode 100644 new mode 100755 diff --git a/external/construct/protocols/layer4/udp.py b/external/construct/protocols/layer4/udp.py old mode 100644 new mode 100755 diff --git a/external/construct/version.py b/external/construct/version.py old mode 100644 new mode 100755 diff --git a/external/construct/version.pyc b/external/construct/version.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/CHANGELOG.md b/external/plyer/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/external/plyer/LICENSE b/external/plyer/LICENSE old mode 100644 new mode 100755 diff --git a/external/plyer/README.rst b/external/plyer/README.rst old mode 100644 new mode 100755 diff --git a/external/plyer/__init__.py b/external/plyer/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/__init__.pyc b/external/plyer/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/compat.py b/external/plyer/compat.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/__init__.py b/external/plyer/facades/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/__init__.pyc b/external/plyer/facades/__init__.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/accelerometer.py b/external/plyer/facades/accelerometer.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/accelerometer.pyc b/external/plyer/facades/accelerometer.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/audio.py b/external/plyer/facades/audio.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/audio.pyc b/external/plyer/facades/audio.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/battery.py b/external/plyer/facades/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/battery.pyc b/external/plyer/facades/battery.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/camera.py b/external/plyer/facades/camera.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/camera.pyc b/external/plyer/facades/camera.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/compass.py b/external/plyer/facades/compass.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/compass.pyc b/external/plyer/facades/compass.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/email.py b/external/plyer/facades/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/email.pyc b/external/plyer/facades/email.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/filechooser.py b/external/plyer/facades/filechooser.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/filechooser.pyc b/external/plyer/facades/filechooser.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/gps.py b/external/plyer/facades/gps.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/gps.pyc b/external/plyer/facades/gps.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/gyroscope.py b/external/plyer/facades/gyroscope.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/gyroscope.pyc b/external/plyer/facades/gyroscope.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/irblaster.py b/external/plyer/facades/irblaster.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/irblaster.pyc b/external/plyer/facades/irblaster.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/notification.py b/external/plyer/facades/notification.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/notification.pyc b/external/plyer/facades/notification.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/orientation.py b/external/plyer/facades/orientation.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/orientation.pyc b/external/plyer/facades/orientation.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/sms.py b/external/plyer/facades/sms.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/sms.pyc b/external/plyer/facades/sms.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/tts.py b/external/plyer/facades/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/tts.pyc b/external/plyer/facades/tts.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/uniqueid.py b/external/plyer/facades/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/uniqueid.pyc b/external/plyer/facades/uniqueid.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/facades/vibrator.py b/external/plyer/facades/vibrator.py old mode 100644 new mode 100755 diff --git a/external/plyer/facades/vibrator.pyc b/external/plyer/facades/vibrator.pyc old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/__init__.py b/external/plyer/platforms/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/__init__.py b/external/plyer/platforms/android/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/accelerometer.py b/external/plyer/platforms/android/accelerometer.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/audio.py b/external/plyer/platforms/android/audio.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/battery.py b/external/plyer/platforms/android/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/camera.py b/external/plyer/platforms/android/camera.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/compass.py b/external/plyer/platforms/android/compass.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/email.py b/external/plyer/platforms/android/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/gps.py b/external/plyer/platforms/android/gps.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/gyroscope.py b/external/plyer/platforms/android/gyroscope.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/irblaster.py b/external/plyer/platforms/android/irblaster.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/notification.py b/external/plyer/platforms/android/notification.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/orientation.py b/external/plyer/platforms/android/orientation.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/sms.py b/external/plyer/platforms/android/sms.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/tts.py b/external/plyer/platforms/android/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/uniqueid.py b/external/plyer/platforms/android/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/android/vibrator.py b/external/plyer/platforms/android/vibrator.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/__init__.py b/external/plyer/platforms/ios/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/accelerometer.py b/external/plyer/platforms/ios/accelerometer.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/battery.py b/external/plyer/platforms/ios/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/compass.py b/external/plyer/platforms/ios/compass.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/email.py b/external/plyer/platforms/ios/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/gps.py b/external/plyer/platforms/ios/gps.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/gyroscope.py b/external/plyer/platforms/ios/gyroscope.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/tts.py b/external/plyer/platforms/ios/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/ios/uniqueid.py b/external/plyer/platforms/ios/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/__init__.py b/external/plyer/platforms/linux/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/accelerometer.py b/external/plyer/platforms/linux/accelerometer.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/battery.py b/external/plyer/platforms/linux/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/email.py b/external/plyer/platforms/linux/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/filechooser.py b/external/plyer/platforms/linux/filechooser.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/notification.py b/external/plyer/platforms/linux/notification.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/tts.py b/external/plyer/platforms/linux/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/linux/uniqueid.py b/external/plyer/platforms/linux/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/__init__.py b/external/plyer/platforms/macosx/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/accelerometer.py b/external/plyer/platforms/macosx/accelerometer.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/battery.py b/external/plyer/platforms/macosx/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/email.py b/external/plyer/platforms/macosx/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/filechooser.py b/external/plyer/platforms/macosx/filechooser.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/libs/__init__.py b/external/plyer/platforms/macosx/libs/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/libs/osx_motion_sensor.py b/external/plyer/platforms/macosx/libs/osx_motion_sensor.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/notification.py b/external/plyer/platforms/macosx/notification.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/tts.py b/external/plyer/platforms/macosx/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/macosx/uniqueid.py b/external/plyer/platforms/macosx/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/__init__.py b/external/plyer/platforms/win/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/battery.py b/external/plyer/platforms/win/battery.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/email.py b/external/plyer/platforms/win/email.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/filechooser.py b/external/plyer/platforms/win/filechooser.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/libs/__init__.py b/external/plyer/platforms/win/libs/__init__.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/libs/balloontip.py b/external/plyer/platforms/win/libs/balloontip.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/libs/batterystatus.py b/external/plyer/platforms/win/libs/batterystatus.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/libs/win_api_defs.py b/external/plyer/platforms/win/libs/win_api_defs.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/notification.py b/external/plyer/platforms/win/notification.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/tts.py b/external/plyer/platforms/win/tts.py old mode 100644 new mode 100755 diff --git a/external/plyer/platforms/win/uniqueid.py b/external/plyer/platforms/win/uniqueid.py old mode 100644 new mode 100755 diff --git a/external/plyer/tools/pep8checker/pep8.py b/external/plyer/tools/pep8checker/pep8.py old mode 100644 new mode 100755 diff --git a/external/plyer/tools/pep8checker/pep8base.html b/external/plyer/tools/pep8checker/pep8base.html old mode 100644 new mode 100755 diff --git a/external/plyer/tools/pep8checker/pep8kivy.py b/external/plyer/tools/pep8checker/pep8kivy.py old mode 100644 new mode 100755 diff --git a/external/plyer/tools/pep8checker/pre-commit.githook b/external/plyer/tools/pep8checker/pre-commit.githook old mode 100644 new mode 100755 diff --git a/external/plyer/utils.py b/external/plyer/utils.py old mode 100644 new mode 100755 diff --git a/external/plyer/utils.pyc b/external/plyer/utils.pyc old mode 100644 new mode 100755 diff --git a/external/pytmx/LICENSE b/external/pytmx/LICENSE old mode 100644 new mode 100755 diff --git a/external/pytmx/__init__.py b/external/pytmx/__init__.py old mode 100644 new mode 100755 diff --git a/external/pytmx/pytmx.py b/external/pytmx/pytmx.py old mode 100644 new mode 100755 diff --git a/external/pytmx/readme.md b/external/pytmx/readme.md old mode 100644 new mode 100755 diff --git a/external/pytmx/util_pygame.py b/external/pytmx/util_pygame.py old mode 100644 new mode 100755 diff --git a/external/pytmx/util_pyglet.py b/external/pytmx/util_pyglet.py old mode 100644 new mode 100755 diff --git a/external/pytmx/util_pysdl2.py b/external/pytmx/util_pysdl2.py old mode 100644 new mode 100755 diff --git a/external/six.py b/external/six.py old mode 100644 new mode 100755 diff --git a/external/six.pyc b/external/six.pyc old mode 100644 new mode 100755 diff --git a/gui/__init__.py b/gui/__init__.py old mode 100644 new mode 100755 diff --git a/gui/__init__.pyc b/gui/__init__.pyc old mode 100644 new mode 100755 diff --git a/gui/__pycache__/__init__.cpython-37.pyc b/gui/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/gui/__pycache__/managui.cpython-37.pyc b/gui/__pycache__/managui.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/gui/chatlog.py b/gui/chatlog.py old mode 100644 new mode 100755 diff --git a/gui/handlers.py b/gui/handlers.py old mode 100644 new mode 100755 diff --git a/gui/handlers.pyc b/gui/handlers.pyc old mode 100644 new mode 100755 diff --git a/gui/icon.png b/gui/icon.png old mode 100644 new mode 100755 diff --git a/gui/managui.kv b/gui/managui.kv old mode 100644 new mode 100755 diff --git a/gui/managui.py b/gui/managui.py old mode 100644 new mode 100755 diff --git a/gui/managui.pyc b/gui/managui.pyc old mode 100644 new mode 100755 diff --git a/gui/pathfind.py b/gui/pathfind.py old mode 100644 new mode 100755 diff --git a/gui/plist.py b/gui/plist.py old mode 100644 new mode 100755 diff --git a/gui/tmxmap.py b/gui/tmxmap.py old mode 100644 new mode 100755 diff --git a/icon.png b/icon.png old mode 100644 new mode 100755 diff --git a/itemdb.py b/itemdb.py old mode 100644 new mode 100755 diff --git a/itemdb.pyc b/itemdb.pyc old mode 100644 new mode 100755 diff --git a/itemdb.txt b/itemdb.txt old mode 100644 new mode 100755 diff --git a/loggers.py b/loggers.py old mode 100644 new mode 100755 diff --git a/loggers.pyc b/loggers.pyc old mode 100644 new mode 100755 diff --git a/logicmanager.py b/logicmanager.py old mode 100644 new mode 100755 diff --git a/logicmanager.pyc b/logicmanager.pyc old mode 100644 new mode 100755 diff --git a/main.py b/main.py old mode 100644 new mode 100755 diff --git a/manachat.json b/manachat.json old mode 100644 new mode 100755 diff --git a/mapdb.zip b/mapdb.zip old mode 100644 new mode 100755 diff --git a/mapnames.py b/mapnames.py old mode 100644 new mode 100755 diff --git a/mapnames.pyc b/mapnames.pyc old mode 100644 new mode 100755 diff --git a/mapnames.txt b/mapnames.txt old mode 100644 new mode 100755 diff --git a/monsterdb.py b/monsterdb.py old mode 100644 new mode 100755 diff --git a/monsterdb.pyc b/monsterdb.pyc old mode 100644 new mode 100755 diff --git a/monsterdb.txt b/monsterdb.txt old mode 100644 new mode 100755 diff --git a/net/__init__.py b/net/__init__.py old mode 100644 new mode 100755 diff --git a/net/__init__.pyc b/net/__init__.pyc old mode 100644 new mode 100755 diff --git a/net/__pycache__/__init__.cpython-37.pyc b/net/__pycache__/__init__.cpython-37.pyc old mode 100644 new mode 100755 diff --git a/net/being.py b/net/being.py old mode 100644 new mode 100755 diff --git a/net/being.pyc b/net/being.pyc old mode 100644 new mode 100755 diff --git a/net/charserv.py b/net/charserv.py old mode 100644 new mode 100755 diff --git a/net/charserv.pyc b/net/charserv.pyc old mode 100644 new mode 100755 diff --git a/net/common.py b/net/common.py old mode 100644 new mode 100755 diff --git a/net/common.pyc b/net/common.pyc old mode 100644 new mode 100755 diff --git a/net/dispatcher.py b/net/dispatcher.py old mode 100644 new mode 100755 diff --git a/net/dispatcher.pyc b/net/dispatcher.pyc old mode 100644 new mode 100755 diff --git a/net/inventory.py b/net/inventory.py old mode 100644 new mode 100755 diff --git a/net/inventory.pyc b/net/inventory.pyc old mode 100644 new mode 100755 diff --git a/net/item.py b/net/item.py old mode 100644 new mode 100755 diff --git a/net/item.pyc b/net/item.pyc old mode 100644 new mode 100755 diff --git a/net/loginsrv.py b/net/loginsrv.py old mode 100644 new mode 100755 diff --git a/net/loginsrv.pyc b/net/loginsrv.pyc old mode 100644 new mode 100755 diff --git a/net/mapserv.py b/net/mapserv.py old mode 100644 new mode 100755 diff --git a/net/mapserv.pyc b/net/mapserv.pyc old mode 100644 new mode 100755 diff --git a/net/onlineusers.py b/net/onlineusers.py old mode 100644 new mode 100755 diff --git a/net/onlineusers.pyc b/net/onlineusers.pyc old mode 100644 new mode 100755 diff --git a/net/packetlen.py b/net/packetlen.py old mode 100644 new mode 100755 diff --git a/net/packetlen.pyc b/net/packetlen.pyc old mode 100644 new mode 100755 diff --git a/net/protocol.py b/net/protocol.py old mode 100644 new mode 100755 diff --git a/net/protocol.pyc b/net/protocol.pyc old mode 100644 new mode 100755 diff --git a/net/stats.py b/net/stats.py old mode 100644 new mode 100755 diff --git a/net/stats.pyc b/net/stats.pyc old mode 100644 new mode 100755 diff --git a/net/trade.py b/net/trade.py old mode 100644 new mode 100755 diff --git a/net/trade.pyc b/net/trade.pyc old mode 100644 new mode 100755 diff --git a/newmessage.wav b/newmessage.wav old mode 100644 new mode 100755 diff --git a/playerlist.py b/playerlist.py old mode 100644 new mode 100755 diff --git a/playerlist.pyc b/playerlist.pyc old mode 100644 new mode 100755 diff --git a/plugins/README.txt b/plugins/README.txt old mode 100644 new mode 100755 diff --git a/plugins/__init__.py b/plugins/__init__.py old mode 100644 new mode 100755 diff --git a/plugins/__init__.pyc b/plugins/__init__.pyc old mode 100644 new mode 100755 diff --git a/plugins/autofollow.py b/plugins/autofollow.py old mode 100644 new mode 100755 diff --git a/plugins/autofollow.pyc b/plugins/autofollow.pyc old mode 100644 new mode 100755 diff --git a/plugins/autospell.py b/plugins/autospell.py old mode 100644 new mode 100755 diff --git a/plugins/autospell.pyc b/plugins/autospell.pyc old mode 100644 new mode 100755 diff --git a/plugins/battlebot.py b/plugins/battlebot.py old mode 100644 new mode 100755 diff --git a/plugins/battlebot.pyc b/plugins/battlebot.pyc old mode 100644 new mode 100755 diff --git a/plugins/chatbot.py b/plugins/chatbot.py old mode 100644 new mode 100755 diff --git a/plugins/chatbot.pyc b/plugins/chatbot.pyc old mode 100644 new mode 100755 diff --git a/plugins/chatlogfile.py b/plugins/chatlogfile.py old mode 100644 new mode 100755 diff --git a/plugins/chatlogfile.pyc b/plugins/chatlogfile.pyc old mode 100644 new mode 100755 diff --git a/plugins/guildbot/__init__.py b/plugins/guildbot/__init__.py old mode 100644 new mode 100755 diff --git a/plugins/guildbot/__init__.pyc b/plugins/guildbot/__init__.pyc old mode 100644 new mode 100755 diff --git a/plugins/guildbot/create_db.sql b/plugins/guildbot/create_db.sql old mode 100644 new mode 100755 diff --git a/plugins/guildbot/guilddb.py b/plugins/guildbot/guilddb.py old mode 100644 new mode 100755 diff --git a/plugins/guildbot/guilddb.pyc b/plugins/guildbot/guilddb.pyc old mode 100644 new mode 100755 diff --git a/plugins/guildbot/handlers.py b/plugins/guildbot/handlers.py old mode 100644 new mode 100755 diff --git a/plugins/guildbot/handlers.pyc b/plugins/guildbot/handlers.pyc old mode 100644 new mode 100755 diff --git a/plugins/lazytree.py b/plugins/lazytree.py old mode 100644 new mode 100755 diff --git a/plugins/lazytree.pyc b/plugins/lazytree.pyc old mode 100644 new mode 100755 diff --git a/plugins/manaboy.py b/plugins/manaboy.py old mode 100644 new mode 100755 index 127ddd0..c5480b6 --- a/plugins/manaboy.py +++ b/plugins/manaboy.py @@ -39,6 +39,35 @@ disliked_players = preloadArray("bot/disliked.txt") admins = preloadArray("bot/admins.txt") friends = preloadArray("bot/friends.txt") +# ====================== XECUTE ============= + +def XECUTE(nick, is_whisper, command, args=""): + try: + import subprocess + if args=="": + s = subprocess.check_output([command]) + else: + s = subprocess.check_output([command, args]) + except: + s=("Damn! " +match.group(1)+" + has failed!").strip() + if is_whisper: + whisper(nick,(s)) + else: + mapserv.cmsg_chat_message(s) + +# ====================== XCAL ============= + +def XCAL(nick, message, is_whisper, match): + if nick in ignored_players: + return + XECUTE(nick, is_whisper, "/home/livio/Nextcloud/mcu/prj/test_cparse/a.out",match.group(1)) + +# === eXecute on Unix =========== + +def XUfortune(nick, message, is_whisper, match): XECUTE(nick, is_whisper, "fortune", "-s") +def XUdate(nick, message, is_whisper, match): XECUTE(nick, is_whisper, "/bin/date") +def XUpom(nick, message, is_whisper, match): XECUTE(nick, is_whisper, "/usr/games/pom") + # ====================== XCOM ============= XCOMList = preloadArray("bot/XCOM.txt") XCOMServerStatInterested = [] #List of nicks interested in server status change @@ -147,16 +176,37 @@ def XCOMInvite(nick, message, is_whisper, match): return if nick in ignored_players: return #or say something - if nick in admins: + if nick in admins: # FIXME Do not add if already there!!! XCOMList.append(match.group(1)) XCOMBroadcast("##W--- " + nick + " (Admin) invited " + match.group(1) + " on XCOM ---" + XCOMBroadcastPrefix + match.group(1) + " XCOM enabled! Use !xcoff to disable, use !xclist to see XCOM online list") else: if nick in ignored_players: whisper(nick, "You cannot invite banned players.") else: - whisper(match.group(1), "##W--- " + nick + " invited you on XCOM --- Answer !xcon to join.") + whisper(match.group(1), "##W--- " + nick + " invited you to chat on XCOM --- Answer !xcon to join.") XCOMDelay() - whisper(nick, "Invited " + match.group(1) + " to join XCOM. Waiting for his/her reply...") + whisper(nick, "Invited " + match.group(1) + " to join XCOM. Waiting for his/her reply...") + +XCOMServerInvited = [] +def XCOMInviteAll(nick, message, is_whisper, match): + XCOMDelay() + if not is_whisper: + return + if nick in ignored_players: + return #or say something + if nick in admins: # FIXME Do not add if already there!!! + for invn in online_users.online_users: + if invn in XCOMList: + pass + elif invn in ignored_players: + pass + elif invn in XCOMServerInvited: + pass + else: + XCOMServerInvited.append(invn) + whisper(invn, "##W--- " + nick + " invited you to chat on XCOM --- Answer !xcon to join.") + XCOMDelay() + def XCOMEnable(nick, message, is_whisper, match): XCOMDelay() @@ -247,22 +297,22 @@ def XCOMUnBan(nick, message, is_whisper, match): # ============================================= -greetings = { - "Hi {0}!" : 4, - "Hey {0}" : 3, - "Yo {0}" : 2, - "{0}!!!!" : 1, - "{0}!!!" : 1, - "{0}!!" : 1, - "Hello {0}!!!" : 5, - "Hello {0}!" : 5, - "Welcome back {0}!" : 3, - "Hello {0}! You are looking lovely today!" : 1, - "Hello {0}! I'm the bot that you can trust: I want your money!" : 1, - "{0} is back!!" : 1, +greetings = [ + "Hi {0}!", + "Hey {0}", + "Yo {0}", + "{0}!!!!", + "{0}!!!", + "{0}!!", + "Hello {0}!!!", + "Hello {0}!", + "Welcome back {0}!", + "Hello {0}! You are looking lovely today!", + "Hello {0}! I'm the bot that you can trust: I want your money!", + "{0} is back!!", "Hello and welcome to the Aperture Science \ -computer-aided enrichment center." : 1, -} +computer-aided enrichment center.", +] drop_items = [ "a bomb", "a bowl of petunias", "a cake", "a candy", "a chocobo", @@ -397,7 +447,8 @@ dislikebye_answers = [ "Go away!!!", "Don't come back!", "Whew...", - "I need another drink…" + "I need another drink…", + "*picking my nose*" ] attack_answers = [ @@ -418,6 +469,7 @@ attack_answers = [ "I will burn you down.", "The show begins...", "I'm better than makeup artists, prepare yourself!!!", + "Yeah! A challenge!", ] notattack_answers = [ @@ -440,6 +492,7 @@ story_action_fail = [ "stomped on the soul menhir", "slipped on a terranite ore", "got interrupted by phone call", + "got disconnected", ] # FIXME Unused @@ -453,28 +506,19 @@ story_actions = [ # ----------------------------------------------------------------------------- def say_greeting(nick, _, is_whisper, match): + if nick == "Liviobot" : + return if is_whisper: return if nick in ignored_players: return - total_weight = 0 - for w in greetings.itervalues(): - total_weight += w - - random_weight = random.randint(0, total_weight) - total_weight = 0 - random_greeting = 'Hi {0}' - for g, w in greetings.iteritems(): - if total_weight >= random_weight: - random_greeting = g - break - total_weight += w if nick in disliked_players: mapserv.cmsg_chat_message(random.choice(dislike_answers)) else: - mapserv.cmsg_chat_message(random_greeting.format(nick)) + answer = random.choice(greetings) + mapserv.cmsg_chat_message(answer.format(nick)) time.sleep(1) def say_goodbye(nick, _, is_whisper, match): @@ -485,13 +529,13 @@ def say_goodbye(nick, _, is_whisper, match): return total_weight = 0 - for w in greetings.itervalues(): + for w in bye_answers.itervalues(): total_weight += w random_weight = random.randint(0, total_weight) total_weight = 0 random_greeting = 'Hi {0}' - for g, w in greetings.iteritems(): + for g, w in bye_answers.iteritems(): if total_weight >= random_weight: random_greeting = g break @@ -970,7 +1014,7 @@ def cmd_say(nick, message, is_whisper, match): return if nick not in admins: return - set_npc_owner(nick) + # ~ set_npc_owner(nick) msg = message.group(1) mapserv.cmsg_chat_message(msg) @@ -1337,18 +1381,25 @@ manaboy_commands = { '!history' : cmd_history, '!bug (.+)' : cmd_report_bug, '!bugs' : cmd_check_bugs, + + '!xcal (.*)' : XCAL, + '!xuf': XUfortune, + '!xudate': XUdate, + '!xupom': XUpom, '!xcon' : XCOMEnable, '!xcom' : XCOMEnable, '!xcoff' : XCOMDisable, '!xcom off' : XCOMDisable, '!xclist' : XCOMOnlineList, '!xci (.*)' : XCOMInvite, + '!xcia' : XCOMInviteAll, '!xcsi (.*)' : XCOMSilentInvite, '!xcb (.*)' : XCOMBan, '!xcu (.*)' : XCOMUnBan, '!xcsion' : XCOMServerInterestEnable, '!xcsioff' : XCOMServerInterestDisable, r'(.*)' : XCOMCommunicate, + r'^(?i)explain (.*)': say_explain, r'^(?i)(hello|hi|hey|heya|hiya|yo) (?i)(livio|liviobot)' : say_greeting, r'^(?i)(hello|hi|hey|heya|hiya) (?i)(all|everybody|everyone)(.*)' : say_greeting, diff --git a/plugins/manaboy.pyc b/plugins/manaboy.pyc old mode 100644 new mode 100755 index a712707..b4f5fd8 Binary files a/plugins/manaboy.pyc and b/plugins/manaboy.pyc differ diff --git a/plugins/msgqueue.py b/plugins/msgqueue.py old mode 100644 new mode 100755 diff --git a/plugins/msgqueue.pyc b/plugins/msgqueue.pyc old mode 100644 new mode 100755 diff --git a/plugins/notify.py b/plugins/notify.py old mode 100644 new mode 100755 diff --git a/plugins/notify.pyc b/plugins/notify.pyc old mode 100644 new mode 100755 diff --git a/plugins/npc.py b/plugins/npc.py old mode 100644 new mode 100755 diff --git a/plugins/npc.pyc b/plugins/npc.pyc old mode 100644 new mode 100755 diff --git a/plugins/restapi.py b/plugins/restapi.py old mode 100644 new mode 100755 diff --git a/plugins/shop.py b/plugins/shop.py old mode 100644 new mode 100755 index 44c5db8..be66cea --- a/plugins/shop.py +++ b/plugins/shop.py @@ -7,6 +7,7 @@ import chatbot import logicmanager import status import badge +import random from net.inventory import get_item_index from net.trade import reset_trade_state from utils import encode_str, extends @@ -67,6 +68,20 @@ def cleanup(): s.index = 0 s.start_time = 0 +sell_greetings = [ + "Hi {0}! Welcome to my shop!", + "Hey {0}, wanna something?", + "Let\'s do business!", + "Yeah! Spend your money here!", + "Shop here {0}, yes!", +] + +buy_greetings = [ + "Okay! Let's see what you've got to sell!", + "Hmm? Something interesting to trade?", + "Hey {0}, I'm not going to buy garbage!", + "Uh? Sorry I was\'t listening.", +] # ========================================================================= def selllist(nick, message, is_whisper, match): @@ -75,10 +90,14 @@ def selllist(nick, message, is_whisper, match): if nick in nobuy: mapserv.cmsg_chat_message("Special prize for you, " + nick + "!") time.sleep(5) + else: + answer = random.choice(sell_greetings) + mapserv.cmsg_chat_message(answer.format(nick)) + + time.sleep(5) # ~ return # Support for 4144's shop (Sell list) data = '\302\202B1' - for id_, (price, amount) in selling.iteritems(): index = get_item_index(id_) if index < 0: @@ -99,7 +118,9 @@ def selllist(nick, message, is_whisper, match): def buylist(nick, message, is_whisper, match): if not is_whisper: return - + answer = random.choice(buy_greetings) + mapserv.cmsg_chat_message(answer.format(nick)) + time.sleep(5) # Support for 4144's shop (Sell list) data = '\302\202S1' diff --git a/plugins/shop.pyc b/plugins/shop.pyc old mode 100644 new mode 100755 index aa39471..bf34846 Binary files a/plugins/shop.pyc and b/plugins/shop.pyc differ diff --git a/runshop.py b/runshop.py old mode 100644 new mode 100755 diff --git a/shopAdmins.txt b/shopAdmins.txt old mode 100644 new mode 100755 diff --git a/shoplist.txt b/shoplist.txt old mode 100644 new mode 100755 index 56f5dc4..39c6278 --- a/shoplist.txt +++ b/shoplist.txt @@ -1,2 +1,15 @@ 904 0 0 100 1 1199 30000 1 5000 1 +1252 0 0 300 75 +719 0 0 300 55 +509 0 0 218 35 +1250 0 0 75 120 +540 0 0 143 25 +4027 0 0 1 1000 +1202 0 0 1 100 +622 0 0 1 300 +1203 0 0 1 500 +511 0 0 1 2000 +617 0 0 1 500 +615 0 0 1 250 +616 0 0 1 250 diff --git a/simple.py b/simple.py index b05ffab..3f0a4b4 100755 --- a/simple.py +++ b/simple.py @@ -39,6 +39,7 @@ def input_thread(): while True: s = raw_input(PROMPT) input_buffer.append(s) + # ~ time.sleep(0.2) # Attempt to reduce CPU usage on bad connection class DebugLogHandler(logging.Handler): diff --git a/status.py b/status.py old mode 100644 new mode 100755 diff --git a/status.pyc b/status.pyc old mode 100644 new mode 100755 diff --git a/textutils.py b/textutils.py old mode 100644 new mode 100755 diff --git a/textutils.pyc b/textutils.pyc old mode 100644 new mode 100755 diff --git a/utils.py b/utils.py old mode 100644 new mode 100755 diff --git a/utils.pyc b/utils.pyc old mode 100644 new mode 100755 diff --git a/utils/generate-packet-lengths.py b/utils/generate-packet-lengths.py old mode 100644 new mode 100755 diff --git a/utils/update-item-db.py b/utils/update-item-db.py old mode 100644 new mode 100755 diff --git a/utils/update-map-db.py b/utils/update-map-db.py old mode 100644 new mode 100755 diff --git a/utils/update-map-names.py b/utils/update-map-names.py old mode 100644 new mode 100755 diff --git a/utils/update-monster-db.py b/utils/update-monster-db.py old mode 100644 new mode 100755 diff --git a/walkto.py b/walkto.py old mode 100644 new mode 100755 diff --git a/walkto.pyc b/walkto.pyc old mode 100644 new mode 100755 -- cgit v1.2.3-70-g09d2