Cherenkov Posted March 8, 2013 Share Posted March 8, 2013 (edited) Hi,I am trying to work something for the game tribalwars.This is the page from where the program will perform its actions:;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 man2nd 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. Edited March 8, 2013 by Cherenkov Link to comment Share on other sites More sharing options...
Tripredacus Posted March 8, 2013 Share Posted March 8, 2013 Hi,I am trying to work something for the game tribalwars.Hi! Next step read the forum rules. Twitter | MSFN | VGCollect Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 8, 2013 Moderators Share Posted March 8, 2013 Cherenkov,Tripredacus is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts