Thread: NPCs sleeping
View Single Post
  #25  
Old 03-04-2007, 09:06 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
HTML Code:
function onCreated()
  {
  this.canWarp();
  this.battleGrounds = {
    {"gmap", {1, 2, 3, "3a"}},
    {"nw", {"1_cavec1", "1_cavea1"}}
  }; 
  setTimer(5);
  }

function onTimeOut()
  {
  for (temp.levelData: this.battleGrounds)
    for (temp.curArea: temp.levelData[1])
      {
      warpto("syn_battleground"@ temp.curArea  @"."@ temp.levelData[0], 0, 0);
      temp.allNPCs = findareanpcs(this.x, this.y, 5000, 5000);
      for (temp.foundNPC: temp.allNPCs)
        temp.foundNPC.trigger("update", "");
      }
  setTimer(5);
  }
Did some alterations...
Reply With Quote