metas/lumi_stuff.af
Johan Lundberg c01d4c061a
All checks were successful
/ test (push) Successful in 1m2s
added lumi_stuff meta
2025-04-30 21:26:30 +02:00

162 lines
7.6 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: {Default} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set NavCloseStopRange 0.00625}
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablenav true}
IF: Always
DO: Chat {/vt nav load asherons_castle_lumi_stuff}
IF: NavEmpty
DO: SetState {pickup_damage_boost}
~~ }
STATE: {pickup_damage_boost} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
ItemCountLE 5 {Luminous Crystal of Rare Armor Damage Boost V}
DO: Chat {/ub use Token of Rare Armor Damage Boost V}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_damage_reduction}
~~ }
STATE: {pickup_damage_reduction} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
ItemCountLE 5 {Luminous Crystal of Rare Damage Reduction V}
DO: Chat {/ub use Token of Rare Damage Reduction V}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_healkit}
~~ }
STATE: {pickup_healkit} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
ItemCountLE 15 {Light Infused Healing Kit}
DO: Chat {/ub use Token of the Light Infused Healing Kit}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_revitalization}
~~ }
STATE: {pickup_revitalization} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_surging_strength}
IF: All
NavEmpty
ItemCountLE 50 {Draught of Revitalization}
DO: Chat {/ub use Token of the Draught of Revitalization}
~~ }
STATE: {pickup_surging_strength} ~~ {
IF: All
NavEmpty
ItemCountLE 5 {Luminous Crystal of Surging Strength}
DO: Chat {/ub use Token of the Luminous Crystal of Surging Strength}
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_towering_defense}
~~ }
STATE: {pickup_towering_defense} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
ItemCountLE 5 {Luminous Crystal of Towering Defense}
DO: Chat {/ub use Token of the Luminous Crystal of Towering Defense}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {pickup_vitality}
~~ }
STATE: {pickup_vitality} ~~ {
IF: Always
DO: Chat {/vt nav load token_take_point}
IF: All
NavEmpty
ItemCountLE 5 {Luminous Crystal of Vitality}
DO: Chat {/ub use Token of the Luminous Crystal of Vitality}
IF: All
NavEmpty
SecsInStateGE 6
DO: SetState {token_give}
~~ }
STATE: {token_give} ~~ {
IF: Always
DO: Chat {/vt nav load token_give_point}
IF: All
NavEmpty
Any
ItemCountGE 1 {Token of Rare Armor Damage Boost V}
ItemCountGE 1 {Token of Rare Damage Reduction V}
ItemCountGE 1 {Token of the Draught of Revitalization}
ItemCountGE 1 {Token of the Light Infused Healing Kit}
ItemCountGE 1 {Token of the Luminous Crystal of Vitality}
ItemCountGE 1 {Token of the Luminous Crystal of Towering Defense}
ItemCountGE 1 {Token of the Luminous Crystal of Surging Strength}
DO: DoAll
Chat {/ub prepclick yes 3}
Chat {/ub givep Token of to Nalicana}
IF: All
NavEmpty
Any
ItemCountLE 0 {Token of Rare Armor Damage Boost V}
ItemCountLE 0 {Token of Rare Damage Reduction V}
ItemCountLE 0 {Token of the Draught of Revitalization}
ItemCountLE 0 {Token of the Light Infused Healing Kit}
ItemCountLE 0 {Token of the Luminous Crystal of Vitality}
ItemCountLE 0 {Token of the Luminous Crystal of Towering Defense}
ItemCountLE 0 {Token of the Luminous Crystal of Surging Strength}
DO: SetState {pickup_damage_boost}
~~ }