summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/debug-quest.txt15
1 files changed, 14 insertions, 1 deletions
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 <quest_id>";
+ 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;
}