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
|
// Evol scripts.
// Author:
// Reid
// Description:
// Moon, main NPC for the urchin quest.
001-1,52,44,0 script Xilaxa#001-1 NPC_UKAR_MALE_LEGION_ARTIS,{
function face_to_PC {
getmapxy(.@map$, .@cx, .@cy, 0);
@Devis_old_dir = .dir;
npc_turntoxy(.@cx, .@cy);
return;
}
function local_close {
if (@Devis_old_dir != .dir)
{
.dir = @Devis_old_dir;
}
npc_resumemove;
close;
}
npc_pausemove;
face_to_PC;
npctalkonce goodbye_msg();
local_close;
OnTimer1000:
dographmovestep;
OnInit:
.sex = G_MALE;
.distance = 5;
initmovegraph "mid", 54, 43, 60, 46,
"left", 47, 50, 52, 55,
"right", 62, 50, 67, 55;
setmovegraphcmd "mid", "left", 1, "dir 0; wait 4",
"mid", "left", 4, "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
"mid", "left", 2, "dir 4; wait 5; dir 0; wait 2",
"mid", "left", 3, "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
"mid", "left", 1, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
"mid", "right", 3, "dir 0; wait 4",
"mid", "right", 4, "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
"mid", "right", 2, "dir 4; wait 5; dir 0; wait 2",
"mid", "right", 1, "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
"mid", "right", 2, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
"left", "mid", 2, "dir 0; wait 4",
"left", "mid", 1, "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
"left", "mid", 3, "dir 4; wait 5; dir 0; wait 2",
"left", "mid", 2, "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
"left", "mid", 3, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5",
"right", "mid", 3, "dir 0; wait 4",
"right", "mid", 2, "dir 2; wait 3; dir 0; wait 2; dir 6; wait 1; dir 0",
"right", "mid", 1, "dir 4; wait 5; dir 0; wait 2",
"right", "mid", 1, "dir 6; wait 1; dir 0; wait 3; dir 2; wait 3; dir 0",
"right", "mid", 2, "dir 0; wait 1; dir 2; wait 1; dir 0; wait 1; dir 6; wait 5";
firstmove "wait 5", "mid";
initnpctimer;
}
|