TerryisBroke Posted July 20, 2008 Posted July 20, 2008 (edited) K so heres my code expandcollapse popupfunc Loop() $Attacker=Pixelsearch(0, 0, @DesktopWidth, @DesktopHeight,0x34403E,1,2) If IsArray $Attacker=1 Then $x=$Attacker[0] $y=$Attacker[1] mouseclick("left",$Attacker[0],$Attacker[1],1,10) Sleep(3000) MouseCLick("left", 613, 518, 1);Starting Square Sleep(3000) MouseClick("left", 793, 568, 1);Ready Sleep(15000);Opponents Turn MouseClick("left", 509, 466, 1);First Move Sleep(3000);Delay MouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 608, 410, 1);Second Move Sleep(3000);Delay MouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 717, 359, 1); Third Move Sleep(3000);Delay MouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 686, 301, 1);Fourth Move Sleep(3000);Delay MouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Fifth Move Sleep(3000);Delay MouseClick("left", 714, 257, 1);Attack Sleep(1000);Delay mouseclick("left",$Attacker[0],$Attacker[1],1,10) Sleep(3000);Delay MouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position ouseClick("left", 666, 742, 1);End Turn Sleep(15000);Opponents Turn MouseClick("left", 714, 257, 1);Attack Sleep(1000) mouseclick("left",$Attacker[0],$Attacker[1],1,10);Opponents Position Else MouseClick("left", 786, 174, 1) MouseClick("left", 813, 202, 1) EndIf Loop() EndFunc and heres the error If IsArray $Attacker=1 Then If ^ ERROR >Exit code: 1 Time: 38.098 I don't understand it at all so please explain muttley Edited July 20, 2008 by TerryisBroke
Paulie Posted July 20, 2008 Posted July 20, 2008 IsArray is a function, meaning it has to be called in function notation muttley If IsArray($Attacker) Then
TerryisBroke Posted July 20, 2008 Author Posted July 20, 2008 IsArray is a function, meaning it has to be called in function notation If IsArray($Attacker) Then lol makes sense thanks muttley
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