summaryrefslogtreecommitdiff
path: root/npc/021-2_Tulimshar/bakery.txt
blob: 8fcddf81632e38cdea63dbc279045080279fa5b0 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// The bakery

// The chef
021-2.gat,95,21,0	script	Riskim	148,{
	mes "[Riskim]";
	mes "\"Welcome to our bakery!\"";
	callfunc "KadiyaSubquestConsts";
        if ((@Q_kadiya_status == @Q_STATUS_WANTS_CHOCOCAKE) && (countitem ("MopoxCurePotion") > 0))
        	goto L_lace_chococake;

        if ((@Q_kadiya_status == @Q_STATUS_WANTS_ORANGECUPCAKE) && (countitem ("MopoxCurePotion") > 0))
        	goto L_lace_cupcake;

	close;

L_lace_chococake:
        next;

        menu
		"Thanks!  Let me have a look around...", L_end,
                "Can you put this potion into a [Chocolate Cake]?", -,
		"Goodbye!", L_end;

	mes "[Riskim]";
        mes "As you show Riskim the potion, he leans back, away from it.";
        mes "\"Ooooh, I remember that smell...\"";
        mes "\"Elanore's Mopox potion, right?  She made me drink that, too...\"";
        mes "He chuckles.";
        mes "\"Yes, well, you do want to hide that somehow.\"";
        next;

	mes "[Riskim]";
        mes "\"We'll need extra chocolate for that one.  If you can give me ten pieces of chocolate and that potion, plus 400 GP, I will bake you a special [Chocolate Cake] that hides the taste.\"";
        next;

        menu
		"I will get them for you.", L_end,
                "Here you are!", -,
                "Maybe later.", L_end;

        if (countitem("ChocolateBar") < 10)
		goto L_lacking_ingredients;
        if (countitem("MopoxCurePotion") < 1)
		goto L_lacking_ingredients;
        if (zeny < 400)
		goto L_lacking_zeny;
        delitem "MopoxCurePotion", 1;
        delitem "ChocolateBar", 10;
        getitem "LacedChocolateCake", 1;
        set zeny, zeny - 400;

	mes "[Riskim]";
        mes "\"Please have a seat!\"";
        mes "You watch as Riskim melts the chocolate and stirs in the potion, then glazes a cake with the mixture.";
        mes "\"It's a bit more chocolatey than your average chocolate cake, of course...\"";
        next;

	mes "[Riskim]";
        mes "Riskim hands you the cake.";
        mes "\"Here you are.  I hope that this works.\"";
        close;

L_lacking_zeny:
	mes "[Riskim]";
        mes "\"I'm sorry, but I have to charge 400 GP.\"";
        close;

L_lacking_ingredients:
	mes "[Riskim]";
        mes "\"Sorry, but I need ten [Chocolate Bar]s AND your cure potion for this.  Please come back later when you have everything.\"";
        close;

L_lace_cupcake:
        next;

        menu
		"Thanks!  Let me have a look around...", L_end,
                "Can you put this potion into an [Orange Cupcake]?", -,
		"Goodbye!", L_end;

	mes "[Riskim]";
        mes "\"[Orange Cupcake]s?  Oh dear... I'm sorry, but I have a very bad orange allergy.\"";
        next;
	mes "[Riskim]";
        mes "\"Perhaps the Chef at Dimond's Cove can help you?  We get all our cupcakes from him.\"";
        next;

L_end:
        close;

}

// Server?
021-2.gat,82,23,0	script	Sara	108,{
	mes "[Sara]";
	mes "\"Hello!\"";
	close;
}

// The cashier
021-2.gat,89,21,0	shop	Drabur	112,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,Cake :-1,CherryCake :-1,OrangeCupcake :-3,Milk :-5,XmasCake :-1

// Stockroom boy
021-2.gat,133,21,0	script	Iormo	160,{
	mes "[Iormo]";
	mes "\"This stock room can get messy.\"";
	close;
}

// An old couple eating at the bakery
021-2.gat,71,22,0	script	Rynoh	159,{
	mes "[Rynoh]";
	mes "\"The cakes may be expensive, but they sure are delicious!\"";
	close;
}

021-2.gat,73,22,0	script	Ontas	154,{
	mes "[Ontas]";
	mes "\"We come here every week.  This place has some of the best bread I've ever eaten!\"";
	close;
}