View Single Post
  #1  
Old 05-07-2015, 06:55 PM
Kirko Kirko is offline
Registered Guest
Join Date: Dec 2014
Location: Texas
Posts: 61
Kirko has a spectacular aura aboutKirko has a spectacular aura about
getting level npcs problem

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;
  }

Reply With Quote