- script Royal Invasion -1,{
OnClock0603:
OnClock1757:
setarray .@Towns$[0],"ars_fild12"; // Random town list
set .map$, .@Towns$[rand(getarraysize(.@Towns$))];
set .@mob, 3613; // Mob ID
set .count, 500; // Mob count
monster .map$,0,0,strmobinfo(1,.@mob),.@mob,.count,strnpcinfo(0)+"::OnMobDead";
end;
OnMobDead:
set .count, .count-1;
if (!.count) {
set .@mob, 3622; // Boss ID
monster .map$,0,0,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(0)+"::OnMobDead2";
}
end;
OnMobDead2:
announce strcharinfo(0)+" Emperor's Army has been annihilated! The Rune Midgard is Safe",0;
sleep2 20000;
announce "All Mighty Warrior who fought the emperor will be return to their lands. The Portal is closed.", bc_all;
atcommand "@doommap";
end;
}
how can add this. lets say the Royal Invasion start this OnClock0603: and after 2 hrs if the mobs not dead this time OnClock0803: the command auto run
atcommand "@killmonster";
is closed.", bc_all;
atcommand "@doommap";
OnClock0803:
atcommand "@killmonster";
end;
}
like this?