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 06-11-2002, 06:54 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
warping players

Ok I'm making an NPC where when the player say warp "whatever", it would set the whatever into a server.string.
So I would say "warp darkriders_p2p" and it would set server.warp=darkriders_p2p.This is the script:
NPC Code:

if (playerchats) {
if (startswith(warp,#c)) {
addstring server.warp,#e(5,-1,#c);
}
}


k now I need the player I'm working this on to warp to the level, &
the string to reset.I am thinking it would have to be a hidden NPC the player gets when they start rite?
something like:
NPC Code:

if (isweapon) {
timeout=0.05;
if (timeout) {
if (strequals(#s(server.warp),#a)) {
setlevel2 asteria_hatnpc.nw,x,y;
deletestring server.warp,;
}
}
}


why doesn't that work?
It doesn't even warp me
__________________
maximus_asinus
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 05:49 PM.


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