Zone Respawn

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
AstroGlide
Posts: 36
Joined: Sat Jul 17, 2010 1:35 am

Zone Respawn

Post 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" />
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Zone Respawn

Post 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>
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Zone Respawn

Post by MELERIX »

I think you need to use a town zone.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Zone Respawn

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Zone Respawn

Post by MELERIX »

yes, Arena zones support spawn ;)

but PeaceZone no idea.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Zone Respawn

Post 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 ;)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply