Thread: NPC's
View Single Post
  #7  
Old 03-17-2012, 06:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
This should go through a kill everything.

PHP Code:
function onCreated() {
  
maxlooplimit 100000;
  
temp.lvls.loadfolder("levels/*.nw"1);
  for (
temp.lvltemp.lvls) {
    
temp.npcs findlevel(temp.lvl).npcs;
    for (
temp.npctemp.npcs) {
      
temp.npc.destroy();
    }
  }
  echo(
"EVERYTHING HAS BEEN DESTROYED");

Then you'll have to clearnpcs manually for your gmaps. I.e.

/clearnpcs yourworld.gmap
__________________
Quote:
Reply With Quote