summaryrefslogtreecommitdiff
path: root/npc/commands/debug-quest.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-14 23:05:14 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-14 23:05:14 -0200
commit50c8a3e753af5d63a644fd22148fe3f9d3ffbe6a (patch)
tree5492507e5113b61c35194007f87d702d55ca4591 /npc/commands/debug-quest.txt
parenteab1c23d0a728f3a9a20343ed20c22dbfa8d5cf5 (diff)
downloadserverdata-50c8a3e753af5d63a644fd22148fe3f9d3ffbe6a.tar.gz
serverdata-50c8a3e753af5d63a644fd22148fe3f9d3ffbe6a.tar.bz2
serverdata-50c8a3e753af5d63a644fd22148fe3f9d3ffbe6a.tar.xz
serverdata-50c8a3e753af5d63a644fd22148fe3f9d3ffbe6a.zip
@qdebug still needs to be autogenerated. It is now usable to 1337 devs, but will
most likely cause server errors.
Diffstat (limited to 'npc/commands/debug-quest.txt')
-rw-r--r--npc/commands/debug-quest.txt26
1 files changed, 19 insertions, 7 deletions
diff --git a/npc/commands/debug-quest.txt b/npc/commands/debug-quest.txt
index 889c988d4..15319fbc3 100644
--- a/npc/commands/debug-quest.txt
+++ b/npc/commands/debug-quest.txt
@@ -1,3 +1,4 @@
+// TODO: This script must be auto-generated from db/quests.conf to be of any use
function script GlobalQuestDebug {
function qDebugShip {
@@ -101,14 +102,25 @@ function script GlobalQuestDebug {
menuint
menuimage("actions/back", l("Go back")), -1,
- l("Cookies"), General_Cookies,
- "Rumly", General_Rumly,
- l("Narrator"), General_Narrator,
- "Janus", General_Janus;
+ rif(1==2, l("Cookies")), General_Cookies,
+ rif(1==2, "Rumly"), General_Rumly,
+ rif(1==2, l("Narrator")), General_Narrator,
+ rif(1==2, "Janus"), General_Janus,
+ l("Custom"), -136;
switch (@menuret)
{
case -1: return;
+ case -136:
+ mes "Determine the quest number, as stated in db/quests.conf";
+ input .@quest;
+ if (!.@quest) return;
+ mes "Determine the new value (numeric only)";
+ input .@value;
+ if (.@value < 0) return;
+ setq .@quest, .@value;
+
+ return;
default: callfunc "QuestDebug" + @menuret;
}
} while (1);
@@ -123,8 +135,8 @@ function script GlobalQuestDebug {
mes l("Please select a category:");
select
- l("Prologue"),
- "Artis",
+ rif(1==2, l("Prologue")),
+ rif(1==2, l("Artis")),
l("Other"),
rif(getarg(0,0), menuimage("actions/back", l("Return to Debug menu")));
@@ -153,5 +165,5 @@ OnCall:
end;
OnInit:
- bindatcmd "qdebug", "@qdebug::OnCall", 0, 99, 0;
+ bindatcmd "qdebug", "@qdebug::OnCall", 0, 99, 1;
}