Jump to content
  • 0

R> Custom Invasion


Question

Posted

hi there, i want to request a custom invasion here's the script scenario

every 7pm there's an invasion in a random town then it consist of 50 mobs and after killing 50 mobs 1 boss will spawn and after the boss killed the named of player killed will be announce thanks ! more power rathena

2 answers to this question

Recommended Posts

Posted
-    script    Invasion    -1,{
OnHour19:
   setarray .@Towns$[0],"prontera","alberta","payon","geffen"; // Random town list
   set .map$, .@Towns$[rand(getarraysize(.@Towns$))];
   set .@mob, 1002; // Mob ID
   set .count, 50; // Mob count
   monster .map$,0,0,strmobinfo(1,.@mob),.@mob,.count,strnpcinfo(0)+"::OnMobDead";
   end;
OnMobDead:
   set .count, .count-1;
   if (!.count) {
       set .@mob, 1090; // Boss ID
       monster .map$,0,0,strmobinfo(1,.@mob),.@mob,1,strnpcinfo(0)+"::OnMobDead2";
   }
   end;
OnMobDead2:
   announce strcharinfo(0)+" has killed the 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...