SRL Archive - RS3 Script Requests

Info request for script


Thanatos

2012-07-19 00:57:21

This isn't as much of a request as it is a question and I'm not sure if this is the right section. Would it be possible to make a script that can look for specific names in the chatbox and then, if the name is spotted, respond to commands that were given by the user?

Frement

2012-07-19 01:02:09

From: Thanatos
This isn't as much of a request as it is a question and I'm not sure if this is the right section. Would it be possible to make a script that can look for specific names in the chatbox and then, if the name is spotted, respond to commands that were given by the user?


Yes, it is possible.

riwu

2012-07-19 07:08:27

Check out the 'chat' include, there are a few functions (FindChatBoxText etc) to do this. If your 'respond to command' refers to replying then u can use TypeSend.
i.e.
if FindChatBoxText('hi suomi', 8, clBlue) then
TypeSend('hi');

Thanatos

2012-07-19 10:18:51

From: riwu
Check out the 'chat' include, there are a few functions (FindChatBoxText etc) to do this. If your 'respond to command' refers to replying then u can use TypeSend.
i.e.
if FindChatBoxText('hi suomi', 8, clBlue) then
TypeSend('hi');


Doesn't that just respond to what people say in the chatbox? I was looking for it to respond when a specific person says something.

riwu

2012-07-20 05:53:42

From: Thanatos
Doesn't that just respond to what people say in the chatbox? I was looking for it to respond when a specific person says something.

Then just include the ign in the text search.