231 lines
8.2 KiB
Text
231 lines
8.2 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: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountGE 1 {Corrupted Mana Shard}
|
|
DO: SetState {TurnInShard}
|
|
IF: ItemCountGE 1 {Slimy Key}
|
|
DO: SetState {GoDoor}
|
|
IF: Always
|
|
DO: DoAll
|
|
Chat {/ub opt set VTank.PatchExpressionEngine true}
|
|
SetState {GoAyesha}
|
|
~~ }
|
|
STATE: {GoAyesha} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub use Ayesha of the Radiant Blood}
|
|
SetState {WaitAyesha}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {false}
|
|
SetOpt {enablelooting} {false}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_ayesha}
|
|
SetWatchdog 10 300 {Stuck}
|
|
~~ }
|
|
STATE: {WaitAyesha} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: SecsInStateGE 8
|
|
DO: SetState {GoCatacombs}
|
|
~~ }
|
|
STATE: {GoCatacombs} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
SetState {FindKey}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {false}
|
|
SetOpt {enablelooting} {false}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_catacombs}
|
|
SetWatchdog 10 900 {Stuck}
|
|
~~ }
|
|
STATE: {FindKey} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountGE 1 {Slimy Key}
|
|
DO: SetState {GoDoor}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub usep Slimy Key}
|
|
SetState {WaitKeyPickup}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {true}
|
|
SetOpt {enablelooting} {true}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_key}
|
|
SetWatchdog 10 900 {Stuck}
|
|
~~ }
|
|
STATE: {WaitKeyPickup} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountGE 1 {Slimy Key}
|
|
DO: SetState {GoDoor}
|
|
IF: SecsInStateGE 10
|
|
DO: SetState {FindKey}
|
|
~~ }
|
|
STATE: {GoDoor} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub usep Slimy Key on Door}
|
|
SetState {WaitDoor}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {true}
|
|
SetOpt {enablelooting} {false}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_door}
|
|
SetWatchdog 10 900 {Stuck}
|
|
~~ }
|
|
STATE: {WaitDoor} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ChatMatch {unlocked}
|
|
DO: SetState {GetShard}
|
|
IF: SecsInStateGE 8
|
|
DO: DoAll
|
|
Chat {/ub usep Slimy Key on Door}
|
|
SetState {WaitDoor}
|
|
~~ }
|
|
STATE: {GetShard} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountGE 1 {Corrupted Mana Shard}
|
|
DO: SetState {TurnInShard}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub usep Corrupted Mana Shard}
|
|
SetState {WaitShard}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {true}
|
|
SetOpt {enablelooting} {true}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_shard}
|
|
SetWatchdog 10 900 {Stuck}
|
|
~~ }
|
|
STATE: {WaitShard} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountGE 1 {Corrupted Mana Shard}
|
|
DO: SetState {TurnInShard}
|
|
IF: SecsInStateGE 10
|
|
DO: SetState {GetShard}
|
|
~~ }
|
|
STATE: {TurnInShard} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: All
|
|
NavEmpty
|
|
SecsInStateGE 2
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub givep Corrupted Mana Shard to Ayesha of the Radiant Blood}
|
|
Chat {/ub prepclick yes 3}
|
|
SetState {WaitTurnIn}
|
|
IF: Always
|
|
DO: DoAll
|
|
SetOpt {enablecombat} {false}
|
|
SetOpt {enablelooting} {false}
|
|
SetOpt {enablebuffing} {true}
|
|
SetOpt {enablenav} {true}
|
|
Chat {/vt nav load nav_radiantblood_return}
|
|
SetWatchdog 10 1200 {Stuck}
|
|
~~ }
|
|
STATE: {WaitTurnIn} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: ItemCountLE 0 {Corrupted Mana Shard}
|
|
DO: SetState {Done}
|
|
IF: ChatMatch {Radiant Blood}
|
|
DO: SetState {Done}
|
|
IF: SecsInStateGE 15
|
|
DO: SetState {TurnInShard}
|
|
~~ }
|
|
STATE: {Done} ~~ {
|
|
IF: Always
|
|
DO: DoAll
|
|
DoExpr {echo[`Radiant Blood initiation complete.`,1]}
|
|
Chat {/a [radiantblood] quest complete}
|
|
~~ }
|
|
STATE: {Stuck} ~~ {
|
|
IF: Death
|
|
DO: SetState {Death}
|
|
IF: Always
|
|
DO: DoAll
|
|
ClearWatchdog
|
|
Chat {/ub face}
|
|
DoExpr {echo[`Radiant Blood meta stuck, restarting.`,1]}
|
|
SetState {Default}
|
|
~~ }
|
|
STATE: {Death} ~~ {
|
|
IF: ExitPortal
|
|
DO: SetState {Default}
|
|
~~ }
|