Jump to content
  • 0

Question

Posted

Hi all, i tried to create new zone this is java code of type

package net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneType;

/**
*
* @author TARAN
*/
public class L2TradeZone extends L2ZoneType
{

public L2TradeZone(int id)
{
	super(id);
}

@Override
public void onEnter(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		character.setInsideZone(L2Character.ZONE_TRADE, true);
	}
}

@Override
public void onExit(L2Character character)
{
	if (character instanceof L2PcInstance)
	{
		character.setInsideZone(L2Character.ZONE_TRADE, false);
	}
}

@Override
public void onDieInside(L2Character character)
{
	onExit(character);
}

@Override
public void onReviveInside(L2Character character)
{
	onEnter(character);
}
}

 

Sql code

-- Offline
(12012,0,-115600,-250700),
(12012,1,-113500,-248200),

 

Zone.xml file

<!-- Offline zone -->
<zone id='12012' type='Trade' shape='Cuboid' minZ='-5000' maxZ='5000' />

 

What to add more becouse it dont create.

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..