Hello. I'm not new to GS2, but I am new to now trying to take it seriously in creating my own things and not just know a few commands and loops and such.
I am currently trying to make a message (or announcement) to echo on RC when a players RC is logged on.
I am using the control NPC to do this, and am wondering if it is possible. Right now I can only get a message to be triggered when the players client logs in. So I have something like.....
PHP Code:
function onCreated()
{
this.staff = { "Arch_Angel", "Omaster", "littlekinky" }
}
function onActionPlayerOnline()
{
if( pl.account in this.staff )
{
echo( "Welcome back " @pl.account );
}
}
Now this of course, is aimed to just send the message to RC when the players client logs in. Is there another function or something I can do that would recognize the RC instead?
Sorry if this is so simple, just trying to progress. Thanks ahead for any responses. Will rep accordingly.