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!
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
FindNPCChatText('Your TEXT', WHATTODO(ie "NOTHING"))
![]()
Is your account in an old-school random? Help SRL-OSR solve randoms!
Click is NOT valid.
Description (Text.scar)
Here is a example.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
*******************************************************************************}
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
There are currently 1 users browsing this thread. (0 members and 1 guests)