Make "What Lies Below" completable by fixing Zaff's dialog.

This commit is contained in:
Avi Weinstock
2021-08-28 13:39:23 -04:00
parent 738678a947
commit 57eb018c27
@@ -114,10 +114,11 @@ class ZaffPlugin : OptionHandler() {
"Can I have another ring?" "Can I have another ring?"
) )
stage = 1 stage = 1
} } else {
interpreter.sendOptions("Select an Option", "Yes, please.", "No, thank you.") interpreter.sendOptions("Select an Option", "Yes, please.", "No, thank you.")
stage = 1 stage = 1
} }
}
1 -> when (buttonId) { 1 -> when (buttonId) {
1 -> { 1 -> {
interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "Yes, please.") interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "Yes, please.")
@@ -134,11 +135,12 @@ class ZaffPlugin : OptionHandler() {
} else if (quest!!.getStage(player) == 80) { } else if (quest!!.getStage(player) == 80) {
player("We did it! We beat Surok!") player("We did it! We beat Surok!")
stage = 200 stage = 200
} } else {
interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "Can I have another ring?") interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "Can I have another ring?")
stage = 50 stage = 50
} }
} }
}
10 -> { 10 -> {
if(player.achievementDiaryManager.getDiary(DiaryType.VARROCK).levelRewarded.contains(true)){ if(player.achievementDiaryManager.getDiary(DiaryType.VARROCK).levelRewarded.contains(true)){
npcl(FacialExpression.FRIENDLY, "Would you like to hear about my battlestaves?") npcl(FacialExpression.FRIENDLY, "Would you like to hear about my battlestaves?")