mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-25 04:15:14 -06:00
store book in poh
This commit is contained in:
parent
ac074d0aa7
commit
74bc12749c
2 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package content.region.kandarin.seers.quest.elementalworkshop
|
||||
|
||||
import content.global.handlers.iface.BookInterface
|
||||
import core.api.storeBookInHouse
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.game.node.entity.player.Player
|
||||
|
|
@ -25,6 +26,7 @@ class SlashedBookHandler : InteractionListener {
|
|||
override fun defineListeners() {
|
||||
on(Items.SLASHED_BOOK_9715, IntType.ITEM, "read") { player, _ ->
|
||||
BookInterface.openBook(player, BookInterface.FANCY_BOOK_3_49, ::display)
|
||||
storeBookInHouse(player, Items.BATTERED_BOOK_2886)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class BeatenBook : InteractionListener {
|
|||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
on(Items.BEATEN_BOOK_9717, IntType.ITEM, "read") { player, _ ->
|
||||
on(Items.BEATEN_BOOK_9717, IntType.ITEM, "read") { player, node ->
|
||||
// the first time you open the book, the scroll will drop.
|
||||
if (getQuestStage(player, Quests.ELEMENTAL_WORKSHOP_II) == 1) {
|
||||
addItemOrDrop(player, Items.SCROLL_9721)
|
||||
|
|
@ -215,9 +215,9 @@ class BeatenBook : InteractionListener {
|
|||
|
||||
setQuestStage(player, Quests.ELEMENTAL_WORKSHOP_II, 2)
|
||||
setVarbit(player, EW2StageVarbit, 2, true)
|
||||
// storeBookInHouse(player, node) // todo uncomment this when poh costume room is in
|
||||
storeBookInHouse(player, node)
|
||||
} else {
|
||||
// storeBookInHouse(player, node) // todo uncomment this when poh costume room is in
|
||||
storeBookInHouse(player, node)
|
||||
BookInterface.openBook(player, BookInterface.FANCY_BOOK_3_49, ::display)
|
||||
}
|
||||
return@on true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue