Jump to content
  • 0

Hourly Monster Invasion Event


Question

2 answers to this question

Recommended Posts

  • 0
Posted

Have you tried using search?

http://rathena.org/board/topic/56903-customisable-monster-invasion-event/

However you could do your own following this simple script.

-<TAB>script<TAB>Invasion<TAB>-1,{
OnInvasionStart:
set .t, rand(getarraysize(.@map$));
set .cnt, 1;
set .killed, .quan;
announce "Monsters are invading town "+.map$[.t],0;
announce "Wave #"+(.cnt)+" starts!",0;
monster .map$[.t],0,0,"Invasion Monster",.mob[rand(getarraysize(.mob))],.quan,strnpcinfo(0)+"::OnInvasionKilled";
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 <item id>,<quantity>;
end;
OnInit:
set .wave, 2; // Number of waves BEFORE the boss
set .quan, 100; // Number of mobs spawned for each non-MVP wave
setarray .boss[0],<mob id>,<mob id>; // Add all MVP IDs that you want to summon at random
setarray .mob[0],<mob id>,<mob id>; // Add all the mob IDs that you want to summon at random
setarray .map$[0],"prontera","morocc","aldebaran"; // Add all the map warps you want your invasion to take place at random
}

  • 0
Posted
On 05.06.2012 at 11:41 AM, RCharles said:

Have you tried using search?

http://rathena.org/board/topic/56903-customisable-monster-invasion-event/

However you could do your own following this simple script.

 


-<TAB>script<TAB>Invasion<TAB>-1,{
OnInvasionStart:
set .t, rand(getarraysize(.@map$));
set .cnt, 1;
set .killed, .quan;
announce "Monsters are invading town "+.map$[.t],0;
announce "Wave #"+(.cnt)+" starts!",0;
monster .map$[.t],0,0,"Invasion Monster",.mob[rand(getarraysize(.mob))],.quan,strnpcinfo(0)+"::OnInvasionKilled";
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 <item id>,<quantity>;
end;
OnInit:
set .wave, 2; // Number of waves BEFORE the boss
set .quan, 100; // Number of mobs spawned for each non-MVP wave
setarray .boss[0],<mob id>,<mob id>; // Add all MVP IDs that you want to summon at random
setarray .mob[0],<mob id>,<mob id>; // Add all the mob IDs that you want to summon at random
setarray .map$[0],"prontera","morocc","aldebaran"; // Add all the map warps you want your invasion to take place at random
}
 

 

It dont write what nubmer wave and who killed boss and dont give him reward. Can you edit it please?

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