summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/quest-debug')
-rw-r--r--npc/functions/quest-debug/003-ShipQuests_Peter.txt18
-rw-r--r--npc/functions/quest-debug/041-General_Cooking.txt51
2 files changed, 63 insertions, 6 deletions
diff --git a/npc/functions/quest-debug/003-ShipQuests_Peter.txt b/npc/functions/quest-debug/003-ShipQuests_Peter.txt
index e08e1eb2..4732d238 100644
--- a/npc/functions/quest-debug/003-ShipQuests_Peter.txt
+++ b/npc/functions/quest-debug/003-ShipQuests_Peter.txt
@@ -1,6 +1,9 @@
// Peter quest debug
// Author:
// gumi
+// jesusalva
+// Notes:
+// Using l() usually is not a good idea (translating debug text? What?)
function script QuestDebug3 {
do
@@ -10,16 +13,19 @@ function script QuestDebug3 {
mes "ShipQuests_Peter";
mes "---";
mes l("Quest state: @@", getq(ShipQuests_Peter));
+ mes l("Killed mob bitmask: @@", getq2(ShipQuests_Peter));
+ mes l("Instance ID: @@", getq3(ShipQuests_Peter));
next;
+ .@q=getq(ShipQuests_Peter);
+
GenericQuestDebug ShipQuests_Peter,
l("Does not have the quest"), 0,
- l("Peter needs help"), 6,
- l("Peter asks to kill rattos"), 1,
- l("Killed rattos"), 2,
- l("Got no reward"), 3,
- l("Peter asks to kill rattos again"), 4,
- l("Peter gave reward"), 5;
+ l("Peter needs help"), 1,
+ l("Toggle Tortuga Bounty"), .@q^2,
+ l("Toggle Ratto Bounty"), .@q^4,
+ l("Toggle Croc Bounty"), .@q^8,
+ l("Quest complete"), 15;
if (@menuret < 0)
{
diff --git a/npc/functions/quest-debug/041-General_Cooking.txt b/npc/functions/quest-debug/041-General_Cooking.txt
new file mode 100644
index 00000000..592df547
--- /dev/null
+++ b/npc/functions/quest-debug/041-General_Cooking.txt
@@ -0,0 +1,51 @@
+// Cooking quest debug
+// Author:
+// Jesusalva
+
+function script QuestDebug41 {
+ do
+ {
+ clear;
+ setnpcdialogtitle l("Quest debug");
+ mes "General_Cooking";
+ mes "---";
+ mes l("Quest state: @@", getq(General_Cooking));
+ mes l("Known Recipes: @@", array_entries(COOKING_RECIPES));
+ next;
+
+ select
+ l("Return"),
+ l("Reset Quest"),
+ l("Complete Quest"),
+ l("Get a Recipe Book"),
+ l("Learn all recipes"),
+ l("Reset all recipes");
+
+ switch (@menu)
+ {
+ case 2:
+ setq General_Cooking, 0;
+ break;
+ case 3:
+ setq General_Cooking, 2;
+ break;
+ case 4:
+ getitem RecipeBook, 1;
+ break;
+ case 5:
+ COOKING_RECIPES[CraftCarpSandwich]=true;
+ COOKING_RECIPES[CraftMananaSandwich]=true;
+ COOKING_RECIPES[CraftPioulegSandwich]=true;
+ break;
+ case 6:
+ COOKING_RECIPES[CraftCarpSandwich]=false;
+ COOKING_RECIPES[CraftMananaSandwich]=false;
+ COOKING_RECIPES[CraftPioulegSandwich]=false;
+ break;
+
+ }
+
+ return;
+
+ } while (@menu != 1);
+}