Page 1 of 1

Zone Respawn

Posted: Thu Jul 22, 2010 8:03 am
by AstroGlide
L2J Revision 4393 :
L2JDP Revision 7639:

Hi, I made a peace zone, but I wanted them to spawn back in the same zone when they died. Peace zone is fine, I know how to do that, but for some reason its not spawning them where I'm telling it to, it just spawns them nearest village. Any help? :x

here's what I got in zone.xml

Code: Select all

<zone id="70704" type="PeaceZone" shape="NPoly" minZ="-10000" maxZ="-8000" />    <spawn X="83817" Y="147674" Z="-3407" />

Re: Zone Respawn

Posted: Thu Jul 22, 2010 8:08 am
by janiii
because you closed the zone tag without including the spawn tag in it.

check this code (open zone tag, include spawn tag, close zone tag):

Code: Select all

<zone id="70704" type="PeaceZone" shape="NPoly" minZ="-10000" maxZ="-8000">    <spawn X="83817" Y="147674" Z="-3407" /></zone>

Re: Zone Respawn

Posted: Thu Jul 22, 2010 8:24 am
by MELERIX
I think you need to use a town zone.

Re: Zone Respawn

Posted: Thu Jul 22, 2010 8:26 am
by janiii
MELERIX wrote:I think you need to use a town zone.
he doesnt. arena zone uses spawn tag too. his mistake is only that his zone tag doesnt include the spawn tag.

Re: Zone Respawn

Posted: Thu Jul 22, 2010 8:30 am
by MELERIX
yes, Arena zones support spawn ;)

but PeaceZone no idea.

Re: Zone Respawn

Posted: Thu Jul 22, 2010 8:34 am
by janiii
MELERIX wrote:yes, Arena zones support spawn ;)

but PeaceZone no idea.

first he has to write it right way, then he can check if it really doesnt work ;)

edit: in order to use the spawn tag for peace zone, the L2PeaceZone has to extend L2SpawnZone . now only arena, castle, clanhall, fort, town zone support spawn tag. then also MapRegionTable.getTeleToLocation() has to be changed to check for zone and spawnloc. but then all peace zones have to have a spawn tag. not that easy ;)