add mana scarab recomp and give-on-tell to motes meta
All checks were successful
/ test (push) Successful in 33s

- recomp_mana state: nav to nav_gilly, /ah on arrival
- low mana scarab check in Default triggers recomp when idle
- mana tell handler: "mana <N>" gives N Mana Scarabs to requester

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-03-17 22:39:01 +01:00
parent 5ff48b8f10
commit cc9f2b1323
2 changed files with 273 additions and 1 deletions

View file

@ -53,6 +53,23 @@ STATE: {Default} ~~ {
ChatExpr {\/ub give +getvar[capturegroup_num]+` Diamond Scarab to `+getvar[capturegroup_who]}
Chat {/a [motes] Diamond request fulfilled.}
SetState {Default}
IF: All
ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, \"mana (?<num>[0-9]+)\"$} {}
Expr {cnumber[getvar[capturegroup_num]]>0}
DO: DoAll
ChatExpr {\/ub give +getvar[capturegroup_num]+` Mana Scarab to `+getvar[capturegroup_who]}
Chat {/a [motes] Mana Scarab request fulfilled.}
SetState {Default}
IF: All
ItemCountLE 99 {Mana Scarab}
ItemCountLE 0 {Pyreal Nugget}
ItemCountLE 49 {Pyreal Sliver}
ItemCountLE 49 {Pyreal Mote}
DO: DoAll
Chat {/a [motes] Low on Mana Scarabs, heading to recomp.}
Chat {/vt nav load nav_gilly}
Chat {/vt opt set enablenav true}
SetState {recomp_mana}
IF: ItemCountGE 1 {Pyreal Nugget}
DO: DoAll
DoExpr {setvar[isProcessing, 1]}
@ -125,6 +142,20 @@ STATE: {go_return} ~~ {
IF: Always
DO: Chat {/vt opt set enablenav true}
~~ }
STATE: {recomp_mana} ~~ {
IF: Death
DO: SetState {Default}
IF: NavEmpty
DO: DoAll
Chat {/ah}
SetState {Default}
IF: SecsInStateGE 300
DO: DoAll
Chat {/a [motes] Timeout reaching recomp mana. Resetting.}
SetState {Default}
IF: Always
DO: Chat {/vt opt set enablenav true}
~~ }
STATE: {hand_in_nugget} ~~ {
IF: Death
DO: SetState {Default}