lockandkey: add chat feedback for portal summoning, fizzle retries, and queue status
All checks were successful
/ test (push) Successful in 35s

This commit is contained in:
Erik 2026-04-14 22:10:22 +02:00
parent 346409c284
commit f88481f0d1
2 changed files with 124 additions and 14 deletions

View file

@ -78,6 +78,7 @@ STATE: {summon_primary}
DO: SetState {death} DO: SetState {death}
IF: Always IF: Always
DO: DoAll DO: DoAll
Chat {/a Summoning 125 Eaters portal...}
Chat {/vt opt set enablecombat false} Chat {/vt opt set enablecombat false}
Chat {/ub face 180} Chat {/ub face 180}
DoExpr {setcombatstate[`magic`]} DoExpr {setcombatstate[`magic`]}
@ -88,13 +89,18 @@ STATE: {summon_primary}
~~ Fizzle: retry cast ~~ Fizzle: retry cast
IF: ChatMatch {Your spell fizzled.} IF: ChatMatch {Your spell fizzled.}
DO: DoAll DO: DoAll
Chat {/a Fizzled! Retrying 125 Eaters portal...}
DoExpr {actiontrycastbyid[157]} DoExpr {actiontrycastbyid[157]}
SetState {summon_primary} SetState {summon_primary}
~~ Queue incoming tells while casting ~~ Queue incoming tells while casting
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {} IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {}
DO: DoExpr {setvar[queuePrimary, 1]} DO: DoAll
Chat {/a Queued 125 Eaters portal, will summon shortly.}
DoExpr {setvar[queuePrimary, 1]}
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {} IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {}
DO: DoExpr {setvar[queueSecondary, 1]} DO: DoAll
Chat {/a Queued Bellas portal, will summon shortly.}
DoExpr {setvar[queueSecondary, 1]}
IF: SecsInStateGE 17 IF: SecsInStateGE 17
DO: SetState {summon_done} DO: SetState {summon_done}
@ -104,6 +110,7 @@ STATE: {summon_secondary}
DO: SetState {death} DO: SetState {death}
IF: Always IF: Always
DO: DoAll DO: DoAll
Chat {/a Summoning Bellas portal...}
Chat {/vt opt set enablecombat false} Chat {/vt opt set enablecombat false}
Chat {/ub face 90} Chat {/ub face 90}
DoExpr {setcombatstate[`magic`]} DoExpr {setcombatstate[`magic`]}
@ -114,22 +121,31 @@ STATE: {summon_secondary}
~~ Fizzle: retry cast ~~ Fizzle: retry cast
IF: ChatMatch {Your spell fizzled.} IF: ChatMatch {Your spell fizzled.}
DO: DoAll DO: DoAll
Chat {/a Fizzled! Retrying Bellas portal...}
DoExpr {actiontrycastbyid[2648]} DoExpr {actiontrycastbyid[2648]}
SetState {summon_secondary} SetState {summon_secondary}
~~ Queue incoming tells while casting ~~ Queue incoming tells while casting
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {} IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {}
DO: DoExpr {setvar[queuePrimary, 1]} DO: DoAll
Chat {/a Queued 125 Eaters portal, will summon shortly.}
DoExpr {setvar[queuePrimary, 1]}
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {} IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {}
DO: DoExpr {setvar[queueSecondary, 1]} DO: DoAll
Chat {/a Queued Bellas portal, will summon shortly.}
DoExpr {setvar[queueSecondary, 1]}
IF: SecsInStateGE 17 IF: SecsInStateGE 17
DO: SetState {summon_done} DO: SetState {summon_done}
STATE: {summon_done} STATE: {summon_done}
~~ Check queue: process next summon request or return to idle ~~ Check queue: process next summon request or return to idle
IF: Expr {testvar[queuePrimary]} IF: Expr {testvar[queuePrimary]}
DO: SetState {summon_primary} DO: DoAll
Chat {/a Processing queued 125 Eaters portal...}
SetState {summon_primary}
IF: Expr {testvar[queueSecondary]} IF: Expr {testvar[queueSecondary]}
DO: SetState {summon_secondary} DO: DoAll
Chat {/a Processing queued Bellas portal...}
SetState {summon_secondary}
IF: Always IF: Always
DO: SetState {idle} DO: SetState {idle}

View file

@ -593,7 +593,11 @@ K
V V
n n
n n
5 6
i
2
s
/a Summoning 125 Eaters portal...
i i
2 2
s s
@ -674,7 +678,11 @@ K
V V
n n
n n
3
i
2 2
s
/a Fizzled! Retrying 125 Eaters portal...
i i
7 7
TABLE TABLE
@ -697,7 +705,7 @@ summon_primary
i i
28 28
i i
7 3
TABLE TABLE
2 2
k k
@ -713,6 +721,19 @@ s
c c
s s
TABLE
2
K
V
n
n
2
i
2
s
/a Queued 125 Eaters portal, will summon shortly.
i
7
TABLE TABLE
2 2
k k
@ -729,7 +750,7 @@ summon_primary
i i
28 28
i i
7 3
TABLE TABLE
2 2
k k
@ -745,6 +766,19 @@ s
c c
s s
TABLE
2
K
V
n
n
2
i
2
s
/a Queued Bellas portal, will summon shortly.
i
7
TABLE TABLE
2 2
k k
@ -790,7 +824,11 @@ K
V V
n n
n n
5 6
i
2
s
/a Summoning Bellas portal...
i i
2 2
s s
@ -871,7 +909,11 @@ K
V V
n n
n n
3
i
2 2
s
/a Fizzled! Retrying Bellas portal...
i i
7 7
TABLE TABLE
@ -894,7 +936,7 @@ summon_secondary
i i
28 28
i i
7 3
TABLE TABLE
2 2
k k
@ -910,6 +952,19 @@ s
c c
s s
TABLE
2
K
V
n
n
2
i
2
s
/a Queued 125 Eaters portal, will summon shortly.
i
7
TABLE TABLE
2 2
k k
@ -926,7 +981,7 @@ summon_secondary
i i
28 28
i i
7 3
TABLE TABLE
2 2
k k
@ -942,6 +997,19 @@ s
c c
s s
TABLE
2
K
V
n
n
2
i
2
s
/a Queued Bellas portal, will summon shortly.
i
7
TABLE TABLE
2 2
k k
@ -968,7 +1036,7 @@ summon_secondary
i i
26 26
i i
1 3
TABLE TABLE
2 2
k k
@ -980,6 +1048,19 @@ s
e e
s s
testvar[queuePrimary] testvar[queuePrimary]
TABLE
2
K
V
n
n
2
i
2
s
/a Processing queued 125 Eaters portal...
i
1
s s
summon_primary summon_primary
s s
@ -987,7 +1068,7 @@ summon_done
i i
26 26
i i
1 3
TABLE TABLE
2 2
k k
@ -999,6 +1080,19 @@ s
e e
s s
testvar[queueSecondary] testvar[queueSecondary]
TABLE
2
K
V
n
n
2
i
2
s
/a Processing queued Bellas portal...
i
1
s s
summon_secondary summon_secondary
s s