Posted: Sun Jan 08, 2006 12:47 pm Post subject: Help Improving some code
Im not really good with scripting the monsters move around alot so its hard to have it stay targets on just one if you know what i mean its a 2d game.
-----------------------------------------------------------------------------------------
Opt('Pixelcoordmode',2)
Opt('MouseCoordMode',2)
Global $MyGame="--------"
Global $Paused
HotKeySet("{Pause}","TogglePause")
HotKeySet("{ESC}","Terminate")
HotKeySet("+!d","ShowMessage")
; Define colour to match
Local $Match = 0x161616
; Loop indefinitely
While 1
Send ("{INS down}")
If Not WinActive($MyGame) Then
WinActivate($MyGame)
EndIf
Local $Coords = PixelSearch(135, 104, 450, 419, 0x161616)
If Not @Error And IsArray($Coords) Then
MouseClick('Left', $Coords[0], $Coords[1], 1, 1)
Do
Sleep(400)
Until PixelGetColor($Coords[0], $Coords[1]) <> $Match
EndIf
Local $Coords = PixelSearch(2092, 25, 2276, 562, 0x527331)
If Not @Error And IsArray($Coords) Then
MouseClick('Left', $Coords[0], $Coords[1], 2, 1)
do
Sleep(1000)
Until PixelGetColor($Coords[0], $Coords[1]) <> $Match
EndIf
Func Togglepause()
$Paused = NOT $Paused
while $Paused
sleep(100)
ToolTip(' Bot is Paused Master"Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit
EndFunc
Func ShowMessage()
MsgBox(4096, 'm', 'Terminated'); note the comma after 4096 and quote around 'm'.
EndFunc
_____________________________________________________________
The INS is what cast the spells. But it will keep targeting things before the others are dead. So i was thinking of doing the NOT pixel but with the monsters moving around the small map it would help all that much ill upload a screenshot of the game for a example. I added the second pixel search to see when mp gets low to use a herb to replenshish the mp but i havent run out of mana for awhile cause u only get new spells like every 40 levels so lol.. But the bot is still quite a bit buggy.
----------------------------------------------------------------------------
I could get the bot working for these two cause the foxes leave dead remains and i wasn't sure a way to code around that. Without it always targetting the remains instead of the creatures. The second one i was trying to target the guy with the blue vest i even add a 10 i scan for a 10 pixel shader. But it didnt seem to do anything i dont know why?
Also if i increase my resloution does it help Autoit locate the pixel's?
What does this have to do with bots? _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
It's a bot which basically cheats for the user, doing whatever he wants (ie, mining gold in a game, etc) when he's not around. Not an MSN bot or w/eva, but still a bot.
@OP (Original Poster): I doubt anyone will know here. Try looking in gaming forums or forums for that programming language. _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Mon May 08, 2006 8:22 pm Post subject:
This is a forum for chatter bots...well i guess we could possible extend our reach...but that isn't the main point. I think you are in the wrong place to look for any kind of cheating bot, just doesn't realy sit well with this community.
Try somewhere else please. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com