set coin_run when enough coins
All checks were successful
/ test (push) Successful in 34s

This commit is contained in:
Johan Lundberg 2026-09-08 22:15:41 +02:00
parent 7ccfe7d096
commit ed30ae24a1
2 changed files with 77 additions and 27 deletions

View file

@ -59,13 +59,18 @@ STATE: {Default}
ChatCapture {^(?<who>[A-Za-z][A-Za-z0-9 ]*) gives you (?<amount>[0-9,]+) Promissory Notes\.$} {}
DO: DoAll
ChatExpr {\/t +getvar[capturegroup_who]+`, Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`}
ChatExpr {`/t ` + getvar[capturegroup_who] + `, I now have ` + getitemcountininventorybyname[`Promissory Note`] + `/60000 in my backpack.`}
ChatExpr {`/t ` + getvar[capturegroup_who] + `, I now have ` + getitemcountininventorybyname[`Promissory Note`] + `/30000 in my backpack.`}
SetState {Default}
IF: All
ItemCountGE 60000 {Promissory Note}
ItemCountGE 30000 {Promissory Note}
DO: DoAll
Chat {/a [Viridan Helper] Going for a coin run. I love coins!!}
SetState {coin_run}
IF: All
ItemCountGE 3000 {Colosseum Coin}
DO: DoAll
Chat {/a [Viridan Helper] Going for a gem run. See ya later nerds!}
SetState {coin_run}
SetState {gem_run}
IF: All
ItemCountLE 10 {Gem of Knowledge}
SecsInStateGE 60
@ -100,14 +105,14 @@ STATE: {open_box}
STATE: {ah_recall}
IF: All
Expr {testvar[navLoaded]}
Expr {testvar[navAHLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
DoExpr {clearvar[navAHLoaded]}
SetState {Default}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
DoExpr {setvar[navAHLoaded, 1]}
Chat {/vt nav load vr_helper_ah_recall}
Chat {/vt opt set enablenav true}
IF: Always
@ -115,14 +120,14 @@ STATE: {ah_recall}
STATE: {coin_run}
IF: All
Expr {testvar[navLoaded]}
Expr {testvar[navCoinLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
SetState {gem_run}
DoExpr {clearvar[navCoinLoaded]}
SetState {ah_recall}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
DoExpr {setvar[navCoinLoaded, 1]}
Chat {/vt nav load nav_absalomsarraf}
Chat {/vt opt set enablenav true}
IF: Always
@ -130,14 +135,14 @@ STATE: {coin_run}
STATE: {gem_run}
IF: All
Expr {testvar[navLoaded]}
Expr {testvar[navGemLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
DoExpr {clearvar[navGemLoaded]}
SetState {ah_recall}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
DoExpr {setvar[navGemLoaded, 1]}
Chat {/vt nav load nav_colosseumcoincollector}
Chat {/vt opt set enablenav true}
IF: Always