Placing a command in HTML

xvitorx1

Vagabond
Customer
Hello, I'd like to add the command `/instancezone` (time to reset kamaloka, for example) to the NPC's HTML. Is that possible?

I tried something like `[npc_%objectId%_voiced_instancezone|Time to enter Instance.]`, but it didn't work.
 
 
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:
1774871967559.webp
 
yes, I want to create a "button" on the NPC to specifically bring up the /instancezone UI.

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>
 
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>
erro :/
java: class CheckInstanzonBypassHandler is public, should be declared in a file named CheckInstanzonBypassHandler.java
 
Back
Top