Drax
01-27-2012, 10:09 AM
I want to end this loop when it finds the NPC Chat 'orry'. It does at the moment but it try's to click on the text before ending the loop which i don't wont it to do, i just want it to end the loop. Is there any function that does what i am describing?
Repeat
SpamMouse(x, y, RandomRange(Players[CurrentPlayer].Integers[1], Players[CurrentPlayer].Integers[2]));
until FindNPCChatText('orry', false)
end;
Repeat
SpamMouse(x, y, RandomRange(Players[CurrentPlayer].Integers[1], Players[CurrentPlayer].Integers[2]));
until FindNPCChatText('orry', false)
end;