Compare commits

..

2 commits

Author SHA1 Message Date
0f401a19a7 added coin_run and gem_run states
All checks were successful
/ test (push) Successful in 19s
2026-09-08 21:31:53 +02:00
d730715b14 added ah recall nav for vr helper 2026-09-08 21:31:22 +02:00
4 changed files with 581 additions and 11 deletions

View file

@ -38,6 +38,9 @@
~~ } ~~ }
STATE: {Default} STATE: {Default}
IF: Always
DO: DoAll
Chat {/vt opt set enablenav false}
IF: All IF: All
ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, \"gem of knowledge (?<num>[0-9]+)\"$} {} ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, \"gem of knowledge (?<num>[0-9]+)\"$} {}
Expr {cnumber[getvar[capturegroup_num]]>0} Expr {cnumber[getvar[capturegroup_num]]>0}
@ -56,9 +59,14 @@ STATE: {Default}
ChatCapture {^(?<who>[A-Za-z][A-Za-z0-9 ]*) gives you (?<amount>[0-9,]+) Promissory Notes\.$} {} ChatCapture {^(?<who>[A-Za-z][A-Za-z0-9 ]*) gives you (?<amount>[0-9,]+) Promissory Notes\.$} {}
DO: DoAll DO: DoAll
ChatExpr {\/t +getvar[capturegroup_who]+` Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`} ChatExpr {\/t +getvar[capturegroup_who]+` Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`}
DoExpr {setvar[noteCount, "" + getitemcountininventorybyname["Promissory Notes"]]} DoExpr {setvar[noteCount, "" + getitemcountininventorybyname["Promissory Note"]]}
ChatExpr {`/tell ` + getvar[capturegroup_who] + ` I now have ` + getvar[noteCount] + `/60,000 Promissory Notes in my backpack.`} ChatExpr {`/t ` + getvar[capturegroup_who] + ` test`}
ChatExpr {`/t ` + getvar[capturegroup_who] + ` I now have ` + getvar[noteCount] + `/60,000 in my backpack (via test)`}
IF: All
ItemCountGE 60000 {Promissory Note}
DO: DoAll
Chat {/a [Viridan Helper] Going for a gem run. See ya later nerds!}
SetState {coin_run}
IF: All IF: All
ItemCountLE 10 {Gem of Knowledge} ItemCountLE 10 {Gem of Knowledge}
SecsInStateGE 60 SecsInStateGE 60
@ -71,7 +79,7 @@ STATE: {Default}
Chat {/a [Box Of Ten Colosseum Coins] Opening...} Chat {/a [Box Of Ten Colosseum Coins] Opening...}
SetState {open_boxes} SetState {open_boxes}
STATE: {open_boxes} ~~ { STATE: {open_boxes}
IF: Death IF: Death
DO: SetState {Default} DO: SetState {Default}
IF: ItemCountGE 1 {Box Of Ten Colosseum Coins} IF: ItemCountGE 1 {Box Of Ten Colosseum Coins}
@ -82,12 +90,61 @@ STATE: {open_boxes} ~~ {
SetState {Default} SetState {Default}
IF: Always IF: Always
DO: SetWatchdog 1 120 {Default} DO: SetWatchdog 1 120 {Default}
~~ }
STATE: {open_box} ~~ { STATE: {open_box}
IF: Death IF: Death
DO: SetState {Default} DO: SetState {Default}
IF: Always IF: Always
DO: DoAll DO: DoAll
Chat {/ub use Box Of Ten Colosseum Coins} Chat {/ub use Box Of Ten Colosseum Coins}
SetState {open_boxes} SetState {open_boxes}
~~ }
STATE: {ah_recall}
IF: All
Expr {testvar[navLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
SetState {Default}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
Chat {/vt nav load vr_helper_ah_recall}
Chat {/vt opt set enablenav true}
IF: Always
DO: SetWatchdog 10 120 {stuck}
STATE: {coin_run}
IF: All
Expr {testvar[navLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
SetState {gem_run}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
Chat {/vt nav load nav_absalomsarraf}
Chat {/vt opt set enablenav true}
IF: Always
DO: SetWatchdog 10 120 {stuck}
STATE: {gem_run}
IF: All
Expr {testvar[navLoaded]}
NavEmpty
DO: DoAll
DoExpr {clearvar[navLoaded]}
SetState {ah_recall}
IF: Always
DO: DoAll
DoExpr {setvar[navLoaded, 1]}
Chat {/vt nav load nav_colosseumcoincollector}
Chat {/vt opt set enablenav true}
IF: Always
DO: SetWatchdog 10 120 {stuck}
STATE: {stuck}
IF: Always
DO: DoAll
SetState {ah_recall}

34
af/vr_helper_ah_recall.af Normal file
View file

@ -0,0 +1,34 @@
~~ {
~~ FOR AUTO-COMPLETION ASSISTANCE: testvar getvar setvar touchvar clearallvars clearvar getcharintprop getchardoubleprop getcharquadprop getcharboolprop getcharstringprop getisspellknown getcancastspell_hunt getcancastspell_buff getcharvital_base getcharvital_current getcharvital_buffedmax getcharskill_traininglevel getcharskill_base getcharskill_buffed getplayerlandcell getplayercoordinates coordinategetns coordinategetwe coordinategetz coordinatetostring coordinateparse coordinatedistancewithz coordinatedistanceflat wobjectgetphysicscoordinates wobjectgetname wobjectgetobjectclass wobjectgettemplatetype wobjectgetisdooropen wobjectfindnearestmonster wobjectfindnearestdoor wobjectfindnearestbyobjectclass wobjectfindininventorybytemplatetype wobjectfindininventorybyname wobjectfindininventorybynamerx wobjectgetselection wobjectgetplayer wobjectfindnearestbynameandobjectclass actiontryselect actiontryuseitem actiontryapplyitem actiontrygiveitem actiontryequipanywand actiontrycastbyid actiontrycastbyidontarget chatbox chatboxpaste statushud statushudcolored uigetcontrol uisetlabel isfalse istrue iif randint cstr strlen getobjectinternaltype cstrf stopwatchcreate stopwatchstart stopwatchstop stopwatchelapsedseconds cnumber floor ceiling round abs getworldname getitemcountininventorybyname getheading getitemcountininventorybynamerx getheadingto actiontrygiveprofile vitae getfellowshipstatus getfellowshipname getfellowshipisopen getfellowshipisleader getfellowshipleaderid getfellowshipcanrecruit getfellowid getfellowshipcount getfellowshiplocked getfellowname getfellowshipisfull sin cos tan sqrt asin acos atan atan2 sinh cosh tanh vtsetmetastate getregexmatch echo chr ord wobjectgetid wobjectgethealth wobjectfindbyid wobjectgetintprop wobjectfindnearestbytemplatetype wobjectgetopencontainer testquestflag getquestktprogress isrefreshingquests getquestktrequired getqueststatus getisday getgamehour getgamehourname getisnight getgameday getgameticks getminutesuntilday getgamemonth getgamemonthname getminutesuntilnight getgameyear uisetvisible uiviewvisible uiviewexists getgvar touchgvar getpvar touchpvar setgvar cleargvar setpvar clearpvar testgvar clearallgvars testpvar clearallpvars dictgetitem dictcreate dicthaskey dictadditem dictkeys dictremovekey dictvalues dictclear dictsize dictcopy listgetitem listpop listcreate listcontains listremove listadd listindexof listremoveat listinsert listlastindexof listclear listcopy listcount listreverse
~~
~~ File auto-generated by metaf, a program created by Eskarina of Morningthaw/Coldeve.
~~ Get metaf here: https://github.com/JJEII/metaf/
~~
~~ All recognized structural designators in a NAV-ONLY file:
~~ NAV:
~~
~~ All recognized NAV types:
~~ circular follow
~~ linear once
~~
~~ All recognized NAV NODE types:
~~ flw vnd
~~ pnt ptl
~~ rcl tlk
~~ pau chk
~~ cht jmp
~~ prt (deprecated in VTank)
~~
~~
~~ REMEMBER THAT NAV-ONLY FILES MUST CONTAIN EXACTLY ONE NAV!
~~ }
NAV: nav0 circular ~~ {
pau 59.3215317090352 -28.5296492894491 0.0500250021616618 5000
cht 59.3215317090352 -28.5296492894491 0.0500250021616618 {/ah}
pau 59.3215317090352 -28.5296492894491 0.0500250021616618 25000
pnt 59.3215317090352 -28.5296492894491 0.0500250021616618
cht 59.3215317090352 -28.5296492894491 0.0500250021616618 {/ub face 30}
~~ }

View file

@ -11,7 +11,26 @@ n
n n
n n
n n
11 23
i
1
i
3
i
0
TABLE
2
K
V
n
n
1
i
2
s
/vt opt set enablenav false
s
Default
i i
2 2
i i
@ -188,7 +207,7 @@ K
V V
n n
n n
3 4
i i
8 8
TABLE TABLE
@ -214,7 +233,7 @@ n
s s
e e
s s
setvar[noteCount, "" + getitemcountininventorybyname["Promissory Notes"]] setvar[noteCount, "" + getitemcountininventorybyname["Promissory Note"]]
i i
8 8
TABLE TABLE
@ -227,7 +246,65 @@ n
s s
e e
s s
`/tell ` + getvar[capturegroup_who] + ` I now have ` + getvar[noteCount] + `/60,000 Promissory Notes in my backpack.` `/t ` + getvar[capturegroup_who] + ` test`
i
8
TABLE
2
k
v
n
n
1
s
e
s
`/t ` + getvar[capturegroup_who] + ` I now have ` + getvar[noteCount] + `/60,000 in my backpack (via test)`
s
Default
i
2
i
3
TABLE
2
K
V
n
n
1
i
12
TABLE
2
k
v
n
n
2
s
n
s
Promissory Note
s
c
i
60000
TABLE
2
K
V
n
n
2
i
2
s
/a [Viridan Helper] Going for a gem run. See ya later nerds!
i
1
s
coin_run
s s
Default Default
i i
@ -453,3 +530,373 @@ s
open_boxes open_boxes
s s
open_box open_box
i
2
i
3
TABLE
2
K
V
n
n
2
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[navLoaded]
i
7
i
0
TABLE
2
K
V
n
n
2
i
7
TABLE
2
k
v
n
n
1
s
e
s
clearvar[navLoaded]
i
1
s
Default
s
ah_recall
i
1
i
3
i
0
TABLE
2
K
V
n
n
3
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[navLoaded, 1]
i
2
s
/vt nav load vr_helper_ah_recall
i
2
s
/vt opt set enablenav true
s
ah_recall
i
1
i
9
i
0
TABLE
2
k
v
n
n
3
s
s
s
stuck
s
r
d
10
s
t
d
120
s
ah_recall
i
2
i
3
TABLE
2
K
V
n
n
2
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[navLoaded]
i
7
i
0
TABLE
2
K
V
n
n
2
i
7
TABLE
2
k
v
n
n
1
s
e
s
clearvar[navLoaded]
i
1
s
gem_run
s
coin_run
i
1
i
3
i
0
TABLE
2
K
V
n
n
3
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[navLoaded, 1]
i
2
s
/vt nav load nav_absalomsarraf
i
2
s
/vt opt set enablenav true
s
coin_run
i
1
i
9
i
0
TABLE
2
k
v
n
n
3
s
s
s
stuck
s
r
d
10
s
t
d
120
s
coin_run
i
2
i
3
TABLE
2
K
V
n
n
2
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[navLoaded]
i
7
i
0
TABLE
2
K
V
n
n
2
i
7
TABLE
2
k
v
n
n
1
s
e
s
clearvar[navLoaded]
i
1
s
ah_recall
s
gem_run
i
1
i
3
i
0
TABLE
2
K
V
n
n
3
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[navLoaded, 1]
i
2
s
/vt nav load nav_colosseumcoincollector
i
2
s
/vt opt set enablenav true
s
gem_run
i
1
i
9
i
0
TABLE
2
k
v
n
n
3
s
s
s
stuck
s
r
d
10
s
t
d
120
s
gem_run
i
1
i
3
i
0
TABLE
2
K
V
n
n
1
i
1
s
ah_recall
s
stuck

View file

@ -0,0 +1,32 @@
uTank2 NAV 1.2
1
5
3
59.3215317090352
-28.5296492894491
0.0500250021616618
0
5000
4
59.3215317090352
-28.5296492894491
0.0500250021616618
0
/ah
3
59.3215317090352
-28.5296492894491
0.0500250021616618
0
25000
0
59.3215317090352
-28.5296492894491
0.0500250021616618
0
4
59.3215317090352
-28.5296492894491
0.0500250021616618
0
/ub face 30