pick Blossoming Nightbloom if isCook
All checks were successful
/ test (push) Successful in 32s

This commit is contained in:
Johan Lundberg 2026-09-22 22:40:30 +02:00
parent 3f3d0489ef
commit 64560b4631
2 changed files with 186 additions and 2 deletions

View file

@ -31,11 +31,17 @@ STATE: {Default}
ChatExpr {\/vt opt set attackdistance +getvar[attackRange]} ChatExpr {\/vt opt set attackdistance +getvar[attackRange]}
IF: All IF: All
Expr {getvar[isLeader]} Expr {getvar[isLeader]}
DO: DoAll DO: DoAll
Chat {/ub fellow create Viridian Rise Hunt} Chat {/ub fellow create Viridian Rise Hunt}
DoExpr {setvar[pickFlowers, 1]} DoExpr {setvar[pickFlowers, 1]}
DoExpr {setvar[pickupRange, 15]} DoExpr {setvar[pickupRange, 15]}
SetState {vr_runback} SetState {vr_runback}
IF: All
Expr {getvar[isCook]}
DO: DoAll
DoExpr {setvar[pickFlowers, 1]}
DoExpr {setvar[pickupRange, 15]}
SetState {vr_runback}
IF: All IF: All
Expr {getvar[isLeader]==0} Expr {getvar[isLeader]==0}
DO: DoAll DO: DoAll
@ -142,6 +148,15 @@ STATE: {Hunt}
DO: DoAll DO: DoAll
DoExpr {setvar[whatToPick, wobjectgetname[wobjectfindnearestbyobjectclass[37]]]} DoExpr {setvar[whatToPick, wobjectgetname[wobjectfindnearestbyobjectclass[37]]]}
SetState {picking_flowers} SetState {picking_flowers}
IF: All
Expr {getvar[isCook]}
Expr {coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[37]]]<=getvar[pickupRange]}
Expr {wobjectgetname[wobjectfindnearestbyobjectclass[37]]==Blossoming Nightbloom}
Expr {getvar[pickFlowers]==1}
ItemCountGE 3 {Viridian Essence}
DO: DoAll
DoExpr {setvar[whatToPick, wobjectgetname[wobjectfindnearestbyobjectclass[37]]]}
SetState {picking_flowers}
IF: All IF: All
Expr {getvar[ammoType]==1} Expr {getvar[ammoType]==1}
Any Any

View file

@ -11,7 +11,7 @@ n
n n
n n
n n
80 82
i i
1 1
i i
@ -177,6 +177,69 @@ n
s s
e e
s s
getvar[isCook]
TABLE
2
K
V
n
n
3
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[pickFlowers, 1]
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[pickupRange, 15]
i
1
s
vr_runback
s
Default
i
2
i
3
TABLE
2
K
V
n
n
1
i
26
TABLE
2
k
v
n
n
1
s
e
s
getvar[isLeader]==0 getvar[isLeader]==0
TABLE TABLE
2 2
@ -1204,6 +1267,112 @@ K
V V
n n
n n
5
i
26
TABLE
2
k
v
n
n
1
s
e
s
getvar[isCook]
i
26
TABLE
2
k
v
n
n
1
s
e
s
coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[37]]]<=getvar[pickupRange]
i
26
TABLE
2
k
v
n
n
1
s
e
s
wobjectgetname[wobjectfindnearestbyobjectclass[37]]==Blossoming Nightbloom
i
26
TABLE
2
k
v
n
n
1
s
e
s
getvar[pickFlowers]==1
i
12
TABLE
2
k
v
n
n
2
s
n
s
Viridian Essence
s
c
i
3
TABLE
2
K
V
n
n
2
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[whatToPick, wobjectgetname[wobjectfindnearestbyobjectclass[37]]]
i
1
s
picking_flowers
s
Hunt
i
2
i
3
TABLE
2
K
V
n
n
3 3
i i
26 26