summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-01 23:56:10 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-01 23:56:10 -0300
commit8ccb34617cff5057a059b275c4b37f46e6760070 (patch)
tree1bf2d27450b595d534da783d90a42b13b719fcef /npc/commands
parentc583a462d85d7e9389d21535aebbfec9fce4018c (diff)
downloadserverdata-8ccb34617cff5057a059b275c4b37f46e6760070.tar.gz
serverdata-8ccb34617cff5057a059b275c4b37f46e6760070.tar.bz2
serverdata-8ccb34617cff5057a059b275c4b37f46e6760070.tar.xz
serverdata-8ccb34617cff5057a059b275c4b37f46e6760070.zip
Improve @qdebug to debug all fields
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/debug-quest.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/npc/commands/debug-quest.txt b/npc/commands/debug-quest.txt
index 52f545725..9c07aef9f 100644
--- a/npc/commands/debug-quest.txt
+++ b/npc/commands/debug-quest.txt
@@ -22,12 +22,25 @@ function script GlobalQuestDebug {
input .@quest;
if (!.@quest) return;
mes "";
- mes l("DEBUG: Changing @@ from @@ to something else.", getquestlink(.@quest), getq(.@quest));
+ mes l("DEBUG: Changing @@, Values: (@@, @@, @@).", getq(.@quest), getq2(.@quest), getq3(.@quest));
+ select
+ "set 1",
+ "set 2",
+ "set 3",
+ "reset";
+ mes l("DEBUG: Changing @@ field @@ to something else.", getquestlink(.@quest), @menu);
mes "";
mes "Determine the new value (numeric only)";
input .@value;
if (.@value < 0) return;
- setq .@quest, .@value;
+ if (@menu == 1)
+ setq1 .@quest, .@value;
+ if (@menu == 2)
+ setq2 .@quest, .@value;
+ if (@menu == 3)
+ setq3 .@quest, .@value;
+ if (@menu == 4)
+ setq .@quest, .@value, 0, 0;
return;
default: return;