AwAke Posted December 26, 2008 Posted December 26, 2008 (edited) So ive been working on a bot, with the main purpose of doing so is fun. I dont intend releasing it besides now as showing the source code on these forums. The problem that I face isnt really a problem but more so a 'helping hand' by letting me know if it is possible and how I would go around doing it. expandcollapse popup;######### Conquer BOT ######### AutoItSetOption("WinTitleMatchMode", 4) Opt("PixelCoordMode", 2) HotKeySet("{F9}", "_Start") HotKeySet("{F10}", "_Stop") HotKeySet("{F11}", "_Pause") $color = 0xBD0000 $move = 0 While 1 Sleep(1000) WEnd Func _Start() While 1 = 1 _FindTarget() _Move() Wend EndFunc Func _Move() If $move = 1 Then $x = Random(171,848,1) $y = Random(113,619,1) MouseClick("Left", $x, $y) Sleep(1500) EndIf EndFunc Func _FindTarget() $move = 1 $find = PixelSearch(448, 303, 618, 441, $color) If @Error = 0 Then MouseClick("Left", $find[0] + 10, $find[1], 1, 1) $move = 0 Sleep(2000) ElseIf @Error = 1 Then $move = 1 $find = PixelSearch(290, 218, 796, 565, $color) If @Error = 0 Then Mouseclick("Left", $find[0] + 10, $find[1], 1, 1) $move = 0 Sleep(2000) ElseIf @Error = 1 Then $move = 1 $find = PixelSearch(171, 133, 848, 610, $color) If @Error = 0 Then MouseClick("Left", $find[0] + 10, $find[1], 1, 1) $move = 0 Sleep(2000) ElseIf @Error = 1 Then $move = 1 EndIf EndIf EndIf EndFunc Func _Pause() While 1 Sleep(1000) Wend EndFunc Func _Stop() Exit 0 Endfunc So as you can see, it works however only whilst having the program open (not minimized). I know I can send controls/commands blabla through the ControlSend/Click etc etc however im unsure on how I can identify/pickup the mobs. As my method at the moment being a pixel search I have no other idea on how I can do it. If it can be done, whether it be complex or not id like to know (A) I hope someone can point me in the right direction and shine some light. Thx in advance. -AwAke Edited December 26, 2008 by AwAke
IKilledBambi Posted December 26, 2008 Posted December 26, 2008 a search would have taken you less time than posting, you can only pixel search what you see.http://www.autoitscript.com/forum/index.ph...earch+minimized will explain more.
AwAke Posted December 26, 2008 Author Posted December 26, 2008 a search would have taken you less time than posting, you can only pixel search what you see.http://www.autoitscript.com/forum/index.ph...earch+minimized will explain more.Ok so I see that I cant do a pixelsearch as the screen has to be visible.I heard that it can be done through memory however I have no idea on how I can do this.Do you guys know of any place I can read about identifying monsters in games using memory.
TheTex Posted December 27, 2008 Posted December 27, 2008 Use the search button.http://www.autoitscript.com/forum/index.ph...rld+of+warcraftTalks about memory scanners.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now