summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-14 13:00:04 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-14 13:00:04 -0300
commit6f2ad0c20efb27d11afc42b9ee69317bd8b83f56 (patch)
tree1c3d17f8a29bf073b40615127a8e33d2adf8bc22
parentec4bc7abafe1622bb42998e32788710286e93882 (diff)
downloadserverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.gz
serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.bz2
serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.xz
serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.zip
@setq can also behave as @getq now
-rw-r--r--npc/commands/debug-quest.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/commands/debug-quest.txt b/npc/commands/debug-quest.txt
index a4c6572f..163df5c9 100644
--- a/npc/commands/debug-quest.txt
+++ b/npc/commands/debug-quest.txt
@@ -64,12 +64,17 @@ OnCall:
end;
OnSetq:
- if (.@atcmd_numparameters < 2) {
+ if (.@atcmd_numparameters < 1) {
dispbottom "setq called with invalid arguments (min. 2)";
dispbottom "GM Command syntax: @setq <quest_id> <val1> <val2> <val3>";
end;
}
.@q=atoi(.@atcmd_parameters$[0]);
+ if (.@atcmd_numparameters < 2) {
+ dispbottom sprintf("%s Quest count: %d / %d / %d", getquestlink(.@q),
+ getq(.@q), getq2(.@q), getq3(.@q));
+ end;
+ }
switch (.@atcmd_numparameters) {
case 4:
setq3 .@q, atoi(.@atcmd_parameters$[3]);