Dan7E2 Posted February 29, 2016 Share Posted February 29, 2016 How can i link a button from community board to open a html from a Npc? Quote Link to comment Share on other sites More sharing options...
0 tazerman2 Posted February 29, 2016 Share Posted February 29, 2016 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); } } Quote Link to comment Share on other sites More sharing options...
0 Dan7E2 Posted March 1, 2016 Author Share Posted March 1, 2016 (edited) I want like this i open my community board example open shop in community board, after click on one button from shop example "armor store" open a html from a npc example open html form npc id "300300" like l2tales donator store in community board, click on vesper armor and open a separate html like htmls form normal npcs Edited March 1, 2016 by Dan7E2 Quote Link to comment Share on other sites More sharing options...
0 tazerman2 Posted March 1, 2016 Share Posted March 1, 2016 make a new bypass without connect to BaseBBSManager Quote Link to comment Share on other sites More sharing options...
Question
Dan7E2
How can i link a button from community board to open a html from a Npc?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.