Improved handling of buying Dragon Scimitars from Daga in dialogue and declining the Fremennik Trials quest from Brundt

This commit is contained in:
bushtail
2022-05-14 06:14:07 +00:00
committed by Ryan
parent 13088762d1
commit fee3b02e3d
2 changed files with 32 additions and 34 deletions
@@ -42,9 +42,7 @@ class DagaDialogue(player: Player? = null) : DialoguePlugin(player){
32 -> when (buttonId) {
1 -> if (inInventory(player, Items.COINS_995, 100000)) {
end()
removeItem(player, Item(Items.COINS_995, 100000), Container.INVENTORY)
addItem(player, Items.DRAGON_SCIMITAR_4587, 1)
end().also { return removeItem(player, Item(Items.COINS_995, 100000)) && addItem(player, Items.DRAGON_SCIMITAR_4587, 1) }
} else {
npcl(FacialExpression.OLD_NORMAL, "Sorry but you don't have enough to buy one, at the moment it costs 100,000 gold coins.").also { stage = END_DIALOGUE }
}
@@ -102,7 +102,7 @@ class ChieftanBrundt(player: Player? = null) : DialoguePlugin(player){
302 -> {options("Yes, I am interested.","No, I'm not interested."); stage++ }
303 -> when(buttonId){
1 -> {player("Actually, I would be very interested to hear what you","have to offer."); stage = 310 }
2 -> player("No, I'm not interested.").also { stage = END_DIALOGUE }
2 -> {player("No, I'm not interested."); stage = END_DIALOGUE }
}
//Yes, I am interested in what you have to say.