Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[tribalwars] List of variable & grab information

$
0
0
Hi,

I am trying to work something for the game tribalwars.
This is the page from where the program will perform its actions:
Posted Image


;script farm
Global $xcoord=388
Global $ycoord=759
MouseClick("left",1225,338)
Sleep(100)
Send(5)
Sleep(100)
MouseClick("left",1221,506)
Sleep(100)
send($xcoord)
Sleep(200)
Send($ycoord)
Sleep(100)
Send("{TAB}")
Sleep(100)
send("{ENTER}")
Sleep(2000)


With this code, I am able to send to one coordinate 5 spear man (I currently have 9 as you can see on the image).
Every coordinate = one village. This is the most repetitive task to send N amount of soldiers to X, Y destination.

What I would like is that the $xcoord & &ycoord change every "loop".
By example:

First time the program send to x=388 & y=759 5 spear man
2nd time x=345 & y=747
.
.
.
N times (which correspond to the amount of 5 men pack available).

Also, I am wondering how I could get the information for the program when the troop return (look at the bottom of the image, there is a timer telling me when the troop will come back).
This information would be used to wake-up the bot so he can send to the next coordinate the returning troops.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>