Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   sparringzone (https://forums.graalonline.com/forums/showthread.php?t=58898)

coreys 05-09-2005 12:13 AM

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

Gambet 05-09-2005 12:53 AM

NPC Code:

//#CLIENTSIDE
sparringzone


Skyld 05-09-2005 02:03 AM

I think it only allows players to be hurt by swords.
I am not sure, however. Correct me if I am wrong.

Gambet 05-09-2005 04:37 AM

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.

coreys 05-09-2005 04:44 AM

I know, but i want to set just a certain area in the level to a sparring zone, thats what im asking.

Gambet 05-09-2005 04:50 AM

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.

CheeToS2 05-09-2005 05:29 AM

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.

Evil_Trunks 05-09-2005 05:34 AM

the correct way is like this

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

Gambet 05-09-2005 09:43 PM

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;
}


Skyld 05-09-2005 11:54 PM

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.

Gambet 05-10-2005 02:08 AM

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.


All times are GMT +2. The time now is 12:29 PM.

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