Bank Balance Tracker (script): Difference between revisions
Jump to navigation
Jump to search
(reverting to previous version due to bugs with currency total tracking; will add that manually to the script) |
m (→Triggers) |
||
Line 17: | Line 17: | ||
You must install the following triggers: |
You must install the following triggers: |
||
<pre>#trigger {(\d+) |
<pre>#trigger {(\d+) platinum} {#var platinum $1} |
||
⚫ | |||
#trigger {(\d+) gold} {#var gold $1} |
#trigger {(\d+) gold} {#var gold $1} |
||
⚫ | |||
#trigger {(\d+) silver} {#var silver $1} |
#trigger {(\d+) silver} {#var silver $1} |
||
⚫ | |||
⚫ | |||
⚫ | |||
#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 {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 {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} |
||
#trigger {^You .+ worth .+ kronars} {#var currency Kronars} |
#trigger {^You .+ worth .+ kronars} {#var currency Kronars} |
||
#trigger {^You .+ worth .+ lirums} {#var currency Lirums} |
#trigger {^You .+ worth .+ lirums} {#var currency Lirums} |
||
#trigger {(\d+) copper Kronars\)\.$} {#var Kronars $1} |
|||
#trigger {(\d+) copper Lirums\)\.$} {#var Lirums $1} |
|||
#trigger {(\d+) copper Dokoras\)\.$} {#var Dokoras $1} |
|||
#trigger {^\s+No Kronars\.$} {#var Kronars 0} |
|||
#trigger {^\s+No Lirums\.$} {#var Lirums 0} |
|||
#trigger {^\s+No Dokoras\.$$} {#var Dokoras 0}</pre> |
|||
===Maps=== |
===Maps=== |
Revision as of 16:03, 15 October 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+) platinum} {#var platinum $1} #trigger {(\d+) gold} {#var gold $1} #trigger {(\d+) silver} {#var silver $1} #trigger {(\d+) bronze} {#var bronze $1} #trigger {(\d+) copper} {#var copper $1} #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 {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 {^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} #trigger {(\d+) copper Kronars\)\.$} {#var Kronars $1} #trigger {(\d+) copper Lirums\)\.$} {#var Lirums $1} #trigger {(\d+) copper Dokoras\)\.$} {#var Dokoras $1} #trigger {^\s+No Kronars\.$} {#var Kronars 0} #trigger {^\s+No Lirums\.$} {#var Lirums 0} #trigger {^\s+No Dokoras\.$$} {#var Dokoras 0}
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