Skip to content
Snippets Groups Projects
Commit 394abd78 authored by MELERIX's avatar MELERIX
Browse files

BETA/STABLE: Updating signboards to show proper htmls (also updated their...

BETA/STABLE: Updating signboards to show proper htmls (also updated their htmls), thans '''nonom''' for test.
parent 9a7107a0
No related branches found
No related tags found
No related merge requests found
<html><body>This is the<font color="LEVEL"> dueling area</font>.<br>Your character won't become chaotic even if you fight or kill others here. And if you die, you won't lose experience points or drop items. Therefore, please enjoy battling each other without unnecessary concerns.<br>Please note that the area outside the fence is a<font color="LEVEL"> peace zone</font> where you may not attack each other at all. The area inside the fence is the<font color="LEVEL"> dueling area</font>.
</body></html>
\ No newline at end of file
<html><head><body>Welcome to the <font color="LEVEL">Dueling Area</font>.<br>Fighting and killing does not lead to chaos here. Death does not cause forfeiture of experience points or items. You may fight, kill and die as you please.<br> The area outside the fence is a <font color="LEVEL">Peaceful Zone</font> where violence is not tolerated.<br>
*Warning: If a chaotic character whose PK count is 6 or higher dies in a dueling arena, he/she has a chance of dropping an item.
</body></html>
\ No newline at end of file
<html><head><body>Tomb of the Crystalline Golem:<br>Faint wavy writings grow clearer and bolder as you read:<br>...Long ago, Balor was gravely injured by the Water Dragon. Since then, he has feared the <font color="LEVEL">Water Dragon's Claw</font>... The claw has been passed down to the Dragon's children in the Chromatic Highlands...</body></html>
\ No newline at end of file
......@@ -30,8 +30,10 @@ public class L2StaticObjectInstanceAction implements IActionHandler
@Override
public boolean action(L2PcInstance activeChar, L2Object target, boolean interact)
{
if(((L2StaticObjectInstance)target).getType() < 0)
_log.info("L2StaticObjectInstance: StaticObject with invalid type! StaticObjectId: "+((L2StaticObjectInstance)target).getStaticObjectId());
if (((L2StaticObjectInstance) target).getType() < 0)
{
_log.info("L2StaticObjectInstance: StaticObject with invalid type! StaticObjectId: " + ((L2StaticObjectInstance) target).getStaticObjectId());
}
// Check if the L2PcInstance already target the L2NpcInstance
if (activeChar.getTarget() != target)
......@@ -52,21 +54,44 @@ public class L2StaticObjectInstanceAction implements IActionHandler
}
else
{
if(((L2StaticObjectInstance)target).getType() == 2)
if ((((L2StaticObjectInstance) target).getType() == 2) && (((L2StaticObjectInstance) target).getStaticObjectId() == 24230101))
{
String filename = "data/html/signboards/tomb_of_crystalgolem.htm";
String content = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), filename);
NpcHtmlMessage html = new NpcHtmlMessage(target.getObjectId());
if (content == null)
{
html.setHtml("<html><body>Signboard is missing:<br>" + filename + "</body></html>");
}
else
{
html.setHtml(content);
}
activeChar.sendPacket(html);
}
else if ((((L2StaticObjectInstance) target).getType() == 2) && (((L2StaticObjectInstance) target).getStaticObjectId() != 24230101))
{
String filename = "data/html/signboard.htm";
String filename = "data/html/signboards/pvp_signboard.htm";
String content = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), filename);
NpcHtmlMessage html = new NpcHtmlMessage(target.getObjectId());
if (content == null)
html.setHtml("<html><body>Signboard is missing:<br>"+filename+"</body></html>");
{
html.setHtml("<html><body>Signboard is missing:<br>" + filename + "</body></html>");
}
else
{
html.setHtml(content);
}
activeChar.sendPacket(html);
}
else if(((L2StaticObjectInstance)target).getType() == 0)
activeChar.sendPacket(((L2StaticObjectInstance)target).getMap());
else if (((L2StaticObjectInstance) target).getType() == 0)
{
activeChar.sendPacket(((L2StaticObjectInstance) target).getMap());
}
}
}
return true;
......@@ -77,4 +102,4 @@ public class L2StaticObjectInstanceAction implements IActionHandler
{
return InstanceType.L2StaticObjectInstance;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment