From 1007c3d53f9944c3ddfad78aa5db50a77b9b9392 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Thu, 11 Mar 2021 13:58:26 -0600 Subject: [PATCH] Fixed some other bugs --- .../core/game/content/dialogue/SigmundDialogue.java | 9 ++++----- .../quest/free/shieldofarrav/KingRoaldArravDialogue.kt | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Server/src/main/java/Server/core/game/content/dialogue/SigmundDialogue.java b/Server/src/main/java/Server/core/game/content/dialogue/SigmundDialogue.java index 3fd1639d6..5f1e0cf5e 100644 --- a/Server/src/main/java/Server/core/game/content/dialogue/SigmundDialogue.java +++ b/Server/src/main/java/Server/core/game/content/dialogue/SigmundDialogue.java @@ -4,6 +4,8 @@ import core.game.node.entity.npc.NPC; import core.plugin.Initializable; import core.game.node.entity.player.Player; +import static core.tools.DialogueConstKt.END_DIALOGUE; + /** * Handles the SigmundDialogue dialogue. * @author 'Vexia @@ -101,16 +103,13 @@ public class SigmundDialogue extends DialoguePlugin { break; case 31: npc("You should ask other people around the town if they","saw anything."); - stage++; + stage = END_DIALOGUE; player.getQuestRepository().getQuest("Lost Tribe").start(player); player.setAttribute("/save:tlt-witness", TLTNPCS[0]); break; - case 32: - end(); - break; case 34: player("No..."); - stage = 32; + stage = END_DIALOGUE; break; } return true; diff --git a/Server/src/main/java/Server/core/game/content/quest/free/shieldofarrav/KingRoaldArravDialogue.kt b/Server/src/main/java/Server/core/game/content/quest/free/shieldofarrav/KingRoaldArravDialogue.kt index 6a27d784e..1b2181b32 100644 --- a/Server/src/main/java/Server/core/game/content/quest/free/shieldofarrav/KingRoaldArravDialogue.kt +++ b/Server/src/main/java/Server/core/game/content/quest/free/shieldofarrav/KingRoaldArravDialogue.kt @@ -38,14 +38,14 @@ class KingRoaldArravDialogue() : DialogueFile() { 2 -> npc("My goodness! This claim is for the reward offered by", "my father many years ago!").also { stage++ } 3 -> npc("I never thought I would live to see the day when", "someone came forward to claim this reward!").also { stage++ } 4 -> npc("I heard that you found half the shield, so I will give", "you half of the bounty. That comes to exactly 600 gp!").also { stage++ } - 5 -> interpreter!!.sendItemMessage(CERTIFICATE.id, "You hand over a certificate. The king gives you 600 gp.").also { stage = END_DIALOGUE } - END_DIALOGUE -> { + 5 -> { + interpreter!!.sendItemMessage(CERTIFICATE.id, "You hand over a certificate. The king gives you 600 gp.") if (player!!.inventory.remove(CERTIFICATE)) { if (!player!!.inventory.add(Item(995, 600))) { GroundItemManager.create(Item(995, 600), player) } player!!.questRepository.getQuest("Shield of Arrav").finish(player) - end() + stage = END_DIALOGUE } } }