Nauja instanca sukurk, pvz L2IgnoreNpcInstance ir paprasciausiai onAction siusti ActionFailed paketa..
import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate;
public class L2IgnoreNpcInstance extends L2NpcInstance
{
public L2IgnoreNpcInstance(int objectID, L2NpcTemplate template)
{
super(objectID, template);
}
/**
* @param player
*/
@Override
public void onAction(L2PcInstance player)
{
// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
player.sendPacket(ActionFailed.STATIC_PACKET);
}
}
Targinti neis tikrai, o del name tai dek name ne tuscia, o tarpeli. ;)
Paskutinį kartą redagavo: 26 Rugpjūčio 2014 - 11:42