King Bolren now gives back lost gnome amulets
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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, ",
|
||||
|
||||
Reference in New Issue
Block a user