View Single Post
  #6  
Old 08-05-2002, 08:37 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
NPC Code:

//updatelevel
if (playerchats && strequals(#c,update level)) {
sendtorc /updatelevel #L;
}

//warpto player & warpto x y level
if (playerchats && startswith(warpto,#c)) {
tokenize #c;
if (tokenscount==2) {
with (getplayer(#e(7,-1,#c))) {
setstring this.tlevel,#L;
this.tx = playerx;
this.ty = playery;
}
with(getplayer(#a)) {
setlevel2 #s(this.tlevel),this.tx,this.ty;
}
} else if (tokenscount==4) {
setlevel2 #t(3),#t(1),#t(2);
} else if (tokenscount!=2 && tokenscount!=4) {
setplayerprop #c, correct format: warpto x y level;
}
}



as for the teleport, i dont know what the actionnumber is so, Xx
__________________
[signature]insert here[/signature]
Reply With Quote