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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
<?php
- script announce_nvz -1,{
OnClock1100:
OnClock1700:
OnClock2300:
announce "O Evento Pega-Pega começa em três minutos!",0;
disablenpc "Pega Pega";
enablenpc "Pega-Pega";
killmonsterall "quiz_01";
sleep 55000;
announce "O Evento Pega-Pega começa em dois minutos!",0;
sleep 60000;
announce "O Evento Pega-Pega começa em um minuto!",0;
sleep 30000;
mapannounce "quiz_01","O Evento começa em 30 segundos!",0;
sleep 25000;
announce "Você tem 5 segundos!",0;
sleep 1000;
announce "Você tem 4 segundos!",0;
sleep 1000;
announce "Você tem 3 segundos!",0;
sleep 1000;
announce "Você tem 2 segundos!",0;
sleep 1000;
announce "Você tem 1 segundo!",0;
sleep 1000;
announce "o Evento Pega-Pega começou!! Boa sorte a todos!!",0,0x00FF00;
disablenpc "Pega-Pega";
enablenpc "Pega Pega";
monster "quiz_01",42,369,"Pega-Pega",1136,1;
sleep 10000;
monster "quiz_01",42,369,"Pega-Pega",1136,1;
sleep 10000;
monster "quiz_01",42,369,"Pega-Pega",1136,1;
sleep 10000;
initnpctimer;
end;
OnTimer5000:
if ( getmapusers("quiz_01") == 0 )
{
killmonsterall "quiz_01";
announce "o Evento Pega-Pega acabou! Obrigado a todos que participaram!",0;
disablenpc "Recompensa";
stopnpctimer;
end;
}
else if ( getmapusers("quiz_01") > 1 )
{
mapannounce "quiz_01",getmapusers("quiz_01") + " jogadores seguem no Evento!",0,0x00FF00;;
initnpctimer;
end;
}
initnpctimer;
end;
OnPCDieEvent:
getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;
if ( .@mapnvz$ == "quiz_01") {
sleep2 1;
warp "prontera",156,223;
atcommand "@alive "+ strcharinfo(0);
dispbottom "Você perdeu.. =/";
}
sleep2 1000;
if ( .@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) {
killmonsterall "quiz_01";
mapannounce "quiz_01","Parabéns! Você ganhou, fale com o NPC Recompensa e pegue seu prêmio!",0;
enablenpc "Recompensa";
stopnpctimer;
end;
}
end;
}
quiz_01,42,369,3 script Recompensa 72,{
if (sex == 1) {
announce "O jogador " + strcharinfo (0) + " ganhou o Evento Pega-Pega!",0;
}
else {
announce "A jogadora " + strcharinfo (0) + " ganhou o Evento Pega-Pega!",0;
};
getitem 671,2;
warp "prontera",156,223;
sleep2 250;
disablenpc "Recompensa";
end;
}
prontera,142,176,3 script Pega Pega 115,{
show "[Pega-Pega]";
show "Estamos fechados no momento!!";
close;
}
prontera,142,176,3 script Pega-Pega 116,{
event:
mes "[^0000FFEvento Pega-Pega^000000]";
mes "Deseja entrar no Evento Pega-Pega???";
next;
if (checkriding() || countitem(662) > 0) {
mes "[Pega-Pega]";
mes "Você não pode entrar montado em um peco-peco ou carregando poções!";
close;
}
switch(select("Sim","Não")) {
case 1:
sc_end SC_ALL;
sc_start SC_DECREASEAGI,300000,10;
percentheal 100,100;
warp "quiz_01",42,369;
end;
break;
case 2:
mes "[^0000FFEvento Pega-Pega^000000]";
mes "Esta bem, quando quiser volte a falar comigo!";
close;
break;
NO:
mes "[^0000FFTeste^000000]";
mes "Teste";
close;
}
OnInit:
disablenpc "Teste";
disablenpc "Recompensa";
end;
}
quiz_02,161,348,3 script Pega-Pegaend;
npcspeed 100;
OnTouch:
if (getmapusers("quiz_02") == 1) goto FIM;
misceffect 220;
warp "prontera",156,193;
end;
OnTimer500:
npcwalkto 160+rand(40),347+rand(40);
setnpctimer 0;
OnInit:
initnpctimer;
end;
quiz_01 mapflag nowarp
quiz_01 mapflag nowarpto
quiz_01 mapflag nosave SavePoint
quiz_01 mapflag nobranch
quiz_01 mapflag noicewall
quiz_01 mapflag nomemo
quiz_01 mapflag noreturn
quiz_01 mapflag noteleport
quiz_01 mapflag nopenalty
quiz_01 mapflag noskill |