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 core.game.world.map.Location
|
||||||
import org.rs09.consts.Scenery
|
import org.rs09.consts.Scenery
|
||||||
import content.data.Quests
|
import content.data.Quests
|
||||||
|
import core.game.node.entity.player.link.diary.DiaryType
|
||||||
|
|
||||||
// Temporary access since the monsters in there drop nothing.
|
// Temporary access since the monsters in there drop nothing.
|
||||||
class ASoulsBaneListener : InteractionListener {
|
class ASoulsBaneListener : InteractionListener {
|
||||||
@@ -16,6 +17,7 @@ class ASoulsBaneListener : InteractionListener {
|
|||||||
on(RIFT_IDS, SCENERY, "enter") { player, _ ->
|
on(RIFT_IDS, SCENERY, "enter") { player, _ ->
|
||||||
if (hasRequirement(player, Quests.A_SOULS_BANE)) {
|
if (hasRequirement(player, Quests.A_SOULS_BANE)) {
|
||||||
teleport(player, Location(3297, 9824, 0))
|
teleport(player, Location(3297, 9824, 0))
|
||||||
|
player.achievementDiaryManager.finishTask(player, DiaryType.VARROCK, 1, 9)
|
||||||
}
|
}
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user