From f6b5dd8bc97a6cee3af4d1b85e295b9bd26fa8b7 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 2 Dec 2025 22:20:25 +0100 Subject: [PATCH] added legendary_chestsub macro --- legendary_chests.nav | 79 +++++++++++ legendary_chests_ah.nav | 37 +++++ legendary_chestsub.af | 87 ++++++++++++ legendary_chestsub.met | 296 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 499 insertions(+) create mode 100644 legendary_chests.nav create mode 100644 legendary_chests_ah.nav create mode 100644 legendary_chestsub.af create mode 100644 legendary_chestsub.met diff --git a/legendary_chests.nav b/legendary_chests.nav new file mode 100644 index 0000000..f708d6a --- /dev/null +++ b/legendary_chests.nav @@ -0,0 +1,79 @@ +uTank2 NAV 1.2 +4 +15 +4 +56.7712938626607 +33.5693669637044 +0.175027084350586 +0 +/ls +0 +56.7849270820618 +33.5499019304911 +0.175027084350586 +0 +0 +56.8555516878764 +33.5573837280273 +0.175027084350586 +0 +0 +56.8688308080037 +33.5700054804484 +0.175027084350586 +0 +0 +56.8913924535116 +33.5747497240702 +0.175027084350586 +0 +0 +56.8944530804952 +33.5924549102783 +0.175027084350586 +0 +0 +56.8896083196004 +33.5994212468465 +0.175027084350586 +0 +0 +56.88939037323 +33.609014860789 +0.175027084350586 +0 +0 +56.8965542793274 +33.6094929377238 +0.175027084350586 +0 +0 +56.9181836128235 +33.6086446762085 +0.175027084350586 +0 +0 +56.9212248484294 +33.6120755195618 +0.175027084350586 +0 +0 +56.9192909558614 +33.6253411610921 +0.175027084350586 +0 +0 +56.901512781779 +33.6277666091919 +0.175027084350586 +0 +0 +56.8828212738037 +33.6292119026184 +0.175027084350586 +0 +0 +56.8678261756897 +33.6242294629415 +0.175027084350586 +0 diff --git a/legendary_chests_ah.nav b/legendary_chests_ah.nav new file mode 100644 index 0000000..e1641ba --- /dev/null +++ b/legendary_chests_ah.nav @@ -0,0 +1,37 @@ +uTank2 NAV 1.2 +4 +6 +3 +-101.033671673139 +-65.3833518981934 +0.0250270823637644 +0 +5000 +2 +-101.033671673139 +-65.3833518981934 +0.0250270823637644 +0 +2647 +3 +-101.033671673139 +-65.3833518981934 +0.0250270823637644 +0 +5000 +0 +-101.025 +-65.4 +0.0250270823637644 +0 +0 +-101.033671673139 +-65.3833518981934 +0.0250270823637644 +0 +4 +-101.033671673139 +-65.3833518981934 +0.0250270823637644 +0 +/ub face 180 diff --git a/legendary_chestsub.af b/legendary_chestsub.af new file mode 100644 index 0000000..d984de4 --- /dev/null +++ b/legendary_chestsub.af @@ -0,0 +1,87 @@ +~~ { +~~ 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: {Check} ~~ { + IF: Any + ItemCountGE 1 {Aged Legendary Key} + DO: SetState {LootChest} + IF: All + ItemCountLE 0 {Aged Legendary Key} + DO: SetState {recall} +~~ } +STATE: {Default} ~~ { + IF: Always + DO: DoAll + Chat {/vt nav load None} + DoExpr {setvar[ChestType,Legendary Chest]} + Chat {/vt opt set enablenav true} + Chat {/vt opt set enablelooting true} + IF: Not CellE C95B0027 + DO: SetState {recall} + IF: All + MainSlotsLE 4 + DO: SetState {go_to_chests} +~~ } +STATE: {go_to_chests} ~~ { + IF: Always + DO: DoAll + Chat {/vt nav load legendary_chests} + SetWatchdog 10 300 {Default} + IF: NavEmpty + DO: SetState {Check} + +~~ } +STATE: {LootChest} ~~ { + IF: Always + DO: Chat {/ub usep Aged Legendary key on Legendary Chest} + IF: SecsInStateGE 4 + DO: Chat {/ub usep Legendary Chest} + IF: SecsInStateGE 5 + DO: SetState {Check} + IF: SecsInStateGE 1 + DO: Chat {/ub usep Legendary Chest} +~~ } +STATE: {recall} ~~ { + IF: Always + DO: DoAll + Chat {/vt nav load legendary_chests_ah} + SetWatchdog 10 300 {Default} + IF: NavEmpty + DO: SetState {Default} +~~ } diff --git a/legendary_chestsub.met b/legendary_chestsub.met new file mode 100644 index 0000000..85d5d79 --- /dev/null +++ b/legendary_chestsub.met @@ -0,0 +1,296 @@ +1 +CondAct +5 +CType +AType +CData +AData +State +n +n +n +n +n +13 +i +3 +i +1 +TABLE +2 +K +V +n +n +1 +i +12 +TABLE +2 +k +v +n +n +2 +s +n +s +Aged Legendary Key +s +c +i +1 +s +LootChest +s +Check +i +2 +i +1 +TABLE +2 +K +V +n +n +1 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Aged Legendary Key +s +c +i +0 +s +recall +s +Check +i +1 +i +3 +i +0 +TABLE +2 +K +V +n +n +4 +i +2 +s +/vt nav load None +i +7 +TABLE +2 +k +v +n +n +1 +s +e +s +setvar[ChestType,Legendary Chest] +i +2 +s +/vt opt set enablenav true +i +2 +s +/vt opt set enablelooting true +s +Default +i +21 +i +1 +TABLE +2 +K +V +n +n +1 +i +18 +i +-916783065 +s +recall +s +Default +i +2 +i +1 +TABLE +2 +K +V +n +n +1 +i +5 +i +4 +s +go_to_chests +s +Default +i +1 +i +3 +i +0 +TABLE +2 +K +V +n +n +2 +i +2 +s +/vt nav load legendary_chests +i +9 +TABLE +2 +k +v +n +n +3 +s +s +s +Default +s +r +d +10 +s +t +d +300 +s +go_to_chests +i +7 +i +1 +i +0 +s +Check +s +go_to_chests +i +1 +i +2 +i +0 +s +/ub usep Aged Legendary key on Legendary Chest +s +LootChest +i +6 +i +2 +i +4 +s +/ub usep Legendary Chest +s +LootChest +i +6 +i +1 +i +5 +s +Check +s +LootChest +i +6 +i +2 +i +1 +s +/ub usep Legendary Chest +s +LootChest +i +1 +i +3 +i +0 +TABLE +2 +K +V +n +n +2 +i +2 +s +/vt nav load legendary_chests_ah +i +9 +TABLE +2 +k +v +n +n +3 +s +s +s +Default +s +r +d +10 +s +t +d +300 +s +recall +i +7 +i +1 +i +0 +s +Default +s +recall