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; }