Authentic meme
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package rs09.game.interaction.item.withobject
|
||||
|
||||
import api.ContentAPI
|
||||
import core.game.node.entity.skill.gather.SkillingTool
|
||||
import core.game.node.entity.skill.gather.woodcutting.WoodcuttingNode
|
||||
import core.game.node.entity.skill.gather.woodcutting.WoodcuttingSkillPulse
|
||||
import org.rs09.consts.Items
|
||||
import rs09.ServerConstants
|
||||
import rs09.game.interaction.InteractionListener
|
||||
|
||||
class AxeOnTree : InteractionListener(){
|
||||
val axes = intArrayOf(Items.BRONZE_AXE_1351, Items.MITHRIL_AXE_1355, Items.IRON_AXE_1349, Items.BLACK_AXE_1361, Items.STEEL_AXE_1353, Items.ADAMANT_AXE_1357, Items.RUNE_AXE_1359, Items.DRAGON_AXE_6739, Items.INFERNO_ADZE_13661)
|
||||
val trees = WoodcuttingNode.values().map { it.id }.toIntArray()
|
||||
|
||||
override fun defineListeners() {
|
||||
onUseWith(SCENERY, axes, *trees){player, _, with ->
|
||||
ContentAPI.submitIndividualPulse(player, WoodcuttingSkillPulse(player, with.asScenery()))
|
||||
return@onUseWith true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user