prontera,143,229,6 script Barricade Event Npc 100,{
if([email protected] == 0) {
mes "Barricade Destroyer will start every hour.";
close;
}
else if([email protected] == 1) {
mes "Event is starting, want to join?";
if(select("Yes:No") == 2) close;
mes "Good luck!";
close2;
warp "pvp_n_2-1",106,104;
end;
}
else {
mes "Event has already started, join the next event";
close;
}
end;
OnInit:
waitingroom "Barricade Destroyer",0;
end;
}
pvp_n_1-2,0,0,0 script #barricade_spawner -1,{
OnMinute30:
OnEventStart:
if([email protected] != 0) end;
pvpoff .map$;
mapwarp .map$,"prontera",148,229,0;
killmonsterall .map$;
[email protected] = 1;
announce "[Barricade Destroyer] : Destroy Barricade Event will Start in 5 Minutes!",0;
sleep 2000;
announce "[Barricade Destroyer] : Go to Barricade Event Npc to join",0;
sleep 60000;
announce "[Barricade Destroyer] : Destroy Barricade Event will Start in 4 Minutes!",0; ",0;
sleep 2000;
announce "[Barricade Destroyer] : Go to Barricade Event Npc to join",0;
sleep 60000;
announce "[Barricade Destroyer] : Destroy Barricade Event will Start in 3 Minutes!",0;
sleep 2000;
announce "[Barricade Destroyer] : Go to Barricade Event Npc to join",0;
sleep 60000;
announce "[Barricade Destroyer] : Destroy Barricade Event will Start in 2 Minutes!",0;
sleep 2000;
announce "[Barricade Destroyer] : Go to Barricade Event Npc to join",0;
sleep 60000;
announce "[Barricade Destroyer] : Destroy Barricade Event will Start in 1 Minutes!",0;
sleep 2000;
announce "[Barricade Destroyer] : Go to Barricade Event Npc to join",0;
sleep 60000;
announce "[Barricade Destroyer] : Destroy Time!",0;
[email protected] = 2;
sleep 2000;
mapannounce .map$, "You are given 2 minutes to Destroy Barricade!",1,0x00FF00;
sleep 2000;
mapannounce .map$, "Each Barricade will contain random item when killed.",1,0x00FF00;
sleep 2000;
mapannounce .map$, "Let start Destroying the Barricades! Goodluck!",1,0x00FF00;
[email protected] = getmapusers(.map$);
monster .map$,0,0,"Barricade",1905,[email protected] * 10,strnpcinfo(0)+"::OnKillBarricade";
initnpctimer;
end;
OnTimer300000:
stopnpctimer;
[email protected] = 0;
announce "[Barricade Destroyer] : Barricade Destroyer is over! Til' next time!",0;
killmonsterall .map$;
sleep 5000;
mapwarp .map$,"prontera",148,229,0;
end;
OnKillBarricade:
[email protected] = rand(getarraysize(.item_drop));
getitem .item_drop[[email protected]], 1;
if(.warp_) warp "prontera",148,229;
end;
OnInit:
setarray .item_drop,7227,30000,30042,12103,30033;
.map$ = "pvp_n_2-1";
.warp_ = 0;
bindatcmd "Barricade",strnpcinfo(3)+"::OnEventStart",0,60;
setarray .mapflag,
mf_nowarp, mf_nowarpto, mf_nosave,
mf_nomemo, mf_noteleport, mf_nopenalty,
mf_noreturn, mf_nobranch, mf_nomobloot,
mf_nomvploot, MF_NOZENYPENALTY, MF_NOTRADE;
for([email protected] = 0; [email protected] < getarraysize(.map$); [email protected]++){
for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ )
setmapflag .map$[[email protected]], .mapflag[[email protected]];
}
end;
}