Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-07-2011, 02:31 AM
Arch_Angel Arch_Angel is offline
Registered User
Join Date: Apr 2007
Posts: 482
Arch_Angel is on a distinguished road
Send a message via AIM to Arch_Angel
How to detect RC login

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.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.