Implemented "Enter the A Soul's Bane Rift" achievement from the Varrock medium diary when entering the rift
This commit is contained in:
@@ -5,6 +5,7 @@ import core.game.interaction.InteractionListener
|
||||
import core.game.world.map.Location
|
||||
import org.rs09.consts.Scenery
|
||||
import content.data.Quests
|
||||
import core.game.node.entity.player.link.diary.DiaryType
|
||||
|
||||
// Temporary access since the monsters in there drop nothing.
|
||||
class ASoulsBaneListener : InteractionListener {
|
||||
@@ -16,6 +17,7 @@ class ASoulsBaneListener : InteractionListener {
|
||||
on(RIFT_IDS, SCENERY, "enter") { player, _ ->
|
||||
if (hasRequirement(player, Quests.A_SOULS_BANE)) {
|
||||
teleport(player, Location(3297, 9824, 0))
|
||||
player.achievementDiaryManager.finishTask(player, DiaryType.VARROCK, 1, 9)
|
||||
}
|
||||
return@on true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user