summaryrefslogtreecommitdiff
path: root/npc/001-1/chelios.txt
blob: 3641b0b6c46f6b9a586f2dae8b8598f7e9866b3a (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Evol scripts.
// Author:
//    Reid
//    Jesusalva
// Description:
//    Blacksmith's assistant of Artis
// Variables:
//    ArtisQuests_Enora
// Values:
//    0    Default.
//    1    BlackSmith quest delivered.
//    2    Chelios Quest given.
//    3    Chelios Quest done.
//    4    BlackSmith gave the sword.

001-1,95,109,0	script	Chelios	NPC_CHELIOS,{
    function give_small_quest;
    function more_info;
    function quest_completed;
    function blacksmith_house;
    function explain_weapons;

    speech S_LAST_NEXT, l("Can I be of any help?");

    do
    {
        .@enora = getq(ArtisQuests_Enora);
        select
            rif(.@enora == 1, lg("I came to retrieve a package for Enora.")),
            rif(.@enora == 3, l("I have your black iron.")),
            rif(.@enora >= 2, l("Where is the Merchant Guild?")),
            l("What is this building?"),
            l("Why some of my weapons have a plus sign near them?"),
            menuaction(l("Quit"));

        switch (@menu)
        {
            case 1:
                give_small_quest;
                break;
            case 2:
                quest_completed;
                break;
            case 3:
                more_info;
                break;
            case 4:
                blacksmith_house;
                break;
        }
    } while (@menu != 5);

    closeclientdialog;
    goodbye;
    close;


function give_small_quest {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Her sword... I'm having some trouble finishing it."),
        l("You see, Enora asked me to do a black iron sword, unfortunately I ran out of the material needed, and..."),
        l("Only Don and the Merchant Guild have that kind of material in stock. It's called black iron."),
        l("It's better to deal with the Merchant Guild than the old man, Don has this ability to hammer down your enthusiasm in sparkling fury!"),
        l("If Enora wants her sword now, I need to ask for your help.");

    switch (select(l("Let's not keep her waiting."),
                    l("Not now.")))
    {
        case 1:
            break;
        case 2:
            speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
                lg("I'll be here, come back when you'll be ready.");

            return;
    }

    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Thank you very much!"),
        l("Talk with Lloyd the Banker in the Merchant Guild, it's a big building in the northern side of Artis, at the top of the small hill.");

    setq ArtisQuests_Enora, 2;

    return;
}

function more_info {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("It's the big building in northern Artis, at the top of a small hill."),
        l("Take the east road that goes to the north and follow it until you are on top of the cliff."),
        l("That part of the town is called the Gilded Hill, it's also where the Merchant Guild has its headquarters."), //rich hill
        l("Lloyd still owes me, but beware of those money-grabbers, or they might sell your own teeth to you!");

    return;
}

function quest_completed {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Oh... Awesome!"),
        l("You were gone so I thought you let me down."),
        l("Don gave me some black iron... after I asked him nearly ten times."),
        l("But thank you anyway! I can refund him now!"),
        l("Take the sword, and say hi to Enora for me!");

    setq ArtisQuests_Enora, 4;

    return;
}

function blacksmith_house {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Behind me? It's the Blacksmith House, the most renowned throughout Aemil."),
        l("There are two shops inside, they are independent from the Merchant Guild of Artis."),
        l("Now that I think about it, they are the only shops that are independent in Artis..."),
        l("...it might be because of Don... he is the master blacksmith of this place and a model to me!");

    return;
}

function explain_weapons {
    speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
        l("Weapons do not level up. But the more you use them, the more used to them you become."),
        l("As you start to wield them better, you will be able to draw better their full potential."),
        l("Your proeficiency with a certain weapon is noted at the side of it. Naturally, you cannot obtain proeficiency by purchasing someone else's weapon.");
    mesn;
    speech S_LAST_NEXT,
        l("By the way, I'll explain you how crafting works when I become less lazy.");
    return;
}

OnInit:
    .distance = 4;
    end;
}