summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-09-24 20:19:58 -0300
committerJesusaves <cpntb1@ymail.com>2021-09-24 20:19:58 -0300
commit81a63112d6bb6fa383ceea8c3a7a6a327b793127 (patch)
tree476edac43c84ef9e62a750a80ec3d33a7ccbca4a
parent85383934046353fca9a46cb20cf393957e3d117c (diff)
downloadserverdata-81a63112d6bb6fa383ceea8c3a7a6a327b793127.tar.gz
serverdata-81a63112d6bb6fa383ceea8c3a7a6a327b793127.tar.bz2
serverdata-81a63112d6bb6fa383ceea8c3a7a6a327b793127.tar.xz
serverdata-81a63112d6bb6fa383ceea8c3a7a6a327b793127.zip
Add temporary wrapper for @getq
-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;
}