Re: Python XChat Play Bot

NEW RELEASE

Lots of changes made to the bot. 

Tested working with Xchat Azure on Mac and Hexchat on Windows and Mac.  Uses Python 2.7.

Now tested working on Ubuntu 13.10 and Debian Wheezy Linux using Xchat.



Here are some instructions on how to get this working if do not know already.

Open the Plugins and Scripts sections.
Make sure the Python Plugin is running
Load the playbot
When it is loaded a message should come up "Playbot Activated"
To get the bot to play you need to use the command in the game channel /login name password
Obviously replacing the name with your character's name and the password with your character's password.

Post's attachments

playbot_v4.py 19.4 kb, 7 downloads since 2014-02-09 

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

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

Awesome, thanks Russ smile

I might try and give this another go, but for now I've had to use TCL to replace my char.

IRCSpeed Forums
IRCSpeed IRCd standard RR: irc.ircspeed.org - irc.ircspeed.net - irc.ircspeed.com
IRCSpeed IRCd IPv6 RR: irc6.ircspeed.org - ipv6.ircspeed.org

Re: Python XChat Play Bot

NEW RELEASE

Hopefully fixed a network bug.
Added support to reconnect a network and rejoin channel automatically if it gets disconnected.

Post's attachments

playbot_v4-2.py 21.79 kb, 5 downloads since 2014-03-25 

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

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Lots of fixes

Post's attachments

playbot_v5.py 25.07 kb, 3 downloads since 2014-09-19 

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 fixes.

Post's attachments

playbot_v5-1.py 26.7 kb, 6 downloads since 2015-01-04 

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

Thumbs up Thumbs down

Re: Python XChat Play Bot

lol, fix fix fix. One day hopefully the playbot and gamebot will be bugfree roll

IRCSpeed Forums
IRCSpeed IRCd standard RR: irc.ircspeed.org - irc.ircspeed.net - irc.ircspeed.com
IRCSpeed IRCd IPv6 RR: irc6.ircspeed.org - ipv6.ircspeed.org

Re: Python XChat Play Bot

If the game didn't have some bugs I wouldn't need to add some of the fixes to get around them.  I also learn how to code some things better.

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

Well this seemed to work but now I'm getting


INTERVAL Sun Feb 15 16:11:25 2015
OK
Traceback (most recent call last):
   File "/home/craig/.xchat2/playbot_v5-1.py", line 120, in login
     usecommand("login {0} {1}".format(name, pswd) )
   File "/home/craig/.xchat2/playbot_v5-1.py", line 105, in usecommand
     game_chan.command( "msg {0} {1}".format(botname, command) )
AttributeError: 'NoneType' object has no attribute 'command'

Thumbs up Thumbs down

Re: Python XChat Play Bot

I'm not sure why it is doing that.  What are you running it on?

Thumbs up Thumbs down

Re: Python XChat Play Bot

Hopefully fixed but not sure without knowing your setup also fixed another bug.

Post's attachments

playbot_v5-2.py 26.71 kb, 2 downloads since 2015-02-15 

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

Thumbs up Thumbs down

Re: Python XChat Play Bot

Thanks! I'll give that a whirl.

I'm running it on Linux Mint 13 (I should probably update actually but I don't have time at the moment lol) with XChat v.2.8.8.

I am running Python 2.7.3

I'll give the fixed one a shot and see what happens.

Just a bit of info: It was running fine originally but I changed the interval as it was causing XChat to lock up for a few seconds each time. I then restarted XChat and it spat that error out at me when I tried to login. I decided I'd broke it, so I re-downloaded it and unloaded and re-loaded the default one but the error still came up

Thumbs up Thumbs down

Re: Python XChat Play Bot

Changing the interval wouldn't of made a lot of difference. 

What is causing it to lockup for a few seconds is the time.sleep commands which slow things down, as certain parts of the script would run too fast before the next part should be run.  I might experiment with them a bit to see if I can remove some of them.

You can turn off deposit by changing deposit=True to deposit=0 which will help a bit as that is only necessary for new chars which suffer from the frozen times bug in the game.

Thumbs up Thumbs down

Re: Python XChat Play Bot

I have tried it now on Mint 13 and I can not get it to error at all.

I have removed the last fix as it made things worse and added a few more changes.

Post's attachments

playbot_v5-3.py 27.2 kb, 3 downloads since 2015-03-21 

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

Thumbs up +1 Thumbs down

Re: Python XChat Play Bot

I will try loading this to one of the xchat clients I've got. I run normal XChat-2.8.8-3ubuntu12.1 and XChat-Gnome-1:0.30.0~git20110821.e2a400-0.2ubuntu4.2 - I can also try running HexChat under WINE or native, I remember trying it last time and it didn't like the system or the script.

Will try it and report any issues/logs/events/etc.

IRCSpeed Forums
IRCSpeed IRCd standard RR: irc.ircspeed.org - irc.ircspeed.net - irc.ircspeed.com
IRCSpeed IRCd IPv6 RR: irc6.ircspeed.org - ipv6.ircspeed.org

Re: Python XChat Play Bot

I've been running the "fix" one with hex chat for a while. Occasionally, when I get logged out, it doesn't re-log me in, but other than that it's been fine.

Thumbs up Thumbs down

Re: Python XChat Play Bot

The latest version does have some fixes for auto re login and some speed up fixes.  So make sure you update to the newer version Slasher.

Thumbs up Thumbs down

Re: Python XChat Play Bot

I'll get it updated when I get home and keep you posted.

Cheers

Thumbs up Thumbs down

Re: Python XChat Play Bot

No issues so far...

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Another bug fixed.

New things Added

/depositoff and /depositon commands if you want to turn off/on the 1 gold deposit/withdrawing or you can make it permanent by editing the bot.
New and improved item upgrader.

Post's attachments

playbot_v6.py 29.68 kb, 8 downloads since 2015-04-19 

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.

Rewritten Hero/Engineer upgrading and upgrade alls.

The deposit/withdraw 1 gold is now off by default but it is only needed for new chars which suffer from the frozen times bug.

Added commands

/help - To list commands
/itemupgraderon - After you have your hero/engineer maxed it upgrades your lowest item.  On by default.
/itemupgraderoff - Turns item upgrader off
/setalignlevel number - To change the default alignlevel from 45.
/setbetmoney number - To change the default betmoney from 220.
/upgradeallon - After you have your hero/engineer maxed it upgrades all 1 and above.   On by default.  Has priority over itemupgrader if both on
/upgradealloff -  After you have your hero/engineer maxed it only uses upgrade all in multiples of 5.

Post's attachments

playbot_v6-1.py 34.35 kb, 3 downloads since 2015-07-12 

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

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Fixed a bug
Updated network list

Added config file support.  If you change any settings using the commands it will write the changes to a config file so if the playbot is reloaded it will use the same settings.

Post's attachments

playbot_v6-2.py 35.73 kb, 3 downloads since 2015-08-03 

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

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Updated IRCMojo domain
Fixed bugs

Post's attachments

playbot_v6-3.py 35.55 kb, 5 downloads since 2015-08-08 

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 and probably some more added smile

Added Commands

/eviloff - Turns Evil Mode off - Default
/evilon - Turns Evil Mode on - You stay aligned evil and flip to priest when you use fight/slay/attack/challenge/level up
/singlefightoff - You use all 5 fights together
/singlefighton - You fight every 30 seconds until you hit 5 fights - Default
/setengineerbuy number - Set which level you buy Engineer at - Default level 28
/setherobuy number - Set which itemscore you buy Hero at - Default itemscore 1300
/settings - List of settings you can change
/versioncheck - Check if you have the latest version of Playbot

Other Upgrades
Alignment checking - Checks if your current alignment is correct and fixes it if it is not
Multiple Character support - You can now play with up to 5 characters

Post's attachments

playbot_v7.py 129.02 kb, 3 downloads since 2015-11-03 

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 especially with the multi player support.
Network List updated.

Post's attachments

playbot_v7-1.py 130.38 kb, 3 downloads since 2015-11-20 

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

Thumbs up Thumbs down

Re: Python XChat Play Bot

NEW RELEASE

Lots more bugs fixed
Some game play changes and default settings have been changed
Added Help System so using /help followed by one of the commands will give you info on that command
I have split PlayBot in 2 so you have a choice of using single or multi-player versions

Add Commands:
/helpplaybot - This is the new command to list the list of commands instead of using just help
/logoutchar - This will remove the last player which was logged into the PlayBot - multi-player version only
/setitembuy number - You can now choose at which level you start to buy items from

Post's attachments

playbot_v7-2multi.py 148.94 kb, file has never been downloaded. 

playbot_v7-2single.py 53.04 kb, 4 downloads since 2016-03-20 

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

Thumbs up +1 Thumbs down