summaryrefslogblamecommitdiff
path: root/npc/001-3-1/cooking.txt
blob: b3e38e108f50c32af8d4905e96456606f8ce6c30 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                       



                                                      

                                                  
                          
                    






                                       

















                                                                                 



                                                                                             
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//    Debug functions for Craft Systems


001-3-1,52,110,0	script	GM Cooking Stove	NPC_NO_SPRITE,{
    if ($EVENT$ == "") goto L_Offline;
    if ($@GM_OVERRIDE) goto L_Master;
    mesc l("Welcome to Saulc's Magic Cooking Stove!");
    mesc l("What will you cook today?");
    mesc l("Operation cost: %s GP", fnum(750)), 1;
    if (Zeny < 750) close;
    if (CookingSystem()) {
        Zeny -= 750;
        mesc l("Success!"), 3;
    } else {
        mesc l("That didn't work!"), 1;
    }
    close;

L_Master:
    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;
}

001-3-1,56,110,0	duplicate(GM Cooking Stove)	GM Cooking Stove#1	NPC_NO_SPRITE
001-3-1,60,110,0	duplicate(GM Cooking Stove)	GM Cooking Stove#2	NPC_NO_SPRITE
001-3-1,64,110,0	duplicate(GM Cooking Stove)	GM Cooking Stove#3	NPC_NO_SPRITE
001-3-1,68,110,0	duplicate(GM Cooking Stove)	GM Cooking Stove#4	NPC_NO_SPRITE