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

    • L2servers.eu              
    • its L2Etina dont fall for this guys corrupted scam server
    • I knew it! Thanks for information really helpful 💫👍
    • [CENTER][B][SIZE=6]🔥 Developer Updates[/SIZE][/B][/CENTER] [CENTER][I]Current list of implemented systems, improvements, and new features[/I][/CENTER] [HR][/HR] [B][SIZE=5]✅ Current Updates[/SIZE][/B] [LIST] [*]Rework of [B]Commission Trade / Auction House[/B] [*]Update: [B]Class System & Subclass Manager[/B] [*]Update: [B]Community Board (.menu) + Settings[/B] [*][B]Donate Hero[/B] (NPC + Alt+B) [/LIST] [HR][/HR] [B][SIZE=5]⚙️ Implemented Systems[/SIZE][/B] [LIST] [*][B]Custom Potion Settings[/B] [*][B]Buff and Debuff Duration Configuration[/B] [*][B]Player Cabinet[/B] [*][B]Epic Boss Status[/B] [*][B]Server Statistics[/B] [*][B]Gatekeeper System[/B] [*][B]Merchant System[/B] [*][B]Donate Manager[/B] [*][B]NPC + Community Buffer[/B] [*][B]Auto Potion System (.acp)[/B] [*][B]Player Cabinet[/B] (Community Board) [*][B]Configuration Translation[/B] [/LIST] [HR][/HR] [CENTER][B]📌 Follow this topic — the update list will continue to grow.[/B][/CENTER]  
    • [CENTER][B][SIZE=6]🔥 Developer Updates[/SIZE][/B][/CENTER] [CENTER][I]Current list of implemented systems, improvements, and new features[/I][/CENTER] [HR][/HR] [B][SIZE=5]✅ Current Updates[/SIZE][/B] [LIST] [*]Rework of [B]Commission Trade / Auction House[/B] [*]Update: [B]Class System & Subclass Manager[/B] [*]Update: [B]Community Board (.menu) + Settings[/B] [*][B]Donate Hero[/B] (NPC + Alt+B) [/LIST] [HR][/HR] [B][SIZE=5]⚙️ Implemented Systems[/SIZE][/B] [LIST] [*][B]Custom Potion Settings[/B] [*][B]Buff and Debuff Duration Configuration[/B] [*][B]Player Cabinet[/B] [*][B]Epic Boss Status[/B] [*][B]Server Statistics[/B] [*][B]Gatekeeper System[/B] [*][B]Merchant System[/B] [*][B]Donate Manager[/B] [*][B]NPC + Community Buffer[/B] [*][B]Auto Potion System (.acp)[/B] [*][B]Player Cabinet[/B] (Community Board) [*][B]Configuration Translation[/B] [/LIST] [HR][/HR] [CENTER][B]📌 Follow this topic — the update list will continue to grow.[/B][/CENTER]
  • 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..