lukemsilver How do I cheat?
Reputation: 0
Joined: 01 May 2008 Posts: 1
|
Posted: Sat May 03, 2008 12:57 pm Post subject: Trouble with 12sky bot |
|
|
By looking at some examples across the internet I've compiled this code with AutoIT that almost works:
| Code: | WinWaitActive("TwelveSky") ; Waits for TwelveSky to become active window
HotKeySet ( "{HOME}", "Set" ) ; Hotkey to search for color, target, and attack mob.
HotKeySet ( "{END}", "Terminate" ) ; Hotkey to terminate the script
Func Set()
$monster = PixelSearch ( 100, 100, 800,540, 202163124, 60) ;Searches for specified color within window with variance of 60 shades
If Not @error Then
MouseClick ( "Left",$monster[0],$monster[1]) ;Clicks on mob
send("{F2}") ;Atk command
sleep(2000)
send("{F2}")
EndIf
EndFunc
Func Terminate() ; Terminate function
Exit 0
EndFunc |
Now the problem I'm having is that the mob's colors are also in the background, trees, ground, etc. so I'm not targeting the mobs and I'm getting sent around the map.
I've thought of one possible solution but not sure how to implement. Since I'm having trouble getting a good pixel color out of these mobs I could put a unique color on them, but I'm not sure how to find these images of the mobs on my computer. They might be within some .img files but I don't know how to unpackage those or look into them.
Any other suggestions or help would be appreciated.
|
|