From c9f854458f44993b53bde86f52491d4124269aa8 Mon Sep 17 00:00:00 2001 From: ceikry Date: Thu, 1 Jul 2021 18:41:52 -0500 Subject: [PATCH] Added the hat meme --- .../interaction/item/withobject/HatStand.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Server/src/main/kotlin/rs09/game/interaction/item/withobject/HatStand.kt diff --git a/Server/src/main/kotlin/rs09/game/interaction/item/withobject/HatStand.kt b/Server/src/main/kotlin/rs09/game/interaction/item/withobject/HatStand.kt new file mode 100644 index 000000000..72603cd32 --- /dev/null +++ b/Server/src/main/kotlin/rs09/game/interaction/item/withobject/HatStand.kt @@ -0,0 +1,20 @@ +package rs09.game.interaction.item.withobject + +import api.ContentAPI +import api.EquipmentSlot +import core.cache.def.impl.ItemDefinition +import rs09.game.interaction.InteractionListener +import rs09.game.system.SystemLogger + +class HatStand : InteractionListener() { + + val hats = ItemDefinition.getDefinitions().values.filter { it.getConfiguration("equipment_slot",0) == EquipmentSlot.HAT.ordinal }.map { it.id }.toIntArray() + val hat_stand = 374 + + override fun defineListeners() { + onUseWith(SCENERY, hats, hat_stand){player, used, with -> + ContentAPI.sendDialogue(player, "It'd probably fall off if I tried to do that.") + return@onUseWith true + } + } +} \ No newline at end of file