I have this weapon that allows me to use chat to trigger occurances upon myself or specified players. Things like
:osl Account to send someone to OSL immediately. Anyway, I got toying with doing it with all players in the same level as myself and hit a brick wall. To test, I merely used chat rather than jumping right to setLevel2. I stood in a level with around 20 players in it and triggered it with the
:test command and it's only finding 1 or 2 people in the same level as me. Basically, could someone check this out and see if I'm missing something. I sought help from kinetaro, and he added the
temp stuff to it as he said
for messes with player.account sometimes, but even he was unable to figure out why it wasn't working.
PHP Code:
else if (toks[0] == ":test") {
if (player.account in this.allowedFull) {
this.tempacc = player.account;
for (pl: allplayers) {
if (pl.level.name == findPlayer(thiso.tempacc).level.name && pl.level != null) {
pl.chat = pl.account;
return;
}
}
}
}
Any clues?