metas/aphus.af
Johan Lundberg 91eb7b6459
All checks were successful
/ test (push) Successful in 23s
missed renaming two navs
2025-04-11 22:15:49 +02:00

168 lines
7.5 KiB
Text

~~ {
~~ 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: {combat} ~~ {
IF: NoMobsInDist 5
DO: DoAll
Chat {/vt opt set enablecombat false}
SetState {hunt}
IF: SecsInStateGE 180
DO: DoAll
Chat {/vt opt set enablecombat false}
SetState {hunt}
~~ }
STATE: {death} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set enablecombat false}
Chat {/a ARGH I died!}
IF: ExitPortal
DO: SetState {goingback}
~~ }
STATE: {Default} ~~ {
IF: Always
DO: DoAll
Chat {/ub opt set VTank.PatchExpressionEngine true}
Chat {/vt opt set defaultmeleeattackheight 3}
Chat {/vt opt set lootallcorpses false}
Chat {/vt opt set lootonlyrarecorpses true}
Chat {/vt opt set lootpriorityboost true}
Chat {/vt opt set navpriorityboost false}
Chat {/vt opt set attackdistance 0.0333333}
Chat {/vt opt set CorpseApproachRange-Max 0.05}
Chat {/vt opt set approachdistance 0}
Chat {/vt opt set idlepeacemode false}
Chat {/vt opt set stopmacroondeath false}
Chat {/vt opt set enablelooting false}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablebuffing true}
ChatExpr {\/vt nav load aphus_circuit+getvar[navNumber]}
DoExpr {setvar[lootclock,stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[lootclock]]}
SetState {hunt}
IF: Death
DO: SetState {death}
~~ }
STATE: {goingback} ~~ {
IF: SecsInStateGE 900
DO: SetState {goingback}
IF: Always
DO: Chat {/vt opt set enablenav true}
IF: Death
DO: SetState {death}
IF: Always
DO: Chat {/vt opt set enablebuffing true}
IF: Always
DO: Chat {/vt opt set enablecombat false}
IF: Always
DO: Chat {/vt nav load aphus_route+getvar[navNumber]}
IF: NavEmpty
DO: DoAll
ChatExpr {\/vt nav load aphus_circuit+getvar[navNumber]}
SetState {tusker_run}
~~ }
STATE: {hunt} ~~ {
IF: Always
DO: Chat {/vt opt set enablenav true}
IF: Expr {getvar[lootTime] == 0}
DO: DoExpr {setvar[lootTime, 21600]}
IF: Death
DO: SetState {death}
IF: MobsInDist_Name 1 5 {}
DO: DoAll
Chat {/vt opt set enablecombat true}
Chat {/vt opt set enablenav false}
SetState {combat}
IF: Always
DO: SetWatchdog 10 600 {goingback}
IF: ItemCountLE 100 {Prismatic Taper}
DO: DoAll
SetState {out_of_comp}
IF: DistToRteGE 100
DO: SetState {goingback}
IF: All
Expr {stopwatchelapsedseconds[getvar[lootclock]]>getvar[lootTime]}
DO: DoAll
SetState {loot}
IF: PSecsInStateGE 300
DO: SetState {goingback}
~~ }
STATE: {loot} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set enablecombat true}
Chat {/vt opt set lootpriorityboost false}
Chat {/vt opt set lootonlyrarecorpses false}
Chat {/vt opt set enablelooting true}
IF: SecsInStateGE 300
DO: DoAll
Chat {/vt opt set enablelooting false}
Chat {/vt opt set lootpriorityboost true}
Chat {/vt opt set lootonlyrarecorpses true}
Chat {/vt opt set enablecombat false}
DoExpr {setvar[lootclock,stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[lootclock]]}
SetState {hunt}
~~ }
STATE: {loot_rare} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set enablelooting true}
Chat {/vt opt set enablenav false}
IF: SecsInStateGE 30
DO: DoAll
Chat {/vt opt set enablelooting false}
SetState {hunt}
~~ }
STATE: {out_of_comp} ~~ {
IF: Always
DO: Chat {/vt opt set enablecombat false}
IF: Always
DO: Chat {/vt nav load ah_recomp}
IF: NavEmpty
DO: SetState {goingback}
~~ }
STATE: {tusker_run} ~~ {
IF: Death
DO: SetState {death}
IF: NavEmpty
DO: DoAll
SetState {hunt}
ChatExpr {\/vt nav load aphus_circuit+getvar[navNumber]}
~~ }