Dear gamers,
I have read different posts on map coordinates, cheatengine & autoit on games, but Im still quite new and not able to grasps the fundamentals inorder to apply to my bot.
I am making a bot for a 2D game called StoneAge. The game itself includes a map which shows the X,Y coordinates. The screen is centered on the character and movement is similar to that of chess (moving on grids)
By using cheatengine I am able to get 4-byte addresses for X & Y axis for my current character location. When FREEZING these value, my character is unable to move so I assume these are the ones I need.
I have read other threads on how they implement the coordinates in Cabal, but I am not sure if I could do the same (Im a newbie in scripting). My game doesn't have a TITLE, so I only uses CLASS: StoneAge to identify it.
I plan to write a script so that my character can automatically move to coordinates I have inputed.
1) How can I incorporate it into the autoit script using the _Mem.au3 or _nomad.au3?
2) How can I write the script so that the character will resume from where it left of? even when went astray? -will this require the script to constantly monitor the character's current location?
(On the move the character may enter into a battle scene at any instant and stops at the location where it encountered the enemies. If this is the case then the coordinates input might not be accurately followed and never achieve to the final destination...
3) I used imagesearch to check my inventory for unwanted items and so I used Clickdrag to drag items from $x1 & $y1, but interestingly the mouse went to an irrelevant place instead (Close button of the inventory). The bmps of the item (green) and the Close button (grey) are totally different... so any ideas why this is happening?
Thank you in advance. Please let me know if more details are needed.
P.S. I am new to scripting, so please understand that I might not understand if you just post a long script or refers me to another post without an explanation of the basics/logics behind the function.
;Not important-----------------
I am able to create a simple script which automatically fights the NPC when it responds at a fixed position. For this I used _ImageSearch.au3, Winactive() and other simple commands.
-----------------------------







