King Bolren now gives back lost gnome amulets

This commit is contained in:
Player Name
2024-11-14 12:05:46 +00:00
committed by Ryan
parent 1a67932351
commit 9054e36288
4 changed files with 43 additions and 12 deletions
@@ -87,9 +87,9 @@ class SCThormacDialogue(val questStage: Int) : DialogueFile() {
WAITING_FOR_SCORPIONS -> {
if (!hasAnItem(player!!, Items.SCORPION_CAGE_456, Items.SCORPION_CAGE_457, Items.SCORPION_CAGE_458,
if (!hasAnItem(player!!, arrayOf(Items.SCORPION_CAGE_456, Items.SCORPION_CAGE_457, Items.SCORPION_CAGE_458,
Items.SCORPION_CAGE_459, Items.SCORPION_CAGE_460, Items.SCORPION_CAGE_461,
Items.SCORPION_CAGE_462).exists()){
Items.SCORPION_CAGE_462), false).exists()){
playerl(FacialExpression.SAD, "I've lost my cage.").also { stage = GIVE_ANOTHER_CAGE }
}
else{
@@ -187,10 +187,15 @@ class KingBolrenDialogue : DialogueFile() {
}
isQuestComplete(player!!, questName) -> {
when(stage) {
0 -> playerl("Hello Bolren.").also { stage++ }
1 -> npcl("Thank you for your help traveler.").also { stage = END_DIALOGUE }
0 -> playerl("Hello again Bolren.").also { stage++ }
1 -> npcl("Well hello, it's good to see you again.").also { stage = if (hasAnItem(player!!, Items.GNOME_AMULET_589).container != null) END_DIALOGUE else 2 }
2 -> playerl("I've lost my amulet.").also { stage++ }
3 -> npcl("Oh dear. Here, take another. We are truly indebted to you.").also {
addItemOrDrop(player!!, Items.GNOME_AMULET_589)
stage = END_DIALOGUE
}
}
}
}
}
}
}
@@ -30,7 +30,7 @@ class DimintheisDialogue(player: Player? = null): core.game.dialogue.DialoguePlu
return true
}
val hasGauntlets = hasAnItem(player, Items.COOKING_GAUNTLETS_775, Items.GOLDSMITH_GAUNTLETS_776, Items.CHAOS_GAUNTLETS_777, Items.FAMILY_GAUNTLETS_778).container != null
val hasGauntlets = hasAnItem(player, arrayOf(Items.COOKING_GAUNTLETS_775, Items.GOLDSMITH_GAUNTLETS_776, Items.CHAOS_GAUNTLETS_777, Items.FAMILY_GAUNTLETS_778), true).container != null
if (questComplete && hasGauntlets) {
npc("Thank you for saving our family honour, ",