mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Added missing scrolls
King's message Iorwerth's message Crumpled scroll Tattered scroll Dusty scroll
This commit is contained in:
parent
fc9f23385f
commit
d492500812
5 changed files with 149 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
package content.region.kandarin.ardougne.dialogue
|
||||
|
||||
import core.api.openInterface
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import org.rs09.consts.Components
|
||||
import org.rs09.consts.Items
|
||||
|
||||
class IorwerthsMessageScroll : InteractionListener {
|
||||
// Receive from the Lord Iorwerth after killing King Tyras in Regicide quest.
|
||||
override fun defineListeners() {
|
||||
val kingsmessage = Components.KINGS_LETTER_V2_463
|
||||
val iorwerthsscroll = Items.IORWERTHS_MESSAGE_3207
|
||||
on(iorwerthsscroll, IntType.ITEM, "read") { player, _ ->
|
||||
openInterface(player, kingsmessage)
|
||||
player.packetDispatch.sendString("Your Majesty King Lathas<br>Your man did well. The path is now open for the dark lord to enter this realm. You will yet live to see Camelot crushed under foot.", kingsmessage, 1)
|
||||
player.packetDispatch.sendString("Warmaster Iorwerth", kingsmessage, 2)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package content.region.kandarin.ardougne.dialogue
|
||||
|
||||
import core.api.openInterface
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import org.rs09.consts.Components
|
||||
import org.rs09.consts.Items
|
||||
|
||||
class KingsMessageScroll : InteractionListener {
|
||||
// Receive from the King's messenger some time after completing the Underground Pass quest.
|
||||
override fun defineListeners() {
|
||||
val kingsmessage = Components.KINGS_LETTER_V2_463
|
||||
val kingsscroll = Items.KINGS_MESSAGE_3206
|
||||
on(kingsscroll, IntType.ITEM, "read") { player, _ ->
|
||||
openInterface(player, kingsmessage)
|
||||
player.packetDispatch.sendString("Squire ${player.username}<br>You are needed to serve the Kingdom of Kandarin. At last our magi have reopened the well of voyage. We must discuss your next commission.", kingsmessage, 1)
|
||||
player.packetDispatch.sendString("<col=8A0808>His Majesty King Lathas</col>", kingsmessage, 2)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
package content.region.karamja.shilo.dialogue
|
||||
|
||||
import core.api.openInterface
|
||||
import core.api.setInterfaceText
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import org.rs09.consts.Items
|
||||
|
||||
class CrumpledScroll : InteractionListener {
|
||||
// Receive during the Shilo Village quest.
|
||||
companion object {
|
||||
private const val MESSAGE_SCROLL = 222
|
||||
val CRUMPLED_SCROLL_TEXT = arrayOf(
|
||||
"Rashiliyia's rage went unchecked. She killed",
|
||||
"",
|
||||
"without mercy for revenge of her son's life. Like",
|
||||
"",
|
||||
"a spectre through the night she entered houses",
|
||||
"",
|
||||
"and one by one quietly strangled life from the",
|
||||
"",
|
||||
"occupants. It is said that only a handful survived,",
|
||||
"",
|
||||
"protected by the necklace wards to keep the Witch",
|
||||
"",
|
||||
"Queen at bay."
|
||||
)
|
||||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
on(Items.CRUMPLED_SCROLL_608, IntType.ITEM, "read") { player, _ ->
|
||||
openInterface(player, MESSAGE_SCROLL)
|
||||
setInterfaceText(player, CRUMPLED_SCROLL_TEXT.joinToString("<br>"), MESSAGE_SCROLL, 3)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package content.region.karamja.shilo.dialogue
|
||||
|
||||
import content.global.handlers.iface.ScrollInterface
|
||||
import content.global.handlers.iface.ScrollLine
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import org.rs09.consts.Components
|
||||
import org.rs09.consts.Items
|
||||
|
||||
class TatteredScroll : InteractionListener {
|
||||
// Receive during the Shilo Village quest.
|
||||
companion object {
|
||||
private const val SCROLL_INTERFACE = Components.MESSAGESCROLL_220
|
||||
val TATTERED_SCROLL_TEXT = arrayOf(
|
||||
ScrollLine("Bervirius, son of King Danthalas, was killed in battle. His",3),
|
||||
ScrollLine("devout Mother Rashiliyia was so heartbroken that she swore",4),
|
||||
ScrollLine("fealty to Zamorak if he would return her son to her. Bervirius",5),
|
||||
ScrollLine("returned as an undead creature and terrorized the King and",6),
|
||||
ScrollLine("Queen. Many guards died fighting the Undead Bervirius.",7),
|
||||
ScrollLine("Eventually the undead Bervirius was set on fire and soon only",8),
|
||||
ScrollLine("the bones remained.His remains were taken far to the South,",9),
|
||||
ScrollLine("and then towards the setting sun to a tomb that is surrounded",10),
|
||||
ScrollLine("by and level with the sea. The only remedy for containing the",11),
|
||||
ScrollLine("spirits of witches and undead.",12),
|
||||
)
|
||||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
on(Items.TATTERED_SCROLL_607, IntType.ITEM, "read") { player, _ ->
|
||||
ScrollInterface.scrollSetup(player, SCROLL_INTERFACE, TATTERED_SCROLL_TEXT)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package content.region.morytania.burghderott.dialogue
|
||||
|
||||
import core.api.openDialogue
|
||||
import core.game.dialogue.DialogueFile
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.tools.END_DIALOGUE
|
||||
import org.rs09.consts.Items
|
||||
|
||||
|
||||
class DustyScroll : InteractionListener {
|
||||
// Receive during the In Aid of the Myreque quest.
|
||||
companion object {
|
||||
const val DUSTY_SCROLL = Items.DUSTY_SCROLL_7629
|
||||
class DustyScrollContent : DialogueFile() {
|
||||
override fun handle(componentID: Int, buttonID: Int) {
|
||||
when (stage) {
|
||||
0 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "", "You take the scroll and gingerly unravel it. It seems", "very old and the language is not easy to make out.", "You begin to see that it looks like a letter of some kind.").also { stage++ }
|
||||
1 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "My dearest Lantania,", "I know not what these dark hours bring. I will come for", "thee as soon as I am able, I care no longer for the", "possessions which tie me to this wasted land and the").also { stage++ }
|
||||
2 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "living which I earned from it.", "Prepare for leaving soon, I shall be there with haste,", "and with Saradomin's blessings we shall make our way out of Hallowvale westwards over the Salve towards").also { stage++ }
|
||||
3 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "Misthalin and hopefully into the arms of our brethren.", "I also offer up a prayer to Saradomin that he may help", "Queen Efaritay in her hour of need and somehow fight", "these beasts back to the dead place from where they").also { stage++ }
|
||||
4 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "came.", "I cry at the plight of poor Ascertes and offer up a", "prayer for their children in this darkest of hours.", "So make ready your plans and so soon as you see me,").also { stage++ }
|
||||
5 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "so we shall set for Misthalin, bring only what you need.", "We shall need all good fortune and speed in this, our", "last chance at a life together.", "Yours, most faithfully,").also { stage++ }
|
||||
6 -> player!!.dialogueInterpreter.sendItemMessage(DUSTY_SCROLL, "", "Sialathin").also { stage = END_DIALOGUE }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
on(DUSTY_SCROLL, IntType.ITEM, "read"){ player, _ ->
|
||||
openDialogue(player, DustyScrollContent())
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue