From c88eea0a64802b00a0c6a179a7c68b074eb02a66 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 8 Sep 2026 20:54:31 +0200 Subject: [PATCH] say how many proms you have, try 2 --- af/vr_helper.af | 5 +++-- met/vr_helper.met | 19 ++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/af/vr_helper.af b/af/vr_helper.af index 6a0663a..9e086c5 100644 --- a/af/vr_helper.af +++ b/af/vr_helper.af @@ -55,8 +55,9 @@ STATE: {Default} IF: All ChatCapture {^(?[A-Za-z][A-Za-z0-9 ]*) gives you (?[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} diff --git a/met/vr_helper.met b/met/vr_helper.met index 09c02ec..2f1e604 100644 --- a/met/vr_helper.met +++ b/met/vr_helper.met @@ -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