Jump to content
  • 0

R>edit


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  


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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  


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

}

Link to comment
Share on other sites

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.

×
×
  • Create New...