Added Hazelmere's Scroll
This commit is contained in:
@@ -25,6 +25,14 @@ class GrandTreeListeners: InteractionListener {
|
|||||||
Location(2473,9897,0),
|
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) {
|
fun unlockTUZODoor(player: Player) {
|
||||||
if (getAttribute(player, "/save:grandtree:twig1", false) &&
|
if (getAttribute(player, "/save:grandtree:twig1", false) &&
|
||||||
getAttribute(player, "/save:grandtree:twig2", false) &&
|
getAttribute(player, "/save:grandtree:twig2", false) &&
|
||||||
@@ -75,6 +83,11 @@ class GrandTreeListeners: InteractionListener {
|
|||||||
openDialogue(player, AnitaDialogue(), npc)
|
openDialogue(player, AnitaDialogue(), npc)
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
|
on(hazelmerescroll, IntType.ITEM, "read") { player, node ->
|
||||||
|
hazelmereScroll(player, node.asItem())
|
||||||
|
return@on true
|
||||||
|
}
|
||||||
|
|
||||||
on(2444, IntType.SCENERY, "open"){ player, node ->
|
on(2444, IntType.SCENERY, "open"){ player, node ->
|
||||||
if(node.location == Location(2487,3464,2) && !isQuestComplete(player, questName)){
|
if(node.location == Location(2487,3464,2) && !isQuestComplete(player, questName)){
|
||||||
if(getAttribute(player, "/save:grandtree:twig1", false) &&
|
if(getAttribute(player, "/save:grandtree:twig1", false) &&
|
||||||
@@ -178,5 +191,14 @@ class GrandTreeListeners: InteractionListener {
|
|||||||
return@on true;
|
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){
|
if(stage >= 70){
|
||||||
line(player, "Find a use for the strange twigs from King Narnode Shareen.", line++, 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 {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user