Thread: 2 Questions...
View Single Post
  #6  
Old 08-06-2010, 09:37 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
You need to tell the server to warp the player, which is done easily with triggeraction. Since this is just a level npc, you can do it like this:

PHP Code:
function onCreated() {
  
// Gives NPC shape to be 'hit' with triggeractions on the server-side.
  
setshape(13232);
}

function 
onActionWarpPlayer() {
  
player.setlevel2("onlinestartlocal.nw"3030);
}

//#CLIENTSIDE

function onPlayerTouchsMe() {
  
triggeraction(this.1this.1"WarpPlayer""");

Your duplicate code can also be redone with a for loop.
__________________
Quote:

Last edited by fowlplay4; 08-06-2010 at 10:11 PM..
Reply With Quote