NexusXVI Posted April 19, 2014 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share Posted April 19, 2014 Hello rathenaGonna have a quick request for a Invasion event* No npc* You can add monster and edit the quantity* getitem per kill * Add / Edit mapand A special prize for the one who killed the most monster + announce BUMP! Quote Link to comment Share on other sites More sharing options...
sandbox Posted April 21, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: April 18 Share Posted April 21, 2014 Check my script http://rathena.org/board/topic/93385-yet-another-town-invasion-v21/ and this thread... http://rathena.org/board/topic/93368-monster-invasion-script/?hl=%2Bmonster+%2Binvasion Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted April 21, 2014 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted April 21, 2014 Ill test this sandbox Quote Link to comment Share on other sites More sharing options...
NexusXVI Posted April 23, 2014 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted April 23, 2014 Check my script http://rathena.org/board/topic/93385-yet-another-town-invasion-v21/ and this thread... http://rathena.org/board/topic/93368-monster-invasion-script/?hl=%2Bmonster+%2Binvasion No error on map server but it doesnt work //======Name======================================== // Town Invasion //======Version===================================== // 2.1 //======Author(s)=================================== // Sandbox //======Comments==================================== // Summons 2~5 MvP on a random town every 1~23hrs. // Those who killed the MvPs will receive a prize. //================================================== - script TownInvasion -1,{ OnClock0000 OnCLock0300 OnClock0600 OnClock0900 OnClock1200 OnClock1500 OnClock1800 OnClock2100: if(gettime(3) % 2 == 1 && !agitcheck() && !agitcheck2()) { for(.@i = 0; .@i < 4; .@i++) { //Spawn on 4 towns .Town_Invade$ = .Town$[rand(getarraysize(.Town$))]; announce .Town_Invade$+" Guard: Help us! Our town is being invaded!",bc_blue|bc_all; for(.@ix = 0; .@ix < 5; .@ix++) { //MvP spawner monster .Town_Invade$,0,0,"--ja--",.MvP[rand(getarraysize(.MvP))],1,strnpcinfo(1)+"::OnInvadeDeath"; } for(.@iy = 0; .@iy < 100; .@iy++) { //Mob spawner monster .Town_Invade$,0,0,"--ja--",-1,1,strnpcinfo(1)+"::OnMobsDeath"; } } } end; OnInvadeDeath: .@RandMvP = rand(getarraysize(.Prize)); getitem .Prize[.@RandMvP],.PAmt[.@RandMvP]; end; OnMobsDeath: .@RandMob = rand(getarraysize(.Prize2)); getitem .Prize2[.@RandMob],.PAmt2[.@RandMob]; end; OnInit: //Towns to Invade setarray .Town$[0],"louyang","prontera","payon"; //MvPs to summon setarray .MvP[0],2068,1785,1312; //Prize to give MVP setarray .Prize[0],674,6024,6187; setarray .PAmt[0],3,1,150; //Prize to give Mobs setarray .Prize2[0],6187; setarray .PAmt2[0],150; end; } Heree's what I did Quote Link to comment Share on other sites More sharing options...
Question
NexusXVI
Hello rathena

Gonna have a quick request for a Invasion event
* No npc
* You can add monster and edit the quantity
* getitem per kill
* Add / Edit map
and A special prize for the one who killed the most monster + announce
BUMP!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.