summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/debug-look.txt2
-rw-r--r--npc/commands/debug-quest.txt26
2 files changed, 20 insertions, 8 deletions
diff --git a/npc/commands/debug-look.txt b/npc/commands/debug-look.txt
index 4bdcf84f1..af6a099cc 100644
--- a/npc/commands/debug-look.txt
+++ b/npc/commands/debug-look.txt
@@ -8,7 +8,7 @@ function script BarberDebug {
//menuint
// l("Male"), G_MALE,
// l("Female"), G_FEMALE,
- // l("Non-binary"), G_OTHER;
+ // l("Other"), G_OTHER;
//Sex = @menuret; // FIXME: make this work like in tmwAthena
//return;
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;
}