Results 1 to 4 of 4

Thread: Is this syntax correct?

  1. #1
    Join Date
    Nov 2014
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default Is this syntax correct?

    Code:
    if progressScreen.isOpen()=false and chatbox.findTextOnLines(['Your Ring of Forging has melted'], [0..2])=TRUE then
    begin
    blah blah;
    end;
    Is this correct? for some reason is keeps kicking in the moment the progress screen is closed.

  2. #2
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Brose View Post
    Code:
    if progressScreen.isOpen()=false and chatbox.findTextOnLines(['Your Ring of Forging has melted'], [0..2])=TRUE then
    begin
    blah blah;
    end;
    Is this correct? for some reason is keeps kicking in the moment the progress screen is closed.
    Simba Code:
    if (not progressScreen.isOpen()) and (chatbox.findTextOnLines(['Your Ring of Forging has melted'], [0..2])) then
    begin
    blah blah;
    end;

  3. #3
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    I'd like to point out that finding text isn't always 100% accurate. I recommend using StringMatch to check if it's at least close to 'Your Ring of Forging has melted'

  4. #4
    Join Date
    Nov 2014
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Ok. thank you.

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
  •