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
|
// Evol scripts.
// Author:
// Reid
// 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 {
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;
}
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?"),
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);
closedialog;
goodbye;
close;
OnInit:
.sex = G_MALE;
.distance = 3;
end;
}
|