Page 1 of 1
[Help] Peace zone
Posted: Fri Sep 25, 2009 2:29 pm
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)
http://img121.imageshack.us/i/war074q210map.jpg/
Thx boy

Re: [Help] Peace zone
Posted: Fri Sep 25, 2009 3:48 pm
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" />
Re: [Help] Peace zone
Posted: Fri Sep 25, 2009 4:31 pm
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

Re: [Help] Peace zone
Posted: Thu Mar 03, 2011 4:05 am
by JMD
Turns out to be pretty easy. This is a great example. Thanks a lot, i wanted to do this for years.
