hmm.. let me copy paste but i didnt tried it yet.
- script Mastering -1,{
OnInit:
set .bspawn,0; //Where the kills will be saved(don't change)
set .bneed,4; //Kills needed
set .bossid,1090; //Boss ID
set .minibossid,1002; //Mini Boss ID
set .reward,512; //Reward for killing the Boss
set .map$,"prontera"; //Name of the map you kill mini bosses
end;
OnNPCKillEvent:
if (mobcount(.map$, strnpcinfo(0)+"::OnBossKill"))
end;
if (killedrid == .minibossid) && (strcharinfo(3) == "prontera") {
set .bspawn,.bspawn +1;
if (.bspawn >= .bneed){
mapannounce .map$,"The map boss has appeared!",0;
monster "prontera", 156, 180, "Mastering", .bossid, 1, strnpcinfo(0) + "::OnBossKill";
//monster .map$,0,0,0,0,"Mastering",.bossid,1,"BOSSSPAWN::OnBossKill";
set .bspawn, 0;
}
}
end;
OnBossKill:
mapannounce .map$, "The player "+strcharinfo(0)+" has killed the boss!", bc_map;
//mapannounce .map$,"The map boss has appearedasdasd!",0,
getitem (.reward,1);
end;
}