summaryrefslogtreecommitdiff
path: root/npc/019-4-1/bedder.txt
blob: c03aa0ed3e49a7529eb3669fd285c54d5936cd62 (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
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Christmas Quest
//    In dire need for white fur for bedding. Gives %Reward% for %Amount% (LESS LIKELY)
//      (TMW Org. Version)
//    Or maybe, he just take the white fur + something + open xmas box and trades
//    these for closed gift boxes (MOST LIKELY)
//      TMW2:ML Version

019-4-1,48,39,0	script	Christmas Storage Master	NPC_GNOME_C,{
    if ($EVENT$ != "Christmas")
        goto L_OutOfSeason;
    mesn;
    mesq l("I was informed that our bedding material for fragile presents is nearly depleted...");
    next;
    goto L_Main;

L_OutOfSeason:
    mesn;
    mesq l("According to the Holy books of a parallel world, Christmas is an event to celebrate the birth of someone very important, the son of God, whom have the promised kingdom.");
    next;
    mesn;
    mesq l("Years later, someone then started giving gifts to the poor childrens on that date. It sticked, and now people usually trade gifts each other on the date.");
    next;
    mesn;
    mesq l("It is known that even world wars have been under cease-fire on this date. On our world, Jesus Saves pays fortunes to Santa so he can gift every adventurer for the good year.");
    next;
    mesn;
    mesq l("When Christmas starts, here will become frantic again, with things running out of stock all the time... But the adventurers deserve it, for fighting monsters the year round.");
    close;

L_Main:
    mesn;
    mesq l("You can give @@ to help us, I'll pay you accordingly.", getitemlink(WhiteFur)); // Normal: 30. Here: 75.
    mesq l("Or you can give me an @@, 3 @@ and an @@, and I'll make a gift for you. If you don't have the @@, you can pay 200 GP for it instead.", getitemlink(OpenedChristmasBox), getitemlink(WhiteFur), getitemlink(MoubooFigurine), getitemlink(MoubooFigurine));
    mes "";
    select
        l("Good to know."),
        rif(countitem(WhiteFur), l("I want to sell White Fur for 75 GP each")),
        rif(countitem(OpenedChristmasBox) && countitem(WhiteFur) >= 3 && countitem(MoubooFigurine), l("I want a gift box and here is the gift.")),
        rif(countitem(OpenedChristmasBox) && countitem(WhiteFur) >= 3 && Zeny >= 200, l("I want a gift box but I don't have a gift."));
    mes "";
    switch (@menu) {
        case 2:
            mesc l("How many do you want to sell? You currently have @@ @@.", countitem(WhiteFur), getitemlink(WhiteFur));
            input .@count;
            mes "";
            if (countitem(WhiteFur) < .@count) {
                mesc l("You don't have that.");
                next;
                goto L_Main;
            } else {
                delitem WhiteFur, .@count;
                Zeny=Zeny+75*(.@count);
                mesn;
                mesq l("Thanks. A pleasure doing business with you.");
                next;
            }
            break;
        case 3:
            inventoryplace ClosedChristmasBox, 1;
            delitem WhiteFur, 3;
            delitem MoubooFigurine, 1;
            delitem OpenedChristmasBox, 1;
            getitem ClosedChristmasBox, 1;
            mesn;
            mesq l("Here you go, anything else?");
            next;
            break;
        case 4:
            inventoryplace ClosedChristmasBox, 1;
            delitem WhiteFur, 3;
            Zeny=Zeny-200;
            delitem OpenedChristmasBox, 1;
            getitem ClosedChristmasBox, 1;
            mesn;
            mesq l("Here you go, anything else?");
            next;
            break;
        default:
            close;
    }

    goto L_Main;

OnInit:
    .sex=G_MALE;
    .distance=5;
    end;
}