From 81a63112d6bb6fa383ceea8c3a7a6a327b793127 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Sep 2021 20:19:58 -0300 Subject: Add temporary wrapper for @getq --- npc/commands/debug-quest.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/npc/commands/debug-quest.txt b/npc/commands/debug-quest.txt index a4c6572f3..fc6484f18 100644 --- a/npc/commands/debug-quest.txt +++ b/npc/commands/debug-quest.txt @@ -51,7 +51,7 @@ function script GlobalQuestDebug { } - +// TODO FIXME: Include OnGetq (@getq) - script @qdebug 32767,{ end; @@ -87,7 +87,20 @@ OnSetq: } end; +OnGetq: + if (.@atcmd_numparameters < 1) { + dispbottom "getq called with invalid arguments (min. 2)"; + dispbottom "Message is sent a console notice."; + dispbottom "GM Command syntax: @getq "; + end; + } + .@q=atoi(.@atcmd_parameters$[0]); + consoleinfo("Information for Quest [%d/%d]: Q1 %d | Q2 %d | Q3 %d | QT %d", + .@q, getcharid(0), getq(.@q), getq2(.@q), getq3(.@q), getqtime(.@q)); + end; + OnInit: bindatcmd "qdebug", "@qdebug::OnCall", 99, 99, 1; bindatcmd "setq", "@qdebug::OnSetq", 99, 99, 1; + bindatcmd "getq", "@qdebug::OnGetq", 99, 99, 1; } -- cgit v1.2.3-70-g09d2