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.


  • Posts

    • QR code recognition has been added when logging into Google services that include this request. Instructions have been added to product descriptions; this only works for items that include this information.
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • Topics

×
×
  • 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..