added loot_rare state
All checks were successful
/ test (push) Successful in 23s

This commit is contained in:
Johan Lundberg 2025-04-09 22:36:28 +02:00
parent 4017ef556f
commit 2b31bc1387

30
bore.af
View file

@ -37,7 +37,7 @@
~~ prt (deprecated in VTank) ~~ prt (deprecated in VTank)
~~ } ~~ }
~~ /ub mexec setvar[navNumber,VILKETNUMMER] ~~ /ub mexec setvar[navNumber,VILKETNUMMER]
STATE: {combat} ~~ { STATE: {combat} ~~ {
IF: Always IF: Always
DO: Chat {/vt opt set enablecombat true} DO: Chat {/vt opt set enablecombat true}
@ -62,8 +62,6 @@ STATE: {death} ~~ {
STATE: {hunt} ~~ { STATE: {hunt} ~~ {
IF: Always IF: Always
DO: Chat {/vt opt set enablecombat false} DO: Chat {/vt opt set enablecombat false}
IF: Always
DO: Chat {/vt opt set enablelooting true}
IF: Death IF: Death
DO: DoAll DO: DoAll
Chat {/a I died! But I will comeback!} Chat {/a I died! But I will comeback!}
@ -92,8 +90,6 @@ STATE: {hunt} ~~ {
Expr {stopwatchelapsedseconds[getvar[lootclock]]>21600} Expr {stopwatchelapsedseconds[getvar[lootclock]]>21600}
DO: DoAll DO: DoAll
Chat {/vt opt set enablecombat true} Chat {/vt opt set enablecombat true}
Chat {/vt opt set lootonlyrarecorpses false}
Chat {/vt opt set lootpriorityboost false}
SetState {loot} SetState {loot}
IF: All IF: All
Expr {setvar[portal, wobjectfindnearestbyobjectclass[14]]} Expr {setvar[portal, wobjectfindnearestbyobjectclass[14]]}
@ -114,16 +110,28 @@ STATE: {hunt} ~~ {
SetState {avoid_portal} SetState {avoid_portal}
~~ } ~~ }
STATE: {loot_rare} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set enablelooting true}
Chat {/vt opt set enablenav false}
IF: SecsInStateGE 30
DO: DoAll
Chat {/vt opt set enablelooting false}
Chat {/vt opt set enablenav true}
SetState {hunt}
~~ }
STATE: {Default} ~~ { STATE: {Default} ~~ {
IF: All IF: All
DO: DoAll DO: DoAll
ChatExpr {\/vt nav load bore_circuit+getvar[navNumber]}
Chat {/ub opt set VTank.PatchExpressionEngine true} Chat {/ub opt set VTank.PatchExpressionEngine true}
ChatExpr {\/vt nav load bore_circuit+getvar[navNumber]}
Chat {/vt opt set enablenav true} Chat {/vt opt set enablenav true}
Chat {/vt opt set buffprofile_prots 2} Chat {/vt opt set buffprofile_prots 2}
Chat {/vt opt set buffprofile_banes 5} Chat {/vt opt set buffprofile_banes 5}
Chat {/vt opt set enablelooting true} Chat {/vt opt set enablelooting false}
Chat {/vt opt set navpriorityboost false} Chat {/vt opt set navpriorityboost false}
Chat {/vt opt set lootpriorityboost true}
Chat {/vt opt set lootonlyrarecorpses true} Chat {/vt opt set lootonlyrarecorpses true}
DoExpr {setvar[lootclock,stopwatchcreate[]]} DoExpr {setvar[lootclock,stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[lootclock]]} DoExpr {stopwatchstart[getvar[lootclock]]}
@ -208,10 +216,16 @@ STATE: {stuck} ~~ {
SetState {hunt} SetState {hunt}
~~ } ~~ }
STATE: {loot} ~~ { STATE: {loot} ~~ {
IF: Always
DO: DoAll
Chat {/vt opt set enablelooting true}
Chat {/vt opt set lootonlyrarecorpses false}
Chat {/vt opt set lootpriorityboost false}
IF: SecsInStateGE 300 IF: SecsInStateGE 300
DO: DoAll DO: DoAll
Chat {/vt opt set lootonlyrarecorpses true} Chat {/vt opt set lootonlyrarecorpses true}
Chat {/vt opt set lootpriorityboost true} Chat {/vt opt set lootpriorityboost true}
Chat {/vt opt set enablelooting false}
DoExpr {setvar[lootclock,stopwatchcreate[]]} DoExpr {setvar[lootclock,stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[lootclock]]} DoExpr {stopwatchstart[getvar[lootclock]]}
SetState {hunt} SetState {hunt}