From c6b508b3ed34a52b4628f89e22082c01bbd8cd98 Mon Sep 17 00:00:00 2001 From: Oven Bread Date: Sat, 1 Feb 2025 13:07:49 +0000 Subject: [PATCH] Lucien now gives a pendant after Temple of Ikov completion --- .../quest/templeofikov/LucienDialogue.kt | 18 ++++++++++++++++-- .../quest/templeofikov/LucienEndingDialogue.kt | 2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Server/src/main/content/region/kandarin/quest/templeofikov/LucienDialogue.kt b/Server/src/main/content/region/kandarin/quest/templeofikov/LucienDialogue.kt index c6b3c93d2..d751c08a7 100644 --- a/Server/src/main/content/region/kandarin/quest/templeofikov/LucienDialogue.kt +++ b/Server/src/main/content/region/kandarin/quest/templeofikov/LucienDialogue.kt @@ -27,8 +27,22 @@ class LucienDialogue (player: Player? = null) : DialoguePlugin(player) { class LucienDialogueFile : DialogueBuilderFile() { override fun create(b: DialogueBuilder) { b.onQuestStages(TempleOfIkov.questName, 100) - .endWith { _, player -> - sendMessage(player, "You have completed the Temple of Ikov quest.") + .playerl("I thought I killed you?!") + .npcl("Ha! Ha! Ha!") + .npcl("You can not kill me human!") + .branch { player -> + return@branch if (inInventory(player, Items.PENDANT_OF_LUCIEN_86)) { 1 } else { 0 } + }.let { branch -> + branch.onValue(1) + .end() + branch.onValue(0) + .playerl("I've lost the pendant you gave me.") + .npcl("Have another, it will remind you of my power!") + .betweenStage { df, player, _, _ -> + addItemOrDrop(player, Items.PENDANT_OF_LUCIEN_86) + } + .item(Items.PENDANT_OF_LUCIEN_86, "Lucien has given you another pendant!") + .end() } b.onQuestStages(TempleOfIkov.questName, 1,2,3,4,5,6,7) .npcl("I told you not to meet me here again!") diff --git a/Server/src/main/content/region/kandarin/quest/templeofikov/LucienEndingDialogue.kt b/Server/src/main/content/region/kandarin/quest/templeofikov/LucienEndingDialogue.kt index 48cf0b890..c2d974bc5 100644 --- a/Server/src/main/content/region/kandarin/quest/templeofikov/LucienEndingDialogue.kt +++ b/Server/src/main/content/region/kandarin/quest/templeofikov/LucienEndingDialogue.kt @@ -25,6 +25,8 @@ class LucienEndingDialogueFile : DialogueBuilderFile() { override fun create(b: DialogueBuilder) { b.onQuestStages(TempleOfIkov.questName, 100) .endWith { _, player -> + // After quest is over: https://www.youtube.com/watch?v=81DXjfsFcMM + sendMessage(player, "You feel that fighting this individual will be of little practical use.") sendMessage(player, "You have completed the Temple of Ikov quest.") } b.onQuestStages(TempleOfIkov.questName, 1,2,3,4,5,6,7)