forked from 2009Scape/Server
Satchels can now be emptied by using on a banker npc
This is to address some banks (like zanaris) not having a bank booth
This commit is contained in:
parent
54055e36d0
commit
415aa512fb
1 changed files with 9 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import core.game.component.Component
|
|||
import core.game.component.CloseEvent
|
||||
import core.game.container.access.InterfaceContainer
|
||||
import content.global.handlers.scenery.BankBoothListener
|
||||
import content.global.handlers.npc.BankerNPC
|
||||
|
||||
/**
|
||||
* Listener for satchels from Creature Creation, repurposed for Snowscape
|
||||
|
|
@ -175,5 +176,13 @@ class SnowscapeSatchelListener : InteractionListener {
|
|||
return@onUseWith true
|
||||
}
|
||||
|
||||
//6362 is the Ourania Altar banker.
|
||||
val bankers = intArrayOf(*BankerNPC.NPC_IDS, *BankerNPC.SPECIAL_NPC_IDS, 6362)
|
||||
|
||||
onUseWith(IntType.NPC, satchelIds, *bankers) { player, used, with ->
|
||||
emptySatchel(player, used.asItem().getId(), true)
|
||||
return@onUseWith true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue