summaryrefslogtreecommitdiff
path: root/npc/024-8/jeremy.txt
blob: 79638bd91a18cef716c94c896b7b71ade9c1b4ef (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
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Questmaker Handbook 14.0 (F = Favorable)

024-8,22,27,0	script	Jeremy	NPC_ELF,{
    .@q = getq(FrostiaQuest_Jeremy);
    if (BaseLevel < 50) {
        mesc l("The old man seems busy. He ignores you.");
        close;
    }
    if (.@q == 0) {
        if (frally()) goto L_Start_F;
        else goto L_Start_U;
    }
    else if (.@q == 1) {
        if (frally()) goto L_Submit_F;
        else goto L_Submit_U;
    }
    else if (.@q == 2) {
        if (frally()) goto L_Done_F;
        else goto L_Done_U;
    }
    Exception("Invalid quest state - "+str(.@q));
    end;

L_Start_F:
    mesn;
    mesq lg("Hey gal, could you do me a little favor?", "Hey pal, could you do me a little favor?");
    next;
    mesn;
    mesq l("Bring me %d %s, the white slimes keep stealing them and I am a bit too old to go running around, hunting slimes!", 3, getitemlink(SilverMirror));
    setq FrostiaQuest_Jeremy, 1;
    close;

L_Submit_F:
    mesn;
    mesq l("Did you got the %d %s I've asked?", 3, getitemlink(SilverMirror));
    next;
    if (askyesno() == ASK_YES) {
        if (countitem(SilverMirror) < 3) {
            mesn;
            mesq l("You've been spending too much time with humans. You are picking up bad habits from them like lying. Be careful.");
            close;
        }
        delitem SilverMirror, 3;
        getexp 24000, 0;
        setq FrostiaQuest_Jeremy, 2;
        mesn;
        mesq lg("Thanks, my friend.");
    }
    close;

L_Done_F:
    mesn;
    mesq l("Thanks for the help earlier.");
    next;
    mesn;
    mesq l("Did you knew that %s was the wizard whom sealed the path to Aethyr, the sacred elf land? I wonder what happened afterwards.", b("Tametomo"));
    close;
/////////////////////////////////////////////////////////////////////////////////
L_Start_U:
    mesn;
    mesq l("What is a %s doing here? Eugh, you stink! You should keep away from our children!", get_race());
    next;
    mesn;
    mesq l("I hate asking this of a lesser being like you, but if you plan in staying in our town, you should at very least make yourself useful.");
    next;
    mesn;
    mesq l("Bring me %d %s, we elves are infinitely beautiful and the white slimes, just like your kin, seems to envy us. So please recover the stolen mirrors.", 3, getitemlink(SilverMirror));
    setq FrostiaQuest_Jeremy, 1;
    close;

L_Submit_U:
    mesn;
    mesq l("Did you got the %d %s I've asked?", 3, getitemlink(SilverMirror));
    next;
    if (askyesno() == ASK_YES) {
        if (countitem(SilverMirror) < 3) {
            mesn;
            mesq l("You liar, I'll teach you a lesson you won't forget!");
            mesc l("%s slaps you!", .name$);
            percentheal -30, 0;
            close;
        }
        delitem SilverMirror, 3;
        getexp 24000, 0;
        setq FrostiaQuest_Jeremy, 2;
        mesn;
        mesq l("Hmpf, for a %s, you're a bit resourceful.", get_race());
    }
    close;

L_Done_U:
    mesn;
    mesq l("What are you still doing here? Begone!");
    next;
    mesn;
    mesq l("Hmpf, if %s was still around... He sealed the path to Aethyr, the sacred elf land. I'm sure he could protect Frostia from the likes of you as well!", b("Tametomo"));
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADBOTTOM, CottonTrousers);
    setunitdata(.@npcId, UDT_HEADMIDDLE, LeatherShirt);
    setunitdata(.@npcId, UDT_HEADTOP, Beard);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 26);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 3);
    npcsit;

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