Merge 2009scape updates #19

Open
randy wants to merge 204 commits from 2009Scape:master into upstream
Showing only changes of commit c83ade9d79 - Show all commits

View file

@ -96,9 +96,15 @@ class PlagueCityListeners : InteractionListener {
addItem(player, Items.ASHES_592)
}
else{
sendItemDialogue(player, Items.A_MAGIC_SCROLL_1505, "You memorise what is written on the scroll.")
sendDialogue(player, "You can now cast the Ardougne Teleport spell provided you have the required runes and magic level.")
setAttribute(player, ARDOUGNE_TELE_ATTRIBUTE, true)
openDialogue(player, object : DialogueFile() {
override fun handle(componentID: Int, buttonID: Int) {
when (stage) {
0 -> sendItemDialogue(player, Items.A_MAGIC_SCROLL_1505, "You memorise what is written on the scroll.").also { stage++ }
1 -> sendDialogue(player, "You can now cast the Ardougne Teleport spell provided you have the required runes and magic level.").also { stage = END_DIALOGUE }
}
}
})
}
return@on true
}