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
136
137
138
139
140
141
142
|
// TMW-2 Script
// Author:
// Jesusalva
// Description:
// Reset LOCATION$ when entering a town
// .@q = LilitQuest_Access
// 0 - Access not granted
// q2 - Number of attempts
// 1 - Access granted
// 2 - Tree Minigame complete.
// This NPC have a 1x1 touch area.
// If you logout, then relog, and try to fool it by moving - you'll be caught
// and slided to the right position.
018-5,97,69,0 script #LocLilit NPC_HIDDEN,1,1,{
end;
OnTouch:
.@q=getq(LilitQuest_Access);
if (!.@q)
goto L_AccessDenied;
else
LOCATION$="Lilit";
end;
L_AccessDenied:
getmapxy(.@m$, .@x, .@y, 0);
// Cheater detected (either coming to or from Lilit), deploy countermeasures at once
if (.@x != 97 || .@y != 69) {
slide 97, 69;
atcommand("@jailfor 3mn "+strcharinfo(0));
dispbottom l("Cheater detected! You have a three minutes sentence to fulfill, now.");
end;
}
mesn ("???");
mesc l("You should not be here...");
next;
mesn ("???");
mesc l("Leave this place now, defiler...");
next;
mesc l("How will you respond?!"), 1;
select
l("Step forward"),
l("Step backward");
mes "";
// First option is a bad choice, but the only right choice.
if (@menu == 1) {
mesn ("???");
mesc l("DIE, FILTHY @@!", strtoupper(get_race()));
percentheal -30, -30;
next;
} else {
warp "018-5-1", 77, 53;
end;
}
mesn ("???");
mesc l("Ho... I see you are a tough one...");
next;
mesn ("???");
mesc l("What brings you here, @@?", get_race());
next;
mesc l("How will you respond?!"), 1;
select
l("To help fairies"),
l("To explore these lands"),
l("To collect snake skin"),
l("To do quests"),
l("To aid those in need"),
l("Because I am awesome!"),
l("I don't know");
mes "";
mesn ("???");
mesc l("I don't care for your reasons.");
next;
mesn l("Yetifly the Mighty");
mesq l("I am the Yetifly, guardian of butter and fairies.");
next;
mesn l("Yetifly the Mighty");
mesq l("AND YOU ARE NOT WELCOME HERE!!"), 1;
movecam rand(-20,20), rand(-20,20);
sleep2(60);
movecam rand(-20,20), rand(-20,20);
sleep2(60);
movecam rand(-20,20), rand(-20,20);
sleep2(60);
movecam rand(-20,20), rand(-20,20);
sleep2(60);
movecam rand(-20,20), rand(-20,20);
sleep2(60);
movecam rand(-20,20), rand(-20,20);
sleep2(60);
restorecam;
next;
mesn l("Yetifly the Mighty");
mesq l("Unless, of course, if you can prove your strength, challenging me to a duel.");
next;
mesc l("How will you respond?!"), 1;
select
l("Bring it on!"),
l("Nah I am a chicken :b");
mes "";
if (@menu == 2) {
closeclientdialog;
if (rand(1,4) == 3)
slide 98, 83;
else
slide 61, 147;
dispbottom l("The Yetifly drops you off the cliff. Good job, noob.");
percentheal -10, 0;
end;
}
mesn l("Yetifly the Mighty");
mesq l("That wouldn't be fair to you, though. So, you don't need to defeat me.");
next;
mesn l("Yetifly the Mighty");
mesq l("So, you just need to survive for one minute, and I'll consider you are good enough.");
if (getskilllv(NV_TRICKDEAD)) mesc l("WARNING: Fake Death skill is disabled on the fight."), 1;
next;
mesc l("Click \"Next\" to begin the fight."), 1;
next;
closeclientdialog;
//addtimer(1000, "ready? + 1s GO! spawn and keep flowing timers every 10s to check if map is OK + finish.");
// Create instance.
warp "018-5-boss", 0, 0;
end;
}
// Double check
018-5,99,64,0 script #LilitAccCtrl NPC_HIDDEN,1,1,{
OnTouch:
.@q=getq(LilitQuest_Access);
if (!.@q) {
slide 97, 69;
atcommand("@jailfor 3mn "+strcharinfo(0));
dispbottom l("Cheater detected! You have a three minutes sentence to fulfill, now.");
}
end;
}
|