Help for complete this bot

06/20/2013 12:18 tigrhes#1
Someone can help me to complete this bot?:confused::confused:
Written in Autoit.
I copied from [Only registered and activated users can see links. Click Here To Register...] but some codes are wrong.
Code:
$xTop = 53
$yTop = 106
$xBot = 1337
$yBot = 621
$mobcolor = 0xC8D31A
$xMyHp = 849
$yMyHp = 45
$myHpColor = 0xFF1C13
$xMobHp = 905
$yMobHp = 50
$MobHpColor = 0xE19D00


WinActivate ("CABAL")
While 1 = 1    If           
                $coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$mobcolor,5)
                $n = @error
                If NOT @error Then
                                while $n = 0
                                                $x = $coord[0]
                                                $y = $coord[1] + 60
                                                MouseClick("left", $x, $y, 1)
                                                $alive = PixelGetColor ( $xMobHp, $yMobHp);
                If $alive = $MobHpColor Then
                                ExitLoop
								EndIf
								WEnd
$coord = PixelSearch($xTop,$yTop,$xBot,$yBot,$yellowmob,5)
$n = @error
				If $alive = $MobHpColor then
                                while $alive = $MobHpColor
												Send("{1}")
                                                Sleep(3500)
                                                $getHp = PixelGetColor ( $xMyHp, $yMyHp);
                                               
                                                if $getHp $myHpColor then
                                                                Sleep(200)
																Send("{0}")
                                                                Sleep(100)
                                                EndIf
                               
                                $alive = PixelGetColor ( $xMobHp, $yMobHp);
												     Send("{Space}")
                                                Sleep(200)
                                                Send("{Space}")
                                                Sleep(200)
								WEnd
Wend
Thx :D