Hi! I've found a script, and i wanted to fine-tune it to my server, it spawns mvps at every 3 hour, but i want to spawn them per 1 minute, ive set the timer but didnt work.
May you fix me / advice me please? script->
- script mvpinis -1,{
OnInit:
setarray .Map$[0],"sec_pri";
setarray .MVP[0],1511,1785,1630,2320,1039,1272,1719,1389,1115,1418,1252,1086,1885,1492,1734,1251,1688,2156,1373,1147,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658;
end;
OnMinute00:
killmonster .Map$[ .RandMap ],"All";
if( .event_timer%3 ) end; //<--- im not sure of this part, first it kills the mvps that were not killed on the last event
.event_timer++;//then if 8 hours transcurred after OnMinute00: the event will start ? because i see a end; there
set .RandMap,rand( getarraysize( .Map$ ) );
set .RandMVP,rand( getarraysize( .MVP ) );
monster .Map$[ .RandMap ],0,0,"MVP Event",.MVP[ .RandMVP ],1,strnpcinfo(0)+"::OnKilled";
announce "Invasion MvP : "+getmonsterinfo( .MVP[ .RandMVP ],0 )+" occurs in "+.Map$[ .RandMap ]+" .",0;
end;
OnKilled:
announce "Invasion MvP : All MvPs have been hunted",0;
set mvp_point, mvp_point + 1;// +1 mvp point
end;
}