summaryrefslogtreecommitdiff
path: root/world/map/npc/013-2/apprentice.txt
blob: 2f7fa3ee767bc20e17c38f86c6a43d9e0d2b95a3 (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
013-2.gat,25,37,0|script|Fabius|115,{
    mes "[Fabius]";
    mes "\"Hey! Wanna have a drink or something? High quality, low cost. A poor fella like me needs a bit of extra cash, ye know.\"";
    next;
    menu
        "Yes please!", L_Yes,
        "No thanks.", L_No,
        "No way, I thought it was for free!", L_Not_Free;

L_Yes:
    mes "[Fabius]";
    mes "\"So what would ya like, then?\"";
    next;
    menu
        "A beer", L_Beer,
        "A milk", L_Milk,
        "Nevermind", -;

L_No:
    mes "[Fabius]";
    mes "\"Suit yourself.\"";
    next;
    goto L_Finish;

L_Not_Free:
    mes "[Fabius]";
    mes "\"Oh, you stupid git! ... But hey, let me tell ya something...\"";
    next;
    mes "[Fabius]";
    mes "\"There's notes flying around in the room up there. Did ya try reading some?\"";
    close;

L_Beer:
    mes "[Fabius]";
    mes "\"That'll be 175 GP.\"";
    next;
    menu
        "Here you are", L_Beer_yes,
        "No thanks", L_Beer_no;

L_Beer_yes:
    if (Zeny < 175)
        goto L_Low_money;
    getinventorylist;
    if (@inventorylist_count == 100
        && countitem("Beer") == 0)
            goto L_TooMany;
    getitem "Beer", 1;
    set Zeny, Zeny - 175;
    goto L_Finish;

L_Beer_no:
    mes "[Fabius]";
    mes "\"No beer, no civilization!\"";
    next;
    goto L_Finish;

L_Milk:
    mes "[Fabius]";
    mes "\"That'll be 300 GP.\"";
    next;
    menu
        "Here you are", L_Milk_yes,
        "No thanks", L_Milk_no;

L_Milk_yes:
    if (Zeny < 300)
        goto L_Low_money;
    getinventorylist;
    if (@inventorylist_count == 100
        && countitem("Milk") == 0)
            goto L_TooMany;
    getitem "Milk", 1;
    set Zeny, Zeny - 300;
    goto L_Finish;

L_Milk_no:
    mes "[Fabius]";
    mes "\"Oh alright. Milk is a deadly poison anyway...\"";
    next;
    goto L_Finish;

L_Low_money:
    mes "[Fabius]";
    mes "\"Aw, you don't have enough gold on you!\"";
    next;
    goto L_Finish;

L_Finish:
    mes "[Fabius]";
    mes "\"By the way, have you seen those flying notes and the mirror in the room next door? They're WAY COOL! Try reading some of the notes!\"";
    close;

L_TooMany:
    mes "[Fabius]";
    mes "\"You don't have room for it.\"";
    close;
}