Hi!
The FindNPCChatTextMulti function always returns true even if it has to be false. In text.simba i found the cause, "result:= false" line is missing from the beginning.
EDIT: Please move this thread to BUGS, thanks!
Hi!
The FindNPCChatTextMulti function always returns true even if it has to be false. In text.simba i found the cause, "result:= false" line is missing from the beginning.
EDIT: Please move this thread to BUGS, thanks!
Last edited by repahu; 04-01-2012 at 01:17 AM.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I thought that too, but somehow the function didn't work properly until i added that line in "text.simba".
Here is the code piece i used:
where v is a TVariantArrayv:= ['its',Clickleft];
if WaitFuncEx('FindNPCChatText',v,400,5000) then WriteLn('true');
After 1 loop the WaitFuncEx returned true while the NPCtext wasn't exist and no click was done.
Last edited by repahu; 04-02-2012 at 03:51 PM.
Are you sure it was after only one loop? Have you tested the function separately from WaitFuncEx (shouldn't matter, but you never know)?
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
There are currently 1 users browsing this thread. (0 members and 1 guests)