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
|
// TMW2 scripts.
// Author:
// Jesusalva
// Description:
// Scripted functions (Lua)
003-9,58,121,0 script #TInnClockPassage NPC_NO_SPRITE,{
dispbottom l("If I only could find another way in...");
close;
OnInit:
.sex = G_OTHER;
.distance = 3;
end;
}
003-9,0,0,0 script #TulimInnStory NPC_HIDDEN,{
end;
OnEvent1:
.@mapn$="tinn@"+getcharid(0);
@tinn_assa=monster(.@mapn$, 47, 56, "???", Assassin, 1);
@tinn_boss=monster(.@mapn$, 48, 57, "???", HoodedAssassin, 1);
unitwalk(@tinn_boss, 40, 47);
addtimer 400, .name$+"::OnEvent2";
end;
OnEvent2:
.@mapn$="tinn@"+getcharid(0);
setunitdata(@tinn_assa, UDT_SPEED, 200); // So they walk at same pace
unitwalk(@tinn_assa, 40, 48);
addtimer 1860, .name$+"::OnEvent3"; // Roughly 9/11 tiles time
end;
OnEvent3:
.@mapn$="tinn@"+getcharid(0);
unitwarp(@tinn_boss, .@mapn$, 40, 47);
sc_start(SC_STUN, 1440, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, @tinn_boss);
addtimer 440, .name$+"::OnEvent4"; // Roughly 2/11 tiles time
end;
OnEvent4:
.@mapn$="tinn@"+getcharid(0);
unitwarp(@tinn_assa, .@mapn$, 40, 48);
sc_start(SC_STUN, 1000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, @tinn_assa);
addtimer 1000, .name$+"::OnEvent5";
end;
OnEvent5:
setpcblock(255, false);
dispbottom l("I better report this to Lua!");
end;
}
|