summaryrefslogtreecommitdiff
path: root/npc/020-2-20/drabur.txt
blob: 8ebbb979ee32d54d45b9cedbfba5f0404686edf7 (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
// The Mana World scripts.
// Author:
//    Micksha
// Description:
//    Drabur, the baker's salesman.
// THIS IS A PLACEHOLDER!

020-2-20,47,30,0	script	Drabur	NPC_GENERAL_STORE,{
    mesn;
    mesq l("Please don't interrupt my work, I am busy.");
    next;
    select
        l("Hi there."),
        l("Do you sell anything here?"),
        l("Could I lodge here?"),
        l("Goodbye.");
    mes "";
    switch (@menu) {
    case 1:
        mesn;
        mesq l("...");
        break;
    case 2:
        mesn;
        mesq l("Sure - take a look.");
        next;
        closeclientdialog;
        shop .name$;
        break;
    case 3:
        mesn;
        mesq l("Sorry, we've booked our only room to a foreigner called Kylian.");
        next;
        mesn;
        mesq l("And we got rid of the extra beds as no one was using them, so we are full at the moment. Come again later.");
        break;
    }
    close;

OnInit:
    .distance = 4;
    tradertype(NST_MARKET);

    sellitem BlueberryCake, -1, 1+rand2(10);
    sellitem CarrotCake, -1, 1+rand2(10);
    sellitem Donut, -1, 1+rand2(10);
    end;

OnClock0002:
    restoreshopitem BlueberryCake, rand2(11);
    restoreshopitem CarrotCake, rand2(11);
    restoreshopitem Donut, rand2(11);
    end;
}