HTML Code:
function warp() {
// Declare Locations Array
temp.locations = {
{"onlinestartlocal.nw", 30, 30},
{"someotherlevel.nw", 30, 30}
};
// Select a location
temp.location = randomstring(temp.locations);
// Warpto Location
warpto(temp.location[0], temp.location[1], temp.location[2]);
// Update (Forces NPC to save changes, probably not needed but whatever)
this.trigger("NPCUpdate", "");
}
I just used randomstring
