1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 08:23:11 +00:00

Added in-game message for exception in server

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-21 01:07:11 -03:00
parent c3c7277dd9
commit 6efce6615f
5 changed files with 46 additions and 73 deletions

View File

@@ -107,20 +107,21 @@ public abstract class NPCTemplate extends ActorTemplate<NPC> {
if (conn == null)
return;
// target this npc
charService.target(character, npc);
// generate not implemented message
final HtmlTemplate template = new HtmlTemplate(name) {
@Override
public void build(MarkupTag body) {
body.text("The NPC ${name} is not yet implemented!", "ff0000")
.p();
body.addLink("Click me!", "test");
}
};
template.register("name", name);
conn.write(new NPCHtmlMessagePacket(npc, template));
throw new RuntimeException("Testing...");
// // target this npc
// charService.target(character, npc);
//
// // generate not implemented message
// final HtmlTemplate template = new HtmlTemplate(name) {
// @Override
// public void build(MarkupTag body) {
// body.text("The NPC ${name} is not yet implemented!", "ff0000")
// .p();
// body.addLink("Click me!", "test");
// }
// };
// template.register("name", name);
// conn.write(new NPCHtmlMessagePacket(npc, template));
}
/**