Hooked up Varrock achievement diary

This commit is contained in:
psyopcutie 2026-05-22 23:40:56 +02:00
parent 2490251446
commit 418c326ec1
2 changed files with 13 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package content.global.travel.balloon
import content.data.Quests
import content.region.misc.quest.enlightenedjourney.dialogue.AugusteDialogueFile
import content.region.misc.quest.enlightenedjourney.quest.EnlightenedJourney
import content.region.misthalin.varrock.diary.VarrockAchivementDiary.Companion.MediumTasks.HOTAIR_BALLOON_TRAVEL_SOMEWHERE
import core.api.amountInInventory
import core.api.animateInterface
import core.api.animationDuration
@ -31,6 +32,7 @@ import core.game.interaction.InteractionListener
import core.game.interaction.InterfaceListener
import core.game.interaction.QueueStrength
import core.game.node.entity.player.Player
import core.game.node.entity.player.link.diary.DiaryType
import core.game.node.entity.skill.Skills
import core.game.node.item.Item
import core.game.world.map.Location
@ -50,6 +52,8 @@ private const val ASSISTANT_LE_SMITH_WRAPPER = 5064
private const val ASSISTANT_BROCK_WRAPPER = 5065
private const val ASSISTANT_SERF_WRAPPER = 5066
private const val VARROCK_MEDIUM_DIARY = 1
private val BALLOON_VISIBLE_NPCS = intArrayOf(
NPCs.AUGUSTE_5049,
NPCs.ASSISTANT_STAN_5057,
@ -163,6 +167,14 @@ class BalloonTravelInterface : InterfaceListener, InteractionListener {
queueScript(player, duration, QueueStrength.SOFT) {
closeInterface(player)
teleport(player, destination.destination)
if (start == BalloonTravelLocation.VARROCK) {
player.achievementDiaryManager.finishTask(
player,
DiaryType.VARROCK,
VARROCK_MEDIUM_DIARY,
HOTAIR_BALLOON_TRAVEL_SOMEWHERE
)
}
unlock(player)
return@queueScript stopExecuting(player)
}

View file

@ -125,7 +125,7 @@ public enum DiaryType {
"Get a Slayer task from Vannaka",
"Buy twenty mahogany planks from the Sawmill Operator in one<br><br>transaction",
"Pick a fruit from the White Tree", // TODO Garden of Tranquility
"Use the hot air balloon to travel from Varrock to somewhere<br><br>else", // TODO Enlightened Journey
"Use the hot air balloon to travel from Varrock to somewhere<br><br>else",
"Get a cat training medal from Gertrude", // TODO need rat catchers and cats fixed
"Dial to the fairy ring west of Varrock",
"Browse through Oziach's Armour Shop"