Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-22-2001, 10:25 AM
MattPlug MattPlug is offline
Registered User
Join Date: Sep 2001
Posts: 35
MattPlug is on a distinguished road
Help With NPC!

How can I make it where when the player dies it warps that person somewhere....I've tried
if (playerdied) {
setlevel2 blah.graal,30,30;
}

and

if (playerdies) {
setlevel2 blah.graal,30,30;
}

I've made sure I had the lvl name right and all. How can I get this to work? Do I have the right one or what? Also does any one know if showimg with the index of 202 is private like so no one else can see?
Reply With Quote
  #2  
Old 10-22-2001, 10:35 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
if (playerdies) {
setlevel2 blah.graal,x,y;
}

if that doesnt werk then i dunno whats wrong but i do know thats right
__________________
Reply With Quote
  #3  
Old 10-22-2001, 11:11 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
dang u must be a suckii scripter
Reply With Quote
  #4  
Old 10-22-2001, 11:23 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Quote:
Originally posted by royce
dang u must be a suckii scripter
who are u talking ta?
__________________
Reply With Quote
  #5  
Old 10-22-2001, 11:26 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
the question is who am i talking about and dont worry its not you
Reply With Quote
  #6  
Old 10-22-2001, 11:27 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
its about matt plug
Reply With Quote
  #7  
Old 10-22-2001, 11:39 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Talking

Goodie
__________________
Reply With Quote
  #8  
Old 10-22-2001, 08:33 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
The correct thing to use if a player dies is:
NPC Code:

if (playerdies) {
//stuff here
}

__________________

-=Shard IceFire=-
Reply With Quote
  #9  
Old 10-22-2001, 09:20 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
I think that can't work because u respawn somewhere else
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 10-23-2001, 12:24 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
ya it does depend on the way the server is set and ummm Shard_IceFire read above i though we alerady figured that out
__________________
Reply With Quote
  #11  
Old 10-23-2001, 03:20 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
YOU CANT WARP WHEN YOU ARE DEAD OR IN DEAD MODE!
Reply With Quote
  #12  
Old 10-23-2001, 11:20 AM
MattPlug MattPlug is offline
Registered User
Join Date: Sep 2001
Posts: 35
MattPlug is on a distinguished road
What about when player has 0 hearts it warps? How would I do that?
if (playerhearts>=0) {
setlevel2 blah.graal,30,30;
}
Reply With Quote
  #13  
Old 10-23-2001, 05:40 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Just make sure that the level the player get's warped to is a sparring zone, those reset your respawn point.
__________________

Reply With Quote
  #14  
Old 10-24-2001, 05:57 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Since you can't warp when you're dead, can't you try this?

if (playerdies) {timeout=3;}
if (timeout) {setlevel2 blah.graal,30,30;}
Reply With Quote
  #15  
Old 10-24-2001, 07:38 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Quote:
Originally posted by MattPlug
What about when player has 0 hearts it warps? How would I do that?
if (playerhearts>=0) {
setlevel2 blah.graal,30,30;
}
NPC Code:

if (playerhearts=0) {
setlevel2 blah.graal,30,30;
}



dats a little better cuz u dont need the > im not saying it'll werk but it makes it more right if that sounds right
__________________
Reply With Quote
Reply


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 11:43 PM.


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