Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-05-2003, 11:56 PM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
Login Alert for Idle RCs

Considering how many people, including me, have suggested that they want some sort of way to prevent missing people while RC is minimized, I thought I would script up something. All servers are welcome to use this. Just stick it in your NPC server. To activate it, just type /npclogins in your rc chat.

NPC Code:

if (rcchat)
{
if (strequals(#p(0),logins))
{
timeout=1;
setstring this.alert,accountnames,here;
this.oldcount=allplayerscount;
}
}

if (timeout)
{
if (this.oldcount<allplayerscount)
{
for (this.i=0;this.i<allplayerscount;this.i++)
{
with (allplayers[this.i])
{
if (lindexof(#a,this.alert)!=-1)
{
sendpm A player logged in;
}
}
}
this.oldcount=allplayerscount;
}
if (this.oldcount>allplayerscount)
{
this.oldcount=allplayerscount;
}
timeout=1;
}

__________________


Help me keep scripting
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:59 AM.


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