Ranking
Original Post
Thought it was a joke until saw it myself. I don't think scripting a bot account (if it's possible) is allowed for people other than staff. Someone please confirm this.
Last edited by Hero; Mar 12, 2012 at 03:15 AM.
You could do it quite easily in TB Lua if you felt like leaving the TB client open all the time (and your connection was up to it).
I wrote that bot. The basic process is this:

Create a connection to 176.9.64.22:22000 to obtain a copy of the server list. You can use something like this:
sub lookup_tb_server
{
        my $server = shift;

        my $list = IO::Socket::INET->new(
                PeerAddr => '176.9.64.22',
                PeerPort => 22000,
                Proto    => 'tcp'
        );

        while (<$list>)
        {
                if (/SERVER 0; (.+?)\:(.+?) $server/i)
                {
                        close $list;
                        return ($1, $2); 
                } 
        }
        die 'server not found';
}
Then, using a similar method, connect to the IP:port pair you just obtained.
While reading from the socket, parse anything that is relevant to your interests and generate replies where necessary. Make sure you ping the server every minute or so (I've made mine do it about every 30 seconds, to be safe).
There really isn't much more to it than that.




AAAAAAAAAAAAAAAAAAAAAAAAAALSO it is most certainly not illegal to make a bot that doesn't play. If it were then blam/juntalis/illepidus (yes i know they all were/are staff, but so was I so vOv) would all have been banned. (o/
Last edited by howOriginal; Mar 13, 2012 at 11:14 AM.
Originally Posted by howOriginal View Post
You could do it quite easily in TB Lua if you felt like leaving the TB client open all the time (and your connection was up to it).
I wrote that bot. The basic process is this:

Create a connection to 176.9.64.22:22000 to obtain a copy of the server list. You can use something like this:

Code



Then, using a similar method, connect to the IPort pair you just obtained.
While reading from the socket, parse anything that is relevant to your interests and generate replies where necessary. Make sure you ping the server every minute or so (I've made mine do it about every 30 seconds, to be safe).
There really isn't much more to it than that.




AAAAAAAAAAAAAAAAAAAAAAAAAALSO it is most certainly not illegal to make a bot that doesn't play. If it were then blam/juntalis/illepidus (yes i know they all were/are staff, but so was I so vOv) would all have been banned. (o/

According to LUA FAQ, LUA is not applicable online.
http://forum.toribash.com/showthread...sics%20online.

:/
Last time I checked a bot that says things doesn't effect physics.
Pushing powder down my musket so I may smite another opp.
I put a switch and a beam on my blunderbuss, your hood is not safe.
protip: If you have no idea what you are talking about don't post at all.

@solax: Creating a bot requires coding skills, no point to write a toturial about that.
lsl might publish the scripts but probably not.
Might run a service, if there is demand for it, you can pay for though.
vOv
How are you?
Originally Posted by Akmal View Post
According to LUA FAQ, LUA is not applicable online.
http://forum.toribash.com/showthread...sics%20online.

:/

1) What Mwah said. Speaking online does not require modifications to the game's physics.
2) If you meant what you said and not what you linked to; Lua does work online. In exactly the same way as it works offline.

Solax: Basically what ego said. I'll talk to you about it on IRC and help you out a bit if you want, but I don't think I'll post a tutorial about it.
Originally Posted by Akmal View Post
According to LUA FAQ, LUA is not applicable online.
http://forum.toribash.com/showthread...sics%20online.

:/

LUA works online. It means scripts that affect gravity, movement, create items (such as fireball scripts), and other shit like that.

Things like DeScript, markmOd, whatever that environment script is (that creates fake items), and fake shaders all work online.
-----
I also have a copy of iBot, which does the same thing but without needing a client open.
If you want to chat about it, PM me.
-----
Sorry, I just realized this was two days old. (It was one of the first threads in this section so I thought it was somewhat current.)

My apologies.
Last edited by Alaistier; Mar 16, 2012 at 10:49 AM. Reason: <24 hour edit/bump