Locked moss giant pipe achievement behind requirements

This commit is contained in:
szumaster
2023-06-25 14:01:58 +00:00
committed by Ryan
parent 89cbbe2765
commit a09a35ed5c
2 changed files with 9 additions and 5 deletions
@@ -57,11 +57,8 @@ class PipeShortcut : AgilityShortcut {
/** /**
* Run for the main fire event * Run for the main fire event
* Use this for unlocking achievement diaries + any other unlocks
*/ */
override fun run(player: Player, obj: Scenery, option: String, failed: Boolean) { override fun run(player: Player, obj: Scenery, option: String, failed: Boolean) {
if (obj.id == 29370)
player.achievementDiaryManager.finishTask(player, DiaryType.VARROCK, 2, 1)
/** /**
* Pulse that starts the object interaction when clicked on one of these shortcuts * Pulse that starts the object interaction when clicked on one of these shortcuts
@@ -185,6 +185,13 @@ class VarrockAchivementDiary : DiaryEventHookBase(DiaryType.VARROCK) {
MediumTasks.USE_GE_UNDER_WALL_SHORTCUT MediumTasks.USE_GE_UNDER_WALL_SHORTCUT
) )
} }
12698 -> if (event.target.id == 29370 && player.skills.getLevel(Skills.AGILITY, true) >= 51) {
finishTask(
player,
DiaryLevel.HARD,
HardTasks.USE_MOSS_GIANT_PIPE_SHORTCUT
)
}
} }
if (event.option == "pickpocket" && (event.target.id == NPCs.GUARD_5920 && inBorders(player, VARROCK_PALACE))) { if (event.option == "pickpocket" && (event.target.id == NPCs.GUARD_5920 && inBorders(player, VARROCK_PALACE))) {