From 807994a38cc44cdc9bf2af3c3f15d54558e49313 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 20 Jan 2024 14:27:34 -0300 Subject: Add cooking system to Saulc's Magical Castle, so it may be tested --- npc/001-3-1/_import.txt | 1 + npc/001-3-1/cooking.txt | 27 +++++++++++++++++++++++++++ npc/011-4/chest.txt | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 npc/001-3-1/cooking.txt diff --git a/npc/001-3-1/_import.txt b/npc/001-3-1/_import.txt index 41049d07a..90a57d659 100644 --- a/npc/001-3-1/_import.txt +++ b/npc/001-3-1/_import.txt @@ -2,4 +2,5 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/001-3-1/_warps.txt", "npc/001-3-1/alchemy.txt", +"npc/001-3-1/cooking.txt", "npc/001-3-1/smith.txt", diff --git a/npc/001-3-1/cooking.txt b/npc/001-3-1/cooking.txt new file mode 100644 index 000000000..4c4ceab8d --- /dev/null +++ b/npc/001-3-1/cooking.txt @@ -0,0 +1,27 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// Debug functions for Craft Systems + + +001-3-1,52,110,0 script GM Cooking Stove NPC_NO_SPRITE,{ + if (!$@GM_OVERRIDE || $EVENT$ == "") goto L_Offline; + mesc l("Welcome to Saulc's Magic Cooking Stove!"); + mesc l("This table will prepare food for you, no skill required!"); + mesc l("What will you cook today?"); + if (CookingSystem(CRAFT_NPC)) + mesc l("Success!"), 3; + else + mesc l("That didn't work!"), 1; + close; + +L_Offline: + npctalk3 l("Oops! Seems like Saulc doesn't wants you messing on his ovens!"); + close; + +OnInit: + .distance=5; + end; +} + diff --git a/npc/011-4/chest.txt b/npc/011-4/chest.txt index 4db26ee45..2a89c5b98 100644 --- a/npc/011-4/chest.txt +++ b/npc/011-4/chest.txt @@ -19,7 +19,7 @@ switch (season()) { case SUMMER: .@item=any(CherryCocktail, CactusCocktail, AppleCocktail); .@prize=0; break; - case WINTER: .@item=any(Snowflake, CaramelCandy); .@prize=0; break; + case WINTER: .@item=any(Snowflake, CaramelCandy, SmallChocolateBar); .@prize=0; break; case SPRING: .@item=any(Rose, Tulip, Blueberries); .@prize=0; break; case AUTUMN: .@item=any(Lawncandy, Saulcandy, Poocandy); .@prize=Zambacutou; break; } -- cgit v1.2.3-70-g09d2