Function AttackGuard2:Boolean;
var tAta,x,y,i:Integer;
Begin
If Not(LoggedIn) Then Exit;
StatsGuise('Searching For Guard');//dont worry about this/remove
ColorToleranceSpeed(2); //ACA color settings stuff
SetColorSpeed2Modifiers(0.03, 1.08);//ACA color settings stuff
For I:=0 To 10 Do // Loop 10 times
Begin
StatsGuise('Search'+IntToStr(I)); //dont worry about this/remove
Wait(1000+Random(150)); //Waits between each try, so it doenst look too computery
X:=Random(MSCX); //sets x and y to middle of mainscreen so the search searches from the mainscreen outwards
Y:=Random(MSCY);
If FindColorSpiralTolerance(x,y,7165230,MSX1,MSY1,MSX 2,MSY2,12) //get the color/tolerance from ACA
Then
If CheckAndClick(x,y) Then //This is basically just a combination of Mmouse and IsUpText (MMouse(x,y,0,0) If IsUpText('orik') Then)
Begin
Mouse(x,y,0,0True)
End;
SetColorSpeed2Modifiers(0.2,0.2);
ColorToleranceSpeed(1);
End;