From 6f2ad0c20efb27d11afc42b9ee69317bd8b83f56 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 14 Apr 2021 13:00:04 -0300 Subject: @setq can also behave as @getq now --- npc/commands/debug-quest.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/commands/debug-quest.txt') 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 "; 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]); -- cgit v1.2.3-70-g09d2