Falador medium achievement diary task for lighting bullseye lantern can now be obtained
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package content.global.skill.crafting.lightsources
|
||||
|
||||
import core.game.container.Container
|
||||
import core.game.event.LitLightSourceEvent
|
||||
import core.game.interaction.NodeUsageEvent
|
||||
import core.game.interaction.UseWithHandler
|
||||
import core.game.node.entity.player.Player
|
||||
@@ -85,6 +86,7 @@ class LightSourceLighter : UseWithHandler(590,36,38){
|
||||
if(playerLevel < requiredLevel) return false
|
||||
|
||||
player.inventory.replace(item,Item(lightSource.litID))
|
||||
player.dispatch(LitLightSourceEvent(lightSource.litID))
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import org.rs09.consts.NPCs
|
||||
import org.rs09.consts.Scenery
|
||||
import content.region.asgarnia.falador.dialogue.RisingSunInnBartenderDialogue
|
||||
import content.global.handlers.iface.FairyRing
|
||||
import content.global.skill.crafting.lightsources.LightSources
|
||||
import core.game.diary.AreaDiaryTask
|
||||
import core.game.diary.DiaryEventHookBase
|
||||
import core.game.diary.DiaryLevel
|
||||
@@ -27,6 +28,7 @@ class FaladorAchievementDiary : DiaryEventHookBase(DiaryType.FALADOR) {
|
||||
private val WAYNES_CHAINS_AREA = ZoneBorders(2969, 3310, 2975, 3314)
|
||||
private val SARAHS_FARMING_SHOP_AREA = ZoneBorders(3021, 3285, 3040, 3296)
|
||||
private val FALADOR_GENERAL_AREA = ZoneBorders(2934, 3399, 3399, 3307)
|
||||
private val CHEMIST_AREA = ZoneBorders(2929, 3213, 2936, 3207)
|
||||
|
||||
|
||||
private val PROSELYTE_FULL_ARMOR_MALE = intArrayOf(
|
||||
@@ -248,4 +250,16 @@ class FaladorAchievementDiary : DiaryEventHookBase(DiaryType.FALADOR) {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onLightSourceLit(player: Player, event: LitLightSourceEvent) {
|
||||
when {
|
||||
inBorders(player, CHEMIST_AREA) && (event.litLightSourceId == LightSources.BULLSEYE_LANTERN.litID) -> {
|
||||
finishTask(
|
||||
player,
|
||||
DiaryLevel.MEDIUM,
|
||||
MediumTasks.CHEMISTS_LIGHT_BULLSEYE_LANTERN
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user