<!DOCTYPE list SYSTEM "instances.dtd">
<list>
<instance id="72" name="Kamaloka, Hall of the Abyss" maxChannels="10" collapseIfEmpty="5" timelimit="30" dispelBuffs="true">
<collapse on-party-dismiss="true" timer="60"/>
<level min="70" max="80"/>
<party min="2" max="6"/>
<return loc="43928 -49144 -792"/>
<teleport loc="180056 -88968 -7216"/>...
package handler.items;
import l2.gameserver.model.Player;
import l2.gameserver.model.items.ItemInstance;
import l2.gameserver.network.l2.s2c.SystemMessage;
public class Kamaloka extends SimpleItemHandler
{
private static final int[] ITEM_IDS = new int[] { 13010, 13297, 20026, 13011, 13298, 20027, 13012, 13299, 20028 };
@Override
public int[] getItemIds()
{
return ITEM_IDS;
}
@Override
protected boolean useItemImpl(Player player, ItemInstance item, boolean ctrl)
{
int itemId = item.getItemId();
switch(itemId)...
That's not what I need; I want to add the remaining time before it can log in again to the NPC's HTML. Example in the image:1. We need to create an XML file in which our instance will be described (For an illustrative example, we take Kamaloka)
Path: gameserver\data\instances\[72] Kamaloka, Hall of the Abyss.xml
The xml itself:
XML:<!DOCTYPE list SYSTEM "instances.dtd"> <list> <instance id="72" name="Kamaloka, Hall of the Abyss" maxChannels="10" collapseIfEmpty="5" timelimit="30" dispelBuffs="true"> <collapse on-party-dismiss="true" timer="60"/> <level min="70" max="80"/> <party min="2" max="6"/> <return loc="43928 -49144 -792"/> <teleport loc="180056 -88968 -7216"/>...
- Deazer
- Replies: 27
- Forum: [EN] Guides for Lucera2
Example of code:
Code:package handler.items; import l2.gameserver.model.Player; import l2.gameserver.model.items.ItemInstance; import l2.gameserver.network.l2.s2c.SystemMessage; public class Kamaloka extends SimpleItemHandler { private static final int[] ITEM_IDS = new int[] { 13010, 13297, 20026, 13011, 13298, 20027, 13012, 13299, 20028 }; @Override public int[] getItemIds() { return ITEM_IDS; } @Override protected boolean useItemImpl(Player player, ItemInstance item, boolean ctrl) { int itemId = item.getItemId(); switch(itemId)...
- Deazer
- Replies: 29
- Forum: [EN] Guides for Lucera2

Mate, that is the game client UI, not an HTMLThat's not what I need; I want to add the remaining time before it can log in again to the NPC's HTML. Example in the image:
View attachment 8291
Yes, but it's pulled behind the /instancezone command. I wanted to know if there's a way to make the HTML pull that command.Mate, that is the game client UI, not an HTML
ahhh, call UI by your bypass?Yes, but it's pulled behind the /instancezone command. I wanted to know if there's a way to make the HTML pull that command.
something like: bypass -h voiced_instancezone
yes, I want to create a "button" on the NPC to specifically bring up the /instancezone UI.ahhh, call UI by your bypass?
yes, I want to create a "button" on the NPC to specifically bring up the /instancezone UI.
package handler.bypass;
import l2.gameserver.model.Player;
import l2.gameserver.model.instances.NpcInstance;
import l2.gameserver.network.l2.s2c.ExInzoneWaitingInfo;
public class CheckInstanzonBypassHandler extends ScriptBypassHandler
{
@Override
public void handle(Player player, NpcInstance npc, String bypass, String params)
{
if(player == null)
return;
player.sendPacket(new ExInzoneWaitingInfo(player, 1));
}
@Override
public String[] getBypassPrefixes()
{
return new String[]{"check_instanzone"};
}
}
erro :/Java:package handler.bypass; import l2.gameserver.model.Player; import l2.gameserver.model.instances.NpcInstance; import l2.gameserver.network.l2.s2c.ExInzoneWaitingInfo; public class CheckInstanzonBypassHandler extends ScriptBypassHandler { @Override public void handle(Player player, NpcInstance npc, String bypass, String params) { if(player == null) return; player.sendPacket(new ExInzoneWaitingInfo(player, 1)); } @Override public String[] getBypassPrefixes() { return new String[]{"check_instanzone"}; } }
<a action="bypass check_instanzone">Check instancezone</a>
It worked, I was making a mistake, thank you so much!!!!