![]() |
sparring zone
What is the command for sparring? And could a see an example of setting an area in the middle of a level as a sparring zone?
|
I always thought the way they did sparringzones was really awkward. I don't know how they do it in GS2, but it used to be I think, issparringzone, in an NPC with nothing else at all, no if's, functions, checks or such.
|
oh.... well then...
|
ok someone sent me a pm on graal with this in it...
PHP Code:
|
levels are sparring zones by default I thought, to turn it off one would use noplayerkilling(); and if (noPKzone) {
gah, bloody GS1 in a GS2 area :O Anyways I think the script is either so sort of spar door, or spar area, Too tired to fully look at though z.z |
Well, there's a difference between PKing and Sparring. Levels are PK by default, but they aren't sparringzones by default. Sparringzones don't effect alignment, don't drop your stuff, and other effects that I can't remember.
|
Ah, thanks for the correction :]
|
issparringzone is only to check if the level is a sparring zone.
if (issparringzone) { //dostuff } Sparring zones are set as Dusty says, but with just 'sparringzone' on its own in an NPC instead. As far as I know there is no way of setting a partial sparringzone in a level (such as inside the sparring area) though you can do something like checking the player's x and y and if it is in a certain area then enabling weapons, otherwise disabling them instead. |
How about a command for resetting pking
|
Quote:
|
NPC Code: Should look like that in an NPC by itself. |
| All times are GMT +2. The time now is 08:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.