syberium
2007-02-02 21:38:59
hey guys im working on of my few failsafes and i want it to if finds the mage then exits the procedure, and if it doesent then it will look for 5 times then when attempts>5 it will do NextPlayer(False)
this is what i have so far and its not working.. it find the mage and it just moves the mouse slowly on it from the feet up to the head.. =[
this is what i have so far and its not working.. it find the mage and it just moves the mouse slowly on it from the feet up to the head.. =[
procedure findmage;
begin
if(FindObject(x,y,'amora',magecolor,5,true)) then Exit;
if(not(FindObject(x,y,'amora',magecolor,5,true))) then
begin
repeat
writeln('Coudent find mage make sure ur on west side of cage!')
MakeCompass('E');
highestangle;
attemptss:=attemptss+1;
until(FindObject(x,y,'amora',magecolor,5,true)) or (attemptss > 5);
end;
if (attemptss > 5) then
begin
nextplayer(False);
end;
end;
:spot: