Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-09-2005, 12:13 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
sparringzone

I've never really figured out how to use sparringzone;
so if someone could explain that to me that would be great.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #2  
Old 05-09-2005, 12:53 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
NPC Code:

//#CLIENTSIDE
sparringzone

Reply With Quote
  #3  
Old 05-09-2005, 02:03 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I think it only allows players to be hurt by swords.
I am not sure, however. Correct me if I am wrong.
__________________
Skyld
Reply With Quote
  #4  
Old 05-09-2005, 04:37 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Skyld
I think it only allows players to be hurt by swords.
I am not sure, however. Correct me if I am wrong.

No, the code I posted works. It makes the area a sparring zone, meaning if someone dies in that level then the person who died loses rating and the person who killed the other person gains rating.
Reply With Quote
  #5  
Old 05-09-2005, 04:44 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
I know, but i want to set just a certain area in the level to a sparring zone, thats what im asking.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #6  
Old 05-09-2005, 04:50 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by coreys
I know, but i want to set just a certain area in the level to a sparring zone, thats what im asking.

The sparring zone command makes the entire level a sparring zone. I dont believe you can limit 'sparring zone' to only a certain area in a level.
Reply With Quote
  #7  
Old 05-09-2005, 05:29 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by Gambet
The sparring zone command makes the entire level a sparring zone. I dont believe you can limit 'sparring zone' to only a certain area in a level.
You can't, but you could disable weapons depending on where the player is.
__________________

Reply With Quote
  #8  
Old 05-09-2005, 05:34 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
the correct way is like this

<edited by Stefan>No, Gambets code was the correct one
__________________

Reply With Quote
  #9  
Old 05-09-2005, 09:43 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by CheeToS2
You can't, but you could disable weapons depending on where the player is.

Yes, I know..

NPC Code:

if (playerx in |#,#| && playery in |#,#|) {
enableweapons;
} else {
disableweapons;
}

Reply With Quote
  #10  
Old 05-09-2005, 11:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Gambet
NPC Code:

if (playerx in |#,#| && playery in |#,#|) {
enableweapons;
} else {
disableweapons;
}

You would need this check inside an event for this to work effectively, like a timeout.
__________________
Skyld

Last edited by Skyld; 05-09-2005 at 11:55 PM.. Reason: Wrong word
Reply With Quote
  #11  
Old 05-10-2005, 02:08 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Skyld
You would need this check inside an event for this to work effectively, like a timeout.

I know that. I was just showing what cheetos said. I didnt post the whole thing, because I'm sure he could figure it out from there.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:57 PM.


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