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

@ -52,6 +52,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}
@ -60,6 +61,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 {Check}

View file

@ -24,7 +24,7 @@ K
V
n
n
4
5
i
2
s
@ -50,6 +50,10 @@ i
2
s
/vt opt set enablelooting true
i
2
s
/ub playeroption AllowGive true
s
Default
i
@ -83,12 +87,16 @@ K
V
n
n
2
3
i
2
s
/vt nav load legendary_chests
i
2
s
/ub playeroption AllowGive false
i
9
TABLE
2

View file

@ -88,7 +88,7 @@ K
V
n
n
4
5
i
2
s
@ -114,6 +114,10 @@ i
2
s
/vt opt set enablelooting true
i
2
s
/ub playeroption AllowGive true
s
Default
i
@ -147,12 +151,16 @@ K
V
n
n
2
3
i
2
s
/vt nav load legendary_chests
i
2
s
/ub playeroption AllowGive false
i
9
TABLE
2