From 80e10147ab8a12c336faeb487e9501d8c2c1837f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 18 Feb 2021 23:21:46 -0300 Subject: Minor tweaks to @getvar and @setvar --- npc/commands/debug.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt index a01a20034..7e7b8318c 100644 --- a/npc/commands/debug.txt +++ b/npc/commands/debug.txt @@ -95,8 +95,13 @@ OnSetVar: else setd(sprintf("%s[%d]", .@cmd$, .@idx), .@val); - dispbottom sprintf("%s[%d] is now: %s", .@cmd$, .@idx, - getd(sprintf("%s[%d]", .@cmd$, .@idx))); + .@msg$=sprintf("%s[%d] is now: %s", .@cmd$, .@idx, + getd(sprintf("%s[%d]", .@cmd$, .@idx))); + + if (!is_staff()) + atcommand("@request System Information: "+.@msg$); + else + dispbottom(.@msg$); end; // If the char is not a staff member, it'll be sent to GM Log instead -- cgit v1.2.3-60-g2f50