Everything now has a default handler
Tower guard's options are handled
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class TowerGuardDialogue(player: Player? = null) : DialoguePlugin(player) {
|
||||
}
|
||||
|
||||
override fun getIds(): IntArray {
|
||||
return intArrayOf(NPCs.GUARD_5489)
|
||||
return intArrayOf(NPCs.GUARD_5489, NPCs.GUARD_5490)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class JatizsoListeners : InteractionListener() {
|
||||
return@on true
|
||||
}
|
||||
|
||||
on(NPCs.GUARD_5489, NPC, "watch-shouting"){player, node ->
|
||||
on(GUARDS, NPC, "watch-shouting"){player, node ->
|
||||
val local = ContentAPI.findLocalNPC(player, node.id)
|
||||
ContentAPI.lock(player, 200)
|
||||
ContentAPI.face(local!!, Location.create(2371, 3801, 2))
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package rs09.game.interaction.region.rellekka
|
||||
|
||||
import api.ContentAPI
|
||||
import core.game.content.dialogue.FacialExpression
|
||||
import core.game.node.Node
|
||||
import core.game.node.entity.npc.NPC
|
||||
import core.game.node.entity.player.Player
|
||||
@@ -12,7 +13,15 @@ import org.rs09.consts.NPCs
|
||||
import rs09.game.interaction.InteractionListener
|
||||
|
||||
class NeitiznotListeners : InteractionListener() {
|
||||
val STUMP = 21305
|
||||
|
||||
override fun defineListeners() {
|
||||
|
||||
on(STUMP, SCENERY, "cut-wood"){player, _ ->
|
||||
ContentAPI.sendPlayerDialogue(player, "I should probably leave this alone.", FacialExpression.HALF_THINKING)
|
||||
return@on true
|
||||
}
|
||||
|
||||
val zone = object : MapZone("Yakzone", true){
|
||||
override fun handleUseWith(player: Player, used: Item?, with: Node?): Boolean {
|
||||
if(with is NPC && with.id == NPCs.YAK_5529){
|
||||
|
||||
Reference in New Issue
Block a user