i want to share my custom world boss, please try it
Welgaia,128,96,4 script World Boss 123,{
@_count = (.monster_kill_requirement - $world_boss_counter);
mes "[ World Boss ]";
mes "Status :" +($world_boss_active == 1?"^00FF00Active^000000":"^FF0000Inactive^000000");
mes "Kill Remaining - [ ^0000FF"+$count+"^000000 ]";
mes "=============================";
mes "Reward:";
mes "<ITEM>World Boss Reward<INFO>7539</INFO></ITEM>";
end;
OnNPCKillEvent:
if($world_boss_active == 1) end;
$world_boss_counter += 1;
if($world_boss_counter == .monster_kill_requirement){
donpcevent "World Boss::OnSummon";
}
end;
OnSummon:
setarray .bc_city$[0],"alberta","aldebaran","geffen","izlude","morocc","payon","prontera","new_zone03";
setarray .bc_monster[0],"1917","1885","1874","1871","1832","1802","1785","1779","1768","1751","1734","1719","1708","1688","1685","1658","1651","1650","1649","1648","1647","1646","1630","1623","1583","1511","1502","1492","1418","1399","1389","1373","1312","1272","1252","1251","1190","1159","1157","1150","1147","1115","1112","1087","1086","1059","1046","1038","2202";
set .@city,rand(0,getarraysize(.bc_city$)-1);
set .@mvp,rand(0,getarraysize(.bc_monster)-1);
$world_boss_active = 1;
announce "Danger! "+.bc_city$[.@city]+" under attack by MvP!!",bc_all; //announce and end
monster .bc_city$[.@city],0,0,"City Attacker",.bc_monster[.@mvp],1,"World Boss::OnBossKill";
end;
OnBossKill:
announce "Congratulation to "+strcharinfo(0)+", for save the city "+.bc_city$[.@city]+" !",bc_all;
$world_boss_active = 0;
$world_boss_counter = 0;
getitem 7539,10;
end;
OnInit:
.monster_kill_requirement = 1000000;
freeloop(1);
while(1){
$count = (.monster_kill_requirement - $world_boss_counter);
waitingroom "Kill Left : ["+$count+"]",0;
sleep 1000; //= 1 Second Refresh
delwaitingroom;
}
freeloop(0);
end;
}