Quote:
Originally posted by osrs
NPC Code:
if(actionplayeronline){
for(i=0; i<allplayerscount; i++){
with(allplayers[i]){
if(strlen(#F)<=0){
}
}
}
}
well,wouldnt this detect when a RC logged on?!
|
no, that would make it so when a player logs on, it executes that script on whatever RCs are already logged on
you could make two strings comparing the RCs that were online last time the script checked, but still, it would depend on when a player logs on, which could be hours. You could just make it a timeout too, instead of actionplayeronline.. but it would take up more resources