I'm having trouble trying to get all the npcs in a single level. Right now I'm just trying to change the npcs chat. When ever I attempt to change their chat only two npcs in the level get found and their chat doesnt change until I grab them.
here is what im using to find the level npcs
PHP Code:
function onActionServerSide(cmd){
switch(cmd){
case"start":
player.chat = "start";
temp.npcs = findlevel(params[1]).npcs;
for(temp.i:temp.npcs){
temp.i.chat = "testing 123";
player.chat = temp.i.x SPC temp.i.chat;
//waitfor("","idk",.5);
}
break;
}
}