Log in

View Full Version : How to end a loop with NPCChat?



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;

shadowmarkus
01-27-2012, 10:21 AM
You could try and do an "until findcolortolerance" instead, for a certain part in the chat. or do
until (FindBlackChatMessage('orry'))

Drax
01-27-2012, 11:32 AM
You could try and do an "until findcolortolerance" instead, for a certain part in the chat. or do
until (FindBlackChatMessage('orry'))

Thanks for the help but the FindBlackChatMessage wont work because the text im trying to make the loop stop at is in an NPC Chat box. :(