diff --git a/Server/src/plugin/npc/other/akharanu.java b/Server/src/plugin/npc/other/akharanu.java new file mode 100644 index 000000000..4fc673a08 --- /dev/null +++ b/Server/src/plugin/npc/other/akharanu.java @@ -0,0 +1,72 @@ +package plugin.npc.other; + +import org.crandor.cache.def.impl.NPCDefinition; +import org.crandor.game.content.dialogue.DialoguePlugin; +import org.crandor.game.content.dialogue.FacialExpression; +import org.crandor.game.node.entity.npc.NPC; +import org.crandor.game.node.entity.player.Player; +import org.crandor.game.world.update.flag.context.Animation; +import org.crandor.plugin.InitializablePlugin; + +@InitializablePlugin +public class akharanu extends DialoguePlugin { + public akharanu() {}; + public akharanu(Player player){super(player);} + @Override + public DialoguePlugin newInstance(Player player){return new akharanu(player);} + public boolean open(Object... args){ + npc("Hello, there, friend!"); + stage = 0; + return true; + } + @Override + public boolean handle(int componentId, int buttonId){ + switch(stage){ + case 0: + player.getDialogueInterpreter().sendOptions("Select one","Why are you, errr, so stiff?","Do you sell anything?"); + stage++; + break; + case 1: + switch(buttonId){ + case 1: + player("Why are you, errr, so stiff?"); + stage++; + break; + case 2: + player("Do you sell anything?"); + stage = 8; + break; + } + break; + case 2: + npc(FacialExpression.HALF_GUILTY,"I have extremely severe arthritis. It really sucks."); + stage++; + break; + case 3: + player("Oh. Well I'm sorry to hear that."); + stage++; + break; + case 4: + npc("Yes, thank you for your concern."); + stage++; + break; + case 5: + end(); + break; + case 8: + player("Do you sell anything?"); + stage++; + break; + case 9: + npc("Why, yes I do!"); + stage++; + break; + case 10: + end(); + new NPC(1688).openShop(player); + break; + } + return true; + } + public int[] getIds() {return new int[] {1688};} +} diff --git a/Tools/Arios Editor/Arios Editor.iml b/Tools/Arios Editor/Arios Editor.iml new file mode 100644 index 000000000..b086c86ee --- /dev/null +++ b/Tools/Arios Editor/Arios Editor.iml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tools/Cache Editor/DragonkkCacheReader.iml b/Tools/Cache Editor/DragonkkCacheReader.iml new file mode 100644 index 000000000..f4d2feea1 --- /dev/null +++ b/Tools/Cache Editor/DragonkkCacheReader.iml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file