- script BL_NPC -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$,"pay_dun00"; //Name of the map you kill mini bosses
end;
OnNPCKillEvent:
if (killedrid == .minibossid){
set .bspawn,.bspawn +1;
if (.bspawn >= .bneed){
mapannounce .map$,"The map boss has appeared!",0;
monster "pay_dun00", 0, 0, "Mastering", .bossid, 1, strnpcinfo(0) + "::OnBossKill";
//monster .map$,0,0,0,0,"Mastering",.bossid,1,"BOSSSPAWN::OnBossKill";
set .bspawn, 0;
}
}
end;
OnBossKill:
mapannounce "The player "+strcharinfo(0)+" has killed the boss!",
getitem (.reward,1),
I was looking a few scripts online and found the best that close to what I want.
What I want?
Basically killing a few mobs, and then spawn a boss.
The problem :
The script above works perfectly, however if you kill more and more poring it will continue to spawn more2 mastering.
Question :
Does anyone knows how to limit the amount of mastering present in the map? Like if the script spawn 1 mastering by killing 4 porings, it won't spawn another mastering unless the current mastering is killed.
Question
cmsm94
Hi guys,
I was looking a few scripts online and found the best that close to what I want.
What I want?
Basically killing a few mobs, and then spawn a boss.
The problem :
The script above works perfectly, however if you kill more and more poring it will continue to spawn more2 mastering.
Question :
Does anyone knows how to limit the amount of mastering present in the map? Like if the script spawn 1 mastering by killing 4 porings, it won't spawn another mastering unless the current mastering is killed.
Thanks!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.