dont allow people to give you stuff when looting chests
Some checks failed
/ test (push) Failing after 36s

This commit is contained in:
Johan Lundberg 2026-08-04 21:01:34 +02:00
parent 57d348aede
commit 49db8d1900
4 changed files with 27 additions and 7 deletions

View file

@ -44,6 +44,7 @@ STATE: {Default} ~~ {
DoExpr {setvar[ChestType,Legendary Chest]}
Chat {/vt opt set enablenav true}
Chat {/vt opt set enablelooting true}
Chat {/ub playeroption AllowGive true}
IF: All
MainSlotsLE 4
DO: SetState {go_to_chests}
@ -52,6 +53,7 @@ STATE: {go_to_chests} ~~ {
IF: Always
DO: DoAll
Chat {/vt nav load legendary_chests}
Chat {/ub playeroption AllowGive false}
SetWatchdog 10 300 {recall}
IF: NavEmpty
DO: SetState {LootChest}

View file

@ -48,18 +48,20 @@ STATE: {Check} ~~ {
STATE: {Default} ~~ {
IF: Always
DO: DoAll
Chat {/vt nav load None}
Chat {/vt nav load None}
DoExpr {setvar[ChestType,Legendary Chest]}
Chat {/vt opt set enablenav true}
Chat {/vt opt set enablelooting true}
Chat {/ub playeroption AllowGive true}
IF: All
MainSlotsLE 4
DO: SetState {go_to_chests}
~~ }
STATE: {go_to_chests} ~~ {
IF: Always
DO: DoAll
DO: DoAll
Chat {/vt nav load legendary_chests}
Chat {/ub playeroption AllowGive false}
SetWatchdog 10 300 {recall}
IF: NavEmpty
DO: SetState {Check}
@ -76,7 +78,7 @@ STATE: {LootChest} ~~ {
~~ }
STATE: {recall} ~~ {
IF: Always
DO: DoAll
DO: DoAll
Chat {/vt nav load legendary_chests_ah}
SetWatchdog 10 300 {recall}
IF: NavEmpty