Re: Python XChat Play Bot

NEW RELEASE

Some more bug fixes
Updated network list

Post's attachments

playbot_v7-3multi.py 149.42 kb, 5 downloads since 2016-04-06 

playbot_v7-3single.py 53.52 kb, 8 downloads since 2016-04-06 

You don't have the permssions to download the attachments of this post.

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

More bugs fixed
Updated Network List

New Commands Added:

/rawplayerson
/rawstatson

You can now choose how you get data for the playbot either by using the rawstats2 command or from the rawplayers3 website. 

If your network lags you are best not using rawstats at a game reset for the first 2 days as it will cause problems due to the lag which could be hours between a command issued and actioned.

Post's attachments

playbot_v7-4multi.py 121.37 kb, 5 downloads since 2016-07-16 

playbot_v7-4single.py 47.44 kb, 6 downloads since 2016-07-16 

You don't have the permssions to download the attachments of this post.

Thumbs up Thumbs down

53 (edited by RussellB 2019-01-14 22:44:55)

Re: Python XChat Play Bot

Current List of PlayBot Commands

Deposit/Withdraw Mode Off    - /depositoff
Erase Config File                   - /eraseconfig
Evil Mode Off                        - /eviloff
Evil Mode On                        - /evilon
Item Upgrader Mode Off        - /itemupgraderoff
Item Upgrader Mode On        - /itemupgraderon
Log In Char                          - /login charname password
Log Out Char                        - /logoutchar - Multi version only
Multiple Fight Mode               - /singlefightoff
PlayBot Commands List         - /helpplaybot
Player's Items                       - /items
Player's Status                      - /status
Rawplayers Mode On             - /rawplayerson
Rawstats Mode On                - /rawstatson
Set Align Level                     - /setalignlevel number
Set BetMoney                      - /setbetmoney number
Set Engineer Buy Level         - /setengineerbuy number
Set Hero Buy ItemScore       - /setherobuy number
Set Item Buy Level               - /setitembuy number
Settings List                         - /settings
Single Fight Mode                 - /singlefighton
Upgrade All Mode Off            - /upgradealloff
Upgrade All Mode On            - /upgradeallon
Version Checker                   - /versioncheck

If you want more information about a command use /help <command> - ie /help settings

Thumbs up +1 Thumbs down

54 (edited by RussellB 2016-10-28 21:06:06)

Re: Python XChat Play Bot

NEW RELEASE

Anybody using 7.4 and rawstats needs up to upgrade due to some crash bugs
More bugs fixed
Slaying Monsters have changed to include all monsters so if you want to disable a monster just comment it out
Updated Network List

Added:
BNC/ZNC Reconnection Support - I've only tested it with OracleBNC on Kuroi so far.  You still need to use hexchat to run the playbot.
TrivialityZone Network support which is PyLinked through IRC4Fun
rawstats/rawplayers switching - For the 1st 30 levels of the game and if you are on a laggy network and if you were using rawstats last game it will switch to rawplayers and then back to rawstats again after the 1st 30 levels are over.

New Command
/eraseconfig - which will erase your config file

Post's attachments

playbot_v7-5multi.py 129.02 kb, 3 downloads since 2016-10-30 

playbot_v7-5single.py 50.52 kb, 2 downloads since 2016-10-30 

You don't have the permssions to download the attachments of this post.

Thumbs up Thumbs down

55 (edited by gameshogun 2016-11-02 19:42:22)

Re: Python XChat Play Bot

I'm getting this error in Python 3.5.7 if I load it via HexChat or IDLE.

[03:30:11]    File "<string>", line 277
[03:30:11]      except urllib2.URLError, detail:
[03:30:11]                             ^
[03:30:11]  SyntaxError: invalid syntax
[03:30:11]  Error loading module

Tried 7.5 and 7.4.

Windows 7
HexChat 2.12.3
Python 3.5.7
multi 7.5 and 7.4

Thumbs up Thumbs down

Re: Python XChat Play Bot

It only works with python 2.7, I haven't been able make a python 3 version of it work at all.

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

Ahh! Thank you for the info.

By the way, I tried it in a znc bouncer but it seems znc has a different way of loading python modules, which I can't understand a thing. Their wiki on that is: http://wiki.znc.in/Modpython

I'll use it in hexchat for now ^_^ Thank you again!

Thumbs up Thumbs down

Re: Python XChat Play Bot

The ZNC support only works through hexchat not directly to ZNC on its own.  So you need to add the ZNC settings into hexchat and the playbot.  If your internet disconnects for any reason, instead of it reconnecting to the network you are listed to be on it will connect to the ZNC instead.

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Bug fixes
Updated Network List

Post's attachments

playbot_v7-6multi.py 129.53 kb, 3 downloads since 2017-02-24 

playbot_v7-6single.py 50.89 kb, 5 downloads since 2017-02-24 

You don't have the permssions to download the attachments of this post.

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Bug Fixes

Added:
Nickserv support
Multiple server address support for reconnecting so if it fails to connect to a server address it will switch to another server

New Commands Added:
/status - Player's Status
/items - Player's Items

Post's attachments

playbot_v7-7multi.py 150.39 kb, 4 downloads since 2017-06-23 

playbot_v7-7single.py 57.44 kb, 5 downloads since 2017-06-23 

You don't have the permssions to download the attachments of this post.

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Bug Fixes

http://russellb.f2s.com/playbot_v7-8single.py
http://russellb.f2s.com/playbot_v7-8multi.py

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

It warms my heart that you guys have taken my old code and ran with it. It's been about six years now and I can't believe how much you've improved on what I had. You're the man Russ!

-AG420

Thumbs up Thumbs down

Re: Python XChat Play Bot

It has been fun upgrading it.  I have also made a version of it for supybot/limnoria which I must get around to releasing one day.

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Bug Fixes
Replaced TrivialityZone support with custom network support so you can set up the PlayBot to play on any pylinked network which is linked to a game network.

http://russellb.f2s.com/playbot_v7-9single.py
http://russellb.f2s.com/playbot_v7-9multi.py

Thumbs up Thumbs down

Re: Python XChat Play Bot

Coming in next version Python 3 support

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Python 3 support added

http://www.russellb.f2s.com/playbot_v8single.py
http://www.russellb.f2s.com/playbot_v8multi.py

I have also finished the supybot/limnoria version of the playbot which will be in separate topic.

Thumbs up Thumbs down

67 (edited by RussellB 2019-01-14 22:43:28)

Re: Python XChat Play Bot

NEW RELEASE

Removed depositon command
Added auto detect of frozen times bug
Bug fixes
Updated Network List

Single Player - http://www.russellb.f2s.com/playbot_v8-1single.py
Multi Player - http://www.russellb.f2s.com/playbot_v8-1multi.py

Thumbs up Thumbs down