add stipend backoff timer to prevent repeated stipend attempts when server lies about quest readiness
Some checks failed
/ test (push) Failing after 18s

This commit is contained in:
Erik 2026-04-06 13:57:13 +02:00
parent b50a96957b
commit 67be466cdf
4 changed files with 234 additions and 6 deletions

View file

@ -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