Results 1 to 3 of 3

Thread: How to end a loop with NPCChat?

  1. #1
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default How to end a loop with NPCChat?

    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;

  2. #2
    Join Date
    Apr 2008
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    You could try and do an "until findcolortolerance" instead, for a certain part in the chat. or do
    Code:
    until (FindBlackChatMessage('orry'))

  3. #3
    Join Date
    Dec 2011
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by shadowmarkus View Post
    You could try and do an "until findcolortolerance" instead, for a certain part in the chat. or do
    Code:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •