~~ { ~~ 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: ~~ STATE: DO: ~~ IF: NAV: ~~ ~~ All recognized CONDITION (IF:) operation keywords: ~~ Never NavEmpty MobsInDist_Priority Not ~~ Always Death NeedToBuff PSecsInStateGE ~~ All VendorOpen NoMobsInDist SecsOnSpellGE ~~ Any VendorClosed BlockE BuPercentGE ~~ ChatMatch ItemCountLE CellE DistToRteGE ~~ MainSlotsLE ItemCountGE IntoPortal Expr ~~ SecsInStateGE MobsInDist_Name ExitPortal ChatCapture ~~ ~~ All recognized ACTION (DO:) operation keywords: ~~ None EmbedNav ChatExpr SetOpt ~~ SetState CallState SetWatchdog CreateView ~~ Chat Return ClearWatchdog DestroyView ~~ DoAll DoExpr GetOpt DestroyAllViews ~~ ~~ 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) ~~ } STATE: {Default} IF: Always DO: DoAll Chat {/vt opt set enablenav false} IF: All ChatCapture {(^(\[[A-z]+?\] |)You|.*\[^\<]*)\>.+\<\\Tell\>) .*, \"gem of knowledge (?[0-9]+)\"$} {} Expr {cnumber[getvar[capturegroup_num]]>0} DO: DoAll ChatExpr {\/ub give +getvar[capturegroup_num]+` Gem of Knowledge to `+getvar[capturegroup_who]} Chat {/a [Gem of Knowledge] Gem of Knowledge request fulfilled.} SetState {Default} IF: All ChatCapture {(^(\[[A-z]+?\] |)You|.*\[^\<]*)\>.+\<\\Tell\>) .*, \"encapsulated spirit (?[0-9]+)\"$} {} Expr {cnumber[getvar[capturegroup_num]]>0} DO: DoAll ChatExpr {\/ub give +getvar[capturegroup_num]+` Encapsulated Spirit to `+getvar[capturegroup_who]} Chat {/a [Encapsulated Spirit] Encapsulated Spirit request fulfilled.} SetState {Default} IF: All ChatCapture {^(?[A-Za-z][A-Za-z0-9 ]*) gives you (?[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`] + `/30000 in my backpack.`} SetState {Default} IF: All 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 {gem_run} IF: All ItemCountLE 10 {Gem of Knowledge} SecsInStateGE 60 DO: DoAll Chat {/a [Viridan Helper] Running low on Gem of Knowledge} SetState {Default} IF: All ItemCountGE 1 {Box Of Ten Colosseum Coins} DO: DoAll Chat {/a [Box Of Ten Colosseum Coins] Opening...} SetState {open_boxes} STATE: {open_boxes} IF: Death DO: SetState {Default} IF: ItemCountGE 1 {Box Of Ten Colosseum Coins} DO: SetState {open_box} IF: ItemCountLE 0 {Box Of Ten Colosseum Coins} DO: DoAll Chat {/a [Box Of Ten Colosseum Coins] Opening stage complete.} SetState {Default} IF: Always DO: SetWatchdog 1 120 {Default} STATE: {open_box} IF: Death DO: SetState {Default} IF: Always DO: DoAll Chat {/ub use Box Of Ten Colosseum Coins} SetState {open_boxes} STATE: {ah_recall} IF: All Expr {testvar[navAHLoaded]} NavEmpty DO: DoAll DoExpr {clearvar[navAHLoaded]} SetState {Default} IF: Always DO: DoAll DoExpr {setvar[navAHLoaded, 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[navCoinLoaded]} NavEmpty DO: DoAll DoExpr {clearvar[navCoinLoaded]} SetState {ah_recall} IF: Always DO: DoAll DoExpr {setvar[navCoinLoaded, 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[navGemLoaded]} NavEmpty DO: DoAll DoExpr {clearvar[navGemLoaded]} SetState {ah_recall} IF: Always DO: DoAll DoExpr {setvar[navGemLoaded, 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}