- script Sample -1,{
OnInit:
setarray .Map$[0],"prontera","payon","izlude";
setarray .MVP[0],1658,1648,1751,1312;
end;
OnMinute00:
set .RandMap,rand( getarraysize( .Map$ ) );
set .RandMVP,rand( getarraysize( .MVP ) );
monster .Map$[ .RandMap ],0,0,"MVP Event",.MVP[ .RandMVP ],1,strnpcinfo(0)+"::OnKilled";
announce "MVP Event : "+getmonsterinfo( .MVP[ .RandMVP ],0 )+" occur in "+.Map$[ .RandMap ]+" .",0;
end;
OnKilled:
announce "MVP Event : End...MVP Died",0;
end;
}
So, on this script.. Should I add the monster's ID on this line?
setarray .MVP[0]
EDIT:
@Emistry
Good work Mr. Emistry, It's working now.. anyway just a few questions regarding on this script..
How to make this after the OnMinute: and players didn't kill the MVP, can you add @killmonster2 so when the OnMinute: comes again, it will automatically trigger the command @killmonster2 on the last invaded map.
Thank you