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...