Lucien now gives a pendant after Temple of Ikov completion

This commit is contained in:
Oven Bread 2025-02-01 13:07:49 +00:00 committed by Ryan
parent 67b6855370
commit c6b508b3ed
2 changed files with 18 additions and 2 deletions

View file

@ -27,8 +27,22 @@ class LucienDialogue (player: Player? = null) : DialoguePlugin(player) {
class LucienDialogueFile : DialogueBuilderFile() { class LucienDialogueFile : DialogueBuilderFile() {
override fun create(b: DialogueBuilder) { override fun create(b: DialogueBuilder) {
b.onQuestStages(TempleOfIkov.questName, 100) b.onQuestStages(TempleOfIkov.questName, 100)
.endWith { _, player -> .playerl("I thought I killed you?!")
sendMessage(player, "You have completed the Temple of Ikov quest.") .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) b.onQuestStages(TempleOfIkov.questName, 1,2,3,4,5,6,7)
.npcl("I told you not to meet me here again!") .npcl("I told you not to meet me here again!")

View file

@ -25,6 +25,8 @@ class LucienEndingDialogueFile : DialogueBuilderFile() {
override fun create(b: DialogueBuilder) { override fun create(b: DialogueBuilder) {
b.onQuestStages(TempleOfIkov.questName, 100) b.onQuestStages(TempleOfIkov.questName, 100)
.endWith { _, player -> .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.") sendMessage(player, "You have completed the Temple of Ikov quest.")
} }
b.onQuestStages(TempleOfIkov.questName, 1,2,3,4,5,6,7) b.onQuestStages(TempleOfIkov.questName, 1,2,3,4,5,6,7)