SRL Archive - RS3 Help

Is this syntax correct?


Brose

2014-11-25 10:10:50

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.

Ross

2014-11-25 10:22:14

From: Brose
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.

if (not progressScreen.isOpen()) and (chatbox.findTextOnLines(['Your Ring of Forging has melted'], [0..2])) then
begin
blah blah;
end;

Kevin

2014-11-25 13:32:42

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'

Brose

2014-11-25 19:03:21

Ok. thank you.