summaryrefslogtreecommitdiff
path: root/npc/008-2-16/stove.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/008-2-16/stove.txt')
-rw-r--r--npc/008-2-16/stove.txt87
1 files changed, 0 insertions, 87 deletions
diff --git a/npc/008-2-16/stove.txt b/npc/008-2-16/stove.txt
deleted file mode 100644
index d4389f7a..00000000
--- a/npc/008-2-16/stove.txt
+++ /dev/null
@@ -1,87 +0,0 @@
-// Evol scripts.
-// Author:
-// Jesusalva
-// Description:
-// Stove to make sandwiches
-
-008-2-16,32,29,0 script Stove NPC_NO_SPRITE,{
- // If player haven't finished Hinnak quest yet, they can't use the stove
- .@q=getq(HurnscaldQuests_Hinnak);
- if (.@q < 3)
- {
- setcamnpc "Yannika";
- mesn l("Yannika");
- mesq l("Please don't touch my stove without my authorization.");
- close;
- }
-
- // Cooking loop
- do
- {
- mesc l("It is time to make some sandwiches myself!");
- mes "##B" + l("Drag and drop the items from your inventory in the frames.") + "##b";
-
- // Crafting skin with 4 columns
- setskin "craft4";
- .@var$ = requestcraft(4); // Limit: 4 items
- .@craft = initcraft(.@var$);
- .@entry = findcraftentry(.@craft, CRAFT_COOKING);
- setskin "";
-
- // Does the recipe exist and is a sandwich?
- if (.@entry < 0)
- {
- narrator
- l("You don't know how any recipe with that."),
- l("Do you want to try again?");
- if (askyesno() == ASK_YES)
- .@tryAgain=true;
- else
- .@tryAgain=false;
- }
- else
- {
- // Did player cheat? If not, proceed with the craft
- if (!validatecraft(.@craft))
- {
- narrator
- l("Where are the ingredients?");
- .@tryAgain=true;
- }
- else
- {
- // Even if the recipe is right, if you don't have it on your
- // recipe book, it should be deemed invalid.
- if (RECIPES[.@entry])
- {
- usecraft .@craft;
- narrator
- l("Done!"),
- l("Do you want to try again?");
- }
- else
- {
- narrator
- l("You don't know how any recipe with that."),
- l("Do you want to try again?");
- }
-
- if (askyesno() == ASK_YES)
- .@tryAgain=true;
- else
- .@tryAgain=false;
- }
- }
-
- // Clear unused variables and clear the screen.
- deletecraft .@craft;
- clear;
- } while (.@tryAgain);
-
- closeclientdialog;
- close;
-
-OnInit:
- .distance = 2;
- end;
-}