Results 1 to 5 of 5

Thread: how do you detect NPC chat in the chat box?

  1. #1
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation how do you detect NPC chat in the chat box?

    how do you detect NPC chat in the chat box? in my previous scripts i had no need for this, but currently im making a teletab maker and i need to know for the butler. help!
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  2. #2
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    FindNPCChatText('Your TEXT', WHATTODO(ie "NOTHING"))


  3. #3
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by caused View Post
    FindNPCChatText('Your TEXT', WHATTODO(ie "NOTHING"))

    kk, ty
    btw is 'click' valid?
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  4. #4
    Join Date
    Feb 2009
    Location
    AZ, USA
    Posts
    460
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bionicle1800 View Post
    kk, ty
    btw is 'click' valid?

    I believe so, to check just
    look at /SRL/core/
    Is your account in an old-school random? Help SRL-OSR solve randoms!

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Click is NOT valid.
    Description (Text.scar)
    SCAR Code:
    {*******************************************************************************
    function FindNPCChatText(txt: string; Action: (ClickLeft,ClickRight,Move,Nothing)): Boolean;
    By: Kernel Klink and Nielsie95
    Description: Finds a text said by a NPC in chat. If found it'll perform action,
    where action can be:
    Nothing - Just return wether its found
    Move - Just move the mouse to it
    Clickleft - Movemouse & Clickmouse left
    Clickright - MoveMouse & Clickmouse right
    *******************************************************************************}
    Here is a example.
    SCAR Code:
    Procedure Getmessage;
    Begin
     If (FindNPCChatText('You suck balls', Nothing)) then//If a npc says "you suck balls"
     begin
      ClickToContinue;//clicks the "click here to continue" message
      Typesend('You suck balls too');//Type the "you suck balls too" message in rs
     end;
    End;

    BTW: I've made a tab maker too, but I didn't know the "FindNPCChatText" Function, so I had to use Bitmaps
    I suggest you make it in build mode, no random ^^, also right click the demon's fetch option instead of left click him. (you can add left click for anti ban).
    Last edited by Main; 09-13-2009 at 08:02 AM.
    Oh Hai Dar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •