- script Invasion -1,{ OnWhisperGlobal: if(getgmlevel()<99) end; OnClock0900: OnClock2300: if (.event) end; set .t, rand(0,getarraysize(.map$)); set .cnt, 1; set .killed, .quan; set .event,1; announce "A huge wave of undead monsters is about to be invading "+.map$[.t],0; sleep2 30000; announce "A total of three wave invasion will occur after a few minutes. After clearing all the mobs, Dracula will finally reveal itself",0; sleep2 10000; announce "These undead monsters will be dropping Event Coins at low chance, while Dracula drops Event Coins at 100% Chance!",0; sleep2 10000; announce "Undead Monsters will invade in 30 seconds!!",0; sleep2 10000; announce "Undead Monsters will invade in 20 seconds!!",0; sleep2 10000; announce "Undead Monsters will invade in 10 seconds!!",0; sleep2 10000; announce "The Undead Monsters has invaded "+.map$[.t],0; sleep2 10000; announce "Wave "+(.cnt)+" starts!",0; monster .map$[.t],0,0,"Invasion Monster",.mob[rand(getarraysize(.mob))],.quan,strnpcinfo(0)+"::OnInvasionKilled"; initnpctimer: end; OnTimer3600000: killmonster .map$[.t],strnpcinfo(0)+"::OnBossKilled"; killmonster .map$[.t],strnpcinfo(0)+"::OnInvasionKilled"; announce " Monster Invasion has ended",0; set .event,0; stopnpctimer; end; OnInvasionKilled: set .killed, .killed - 1; switch( .killed ) { case 0: break; default: mapannounce .map$[.t],"Monster left on map: "+.killed,0; end; } set .cnt, .cnt + 1; set .killed, .quan; if( .cnt > .wave ) { announce "The Invasion Boss shows himself!",0; monster .map$[.t],0,0,"Invasion Boss",.boss[rand(getarraysize(.boss))],1,strnpcinfo(0)+"::OnBossKilled"; end; } announce "Wave "+(.cnt)+" starts!",0; monster .map$[.t],0,0,"Invasion Monster",.mob[rand(getarraysize(.mob))],.quan,strnpcinfo(0)+"::OnInvasionKilled"; end; OnBossKilled: announce strcharinfo(0)+" has ended the invasion in "+.map$[.t],0; getitem 20010,5; set .event,0; stopnpctimer; end; OnInit: set .wave, 3; // Number of waves BEFORE the boss set .quan, 60; // Number of mobs spawned for each non-MVP wave setarray .boss[0],3006; // Add all MVP IDs that you want to summon at random setarray .mob[0],3002,3003,3004,3005; // Add all the mob IDs that you want to summon at random setarray .map$[0],"guild_vs1","guild_vs2","guild_vs3"; // Add all the map warps you want your invasion to take place at random }