From 418c326ec142a1824781ecbefde0b3eeba321edb Mon Sep 17 00:00:00 2001 From: psyopcutie Date: Fri, 22 May 2026 23:40:56 +0200 Subject: [PATCH] Hooked up Varrock achievement diary --- .../global/travel/balloon/BalloonTravelInterface.kt | 12 ++++++++++++ .../node/entity/player/link/diary/DiaryType.java | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Server/src/main/content/global/travel/balloon/BalloonTravelInterface.kt b/Server/src/main/content/global/travel/balloon/BalloonTravelInterface.kt index e909c4b18..d723ec3e0 100644 --- a/Server/src/main/content/global/travel/balloon/BalloonTravelInterface.kt +++ b/Server/src/main/content/global/travel/balloon/BalloonTravelInterface.kt @@ -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) } diff --git a/Server/src/main/core/game/node/entity/player/link/diary/DiaryType.java b/Server/src/main/core/game/node/entity/player/link/diary/DiaryType.java index dbbb06e81..ce225efe0 100644 --- a/Server/src/main/core/game/node/entity/player/link/diary/DiaryType.java +++ b/Server/src/main/core/game/node/entity/player/link/diary/DiaryType.java @@ -125,7 +125,7 @@ public enum DiaryType { "Get a Slayer task from Vannaka", "Buy twenty mahogany planks from the Sawmill Operator in one

transaction", "Pick a fruit from the White Tree", // TODO Garden of Tranquility - "Use the hot air balloon to travel from Varrock to somewhere

else", // TODO Enlightened Journey + "Use the hot air balloon to travel from Varrock to somewhere

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"