how to make boss spawn only 1 after all the mvp is kill??
thank in advance
here my script
- script invasion -1,{
OnInit:
setarray .Map$[0],"prontera","payon","izlude","dicastes01";
end;
//OnMinute00:
OnWhisperGlobal:
set .RandMap,rand( getarraysize( .Map$ ) );
set .mvp1,1658;
set .mvp2,1648;
set .mvp3,1751;
set .mvp4,1312;
set .boss,2600;
set .ItemID,12484;
announce "[ Rune-Midgard Guard ]: We have trouble here in the town " + .Map$[.RandMap] +"!", bc_all;
sleep2 5000;
announce "[ Rune-Midgard Guard ]: Everyone, we need your help to get rid of these monsters!", bc_all;
monster .Map$[ .RandMap ],0,0,"Invasion Soldier",.mvp1,10,;
monster .Map$[ .RandMap ],0,0,"Invasion Soldier",.mvp2,10,;
monster .Map$[ .RandMap ],0,0,"Invasion Soldier",.mvp3,10,;
monster .Map$[ .RandMap ],0,0,"Invasion Soldier",.mvp4,10,"::OnKilled";
end;
OnKilled:
if (mobcount("+.Map$[.RandMap]+", "Invasion Soldier") > 0) {
mes "^008000 The Invasion Soldier is still alive! ^000000";
}
else {
announce "[ Rune-Midgard Guard ]: The " + strmobinfo(1,.boss) + " has spawned in " + .Map$[.RandMap] + "!", bc_all;
monster .Map$[ .RandMap ],0,0,"Invasion Boss",.boss,1,strnpcinfo(0)+"::OnSpecialMobDead:";
}
OnSpecialMobDead:
announce strcharinfo(0)+" has fought off the Invasion and has been awarded a worthy prize!", bc_all;
getitem .ItemID,3;
end;
}
Question
ewanjeli
how to make boss spawn only 1 after all the mvp is kill??
thank in advance
here my script
Link to comment
Share on other sites
7 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.