summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-18 23:21:46 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-18 23:21:46 -0300
commit80e10147ab8a12c336faeb487e9501d8c2c1837f (patch)
tree299deab60156cdb507953e47936131f92d799417 /npc/commands
parent054d9d1184b37362392f7ad98eabf438cedf971d (diff)
downloadserverdata-80e10147ab8a12c336faeb487e9501d8c2c1837f.tar.gz
serverdata-80e10147ab8a12c336faeb487e9501d8c2c1837f.tar.bz2
serverdata-80e10147ab8a12c336faeb487e9501d8c2c1837f.tar.xz
serverdata-80e10147ab8a12c336faeb487e9501d8c2c1837f.zip
Minor tweaks to @getvar and @setvar
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/debug.txt9
1 files changed, 7 insertions, 2 deletions
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