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

View file

@ -188,7 +188,7 @@ K
V
n
n
2
3
i
8
TABLE
@ -201,7 +201,20 @@ n
s
e
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
8
TABLE
@ -214,7 +227,7 @@ n
s
e
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
Default
i