summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug/041-General_Cooking.txt
blob: 592df54709e72f6a44a08cb0afaa1a8fefe0cbc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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);
}