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?
Simba Code:Repeat
SpamMouse(x, y, RandomRange(Players[CurrentPlayer].Integers[1], Players[CurrentPlayer].Integers[2]));
until FindNPCChatText('orry', false)
end;


Reply With Quote


