forked from 2009Scape/Server
Merge 2009scape updates #19
1 changed files with 7 additions and 8 deletions
|
|
@ -20,6 +20,7 @@ import core.game.diary.DiaryEventHookBase
|
|||
import core.game.diary.DiaryLevel
|
||||
import core.game.event.*
|
||||
import content.data.Quests
|
||||
import core.game.node.entity.player.link.SpellBookManager
|
||||
|
||||
class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
||||
|
||||
|
|
@ -401,8 +402,7 @@ class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
|||
}
|
||||
|
||||
override fun onSpellCast(player: Player, event: SpellCastEvent) {
|
||||
when (event.spellId) {
|
||||
Modern.LUMBRIDGE_TELEPORT -> {
|
||||
if (event.spellBook == SpellBookManager.SpellBook.MODERN && event.spellId == Modern.LUMBRIDGE_TELEPORT) {
|
||||
finishTask(
|
||||
player,
|
||||
DiaryLevel.MEDIUM,
|
||||
|
|
@ -410,7 +410,6 @@ class LumbridgeAchivementDiary : DiaryEventHookBase(DiaryType.LUMBRIDGE) {
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onJobAssigned(player: Player, event: JobAssignmentEvent) {
|
||||
when (player.viewport.region.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue