SRL Archive - OSR Help

Making a script respond to players...?


Twinki

2013-05-03 19:53:38

I'd like to try and make my script respond to only a select few of people on this RSPS. It's always to same people who will talk to me and ask if I'm there and stuff. It's the same exact people all the time. I was thinking of just creating a bitmap of the just the persons name in the chatbox and if it so happens to find that bitmap then it responds with just a simple 'Yeah i'm here.. Just AFK abit' or something like that. I'm just wondering how to make the script detect if a certain person is talking to you, and if they're then it responds with a simple TypeSend.

Ian

2013-05-03 20:08:05

Like this?


if FindBitmap then //Your FindBitmap thingy goes here
TypeLameAFKExcuse; //Your TypeSend message goes here

Twinki

2013-05-04 01:33:52

From: BMWxi
Like this?


if FindBitmap then //Your FindBitmap thingy goes here
TypeLameAFKExcuse; //Your TypeSend message goes here



Yeah pretty much, it's a Mod who will talk to me. I just don't know if it'd work correctly lol. Created a thread to see if there was a different way for something like this.

Ian

2013-05-04 09:27:56

From: Twinki
Yeah pretty much, it's a Mod who will talk to me. I just don't know if it'd work correctly lol. Created a thread to see if there was a different way for something like this.

Yeah, this is probably the best way. And as for seeing if it works or not, the best way would be to try it ans see. If it doesn't work then you can post the code and we'll check to see if it's right :)