Cooking

by Drago

Back to Mechanic's Corner.

Drago2005-02-14 02:32:06
Yeah, basically I got bored and made this handy cooking "script" basically you can either use an alias or the right-click menu.

Using the alias is as simple as -aliasname- -amount you want to cook-. For example: hsand 5 will cook 5 ham sandwiches.

Using the menu you right-click in the output window, go to Cook then across to whichever thing it is you want to cook. It pops up a prompt for you to enter how many you want to cook and will automatically cook them for you.

Comes with a timer so you know when your oven is about to go out. This is every recipe I have access to except cartel ones, pastries, cakes and drinks. Pastries and cakes because I don't have any sugar dry.gif I'll add them in a bit.

CODE
#CLASS {Cooking}
#ALIAS cbbread {#if (%1) {want=%1;cookfood=cbbread;cooktype=bake;outr grain;outr milk;outr meat;cook 44186} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS vsoup {#if (%1) {want=%1;cookfood=vsoup;cooktype=cook;outr 2 meat;outr 2 vegetables;outr 1 grain;cook 70971} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS tomsoup {#if (%1) {want=%1;cookfood=tomsoup;outr 3 vegetables;outr 1 spices;outr 1 grain;cooktype=cook;cook 53324} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS fbread {#if (%1) {want=%1;cookfood=fbread;outr grain;outr milk;outr fruit;cooktype=bake;cook 2734} {#say %ansi(13) You need to say how many you want to cook};cooktype=bake}
#ALIAS gbread {#if (%1) {want=%1;cookfood=gbread;outr grain;outr milk;outr vegetables;cooktype=bake;cook 2493} {#say %ansi(13) You need to say how many you want to cook};cooktype=bake}
#ALIAS bread {#if (%1) {want=%1;cookfood=bread;outr grain;outr milk;cooktype=bake;cook 1529} {#say %ansi(13) You need to say how many you want to cook};cooktype=bake}
#ALIAS gsoup {#if (%1) {want=%1;cookfood=gsoup;cooktype=cook;outr 2 poultry;outr 2 vegetables;cook 2106} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS hsand {#if (%1) {want=%1;cookfood=hsand;outr 2 grain;outr meat;outr vegetables;outr eggs;cook 2519} {#say %ansi(13) You need to say how many you want to cook};cooktype=cook}
#ALIAS pork {#if (%1) {want=%1;cookfood=pork;outr 5 meat;cooktype=cook;cook 2495} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS fish {#if (%1) {want=%1;cookfood=fish;cooktype=cook;outr 5 fish;cook 1809} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS chicken {#if (%1) {want=%1;cookfood=chicken;cooktype=cook;outr 5 poultry;outr spices;cook 2112} {#say %ansi(13) You need to say how many you want to cook}}
#alias cook {cooking=%1;#if (@ovenon=0) {~fire oven};#if (@want>0} {#t+ cookbal;#if (@cooktype=cook) {~cook %1} {@cooktype %1};#ad want -1;#say ~%ansi(12)@want left to cook~} {#say ~%ansi(12)Finished cooking %1~#ALIAS fire {#if (%1=oven) {inr all coal;outr coal;put coal in oven;~fire oven;#alarm ovenalarm +1:50 {#ec ++++ OVEN OUT IN 10 seconds ++++}} {~fire %1}}
#ALIAS steak {#if (%1) {want=%1;cookfood=steak;cooktype=cook;outr 5 meat;outr 3 fruit;outr 1 spices;cook 55351} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS lobster {#if (%1) {want=%1;cookfood=lobster;cooktype=cook;outr 5 fish;outr 3 vegetables;outr 2 spices;cook 49500} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS quiche {#if (%1) {want=%1;cookfood=quiche;cooktype=cook;outr 4 eggs;outr 4 vegetables;outr 1 spices;outr 1 milk;cook 46359} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS chickfred {#if (%1) {want=%1;cookfood=chickfred;cooktype=cook;outr 5 poultry;outr 2 milk;outr 2 grain;outr 1 spices;cook 2724} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS sheppie {#if (%1) {want=%1;outr 3 meat;outr 2 vegetables;outr 1 spices;outr 1 milk;outr 1 grain;cooktype=cook;cookfood=sheppie;cook 57365} {#say %ansi(13) You need to say how many you want to cook}}
#ALIAS rdd {recipes delicasies}
#ALIAS rg {recipes gourmet}
#ALIAS rd {recipes dishes}
#ALIAS rc {recipes cuisine}
#ALIAS rb {recipes baking}
#ALIAS rbb {recipes brews}
#ALIAS rw {recipes wine}
#ALIAS rcc {recipes cakes}
#ALIAS rs {recipes soup}
#ALIAS rss {recipes spirits}
#ALIAS rp {recipes pastries}
#ALIAS sfplat {#if (%1) {want=%1;cookfood=sfplat;cooktype=cook;outr 5 meat;outr 5 fish;outr 2 grain;outr 1 spices;cook 55368} {#say %ansi(13) You need to say how many you want to cook}}
#VAR want {0} {0}
#VAR cooking {55351}
#VAR cook {}
#VAR ovenon {0}
#VAR cooktype {cook}
#VAR cookfood {steak}
#VAR making {5} {1}
#TRIGGER {The fires in an oven start to flicker and then burn out.} {ovenon=0;#t- cookbal;#EC +++++ FIRE IS OUT ++++}
#TRIGGER {You light an oven, and work the bellows until it is burning hotly.} {ovenon=1}
#TRIGGER "cookbal" {You have recovered balance on all limbs.} {#if (@want>0) {get @want from oven;@cookfood @want} {#t- cookbal}} "" {disable}
#TRIGGER {Good grief! As you attempt to fire up an oven, what you thought was coal is $revealed to be cinnabar and you melt it down into mercury.} {ovenon=0;get mercury from oven;inr mercury;#untrigger +1:50}
#MENU {Cook} {} "" {CookMenu}
#CLASS {Cooking|CookMenu} {menu}
#MENU {"Cheese and Bacon Bread"} {#PR making "How many do you want to cook?";cbbread @making} ""
#MENU {"Spicy Lobster"} {#PR making "How many do you want to cook?";lobster @making} ""
#MENU {"Fruit Bread"} {#PR making "How many do you want to cook?";fbread @making} ""
#MENU {"Garlic Bread"} {#PR making "How many do you want to cook?";gbread @making} ""
#MENU {"Plain Bread"} {#PR making "How many do you want to cook?";bread @making} ""
#MENU {"Pork"} {#PR making "How many do you want to cook?";pork @making} ""
#MENU {"Garlic Soup"} {#PR making "How many do you want to cook?";gsoup @making} ""
#MENU {"Stuffed Sandwich"} {#PR making "How many do you want to cook?";hsand @making} ""
#MENU {"Fishcake"} {#PR making "How many do you want to cook?";fish @making} ""
#MENU {"Chicken Leg"} {#PR making "How many do you want to cook?";chicken @making} ""
#MENU {"Chicken Alfredo"} {#PR making "How many do you want to cook?";chickfred @making} ""
#MENU {"Braised Mutton"} {#PR making "How many do you want to cook?";steak @making} ""
#MENU {"Spinach and Mushroom Quiche"} {#PR making "How many do you want to cook?";quiche @making} ""
#MENU {"Vegetable Soup"} {#PR making "How many do you want to cook?";vsoup @making} ""
#MENU {"Tomato Soup"} {#PR making "How many do you want to cook?";tomsoup @making} ""
#MENU {"Shepard's Pie"} {#PR making "How many do you want to cook?";sheppie @making} ""
#CLASS 0