summaryrefslogtreecommitdiff
path: root/npc/items/recipes.txt
blob: 3fb3309cc275b322304f2bb04ebcfadabc84f1be (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
// Evol script.
// Author:
//    Jesusalva
//    Micksha
// Description:
//    Contains recipe books for Evol Online

-	script	#RecipeBook	NPC_HIDDEN,{

    function read_book {

        setnpcdialogtitle l(.book_name$);

        mesc l("Eating is a necessity, but cooking is an art.");
        mesc l("(All items must be placed exactly in this order for cooking work.)");
        next;
        mesc l("List of known cooking recipes:");
        mes "";
        mes ".:: " + l("Sandwiches") + " ::.";
        mes "";
        if (COOKING_RECIPES[CraftCarpSandwich]) {
            mes l("@@", getitemlink(CarpSandwich));
            mesc l("* @@ @@", 1, getitemlink(Bread));
            mesc l("* @@ @@", 3, getitemlink(LettuceLeaf));
            mesc l("* @@ @@", 2, getitemlink(Cheese));
            mesc l("* @@ @@", 1, getitemlink(CommonCarp));
            mes "";
        }
        if (COOKING_RECIPES[CraftPioulegSandwich]) {
            mes l("@@", getitemlink(PioulegSandwich));
            mesc l("* @@ @@", 1, getitemlink(Bread));
            mesc l("* @@ @@", 3, getitemlink(LettuceLeaf));
            mesc l("* @@ @@", 2, getitemlink(Cheese));
            mesc l("* @@ @@", 1, getitemlink(PiouLegs));
            mes "";
        }
        if (COOKING_RECIPES[CraftMananaSandwich]) {
            mes l("@@", getitemlink(MananaSandwich));
            mesc l("* @@ @@", 1, getitemlink(Bread));
            mesc l("* @@ @@", 3, getitemlink(LettuceLeaf));
            mesc l("* @@ @@", 2, getitemlink(Cheese));
            mesc l("* @@ @@", 1, getitemlink(Manana));
            mes "";
        }

        close;
    }

OnUse:
    if (openbook())
        read_book;
    closeclientdialog();
    close;

OnInit:
    .book_name$ = getitemname(RecipeBook);
    .sex = G_OTHER;
    .distance = 1;
    end;
}