From b267827a946021224b1f18d9b4d3cf7a6f9aff66 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Wed, 2 Sep 2026 21:39:36 +0200 Subject: [PATCH] added recomp state --- af/viridian_rise.af | 46 ++++- met/viridian_rise.met | 421 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 436 insertions(+), 31 deletions(-) diff --git a/af/viridian_rise.af b/af/viridian_rise.af index 822aa98..8b8bed8 100644 --- a/af/viridian_rise.af +++ b/af/viridian_rise.af @@ -145,12 +145,37 @@ STATE: {Hunt} Expr {wobjectgetname[wobjectfindnearestbyobjectclass[8]]==Amber Crystal} Expr {getvar[pickFlowers]==1} DO: SetState {picking_flowers} + IF: All + Expr {getvar[ammoType]==1} + Any + ItemCountLE 10 {Wrapped Bundle of Deadly Prismatic Arrowheads} + ItemCountLE 10 {Wrapped Bundle of Quarrelshafts} + NoMobsInDist 5 + DO: DoAll + Chat {/fellowship Low on xbow ammo. Recomping.} + SetState {recomp_missile} + IF: All + Expr {getvar[ammoType]==2} + Any + ItemCountLE 10 {Wrapped Bundle of Deadly Prismatic Arrowheads} + ItemCountLE 10 {Wrapped Bundle of Arrowshafts} + NoMobsInDist 5 + DO: DoAll + Chat {/fellowship Low on bow ammo. Recomping.} + SetState {recomp_missile} + IF: All + Expr {getvar[ammoType]==3} + Any + ItemCountLE 10 {Wrapped Bundle of Deadly Prismatic Arrowheads} + ItemCountLE 10 {Wrapped Bundle of Atlatl Dartshafts} + NoMobsInDist 5 + DO: DoAll + Chat {/fellowship Low on bow ammo. Recomping.} + SetState {recomp_missile} IF: All Expr {getvar[isLeader]} DistToRteGE 100 DO: SetState {stuck} - IF: Always - DO: SetWatchdog 10 600 {stuck} IF: All Expr {getvar[isLeader]==0} ChatCapture {(?\w[\w ]*\w) has left your Fellowship} {} @@ -158,6 +183,8 @@ STATE: {Hunt} DO: DoAll Chat {/ub fellow quit} SetState {Default} + IF: Always + DO: SetWatchdog 10 600 {stuck} STATE: {count_death} IF: Always @@ -271,7 +298,7 @@ STATE: {recomp} IF: Always DO: SetWatchdog 3 300 {Default} -STATE: {picking_flowers} ~~ { +STATE: {picking_flowers} IF: Expr {coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[8]]]<=getvar[pickupRange]+3} DO: DoAll DoExpr {setvar[ObjectClose, 1]} @@ -286,6 +313,19 @@ STATE: {picking_flowers} ~~ { DO: SetState {death} IF: Always DO: SetWatchdog 5 120 {stuck} + +STATE: {recomp_missile} + IF: Death + DO: SetState {death} + IF: Always + DO: DoAll + Chat {/vt opt set enablecombat false} + Chat {/vt opt set enablebuffing false} + Chat {/vt nav load recomp_laurana} + IF: Always + DO: SetWatchdog 3 300 {stuck} + IF: NavEmpty + DO: SetState {stuck} STATE: {death} IF: ExitPortal diff --git a/met/viridian_rise.met b/met/viridian_rise.met index 841134d..7848f73 100644 --- a/met/viridian_rise.met +++ b/met/viridian_rise.met @@ -11,7 +11,7 @@ n n n n -64 +71 i 1 i @@ -1180,6 +1180,297 @@ Hunt i 2 i +3 +TABLE +2 +K +V +n +n +3 +i +26 +TABLE +2 +k +v +n +n +1 +s +e +s +getvar[ammoType]==1 +i +3 +TABLE +2 +K +V +n +n +2 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Deadly Prismatic Arrowheads +s +c +i +10 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Quarrelshafts +s +c +i +10 +i +16 +TABLE +2 +k +v +n +n +1 +s +r +d +5 +TABLE +2 +K +V +n +n +2 +i +2 +s +/fellowship Low on xbow ammo. Recomping. +i +1 +s +recomp_missile +s +Hunt +i +2 +i +3 +TABLE +2 +K +V +n +n +3 +i +26 +TABLE +2 +k +v +n +n +1 +s +e +s +getvar[ammoType]==2 +i +3 +TABLE +2 +K +V +n +n +2 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Deadly Prismatic Arrowheads +s +c +i +10 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Arrowshafts +s +c +i +10 +i +16 +TABLE +2 +k +v +n +n +1 +s +r +d +5 +TABLE +2 +K +V +n +n +2 +i +2 +s +/fellowship Low on bow ammo. Recomping. +i +1 +s +recomp_missile +s +Hunt +i +2 +i +3 +TABLE +2 +K +V +n +n +3 +i +26 +TABLE +2 +k +v +n +n +1 +s +e +s +getvar[ammoType]==3 +i +3 +TABLE +2 +K +V +n +n +2 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Deadly Prismatic Arrowheads +s +c +i +10 +i +11 +TABLE +2 +k +v +n +n +2 +s +n +s +Wrapped Bundle of Atlatl Dartshafts +s +c +i +10 +i +16 +TABLE +2 +k +v +n +n +1 +s +r +d +5 +TABLE +2 +K +V +n +n +2 +i +2 +s +/fellowship Low on bow ammo. Recomping. +i +1 +s +recomp_missile +s +Hunt +i +2 +i 1 TABLE 2 @@ -1219,33 +1510,6 @@ stuck s Hunt i -1 -i -9 -i -0 -TABLE -2 -k -v -n -n -3 -s -s -s -stuck -s -r -d -10 -s -t -d -600 -s -Hunt -i 2 i 3 @@ -1319,6 +1583,33 @@ Hunt i 1 i +9 +i +0 +TABLE +2 +k +v +n +n +3 +s +s +s +stuck +s +r +d +10 +s +t +d +600 +s +Hunt +i +1 +i 3 i 0 @@ -2160,6 +2451,80 @@ d s picking_flowers i +8 +i +1 +i +0 +s +death +s +recomp_missile +i +1 +i +3 +i +0 +TABLE +2 +K +V +n +n +3 +i +2 +s +/vt opt set enablecombat false +i +2 +s +/vt opt set enablebuffing false +i +2 +s +/vt nav load recomp_laurana +s +recomp_missile +i +1 +i +9 +i +0 +TABLE +2 +k +v +n +n +3 +s +s +s +stuck +s +r +d +3 +s +t +d +300 +s +recomp_missile +i +7 +i +1 +i +0 +s +stuck +s +recomp_missile +i 20 i 3