From 0154d6d8504b2365e85a3b31147a4b5efff27175 Mon Sep 17 00:00:00 2001
From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com>
Date: Tue, 4 Feb 2020 22:29:11 +0000
Subject: [PATCH] Improved NPC and Door instance information htmls.
---
.../model/actor/instance/DoorInstance.java | 26 ++++++++-----------
.../model/actor/instance/NpcInstance.java | 2 +-
2 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java
index 0950ef1e2a..8d5684cf23 100644
--- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java
+++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java
@@ -588,23 +588,19 @@ public class DoorInstance extends Creature
player.sendPacket(new DoorStatusUpdate(this));
}
final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
- final StringBuilder html1 = new StringBuilder("
");
- html1.append("Door Information
|
");
- html1.append("Current HP " + getCurrentHp() + " |
");
- html1.append("Max HP " + getMaxHp() + " |
");
- html1.append("Object ID: " + getObjectId() + " |
");
- html1.append("Door ID: " + _doorId + " |
");
- html1.append("
|
");
- html1.append("Class: " + getClass().getSimpleName() + " |
");
- html1.append("
|
");
- html1.append("
");
- html1.append("");
- html1.append(" | ");
- html1.append(" | ");
+ final StringBuilder html1 = new StringBuilder("Door Information");
+ html1.append("");
html1.append(" | ");
html1.append(" | ");
- html1.append("
");
-
+ html1.append(" | ");
+ html1.append(" | ");
+ html1.append("
");
+ html1.append("Instance Type: | " + getClass().getSimpleName() + " |
");
+ html1.append("Current HP: | " + getCurrentHp() + " |
");
+ html1.append("Max HP: | " + getMaxHp() + " |
");
+ html1.append("Object ID: | " + getObjectId() + " |
");
+ html1.append("Door ID: | " + _doorId + " |
");
+ html1.append("
");
html.setHtml(html1.toString());
player.sendPacket(html);
}
diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java
index ff72c99083..96c13d79cd 100644
--- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java
+++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java
@@ -853,7 +853,7 @@ public class NpcInstance extends Creature
final StringBuilder html1 = new StringBuilder("NPC Information");
final String className = getClass().getSimpleName();
- html1.append("
");
+ html1.append("");
html1.append(" | ");
html1.append(" |
");
html1.append(" | ");