Thread: tokens
View Single Post
  #16  
Old 10-03-2001, 03:39 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Aknts
Here I was bored. So I scripted it.
// NPC made by Spanky
if (playertouchsme) {
toweapons *Level Warper;
}
if (playerchats&&isweapon) {
tokenize #c;
if(strequals(#t(0),warpto)){
if(tokenscount==4){
this.x=strtofloat(#t(1));
this.y=strtofloat(#t(2));
setlevel2 #t(3),this.x,this.y;
}
if(tokenscount==3){
this.x=strtofloat(#t(1));
this.y=strtofloat(#t(2));
setlevel2 #L,this.x,this.y;
}
}}
mine suits my purposes ...... plus using the #t(n) or #v sends the player to 1,1 anyway gotta use setlevel then use playerx= ... and so on ....
Reply With Quote