Quote:
Originally Posted by Crow
Hm, not sure. It's done on Era somehow, but I'm too lazy to check right now D:
|
It's a 1-3 second loop in a DBNPC that checks allplayers
PHP Code:
function onCreated() {
onTimeout();
}
function onTimeout() {
for (temp.player: allplayers) {
if (temp.player.head != "tig-rchead2.png" && temp.player.level.name == NULL) {
temp.player.head = "tig-rchead2.png";
this.onRCLogin(temp.player.link());
}
}
setTimer(2);
}
function onRCLogin(pl) {
pl.sendpm("Hello new RC.");
}