Separated the Classic Datapack to it's own folder.
This commit is contained in:
@@ -144,7 +144,7 @@ public class NpcViewMod implements IBypassHandler
|
||||
public static void sendNpcView(L2PcInstance activeChar, L2Npc npc)
|
||||
{
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage();
|
||||
html.setFile(activeChar.getHtmlPrefix(), "data/html/mods/NpcView/Info.htm");
|
||||
html.setFile(activeChar.getHtmlPrefix(), "html/mods/NpcView/Info.htm");
|
||||
html.replace("%name%", npc.getName());
|
||||
html.replace("%hpGauge%", HtmlUtil.getHpGauge(250, (long) npc.getCurrentHp(), npc.getMaxHp(), false));
|
||||
html.replace("%mpGauge%", HtmlUtil.getMpGauge(250, (long) npc.getCurrentMp(), npc.getMaxMp(), false));
|
||||
@@ -369,10 +369,10 @@ public class NpcViewMod implements IBypassHandler
|
||||
bodySb.append("</td>");
|
||||
bodySb.append("</tr></table>");
|
||||
|
||||
String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/mods/NpcView/DropList.htm");
|
||||
String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "html/mods/NpcView/DropList.htm");
|
||||
if (html == null)
|
||||
{
|
||||
_log.warning(NpcViewMod.class.getSimpleName() + ": The html file data/html/mods/NpcView/DropList.htm could not be found.");
|
||||
_log.warning(NpcViewMod.class.getSimpleName() + ": The html file html/mods/NpcView/DropList.htm could not be found.");
|
||||
return;
|
||||
}
|
||||
html = html.replaceAll("%name%", npc.getName());
|
||||
|
Reference in New Issue
Block a user