From 8f1855fb3f907229921a3094011419664f6ab870 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 17:29:22 -0500 Subject: [PATCH] bank refresh --- src/engine/objects/CharacterItemManager.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index ecbb20ab..2be29b9e 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -2282,6 +2282,25 @@ public class CharacterItemManager { Dispatch dispatch = Dispatch.borrow(pc, StackResourcesMsg); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); + if(this.bankOpened){ + this.setBankOpen(true); + PlayerCharacter playerCharacter = (PlayerCharacter)this.getOwner(); + AckBankWindowOpenedMsg ackBankWindowOpenedMsg = new AckBankWindowOpenedMsg(playerCharacter, 0L, 0L); + + Dispatch dispatchBank = Dispatch.borrow(playerCharacter, ackBankWindowOpenedMsg); + DispatchMessage.dispatchMsgDispatch(dispatchBank, Enum.DispatchChannel.SECONDARY); + + ReqBankInventoryMsg reqBankInventoryMsg = new ReqBankInventoryMsg(playerCharacter, 0L); + dispatchBank = Dispatch.borrow(playerCharacter, reqBankInventoryMsg); + DispatchMessage.dispatchMsgDispatch(dispatchBank, Enum.DispatchChannel.SECONDARY); + + ShowBankInventoryMsg showBankInventoryMsg = new ShowBankInventoryMsg(playerCharacter, 0L); + dispatchBank = Dispatch.borrow(playerCharacter, showBankInventoryMsg); + DispatchMessage.dispatchMsgDispatch(dispatchBank, Enum.DispatchChannel.SECONDARY); + } + if(this.vaultOpened){ + + } } public void forceToInventory(int slot, Item item, PlayerCharacter pc, boolean initialized) {