[Help] Peace zone

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

[Help] Peace zone

Post by Mage »

Hi,

I wont set All Mithril mines peace zone. I know that i must modify the file zone.xml, but can anyone help me?

This is the zone: (the part in RED)

Image
http://img121.imageshack.us/i/war074q210map.jpg/

Thx boy :)
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: [Help] Peace zone

Post by Probe »

it's not that easy :)

depending on how accurate you want to make it, you're gonna need to get the /loc
of certain points.
if you want to do it the easy way, get the northwestern point's (x,y), the southeastern point's (x,y)
and the highest and lowest Z value of all of Mithril Mines.

then you do add these into zone vertices.sql
id order x y
(50000,0,NWx,NWy),
(50000,1,SEx,SEy),

and in zone.xml:

Code: Select all

<zone id="50000" type="PeaceZone" shape="Cuboid" minZ="YOURMINZ" maxZ="YOURMAXZ"> <!-- Mithril Mines -->		<stat name="name" val="Mithril Mines" /> 		<stat name="spawnX" val="-148219" />  // spawn location (incase of death\soe)		<stat name="spawnY" val="255939" /> 		<stat name="spawnZ" val="-187" /> 
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

Re: [Help] Peace zone

Post by Mage »

Thx Probe, fantastic guide.

I hope that it works.

zove_vertices
INSERT INTO `zone_vertices` VALUES(50000, 0, 171616, -193882);
INSERT INTO `zone_vertices` VALUES(50000, 1, 174368, -173408);
zone.xml
<zone id='50000' type='PeaceZone' shape='Cuboid' minZ='-239' maxZ='-3451'>
<stat name="name" val="Mithril Mines" />
<stat name='spawnX' val='148558'/>
<stat name='spawnY' val='-56030'/>
<stat name='spawnZ' val='-2781'/>
</zone>
Bye :)
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: [Help] Peace zone

Post by JMD »

Turns out to be pretty easy. This is a great example. Thanks a lot, i wanted to do this for years.

Image
Post Reply