Thread: Level Warper
View Single Post
  #1  
Old 09-27-2001, 09:52 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
Level Warper

here is a warper I made its pretty basic and can work 2 ways first of all you could say 'warpto newx newy levelname.graal' and you'll warp to that exact point or 'warpto levelname.graal' I haven't tested it yet but it seems like it would work. Uhh anyone can use it. I made it for people who dont script well to learn something about tokens from .... anyway here it is .... ohh also for it to work you need to have the flag 'staff'.
NPC Code:

// NPC made by Nyght v3.5
if (playerenters) {
toweapons *Staff Warper
}
while (created && !staff) {
destroy;
}
if (playerchats && staff && startswith(warpto,#c)) {
tokenize #c;
if (strtofloat(#t(1))>=0) {
this.warpcommand=0;
}else setlevel #t(1);
}
}
if (this.warpcommand=0) {
setlevel2 #t(3),#t(1),#t(2);
timeout=0.5;
}
if (timeout) {
this.warpcommand=1;
}


Tell me if it dont work ....

Last edited by nyghtGT; 09-27-2001 at 09:54 AM..
Reply With Quote