Page 1 of 1

Need help set up a custom battlefield area[NOT SOLVED YET]

Posted: Wed Dec 08, 2010 4:13 am
by kirisame
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4425:
L2JDP Revision 7669:

Completely screwed, what went wrong exactly? need help desperately...
let me simply explained what i've tried so far:
I've tried to add a custom pvp zone in giran, i've changed the coordinate of a peace zone which interfered my pvp zone (see photo below), and my pvp zone still doesnt work. I've tried to take out the type "town zone" from giran, no luck either. All coordinates seem to be right to me, at least thats how I took out that octangle from the peace zone giran.


zone.xml

Code: Select all

     <!-- custom pvp -->    <zone id="22222" type="ArenaZone" shape="NPoly" minZ="-3470" maxZ="-2900"> <!-- [22_22] custom_pvp -->        <spawn X="82533" Y="148585" Z="-3472" />    </zone> 
zone_vertices

Code: Select all

 INSERT INTO `zone_vertices` (`id`, `order`, `x`, `y`) VALUES(22222, 0, 82392, 148417),(22222, 1, 82392, 148802),(22222, 2, 82117, 149078),(22222, 3, 81727, 149078),(22222, 4, 81451, 148804),(22222, 5, 81451, 148413),(22222, 6, 81725, 148135),(22222, 7, 82115, 148135); DELETE FROM `l2jdb`.`zone_vertices` WHERE `zone_vertices`.`id` = 10821; INSERT INTO `l2jdb`.`zone_vertices` (`id` ,`order` ,`x` ,`y` )VALUES('10821', '0', '81450', '148412'),('10821', '1', '81450', '148804'),('10821', '2', '81725', '148134'),('10821', '3', '82115', '148134'),('10821', '4', '82393', '148417'),('10821', '5', '82393', '148802'),('10821', '6', '82117', '149079'),('10821', '7', '81727', '149079'),('10821', '8', '81450', '148413'),('10821', '9', '79195', '148413'),('10821', '10', '79198', '149858'),('10821', '11', '85148', '149864'),('10821', '12', '85019', '144748'),('10821', '13', '79193', '144776'),('10821', '14', '79195', '148412'); 
also tried disable town type in giran, no effects at all.
what went wrong???

Image

Re: Need help to set up a custom battlefield area

Posted: Wed Dec 08, 2010 4:20 am
by hope
Check your zone.xml file

Re: Need help to set up a custom battlefield area

Posted: Wed Dec 08, 2010 4:24 am
by kirisame
thanks for this great information, is there any way to find out the exact coordinate I need in game?

Re: Need help to set up a custom battlefield area

Posted: Wed Dec 08, 2010 5:00 am
by kirisame
this is what ive done so far:
in zone.xml

Code: Select all

     <!-- custom pvp -->    <zone id="200001" type="ArenaZone" shape="NPoly" minZ="-3470" maxZ="-2900"> <!-- [17_22] custom_pvp -->        <spawn X="82533" Y="148585" Z="-3472" />    </zone> 
in table zone_vertices

Code: Select all

 INSERT INTO `zone_vertices` (`id`, `order`, `x`, `y`) VALUES(200001, 0, 82392, 148417),(200001, 1, 82392, 148802),(200001, 2, 82117, 149078),(200001, 3, 81727, 149078),(200001, 4, 81451, 148804),(200001, 5, 81451, 148413),(200001, 6, 81725, 148135),(200001, 7, 82115, 148135); 

NOT WORKING :(

Re: Need help to set up a custom battlefield area

Posted: Wed Dec 08, 2010 5:09 am
by kirisame
is that because of other peace zone override my pvp zone? if that is the case, is there any simple solution for it? (or maybe a way to override peacezone?)

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 6:50 am
by hope
As I don't dev any more and have not for some time only thing I can tell you is change the type to the same as a arena is if you check zones it will tell you what type to change it to and all you need to do is change the town you want you don't need to make it custom in any way

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 6:55 am
by kirisame
hope wrote:As I don't dev any more and have not for some time only thing I can tell you is change the type to the same as a arena is if you check zones it will tell you what type to change it to and all you need to do is change the town you want you don't need to make it custom in any way

sorry but i have no clue on what u r talking about, can u be more specific? what should i change? where and how?

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 8:12 am
by burrito
go inside the zone your trying to change and type //zone_check it will list the zone Ids you are currently in, then you will know what may be blocking your zone from working like an arena zone.

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 2:31 pm
by kirisame
Image



cant be able to find any zone id

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 5:16 pm
by pinkcore

Code: Select all

    <zone id="10820" type="PeaceZone" shape="NPoly" minZ="-3654" maxZ="-2654" /> <!-- [22_22] giran_town_peace1 -->    <zone id="10821" type="PeaceZone" shape="NPoly" minZ="-3598" maxZ="-1598" /> <!-- [22_22] giran_town_peace2 -->    <zone id="10822" type="PeaceZone" shape="NPoly" minZ="-3602" maxZ="-2402" /> <!-- [22_22] giran_town_peace3 -->    <zone id="10823" type="PeaceZone" shape="NPoly" minZ="-3636" maxZ="-3036" /> <!-- [22_22] giran_town_peace4 -->    <zone id="10824" type="PeaceZone" shape="NPoly" minZ="-3799" maxZ="-2399" /> <!-- [22_22] giran_town_peace5 -->    <zone id="10825" type="PeaceZone" shape="NPoly" minZ="-3872" maxZ="-1872" /> <!-- [22_22] giran_town_peace6 -->    <zone id="10826" type="PeaceZone" shape="NPoly" minZ="-3810" maxZ="-2110" /> <!-- [22_22] giran_town_peace7 -->    <zone id="10827" type="PeaceZone" shape="NPoly" minZ="-3538" maxZ="-3338" /> <!-- [22_22] giran_town_peace8 -->    <zone id="10828" type="PeaceZone" shape="NPoly" minZ="-3496" maxZ="-2996" /> <!-- [22_22] giran_town_peace9 -->    <zone id="10829" type="PeaceZone" shape="NPoly" minZ="-3599" maxZ="-2999" /> <!-- [22_22] giran_town_peace10 -->    <zone id="10830" type="PeaceZone" shape="NPoly" minZ="-3410" maxZ="-3210" /> <!-- [22_22] giran_town_peace11 -->    <zone id="10831" type="PeaceZone" shape="NPoly" minZ="-3464" maxZ="-3264" /> <!-- [22_22] giran_town_peace12 -->
Just comment/remove these lines in zone.xml to disable Peace Zones in Giran Town :)

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 5:22 pm
by kirisame
pinkcore wrote:

Code: Select all

    <zone id="10820" type="PeaceZone" shape="NPoly" minZ="-3654" maxZ="-2654" /> <!-- [22_22] giran_town_peace1 -->    <zone id="10821" type="PeaceZone" shape="NPoly" minZ="-3598" maxZ="-1598" /> <!-- [22_22] giran_town_peace2 -->    <zone id="10822" type="PeaceZone" shape="NPoly" minZ="-3602" maxZ="-2402" /> <!-- [22_22] giran_town_peace3 -->    <zone id="10823" type="PeaceZone" shape="NPoly" minZ="-3636" maxZ="-3036" /> <!-- [22_22] giran_town_peace4 -->    <zone id="10824" type="PeaceZone" shape="NPoly" minZ="-3799" maxZ="-2399" /> <!-- [22_22] giran_town_peace5 -->    <zone id="10825" type="PeaceZone" shape="NPoly" minZ="-3872" maxZ="-1872" /> <!-- [22_22] giran_town_peace6 -->    <zone id="10826" type="PeaceZone" shape="NPoly" minZ="-3810" maxZ="-2110" /> <!-- [22_22] giran_town_peace7 -->    <zone id="10827" type="PeaceZone" shape="NPoly" minZ="-3538" maxZ="-3338" /> <!-- [22_22] giran_town_peace8 -->    <zone id="10828" type="PeaceZone" shape="NPoly" minZ="-3496" maxZ="-2996" /> <!-- [22_22] giran_town_peace9 -->    <zone id="10829" type="PeaceZone" shape="NPoly" minZ="-3599" maxZ="-2999" /> <!-- [22_22] giran_town_peace10 -->    <zone id="10830" type="PeaceZone" shape="NPoly" minZ="-3410" maxZ="-3210" /> <!-- [22_22] giran_town_peace11 -->    <zone id="10831" type="PeaceZone" shape="NPoly" minZ="-3464" maxZ="-3264" /> <!-- [22_22] giran_town_peace12 -->
Just comment/remove these lines in zone.xml to disable Peace Zones in Giran Town :)
I've figured out which peace zone was interfering my pvp zone, and ive changed the area of that particular peace zone, see my photo in the post.

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 7:50 pm
by burrito
btw //zone_check does show the zone ID, you just have to scroll down to the bottom of the zone check html window.

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 9:24 pm
by Airin
If I will be you, i will use Cyllinder, it is more easy for zones to create. Not so accurate, but it is good for me.

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Wed Dec 08, 2010 9:49 pm
by kirisame
burrito wrote:btw //zone_check does show the zone ID, you just have to scroll down to the bottom of the zone check html window.
Image
mine doesnt

Re: Need help set up a custom battlefield area[NOT SOLVED YE

Posted: Thu Dec 09, 2010 1:55 am
by burrito
weird mine does, oh well :)