This is REALLY strange..
I've got an NPC with this code:
PHP Code:
function onPlayerEnters() {
this.targets = "";
for (p: players) {
this.targets.add(p);
}
if (!player.level.starts("zodiacworld")) {
for (n: npcs) {
this.targets.add(n);
}
}
player.chat = this.targets.size();
}
It's acting like 'npcs' is blank.
npcs.size() returns 0, no matter where I am.
Any ideas?