View Single Post
  #4  
Old 03-17-2010, 08:56 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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
__________________
Reply With Quote