mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 10:25:13 -06:00
Custom server name for bank deposit box and Falador bank wall notice
This commit is contained in:
parent
a6699243db
commit
eefbd64089
2 changed files with 14 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package content.global.handlers.iface.bank
|
||||
|
||||
import core.ServerConstants
|
||||
import core.api.animate
|
||||
import core.api.dumpBeastOfBurden
|
||||
import core.api.runWorldTask
|
||||
|
|
@ -65,12 +66,18 @@ class BankDepositBoxInterface : InterfaceListener {
|
|||
}
|
||||
|
||||
override fun defineInterfaceListeners() {
|
||||
onOpen(Components.BANK_DEPOSIT_BOX_11) { player, _ ->
|
||||
player.packetDispatch.sendString(
|
||||
"The Bank of ${ServerConstants.SERVER_NAME} - Deposit Box",
|
||||
Components.BANK_DEPOSIT_BOX_11,
|
||||
12
|
||||
)
|
||||
return@onOpen true
|
||||
}
|
||||
on(Components.BANK_DEPOSIT_BOX_11, ::handleDepositBoxMenu)
|
||||
on(
|
||||
Components.BANK_DEPOSIT_BOX_11,
|
||||
BUTTON_DEPOSIT_BOB
|
||||
) { player, _, _, _, _, _ ->
|
||||
dumpBeastOfBurden(player); true
|
||||
on(Components.BANK_DEPOSIT_BOX_11, BUTTON_DEPOSIT_BOB) { player, _, _, _, _, _ ->
|
||||
dumpBeastOfBurden(player)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ package content.region.asgarnia.falador.handlers
|
|||
|
||||
import content.global.handlers.iface.ScrollInterface
|
||||
import content.global.handlers.iface.ScrollLine
|
||||
import core.ServerConstants
|
||||
import core.game.interaction.InteractionListener
|
||||
import org.rs09.consts.Components
|
||||
import org.rs09.consts.Scenery
|
||||
|
|
@ -23,7 +24,7 @@ class BankNotices : InteractionListener {
|
|||
)
|
||||
|
||||
val CONTENTS_PASSWORD = arrayOf(
|
||||
ScrollLine("The Bank of RuneScape would like to remind customers that",4),
|
||||
ScrollLine("The Bank of ${ServerConstants.SERVER_NAME} would like to remind customers that",4),
|
||||
ScrollLine("they should NEVER tell ANYONE their password.",5),
|
||||
|
||||
ScrollLine("If someone asks you to say your password, please report",7),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue