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 (pl: allplayers) {
if (pl.level.name == NULL) this.remotecontrols.add(pl.account);
}
}
setTimer(1);
}
function onTimeOut()
{
for (pl: allplayers) {
if (pl.level.name == NULL) temp.remotecontrols.add(pl);
}
for (pl: temp.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...
