Added Hazelmere's Scroll

This commit is contained in:
szumaster
2023-05-07 02:43:29 +00:00
committed by Ryan
parent 2fc98ad0df
commit ce7f249880
2 changed files with 27 additions and 1 deletions
@@ -25,6 +25,14 @@ class GrandTreeListeners: InteractionListener {
Location(2473,9897,0),
)
val hazelmerescroll = Items.HAZELMERES_SCROLL_786
val hazelmerescrollText = arrayOf(
"<col=FFF900>Es lemanto meso pro eis prit ta Cinqo mond.</col>",
"<col=FFF900>Mi lovos ta lemanto Daconia arpos</col>",
"<col=FFF900>et Daconia arpos eto meriz ta priw!</col>",
)
fun unlockTUZODoor(player: Player) {
if (getAttribute(player, "/save:grandtree:twig1", false) &&
getAttribute(player, "/save:grandtree:twig2", false) &&
@@ -75,6 +83,11 @@ class GrandTreeListeners: InteractionListener {
openDialogue(player, AnitaDialogue(), npc)
return@on true
}
on(hazelmerescroll, IntType.ITEM, "read") { player, node ->
hazelmereScroll(player, node.asItem())
return@on true
}
on(2444, IntType.SCENERY, "open"){ player, node ->
if(node.location == Location(2487,3464,2) && !isQuestComplete(player, questName)){
if(getAttribute(player, "/save:grandtree:twig1", false) &&
@@ -178,5 +191,14 @@ class GrandTreeListeners: InteractionListener {
return@on true;
}
}
private fun hazelmereScroll(player: Player, item: Item) {
val id = item.id
openInterface(player, 222).also {
when (id) {
hazelmerescroll -> setInterfaceText(player, hazelmerescrollText.joinToString("<br>"), 222, 6)
}
}
}
}
@@ -90,6 +90,10 @@ class TheGrandTree: Quest("The Grand Tree", 71, 70, 5, 150, 0, 1, 160) {
if(stage >= 70){
line(player, "Find a use for the strange twigs from King Narnode Shareen.", line++, stage > 70)
}
if(stage == 100){
line++
line(player,"<col=FF0000>QUEST COMPLETE!</col>", line)
}
}
companion object {