View Single Post
04/14/23, 08:29 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
Question updated bank balances

Anyone know of a way to "update" current bank balances data after depositing? Currently I'm having to add previous balance to deposited balance for correct numbers because this returns previous balance before depositing for example:

Code:
amount = GetBankedCurrencyAmount(CURT_TELVAR_STONES) <<<< if this was 100

deposit blah blah blah <<<<<< and deposited 100

currAmount = GetBankedCurrencyAmount(CURT_TELVAR_STONES) <<<< this returns still 100

df(" bank balance: " .. tostring(currAmount)) <<< and displays in chat 100 instead of 200
once you reopen the bank it gets current correct numbers but is there a way to get updated correct data right after depositing in code?

Last edited by sinnereso : 04/14/23 at 09:00 PM.
  Reply With Quote