add stipend backoff timer to prevent repeated stipend attempts when server lies about quest readiness
Some checks failed
/ test (push) Failing after 18s
Some checks failed
/ test (push) Failing after 18s
This commit is contained in:
parent
b50a96957b
commit
67be466cdf
4 changed files with 234 additions and 6 deletions
|
|
@ -64,6 +64,8 @@ STATE: {hunt} ~~ {
|
|||
DO: DoAll
|
||||
DoExpr {setvar[serviceClock,stopwatchcreate[]]}
|
||||
DoExpr {stopwatchstart[getvar[serviceClock]]}
|
||||
IF: Not Expr {testvar[stipendBackoffSeconds]}
|
||||
DO: DoExpr {setvar[stipendBackoffSeconds, 86400]}
|
||||
IF: Death
|
||||
DO: DoAll
|
||||
Chat {/a I died! But I will comeback!}
|
||||
|
|
@ -289,6 +291,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}
|
||||
|
|
@ -316,6 +321,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
|
||||
|
|
|
|||
|
|
@ -94,6 +94,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]}
|
||||
|
|
@ -362,6 +364,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}
|
||||
|
|
@ -390,6 +395,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 nav1__stipend_nav {stipend.nav}
|
||||
IF: All
|
||||
|
|
|
|||
113
met/bore.met
113
met/bore.met
|
|
@ -11,7 +11,7 @@ n
|
|||
n
|
||||
n
|
||||
n
|
||||
224
|
||||
225
|
||||
i
|
||||
1
|
||||
i
|
||||
|
|
@ -216,6 +216,43 @@ stopwatchstart[getvar[serviceClock]]
|
|||
s
|
||||
hunt
|
||||
i
|
||||
21
|
||||
i
|
||||
7
|
||||
TABLE
|
||||
2
|
||||
K
|
||||
V
|
||||
n
|
||||
n
|
||||
1
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
s
|
||||
e
|
||||
s
|
||||
testvar[stipendBackoffSeconds]
|
||||
TABLE
|
||||
2
|
||||
k
|
||||
v
|
||||
n
|
||||
n
|
||||
1
|
||||
s
|
||||
e
|
||||
s
|
||||
setvar[stipendBackoffSeconds, 86400]
|
||||
s
|
||||
hunt
|
||||
i
|
||||
8
|
||||
i
|
||||
3
|
||||
|
|
@ -2820,7 +2857,7 @@ K
|
|||
V
|
||||
n
|
||||
n
|
||||
1
|
||||
2
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
|
|
@ -2834,6 +2871,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
|
||||
|
|
@ -3044,7 +3125,7 @@ K
|
|||
V
|
||||
n
|
||||
n
|
||||
5
|
||||
7
|
||||
i
|
||||
2
|
||||
s
|
||||
|
|
@ -3069,6 +3150,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
|
||||
|
|
|
|||
113
met/neftet.met
113
met/neftet.met
|
|
@ -11,7 +11,7 @@ n
|
|||
n
|
||||
n
|
||||
n
|
||||
302
|
||||
303
|
||||
i
|
||||
20
|
||||
i
|
||||
|
|
@ -873,6 +873,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
|
||||
|
|
@ -3620,7 +3657,7 @@ K
|
|||
V
|
||||
n
|
||||
n
|
||||
1
|
||||
2
|
||||
i
|
||||
26
|
||||
TABLE
|
||||
|
|
@ -3634,6 +3671,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
|
||||
|
|
@ -3857,7 +3938,7 @@ K
|
|||
V
|
||||
n
|
||||
n
|
||||
5
|
||||
7
|
||||
i
|
||||
2
|
||||
s
|
||||
|
|
@ -3882,6 +3963,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue