say how many proms you have, try 2
All checks were successful
/ test (push) Successful in 23s

This commit is contained in:
Johan Lundberg 2026-09-08 20:54:31 +02:00
parent 85c476edbb
commit c88eea0a64
2 changed files with 19 additions and 5 deletions

View file

@ -55,8 +55,9 @@ STATE: {Default}
IF: All IF: All
ChatCapture {^(?<who>[A-Za-z][A-Za-z0-9 ]*) gives you (?<amount>[0-9,]+) Promissory Notes\.$} {} ChatCapture {^(?<who>[A-Za-z][A-Za-z0-9 ]*) gives you (?<amount>[0-9,]+) Promissory Notes\.$} {}
DO: DoAll DO: DoAll
ChatExpr {\/t +getvar[capturegroup_who]+` Thank for the `+getvar[capturegroup_amount]+` Promissory Notes`} ChatExpr {\/t +getvar[capturegroup_who]+` Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`}
ChatExpr {\"/tell \" + getvar[who] + \" I now have \" + getitemcountininventorybyname[Promissory Notes] + \"\/60,000 Promissory Notes in my backpack.\"} DoExpr {setvar[noteCount, getitemcountininventorybyname["Promissory Notes"]]}
ChatExpr {"/tell " + getvar[who] + " I now have " + getvar[noteCount] + "/60,000 Promissory Notes in my backpack."}
IF: All IF: All
ItemCountLE 10 {Gem of Knowledge} ItemCountLE 10 {Gem of Knowledge}

View file

@ -188,7 +188,7 @@ K
V V
n n
n n
2 3
i i
8 8
TABLE TABLE
@ -201,7 +201,20 @@ n
s s
e e
s s
\/t +getvar[capturegroup_who]+` Thank for the `+getvar[capturegroup_amount]+` Promissory Notes` \/t +getvar[capturegroup_who]+` Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`
i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[noteCount, getitemcountininventorybyname["Promissory Notes"]]
i i
8 8
TABLE TABLE
@ -214,7 +227,7 @@ n
s s
e e
s s
\"/tell \" + getvar[who] + \" I now have \" + getitemcountininventorybyname[Promissory Notes] + \"\/60,000 Promissory Notes in my backpack.\" "/tell " + getvar[who] + " I now have " + getvar[noteCount] + "/60,000 Promissory Notes in my backpack."
s s
Default Default
i i