Code: Select all
eval ((exists $::storage{opened}?1:0) == 0)
The problem is when you get disconnected while the storage is open, the storage state value remains 1; or in other words, the bot still deems the storage open.
And by the way, here's my automacros to illustrate the problem:
Code: Select all
automacro Talk {
eval ((exists $::storage{opened}?1:0) == 0)
location geffen 204 131
exclusive 1
call {
do talknpc 203 123 c r1
pause 2
}
}
automacro Get Items {
priority 10
eval ((exists $::storage{opened}?1:0) == 1)
location geffen 204 131
exclusive 1
set ainc 250
set ablue 300
set asun 15
set afud 20
set aguy 25
set agem 30
call Evaluate
}
Is there a way to make the storage state value return to 0 every time I get disconnected? Thanks in advance.