Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.