View Single Post
  #1  
Old 06-07-2008, 09:55 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
New RC Announcer

Well, a system that can be useful to inform staff about new tasks etc., or a staff newsletter - whatever floats your boat!

Paste this script into a database NPC:
PHP Code:
function onCreated()
{
  if (
this.remotecontrols == NULL) {
    for (
plallplayers) {
      if (
pl.level.name == NULLthis.remotecontrols.add(pl.account);
    }
  }
  
setTimer(1);
}

function 
onTimeOut()
{
  for (
plallplayers) {
    if (
pl.level.name == NULLtemp.remotecontrols.add(pl);
  }
  
  for (
pltemp.remotecontrols) {
    if (!(
pl.account in this.remotecontrols)) {
      
temp.remotecontrols[temp.var].sendPM("No slacking, get to work!");
      
sendToRC("Welcome" SPC (temp.remotecontrols[temp.var].communityname == NULL temp.remotecontrols[temp.var].account temp.remotecontrols[temp.var].communityname) @ "! You have received a new PM!");
    }
    
temp.var ++;
  }
  
this.remotecontrols temp.remotecontrols;
  
setTimer(1);

Gosh I'm so bored...
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 06-07-2008 at 10:27 PM..
Reply With Quote