Bank Balance Tracker (script): Difference between revisions
Jump to navigation
Jump to search
(Added tracking of currency totals for all bank accounts) |
|||
Line 22: | Line 22: | ||
#trigger {(\d+) platinum} {#var platinum $1} |
#trigger {(\d+) platinum} {#var platinum $1} |
||
#trigger {(\d+) silver} {#var silver $1} |
#trigger {(\d+) silver} {#var silver $1} |
||
#trigger {Dokoras\.\"$} {#var map.$zoneid |
#trigger {Dokoras\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper Dokoras;#var platinum 0;#var gold 0;#var silver 0;#var bronze 0;#var copper 0;#var save} |
||
#trigger {Kronars\.\"$} {#var map.$zoneid |
#trigger {Kronars\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper Kronars;#var platinum 0;#var gold 0;#var silver 0;#var bronze 0;#var copper 0;#var save} |
||
#trigger {Lirums\.\"$} {#var map.$zoneid |
#trigger {Lirums\.\"$} {#var map.$zoneid.bank $platinum$gold$silver$bronze$copper 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 {^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 .+ dokoras} {#var currency Dokoras} |
||
Line 36: | Line 36: | ||
==Script== |
==Script== |
||
<pre> |
<pre>echo |
||
echo |
|||
if $map.1.bank > 0 then echo The Crossing: $map.1.bank |
if $map.1.bank > 0 then echo The Crossing: $map.1.bank |
||
if $map.13.bank > 0 then echo Dirge: $map.13.bank |
if $map.13.bank > 0 then echo Dirge: $map.13.bank |
||
Line 57: | Line 56: | ||
if $map.107.bank > 0 then echo Mer'Kresh: $map.107.bank |
if $map.107.bank > 0 then echo Mer'Kresh: $map.107.bank |
||
if $map.106.bank > 0 then echo Hara'jaal: $map.106.bank |
if $map.106.bank > 0 then echo Hara'jaal: $map.106.bank |
||
echo |
|||
echo Total wealth: |
|||
if $kronar.bank > 0 then echo $kronar.bank |
|||
if $lirum.bank > 0 then echo $lirum.bank |
|||
if $dokora.bank > 0 then echo $dokora.bank |
|||
echo |
echo |
Revision as of 15:26, 7 June 2011
Bank Balance Tracker (script) | |
---|---|
Category | information |
Front-end | Genie |
Author | Isharon and Celeres |
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 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 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 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 if $map.13.bank > 0 then echo Dirge: $map.13.bank if $map.61.bank > 0 then echo Leth Deriel: $map.61.bank if $map.112.bank > 0 then echo Ilaya Taipa: $map.112.bank if $map.30.bank > 0 then echo Riverhaven: $map.30.bank if $map.35.bank > 0 then echo Throne City: $map.35.bank if $map.34a.bank > 0 then echo Rossman's Landing: $map.34a.bank if $map.42.bank > 0 then echo Therenborough: $map.42.bank if $map.47.bank > 0 then echo Muspar'i: $map.47.bank if $map.67.bank > 0 then echo Shard: $map.67.bank if $map.66.bank > 0 then echo Chyolvea Tayeu'a: $map.66.bank if $map.123.bank > 0 then echo Raven's Point: $map.123.bank if $map.116.bank > 0 then echo Hibarnhvidar: $map.116.bank if $map.114.bank > 0 then echo Ain Ghazal: $map.114.bank if $map.127.bank > 0 then echo Boar Clan: $map.127.bank if $map.90.bank > 0 then echo Ratha: $map.90.bank if $map.99.bank > 0 then echo Aesry Surlaenis'a: $map.99.bank if $map.107.bank > 0 then echo Mer'Kresh: $map.107.bank if $map.106.bank > 0 then echo Hara'jaal: $map.106.bank echo send wealth