This commit is contained in:
parent
5c54a4d7f7
commit
8274f753ad
2 changed files with 268 additions and 2 deletions
|
|
@ -35,6 +35,7 @@ STATE: {Default}
|
|||
Chat {/vt opt set navpriorityboost false}
|
||||
ChatExpr {\/vt opt set attackdistance +getvar[attackRange]}
|
||||
Chat {/ub fellow create Viridian Rise Hunt}
|
||||
DoExpr {setvar[pickupRange, 15]}
|
||||
SetState {vr_runback}
|
||||
IF: All
|
||||
Expr {getvar[isLeader]==0}
|
||||
|
|
@ -137,6 +138,12 @@ STATE: {Hunt}
|
|||
DO: DoAll
|
||||
ChatExpr {\/ub fellow recruit +getvar[capturegroup_who]}
|
||||
SetState {Hunt}
|
||||
IF: All
|
||||
Expr {getvar[isLeader]}
|
||||
Expr {coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[8]]]<=getvar[pickupRange]}
|
||||
Expr {wobjectgetname[wobjectfindnearestbyobjectclass[8]]==Amber Crystal}
|
||||
Expr {getvar[pickFlowers]==1}
|
||||
DO: SetState {picking_flowers}
|
||||
IF: All
|
||||
Expr {getvar[isLeader]}
|
||||
DistToRteGE 100
|
||||
|
|
@ -261,6 +268,22 @@ STATE: {recomp}
|
|||
IF: Always
|
||||
DO: SetWatchdog 3 300 {Default}
|
||||
|
||||
STATE: {picking_flowers} ~~ {
|
||||
IF: Expr {coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[8]]]<=getvar[pickupRange]+3}
|
||||
DO: DoAll
|
||||
DoExpr {setvar[ObjectClose, 1]}
|
||||
EmbedNav nav2__pickup_nav {pickup.nav}
|
||||
IF: All
|
||||
Expr {getvar[ObjectClose]==1}
|
||||
Expr {coordinatedistancewithz[getplayercoordinates[], wobjectgetphysicscoordinates[wobjectfindnearestbyobjectclass[8]]]>getvar[pickupRange]+4}
|
||||
DO: DoAll
|
||||
DoExpr {setvar[ObjectClose, 0]}
|
||||
SetState {Hunt}
|
||||
IF: Death
|
||||
DO: SetState {death}
|
||||
IF: Always
|
||||
DO: SetWatchdog 5 120 {stuck}
|
||||
|
||||
STATE: {death}
|
||||
IF: ExitPortal
|
||||
DO: DoAll
|
||||
|
|
@ -289,3 +312,8 @@ STATE: {stuck}
|
|||
IF: Always
|
||||
DO: DoAll
|
||||
SetState {Default}
|
||||
|
||||
NAV: nav2__pickup_nav circular ~~ {
|
||||
cht 6.85679616481066 -19.8018191655477 2.08332513769468E-05 {/vt mexec actiontryuseitem[wobjectfindnearestbyobjectclass[8]]}
|
||||
pau 6.85679616481066 -19.8018191655477 2.08332513769468E-05 10000
|
||||
~~ }
|
||||
Loading…
Add table
Add a link
Reference in a new issue