From a9a6c07c1a19e7febb5954c61e2a47a1bab4f83e Mon Sep 17 00:00:00 2001 From: John Liebentritt Date: Tue, 2 May 2023 02:08:57 +0000 Subject: [PATCH] Fixed a regression in the Witch's House where the fountain could not be searched after reading the book --- .../asgarnia/taverley/quest/witchshouse/WitchesDiaryBook.kt | 3 +++ .../taverley/quest/witchshouse/WitchsHousePlugin.java | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchesDiaryBook.kt b/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchesDiaryBook.kt index c76bff1b3..cf3a9ae91 100644 --- a/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchesDiaryBook.kt +++ b/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchesDiaryBook.kt @@ -121,6 +121,9 @@ class WitchesDiaryBook : InteractionListener { ) private fun display(player:Player, pageNum: Int, buttonID: Int) : Boolean { BookInterface.pageSetup(player, BookInterface.FANCY_BOOK_3_49, TITLE, CONTENTS) + if (BookInterface.isLastPage(pageNum, CONTENTS.size)) { + setAttribute(player, "/save:readWitchsBook", true); + } return true } } diff --git a/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchsHousePlugin.java b/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchsHousePlugin.java index 1e00b8efe..3600be5c6 100644 --- a/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchsHousePlugin.java +++ b/Server/src/main/content/region/asgarnia/taverley/quest/witchshouse/WitchsHousePlugin.java @@ -159,10 +159,6 @@ public class WitchsHousePlugin extends OptionHandler { case 24673: player.teleport(Location.create(2906, 3468, 0)); break; - case 2408: - player.getDialogueInterpreter().open(4501993, node); - player.setAttribute("/save:readWitchsBook", true); - break; } return true; }