summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug/041-General_Cooking.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-06 12:49:10 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-06 12:49:10 -0300
commit48551c2016339956979f2c9f73115af36c1a0292 (patch)
tree05007879cfe76d4858d2510e937b1656c20beb0e /npc/functions/quest-debug/041-General_Cooking.txt
parent23ac38921f6f9f58e619b41f7467dff7e6a00df7 (diff)
parent600fac0c6e0d07dd99aeccf443e2262239b64aea (diff)
downloadserverdata-jesusalva/resync.tar.gz
serverdata-jesusalva/resync.tar.bz2
serverdata-jesusalva/resync.tar.xz
serverdata-jesusalva/resync.zip
Merge branch 'jesusalva/resync' of gitlab.com:jesusalva/evolsrc into jesusalva/resyncjesusalva/resync
Diffstat (limited to 'npc/functions/quest-debug/041-General_Cooking.txt')
-rw-r--r--npc/functions/quest-debug/041-General_Cooking.txt51
1 files changed, 51 insertions, 0 deletions
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);
+}