summaryrefslogtreecommitdiff
path: root/npc/functions/quest-debug/055-General_Cooking.txt
blob: ec7253649fc5ed67ab6461b715b7c1b657561d7e (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Cooking quest debug
// Author:
//    Jesusalva

function	script	QuestDebug55	{
    do
    {
        clear;
        setnpcdialogtitle l("Quest debug");
        mes "General_Cooking";
        mes "---";
        mes l("Quest state: @@", getq(General_Cooking));
        mes l("Route choosen: %s", (getq2(General_Cooking) == VEGAN ? l("Vegan") : l("Carnivorous")));
        mes l("Known Recipes: @@", array_entries(RECIPES));
        next;

        menuint
            l("Return"), -1,
            l("Reset Quest"), 0,
            "[2] Completed Yannika's Quest", 2,
            "[3] Accepted Yannika's Request for Seafood Plate", 3,
            "[4] Delivered fish to Dimond's Inn", 4,
            "[5] Accepted task to talk to Reid's Inn", 5,
            "[6] Got request for Piou/Manana Sandwhich", 6,
            "[7] Got sent to Candor Inn", 7,
            "[8] Tiki asked for new idea", 8,
            "[9] Tiki approved new idea", 9,
            "[10] Reid's Chef gave you epic recipe", 10,
            "[11] Sent to tulimshar bakery", 11,
            "[12] Sent to bakery apprentice", 12,
            "[13] Killed all rattos", 13,
            "[14] Learned Donut recipe", 14,
            "[15] Sent to search for Salad", 15,
            "[16] Offered to bring stuff to Hocus", 16,
            "[17] Received Hocus' Salad", 17,
            "[18] Salad Delivered", 18,
            "[19] Quest Completed", 19,
            l("Get a Recipe Book"), -2,
            l("Learn all recipes"), -3,
            l("Reset all recipes"), -4;

        switch (@menuret)
        {
            case -1:
                break;
            case -2:
                getitem RecipeBook, 1;
                break;
            case -3:
                RECIPES[CraftCarpSandwich]=true;
                RECIPES[CraftMananaSandwich]=true;
                RECIPES[CraftPioulegSandwich]=true;

                RECIPES[CraftSailorStew]=true;
                RECIPES[CraftSquirrelStew]=true;
                RECIPES[CraftMoubooStew]=true;

                RECIPES[CraftSeafoodPlate]=true;
                RECIPES[CraftBarbecuePlate]=true;
                RECIPES[CraftVeggiePlate]=true;

                RECIPES[CraftDonut]=true;
                RECIPES[CraftBlueberryCake]=true;
                RECIPES[CraftCarrotCake]=true;
                break;
            case -4:
                RECIPES[CraftCarpSandwich]=false;
                RECIPES[CraftMananaSandwich]=false;
                RECIPES[CraftPioulegSandwich]=false;

                RECIPES[CraftSailorStew]=false;
                RECIPES[CraftSquirrelStew]=false;
                RECIPES[CraftMoubooStew]=false;

                RECIPES[CraftSeafoodPlate]=false;
                RECIPES[CraftBarbecuePlate]=false;
                RECIPES[CraftVeggiePlate]=false;

                RECIPES[CraftDonut]=false;
                RECIPES[CraftBlueberryCake]=false;
                RECIPES[CraftCarrotCake]=false;
                break;
            default:
                setq1 General_Cooking, @menuret;
                break;

        }

        return;

    } while (@menu != 1);
}