public class L2BoardMainInstance extends L2FolkInstance
{
public L2BoardMainInstance(int objectId, L2NpcTemplate template)
{
super(objectId, template);
}
@Override
public void onAction(L2PcInstance activeChar)
{
if (!(canTarget(activeChar)))
{
return;
}
if (this != activeChar.getTarget())
{
activeChar.setTarget(this);
activeChar.sendPacket(new MyTargetSelected(getObjectId(), 0));
activeChar.sendPacket(new ValidateLocation(this));
}
else if (!(canInteract(activeChar)))
{
activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
}
else
{
showHtmlWindow(activeChar, toString());
}
activeChar.sendPacket(new ActionFailed());
}
private void showHtmlWindow(L2PcInstance activeChar, String command)
{
String text = HtmCache.getInstance().getHtm("data/html/CommunityBoard/index.htm"); <------ Change this
BaseBBSManager.separateAndSend(text, activeChar);
}
}