From 5c93570475c36a95c75fc830f5d350161729ca53 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Thu, 12 Mar 2020 13:32:51 -0500 Subject: [PATCH] Added dialogue for Klenter --- .../interaction/city/sophanem/KlenterNPC.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Server/src/plugin/interaction/city/sophanem/KlenterNPC.java diff --git a/Server/src/plugin/interaction/city/sophanem/KlenterNPC.java b/Server/src/plugin/interaction/city/sophanem/KlenterNPC.java new file mode 100644 index 000000000..92342ab9e --- /dev/null +++ b/Server/src/plugin/interaction/city/sophanem/KlenterNPC.java @@ -0,0 +1,36 @@ +package plugin.interaction.city.sophanem; + +import org.crandor.game.content.dialogue.DialoguePlugin; +import org.crandor.game.node.entity.npc.NPC; +import org.crandor.game.node.entity.player.Player; +import org.crandor.plugin.InitializablePlugin; + +/** + * Handles the Klenter NPC, which should be invisible until a quest stage has been reached. Will do that when quest is added. + * @author ceik + */ +@InitializablePlugin +public class KlenterNPC extends DialoguePlugin { + public KlenterNPC(){ + /** + * Empty + */ + } + public KlenterNPC(Player player){super(player);} + + @Override + public DialoguePlugin newInstance(Player player){return new KlenterNPC(player);} + + @Override + public boolean open(Object... args){ + npc("OOOOoOOOoOO"); + return true; + } + + @Override + public boolean handle(int interfaceId,int buttonId){ + return true; + } + @Override + public int[] getIds(){return new int[] {2014};} +}