diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-14 13:00:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-14 13:00:04 -0300 |
commit | 6f2ad0c20efb27d11afc42b9ee69317bd8b83f56 (patch) | |
tree | 1c3d17f8a29bf073b40615127a8e33d2adf8bc22 /npc | |
parent | ec4bc7abafe1622bb42998e32788710286e93882 (diff) | |
download | serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.gz serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.bz2 serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.tar.xz serverdata-6f2ad0c20efb27d11afc42b9ee69317bd8b83f56.zip |
@setq can also behave as @getq now
Diffstat (limited to 'npc')
-rw-r--r-- | npc/commands/debug-quest.txt | 7 |
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]); |