Removed Dorgeshuun crossbow requirements
This commit is contained in:
-32
@@ -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<Item>{
|
|
||||||
override fun newInstance(arg: Item?): Plugin<Item> {
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user