// https://rathena.org/board/topic/107191-r-mvp-event-script/
prontera,155,181,5 warp mvp_event_main_warp 2,2,guild_vs1,50,50
- script mvp_event_main -1,{
OnInit:
.map$ = "guild_vs1";
disablenpc "mvp_event_main_warp";
end;
OnHour00:
OnHour06:
OnHour12:
OnHour18:
if ( !.status ) {
.status = 1;
enablenpc "mvp_event_main_warp";
for ( .@i = 3; .@i > 0; .@i-- ) {
announce "MVP Event start in "+.@i+" minutes.",bc_all;
sleep 60000;
}
disablenpc "mvp_event_main_warp";
announce "MVP Event start now.",bc_all;
for ( .@i = 10; .@i > 0; .@i-- ) {
mapannounce .map$,"MVP Event start in "+.@i+" seconds.",bc_map;
sleep 1000;
}
monster .map$,0,0,"--ja--",1002,1,strnpcinfo(3)+"::OnKilled";
.status = 2;
initnpctimer;
}
end;
OnTimer1800000: // 30 minutes.
OnEnd:
stopnpctimer;
.status = 0;
end;
OnKilled:
if ( .status == 2 ) {
donpcevent strnpcinfo(3)+"::OnEnd";
addrid(1);
getitem 512,1;
getitem 512,2;
getitem 512,3;
mes "Gained rewards";
close2;
warp "SavePoint",0,0;
}
end;
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎