Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Lua/XML Help » updated bank balances


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off