Trimmed crafting cape can now be used to enter the crafting guild
This commit is contained in:
@@ -12,23 +12,15 @@ import content.region.asgarnia.dialogue.TheDoorDialogues
|
|||||||
import core.game.interaction.InteractionListener
|
import core.game.interaction.InteractionListener
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author bushtail
|
* @author bushtail, Player Name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CraftingGuildListeners : InteractionListener {
|
class CraftingGuildListeners : InteractionListener {
|
||||||
private val GUILD_DOOR = Scenery.GUILD_DOOR_2647
|
|
||||||
private val APRON = Items.BROWN_APRON_1757
|
|
||||||
private val CAPE = Items.CRAFTING_CAPE_9780
|
|
||||||
|
|
||||||
override fun defineListeners() {
|
override fun defineListeners() {
|
||||||
on(GUILD_DOOR, IntType.SCENERY, "open") { player, door ->
|
on(Scenery.GUILD_DOOR_2647, IntType.SCENERY, "open") { player, door ->
|
||||||
if (player.location == Location.create(2933, 3289, 0)) {
|
if (player.location == Location.create(2933, 3289, 0)) {
|
||||||
if (hasLevelStat(player, Skills.CRAFTING, 40)) {
|
if (hasLevelStat(player, Skills.CRAFTING, 40)) {
|
||||||
if (inEquipment(player, APRON)) {
|
if (anyInEquipment(player, Items.BROWN_APRON_1757, Items.CRAFTING_CAPE_9780, Items.CRAFTING_CAPET_9781)) {
|
||||||
openDialogue(player, TheDoorDialogues(0))
|
|
||||||
core.game.global.action.DoorActionHandler.handleAutowalkDoor(player, door.asScenery())
|
|
||||||
return@on true
|
|
||||||
} else if (inEquipment(player, CAPE)) {
|
|
||||||
openDialogue(player, TheDoorDialogues(0))
|
openDialogue(player, TheDoorDialogues(0))
|
||||||
core.game.global.action.DoorActionHandler.handleAutowalkDoor(player, door.asScenery())
|
core.game.global.action.DoorActionHandler.handleAutowalkDoor(player, door.asScenery())
|
||||||
return@on true
|
return@on true
|
||||||
|
|||||||
Reference in New Issue
Block a user