I made some few changes because it wasn't working...anyway it may was my mistake
but now i know for sure it works because i tested it...i am using latest rev of jfrozen
and i just had the same problem with Visius....
i was targeting the npc and it was saying i have nothing to say to you.
i just changed from: StringBuilder tb = new StringBuilder("");
to: TextBuilder tb = new TextBuilder();
+package com.l2jfrozen.gameserver.model.actor.instance;
+
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
+import javolution.text.TextBuilder;
+
+public class L2MassSiegeManagerInstance extends L2NpcInstance
+{
+
+ public L2MassSiegeManagerInstance(int objectId, L2NpcTemplate template)
+ {
+ super(objectId, template);
+ }
+
+ @Override
+ public void showChatWindow(L2PcInstance player, int val)
+ {
+ NpcHtmlMessage msg = new NpcHtmlMessage(getObjectId());
+ msg.setHtml(siegeWindow(player));
+ msg.replace("%objectId%", String.valueOf(getObjectId()));
+ player.sendPacket(msg);
+ }
+ private String siegeWindow(L2PcInstance player)
+ {
+ TextBuilder tb = new TextBuilder();
+
+ tb.append("<html><title>Siege Manager</title><body><center>");
+ tb.append("<br>");
+ tb.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=\"300\" height=\"32\"");
+ tb.append("<br>");
+ tb.append("<button value=\"Giran Siege\" action=\"bypass -h siege_giran\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Aden Siege\" action=\"bypass -h siege_aden\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Rune Siege\" action=\"bypass -h siege_rune\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Goddard Siege\" action=\"bypass -h siege_goddard\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Dion Siege\" action=\"bypass -h siege_dion\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Shuttgart Siege\" action=\"bypass -h siege_shuttgart\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Innadril Siege\" action=\"bypass -h siege_innadril\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Oren Siege\" action=\"bypass -h siege_oren\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("<button value=\"Gludio Siege\" action=\"bypass -h siege_gludio\" width=134 height=21 back=\"L2UI_ch3.BigButton3_over\" fore=\"L2UI_ch3.BigButton3\">");
+ tb.append("</center>");
+
+ tb.append("<center><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=295 height=32><br></center>");
+ tb.append("</body></html>");
+ return tb.toString();
+ }
+}