Quote:
Originally posted by MrGannondorf
I got it somewhat working. This...
NPC Code:
if (actionplayeronline) {
//stuff
for(i=0; i<allplayerscount; i++) {
with(allplayers[i]) if (strlen(#F)=0) setplayerprop #3,head122.png;
}
//more stuff
}
|
Ugh! Unnecessarily laggy, improper way to compare values, and bad formatting.
Quote:
|
...is what I have so far. Works nice, with the exeption that RCs don't seem to trigger actionplayeronline... so it ends up that the rc will have the default head when the log on untill a player logs on. Any ideas?
|
Keep a list of currently logged in RCs. Loop through every so often and update the list. If there are new RCs, set their head using allplayers.
Quote:
|
I was thinking of having it check for when the rc chat says "New RC: blah blah blah", but I've been having trouble getting the (rcchat) flag to work.
|
Riot is correct about rcchat - it only works when you type /npc(command name).