RuneHive-Game
Loading...
Searching...
No Matches
NpcExamineEvent.kt
Go to the documentation of this file.
1package org.jire.runehiveps.event.npc
2
3import com.runehive.game.world.entity.mob.player.Player
4import com.runehive.net.packet.out.SendMessage
5import org.jire.runehiveps.defs.MonsterDefLoader
6
7/**
8 * @author Jire
9 */
10class NpcExamineEvent(val npcId: Int) : NpcEvent {
11
12 override fun handle(player: Player) {
13 val monsterDef = MonsterDefLoader.map[npcId] ?: return
14 val examine = monsterDef.examine
15 if ("null" != examine) {
16 player.send(SendMessage(examine))
17 }
18 }
19
20}