add stipend backoff timer to aphus
Some checks failed
/ test (push) Failing after 17s

This commit is contained in:
Erik 2026-04-06 13:59:07 +02:00
parent 67be466cdf
commit edb5de94a0
2 changed files with 117 additions and 3 deletions

View file

@ -127,6 +127,8 @@ STATE: {Default} ~~ {
DO: DoExpr {setvar[bellaJawRunRecoverAttempts, 0]}
IF: Not Expr {testvar[bellaBackoffSeconds]}
DO: DoExpr {setvar[bellaBackoffSeconds, 86400]}
IF: Not Expr {testvar[stipendBackoffSeconds]}
DO: DoExpr {setvar[stipendBackoffSeconds, 86400]}
IF: Not Expr {testvar[serviceCheckInterval]}
DO: DoExpr {setvar[serviceCheckInterval, 43200]}
IF: Not Expr {testvar[serviceClock]}
@ -231,6 +233,9 @@ STATE: {service_decide} ~~ {
DoExpr {clearvar[bellaBackoffClock]}
IF: All
Expr {getqueststatus[`stipendtimer_0812`]==1}
Not All
Expr {testvar[stipendBackoffClock]}
Expr {stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]}
DO: SetState {service_stipend}
IF: All
Expr {getvar[disableAugmentServices]!=1}
@ -258,6 +263,8 @@ STATE: {service_stipend} ~~ {
Chat {/vt opt set enablecombat false}
Chat {/vt opt set enablelooting false}
Chat {/vt opt set enablenav true}
DoExpr {setvar[stipendBackoffClock, stopwatchcreate[]]}
DoExpr {stopwatchstart[getvar[stipendBackoffClock]]}
DoExpr {touchvar[stipendNavLoaded]}
EmbedNav nav0__stipend_nav {stipend.nav}
IF: All

View file

@ -11,7 +11,7 @@ n
n
n
n
196
197
i
16
i
@ -1145,6 +1145,43 @@ n
s
e
s
testvar[stipendBackoffSeconds]
TABLE
2
k
v
n
n
1
s
e
s
setvar[stipendBackoffSeconds, 86400]
s
Default
i
21
i
7
TABLE
2
K
V
n
n
1
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[serviceCheckInterval]
TABLE
2
@ -2154,7 +2191,7 @@ K
V
n
n
1
2
i
26
TABLE
@ -2168,6 +2205,50 @@ s
e
s
getqueststatus[`stipendtimer_0812`]==1
i
21
TABLE
2
K
V
n
n
1
i
2
TABLE
2
K
V
n
n
2
i
26
TABLE
2
k
v
n
n
1
s
e
s
testvar[stipendBackoffClock]
i
26
TABLE
2
k
v
n
n
1
s
e
s
stopwatchelapsedseconds[getvar[stipendBackoffClock]]<getvar[stipendBackoffSeconds]
s
service_stipend
s
@ -2378,7 +2459,7 @@ K
V
n
n
5
7
i
2
s
@ -2403,6 +2484,32 @@ n
s
e
s
setvar[stipendBackoffClock, stopwatchcreate[]]
i
7
TABLE
2
k
v
n
n
1
s
e
s
stopwatchstart[getvar[stipendBackoffClock]]
i
7
TABLE
2
k
v
n
n
1
s
e
s
touchvar[stipendNavLoaded]
i
4