Catching a horned graahk now finishes the appropriate Karamja task

Checking the health of a fruit tree in Brimhaven now finishes the appropriate Karamja task
This commit is contained in:
Syndromeramo 2025-10-07 13:19:48 +00:00 committed by Ryan
parent 18f274be8e
commit c135877680
3 changed files with 9 additions and 3 deletions

View file

@ -5,6 +5,7 @@ import core.cache.def.impl.SceneryDefinition
import core.game.interaction.OptionHandler import core.game.interaction.OptionHandler
import core.game.node.Node import core.game.node.Node
import core.game.node.entity.player.Player 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.entity.skill.Skills
import core.plugin.Initializable import core.plugin.Initializable
import core.plugin.Plugin import core.plugin.Plugin
@ -42,6 +43,9 @@ class HealthChecker : OptionHandler() {
} }
PatchType.FRUIT_TREE_PATCH -> { PatchType.FRUIT_TREE_PATCH -> {
patch.setCurrentState(patch.getCurrentState() - 14) patch.setCurrentState(patch.getCurrentState() - 14)
if (fPatch == FarmingPatch.BRIMHAVEN_FRUIT_TREE) {
player.achievementDiaryManager.finishTask(player, DiaryType.KARAMJA, 1, 12)
}
sendMessage(player, "You examine the tree for signs of disease and find that it is in perfect health.") sendMessage(player, "You examine the tree for signs of disease and find that it is in perfect health.")
} }
PatchType.SPIRIT_TREE_PATCH -> { PatchType.SPIRIT_TREE_PATCH -> {

View file

@ -21,6 +21,7 @@ import org.rs09.consts.Items
import org.rs09.consts.NPCs import org.rs09.consts.NPCs
import core.game.interaction.InteractionListener import core.game.interaction.InteractionListener
import core.game.interaction.IntType import core.game.interaction.IntType
import core.game.node.entity.player.link.diary.DiaryType
import core.game.world.GameWorld import core.game.world.GameWorld
import org.rs09.consts.Sounds import org.rs09.consts.Sounds
@ -262,6 +263,7 @@ class PitfallListeners : InteractionListener {
} }
on(GRAAHK_PIT, IntType.SCENERY, "dismantle") { player, node -> on(GRAAHK_PIT, IntType.SCENERY, "dismantle") { player, node ->
lootCorpse(player, node as Scenery, 240.0, Items.GRAAHK_FUR_10099, Items.TATTY_GRAAHK_FUR_10097) lootCorpse(player, node as Scenery, 240.0, Items.GRAAHK_FUR_10099, Items.TATTY_GRAAHK_FUR_10097)
player.achievementDiaryManager.finishTask(player, DiaryType.KARAMJA, 1, 13)
sendMessage(player, "You've caught a horned graahk!") sendMessage(player, "You've caught a horned graahk!")
return@on true return@on true
} }

View file

@ -34,14 +34,14 @@ public enum DiaryType {
"Use Vigroy and Hajedy's cart service", "Use Vigroy and Hajedy's cart service",
"Earn 100% favour in the village of Tai Bwo Wannai Cleanup", // todo tai bwo wannai cleanup "Earn 100% favour in the village of Tai Bwo Wannai Cleanup", // todo tai bwo wannai cleanup
"Cook a spider on stick", // todo tai bwo wannai cleanup "Cook a spider on stick", // todo tai bwo wannai cleanup
"Charter the Lady of the Waves from Cairn Isle to Port Khazard", // todo verify "Charter the Lady of the Waves from Cairn Isle to Port Khazard",
"Cut a log from a teak tree", "Cut a log from a teak tree",
"Cut a log from a mahogany tree", "Cut a log from a mahogany tree",
"Catch a karambwan", // todo need Tai Bwo Wannai Trio "Catch a karambwan", // todo need Tai Bwo Wannai Trio
"Exchange gems, a gout tuber, trading sticks for a machete", // todo "Exchange gems, a gout tuber, trading sticks for a machete", // todo
"Use the gnome glider to travel to Karamja", "Use the gnome glider to travel to Karamja",
"Grow a healthy fruit tree in the patch near Brimhaven", // todo verify "Grow a healthy fruit tree in the patch near Brimhaven",
"Trap a Horned Graahk", // todo need to implement pitfall trapping "Trap a Horned Graahk",
"Chop the vines to gain deeper access to Brimhaven Dungeon", "Chop the vines to gain deeper access to Brimhaven Dungeon",
"Cross the lava using the stepping stones within Brimhaven<br><br>Dungeon", "Cross the lava using the stepping stones within Brimhaven<br><br>Dungeon",
"Climb the stairs within Brimhaven Dungeon", "Climb the stairs within Brimhaven Dungeon",