summaryrefslogtreecommitdiff
path: root/npc/031-2/cindyHouse.txt
blob: dcda8cd2e04a2a19cb19ea37ab1fce72c34e5212 (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
031-2,27,26,0	script	Cindy#house	NPC197,{
    if (QL_CINDY == 3 || QL_CINDY == 4) goto L_Happy_Random;

    mes "...";
    goto L_close;

L_Happy_Random:
    getinventorylist;
    @candy = rand(50);
    if (@inventorylist_count < 100 && @candy == 42)
        goto L_Candy;

    setarray @quote_Cindy$, "Thank you so much for rescuing me!",
    "My mother made really tasty cookies yesterday. But I already ate them all...",
    "I want to go ice skating tomorrow. That will be fun!",
    "I wonder when Daddy will come home next time. He always brings exciting stuff!",
    strcharinfo(0) + "! You're my hero!",
    "My mother is so upset about the Yetis - they are very very shy usually. You have to be lucky to see one. I wonder what's wrong with them.",
    "When I'm a little older, I want to travel like you and my father. I want to see every place on the world!",
    "Did you ever meet Santa? He's very kind! He always gives me some candy when we go to see him.",
    strcharinfo(0) + ", you are sooo strong! Amazing! But my dad is strong too!";
    @random = rand(9);
    if (@random != 5)
        emotion EMOTE_HAPPY, strcharinfo(0);
    @quote$ = "\"" + @quote_Cindy$[@random] + "\"";
    mes "[Cindy]";
    mes @quote$;
    goto L_close;

L_Candy:
    mes "[Cindy]";
    mes "\"Santa gave me some candy! Please, take that!\"";
    getitem "Candy", 1;
    goto L_close;

L_close:
    @candy = 0;
    @inventorylist_count = 0;
    @random = 0;
    @quote$ = "";
    close;
}