Jump to content
  • 0

Hourly Monster Invasion Event


Jhosef

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

I just want to to request a Hourly MOnster invasion Event

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  154
  • Reputation:   8
  • Joined:  05/31/12
  • Last Seen:  

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
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   0
  • Joined:  10/23/15
  • Last Seen:  

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?

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