Merge branch 'neit-audit-default-interactions' into 'master'
Everything now has a default handler See merge request 2009scape/2009scape!138
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class TowerGuardDialogue(player: Player? = null) : DialoguePlugin(player) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getIds(): IntArray {
|
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
|
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)
|
val local = ContentAPI.findLocalNPC(player, node.id)
|
||||||
ContentAPI.lock(player, 200)
|
ContentAPI.lock(player, 200)
|
||||||
ContentAPI.face(local!!, Location.create(2371, 3801, 2))
|
ContentAPI.face(local!!, Location.create(2371, 3801, 2))
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package rs09.game.interaction.region.rellekka
|
package rs09.game.interaction.region.rellekka
|
||||||
|
|
||||||
import api.ContentAPI
|
import api.ContentAPI
|
||||||
|
import core.game.content.dialogue.FacialExpression
|
||||||
import core.game.node.Node
|
import core.game.node.Node
|
||||||
import core.game.node.entity.npc.NPC
|
import core.game.node.entity.npc.NPC
|
||||||
import core.game.node.entity.player.Player
|
import core.game.node.entity.player.Player
|
||||||
@@ -12,7 +13,15 @@ import org.rs09.consts.NPCs
|
|||||||
import rs09.game.interaction.InteractionListener
|
import rs09.game.interaction.InteractionListener
|
||||||
|
|
||||||
class NeitiznotListeners : InteractionListener() {
|
class NeitiznotListeners : InteractionListener() {
|
||||||
|
val STUMP = 21305
|
||||||
|
|
||||||
override fun defineListeners() {
|
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){
|
val zone = object : MapZone("Yakzone", true){
|
||||||
override fun handleUseWith(player: Player, used: Item?, with: Node?): Boolean {
|
override fun handleUseWith(player: Player, used: Item?, with: Node?): Boolean {
|
||||||
if(with is NPC && with.id == NPCs.YAK_5529){
|
if(with is NPC && with.id == NPCs.YAK_5529){
|
||||||
|
|||||||
Reference in New Issue
Block a user