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
|
// Evol scripts.
// Authors:
// 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 5,
l("Her sword... I... I had a little problem with it."),
l("I ran out of ");
// setq ArtisQuests_Enora, 2;
return;
}
function more_info {
return;
}
function quest_completed {
// setq ArtisQuests_Enora, 4;
return;
}
function blacksmith_house{
return;
}
speech 4, l("Can I be of any help?");
do
{
.@enora = getq (ArtisQuests_Enora);
menuint rif (.@enora == 1, l("Enora wants her sword.")), 1,
rif (.@enora == 2, l("")), 2,
rif (.@enora == 3, l("")), 3,
l("What is this building?"), 4,
l("[Quit]"), 5;
switch (@menuret)
{
case 1:
give_small_quest;
break;
case 2:
more_info;
break;
case 3:
quest_completed;
break;
case 4:
blacksmith_house;
break;
case 5:
break;
}
} while (@menuret != 5);
closedialog;
goodbye;
close;
OnInit:
.sex = G_MALE;
.distance = 3;
end;
}
|