From 560820e743cc9d8dc1b6b36db1c800bf32aa3333 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 8 Sep 2026 21:01:07 +0200 Subject: [PATCH] say how many proms you have, try 3 --- af/vr_helper.af | 4 ++-- met/vr_helper.met | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/af/vr_helper.af b/af/vr_helper.af index 9e086c5..62a014d 100644 --- a/af/vr_helper.af +++ b/af/vr_helper.af @@ -56,8 +56,8 @@ STATE: {Default} ChatCapture {^(?[A-Za-z][A-Za-z0-9 ]*) gives you (?[0-9,]+) Promissory Notes\.$} {} DO: DoAll 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."} + DoExpr {setvar[noteCount, "" + getitemcountininventorybyname["Promissory Notes"]]} + ChatExpr {`/tell ` + getvar[capturegroup_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 2f1e604..f713b6b 100644 --- a/met/vr_helper.met +++ b/met/vr_helper.met @@ -214,7 +214,7 @@ n s e s -setvar[noteCount, getitemcountininventorybyname["Promissory Notes"]] +setvar[noteCount, "" + getitemcountininventorybyname["Promissory Notes"]] i 8 TABLE @@ -227,7 +227,7 @@ n s e s -"/tell " + getvar[who] + " I now have " + getvar[noteCount] + "/60,000 Promissory Notes in my backpack." +`/tell ` + getvar[capturegroup_who] + ` I now have ` + getvar[noteCount] + `/60,000 Promissory Notes in my backpack.` s Default i