Results 1 to 4 of 4

Thread: FindNPCChatTextMulti

  1. #1
    Join Date
    Aug 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default FindNPCChatTextMulti

    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.

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by repahu View Post
    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!
    It isn't required. The result is set to false by default. It will only return true if the text is found.

  3. #3
    Join Date
    Aug 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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:
    v:= ['its',Clickleft];
    if WaitFuncEx('FindNPCChatText',v,400,5000) then WriteLn('true');
    where v is a TVariantArray
    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.

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Are you sure it was after only one loop? Have you tested the function separately from WaitFuncEx (shouldn't matter, but you never know)?

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
  •