Sign in to follow this  
Followers 0
adz89

Tribal Wars Bot

5 posts in this topic

#1 ·  Posted (edited)

Im trying to make a bot for Tribal Wars, I know their not allowed, but I don't care....

Anyway, I've got some of the basic scripting sorted, but i've got to the stage where I need to click on a link in the form of a picture, I'm not sure where how to actually find the link, I don't think its a form, it could be javascript.

Can anyone help me?

Here's my script, so far;

#include <IE.au3>
#RequireAdmin
$oIE = _IECreate("www.tribalwars.net")
;Get pointers to the fields
$oForm = _IEFormGetCollection($oIE, 0)
$oUser = _IEFormElementGetCollection($oForm,0)
$oPassword = _IEFormElementGetCollection($oForm,2)
$oWorld = _IEFormElementGetCollection($oForm,3)
$oLogin = _IEFormElementGetCollection($oForm,4)
;Set Field Values & Click Login button
_IEFormElementSetValue($oUser,"USER")
_IEFormElementSetValue($oPassword,"PASS")
_IEFormElementSetValue($oWorld,"en18")
_IEAction($oLogin,"click")
;Now logged in, time to start training units!
Edited by adz89

Self confessed noob...

Share this post


Link to post
Share on other sites



First of all, if that's your real password, I would hide it if I where you...

Second, You should get come pixel information about the point you want to click on. Then find it and click on those coordinates.


My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Share this post


Link to post
Share on other sites

First of all, if that's your real password, I would hide it if I where you...

Second, You should get come pixel information about the point you want to click on. Then find it and click on those coordinates.

Thanks,

When you say pixel information, what do you mean? I've got Debug Bar, how would I use it to find the pixel information?

Thanks in advance for your patience, I may sound stupid, but I've never done any kind of programming before I found AutoIT!!


Self confessed noob...

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

oke i had the idea use the source html code the only problem is tribal wars wan't to encrypt it. the original source with everything in it is,

http://nl6.tribalwars.nl/game.php?village=ID&screen=main
after the page is loaded is ridirects into a other page so you can't get the source
http://nl6.tribalwars.nl/staemme.php?village=ID&screen=main
the only thing you have to do is get the source from
http://nl6.tribalwars.nl/game.php?village=ID&screen=main
i try to get it everytime you logg in you get a difrend id, and i did it manualy with autoit i didn't get it so if anyone knows how to get the source code from
http://nl6.tribalwars.nl/game.php?village=ID&screen=main
with autoit then i can make it work (replace world nl6 and village number IDwith your number)

Edited by infernothebest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0