Jump to content
  • 0

Invasion Event V2


NexusXVI

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

Hello rathena

Gonna have a quick request for a Invasion event

* No npc
* You can add monster and edit the quantity
* getitem per kill :D
* 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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

Ill test this sandbox

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.01
  • Content Count:  227
  • Reputation:   6
  • Joined:  01/18/12
  • Last Seen:  

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

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