From c885ebb7e8d376a3e6151bfd617eb02d2b645afa Mon Sep 17 00:00:00 2001 From: szumaster Date: Sun, 7 May 2023 03:44:20 +0000 Subject: [PATCH] Removed Dorgeshuun crossbow requirements --- .../quest/thelosttribe/DorgCbowEquipPlugin.kt | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 Server/src/main/content/region/misthalin/dorgeshuun/quest/thelosttribe/DorgCbowEquipPlugin.kt diff --git a/Server/src/main/content/region/misthalin/dorgeshuun/quest/thelosttribe/DorgCbowEquipPlugin.kt b/Server/src/main/content/region/misthalin/dorgeshuun/quest/thelosttribe/DorgCbowEquipPlugin.kt deleted file mode 100644 index daa187a4b..000000000 --- a/Server/src/main/content/region/misthalin/dorgeshuun/quest/thelosttribe/DorgCbowEquipPlugin.kt +++ /dev/null @@ -1,32 +0,0 @@ -package content.region.misthalin.dorgeshuun.quest.thelosttribe - -import core.cache.def.impl.ItemDefinition -import core.game.node.entity.player.Player -import core.game.node.item.Item -import core.plugin.Initializable -import core.plugin.Plugin -import org.rs09.consts.Items - -@Initializable -/** - * Prevents players from equipping the dorg cbow without completing lost tribe - * @author Ceikry - */ -class DorgCbowEquipPlugin : Plugin{ - override fun newInstance(arg: Item?): Plugin { - ItemDefinition.forId(Items.DORGESHUUN_CBOW_8880).handlers["equipment"] = this - return this - } - - override fun fireEvent(identifier: String?, vararg args: Any?): Any { - val player = args[0] as Player - if(identifier == "unequip") return true - if(!player.questRepository.isComplete("Lost Tribe")){ - player.dialogueInterpreter.sendDialogue("You must complete Lost Tribe to use this.") - return false - } else { - return true - } - } - -} \ No newline at end of file