Results 1 to 7 of 7

Thread: What function can detect this message?

  1. #1
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default What function can detect this message?



    Simba Code:
    if FindNPCChatText('The knights noticed your lack of zeal',True)  then

    Does not work with this specific message for some reason...

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    For things like that, I just use WaitColor.
    X,Y would be coordinate of any of the black text (preferably a period or something near the end/beginning), Color for text is always 0 I believe, tol would be 0 (it never changes), and maxtime can be anything, 5 seconds is fine since it waits for color OR time to expire.

    Much faster, and it work great, use it in many of my scripts.

  3. #3
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    For things like that, I just use WaitColor.
    X,Y would be coordinate of any of the black text (preferably a period or something near the end/beginning), Color for text is always 0 I believe, tol would be 0 (it never changes), and maxtime can be anything, 5 seconds is fine since it waits for color OR time to expire.

    Much faster, and it work great, use it in many of my scripts.
    I was thinking that, let me give that a go, although this is the only message that is giving me trouble :/
    Oh wells let me try to code something up for it!

    Thanks for the suggestion and help Mate!

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    If u can upload a better image with quality, I'll write a function that MIGHT detect it.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    I would suggest using a shorter string, something like 'knights', because every time I use it, it works perfectly. Also try putting it in a loop.

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Try this mate:
    Simba Code:
    Procedure Test;
      var
        X,Y: Integer;
      begin
        if FindText(x, y, 'attle', UpChars, MCX1, MCY1, MCX2, MCY2) then
          Writeln('Found!');
      end;

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    The font might be off, zoom on it and analize it
    GLH Tutorial ~ OpenGL Scripting
    http://villavu.com/forum/showthread.php?p=1292150

    GLH Scripts ~ Abyssal Scripts
    http://villavu.com/forum/showthread.php?p=1293187
    Current Projects:
    A) DemiseSlayer Pro (Released/100%).
    B) Demise Power Miner(Released/100%).
    C) Demise Pyramid Plunder(Planning Stage/0%).

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
  •