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

This commit is contained in:
Johan Lundberg 2026-09-08 21:42:09 +02:00
parent d5d474a88c
commit 36eafcacf9
2 changed files with 4 additions and 32 deletions

View file

@ -58,10 +58,8 @@ 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 you for the `+getvar[capturegroup_amount]+` Promissory Notes`} ChatExpr {\/t +getvar[capturegroup_who]+`, Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`}
DoExpr {setvar[noteCount, "" + getitemcountininventorybyname["Promissory Note"]]} ChatExpr {`/t ` + getvar[capturegroup_who] + `, I now have ` + getitemcountininventorybyname[`Promissory Note`] + `/60,000 in my backpack (via test)`}
ChatExpr {`/t ` + getvar[capturegroup_who] + `, test`}
ChatExpr {`/t ` + getvar[capturegroup_who] + `, I now have ` + getvar[noteCount] + `/60,000 in my backpack (via test)`}
IF: All IF: All
ItemCountGE 60000 {Promissory Note} ItemCountGE 60000 {Promissory Note}
DO: DoAll DO: DoAll

View file

@ -207,7 +207,7 @@ K
V V
n n
n n
4 2
i i
8 8
TABLE TABLE
@ -222,19 +222,6 @@ e
s s
\/t +getvar[capturegroup_who]+`, Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes` \/t +getvar[capturegroup_who]+`, Thank you for the `+getvar[capturegroup_amount]+` Promissory Notes`
i i
7
TABLE
2
k
v
n
n
1
s
e
s
setvar[noteCount, "" + getitemcountininventorybyname["Promissory Note"]]
i
8 8
TABLE TABLE
2 2
@ -246,20 +233,7 @@ n
s s
e e
s s
`/t ` + getvar[capturegroup_who] + `, test` `/t ` + getvar[capturegroup_who] + `, I now have ` + getitemcountininventorybyname[`Promissory Note`] + `/60,000 in my backpack (via test)`
i
8
TABLE
2
k
v
n
n
1
s
e
s
`/t ` + getvar[capturegroup_who] + `, I now have ` + getvar[noteCount] + `/60,000 in my backpack (via test)`
s s
Default Default
i i