Bank Balance Tracker (script): Difference between revisions
Jump to navigation
Jump to search
m (→Script) |
mNo edit summary |
||
Line 2: | Line 2: | ||
|cat=information |
|cat=information |
||
|fe=Genie |
|fe=Genie |
||
|auth=[[User:Isharon|Isharon]] |
|auth=[[User:Isharon|Isharon]], [[User:Martslyis|Celeres]], and [[User:Evran|Evran]] |
||
}} |
}} |
||
Revision as of 17:21, 7 June 2011
Bank Balance Tracker (script) | |
---|---|
Category | information |
Front-end | Genie |
Author | Isharon, Celeres, and Evran |
This script displays your bank balances, which are tracked by trigger. This is useful for people who don't have Premium accounts (and therefore don't have access to bank books).
When you run the script, it will display the (non-zero) balance of every bank that you have used since you installed the triggers.
The triggers update your bank balance every time you deposit, withdraw, or check your balance. It will create separate bank balance variables for each character that you use.
Required Genie Settings
Triggers
You must install the following triggers:
#trigger {(\d+) bronze} {#var bronze $1} #trigger {(\d+) copper} {#var copper $1} #trigger {(\d+) gold} {#var gold $1} #trigger {(\d+) platinum} {#var platinum $1} #trigger {(\d+) silver} {#var silver $1} #trigger {Dokoras\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper Dokoras;#var map.$zoneid.bank.currency Dokoras;#var platinum 0;#var gold 0;#var silver 0;#var bronze 0;#var copper 0;#var save} #trigger {Kronars\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper;#var map.$zoneid.bank.currency Kronars;#var platinum 0;#var gold 0;#var silver 0;#var bronze 0;#var copper 0;#var save} #trigger {Lirums\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper Lirums;#var map.$zoneid.bank.currency Lirums;#var platinum 0;#var gold 0;#var silver 0;#var bronze 0;#var copper 0;#var save} #trigger {^The clerk counts out .+ and hands them over, making a notation|^The clerk slides a small metal box across the counter|^You don't have any .+ to deposit} {#send balance} #trigger {^You .+ worth .+ dokoras} {#var currency Dokoras} #trigger {^You .+ worth .+ kronars} {#var currency Kronars} #trigger {^You .+ worth .+ lirums} {#var currency Lirums}
Maps
You must be using the official Genie map bundle. (This is how the triggers know which bank balance to update.)
Script
echo if $map.1.bank > 0 then echo The Crossing: $map.1.bank $map.1.bank.currency if $map.13.bank > 0 then echo Dirge: $map.13.bank $map.13.bank.currency if $map.61.bank > 0 then echo Leth Deriel: $map.61.bank $map.61.bank.currency if $map.112.bank > 0 then echo Ilaya Taipa: $map.112.bank $map.112.bank.currency if $map.30.bank > 0 then echo Riverhaven: $map.30.bank $map.30.bank.currency if $map.34a.bank > 0 then echo Rossman's Landing: $map.34a.bank $map.34a.bank.currency (linked to Riverhaven) if $map.35.bank > 0 then echo Throne City: $map.35.bank $map.35.bank.currency if $map.42.bank > 0 then echo Therenborough: $map.42.bank $map.42.bank.currency if $map.47.bank > 0 then echo Muspar'i: $map.47.bank $map.47.bank.currency if $map.67.bank > 0 then echo Shard: $map.67.bank $map.67.bank.currency if $map.66.bank > 0 then echo Chyolvea Tayeu'a: $map.66.bank $map.66.bank.currency if $map.123.bank > 0 then echo Raven's Point: $map.123.bank $map.123.bank.currency if $map.116.bank > 0 then echo Hibarnhvidar: $map.116.bank $map.116.bank.currency if $map.114.bank > 0 then echo Ain Ghazal: $map.114.bank $map.114.bank.currency (linked to Hibarnhvidar) if $map.127.bank > 0 then echo Boar Clan: $map.127.bank $map.127.bank.currency if $map.90.bank > 0 then echo Ratha: $map.90.bank $map.90.bank.currency if $map.99.bank > 0 then echo Aesry Surlaenis'a: $map.99.bank $map.99.bank.currency if $map.107.bank > 0 then echo Mer'Kresh: $map.107.bank $map.107.bank.currency if $map.106.bank > 0 then echo Hara'jaal: $map.106.bank $map.106.bank.currency echo var kronar.bank 0 var lirum.bank 0 var dokora.bank 0 math kronar.bank add $map.1.bank math kronar.bank add $map.13.bank math kronar.bank add $map.61.bank math kronar.bank add $map.112.bank math lirum.bank add $map.30.bank math lirum.bank add $map.35.bank math lirum.bank add $map.42.bank math lirum.bank add $map.47.bank math lirum.bank add $map.90.bank math lirum.bank add $map.99.bank math lirum.bank add $map.107.bank math lirum.bank add $map.106.bank math dokora.bank add $map.67.bank math dokora.bank add $map.66.bank math dokora.bank add $map.123.bank math dokora.bank add $map.116.bank math dokora.bank add $map.127.bank echo Total of each currency: if %kronar.bank > 0 then echo %kronar.bank Kronars if %lirum.bank > 0 then echo %lirum.bank Lirums if %dokora.bank > 0 then echo %dokora.bank Dokoras echo send wealth