Jump to content

Question

Posted

-	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?

2 answers to this question

Recommended Posts

Posted


- 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

set .boss, 1;

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:

set .boss, 0;

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;

OnClock0803:

if(!.boss) end;

announce "The boss has won and the Portal is closed!!!", bc_all;

killmonster .map$,strnpcinfo(0)+"::OnMobDead2";

killmonster .map$,strnpcinfo(0)+"::OnMobDead";

set .boss, 0;

end;

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...