added recomp state
All checks were successful
/ test (push) Successful in 17s

This commit is contained in:
Johan Lundberg 2026-09-02 21:39:36 +02:00
parent 0bad40588d
commit b267827a94
2 changed files with 436 additions and 31 deletions

View file

@ -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 {(?<who>\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

View file

@ -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