Jump to content
  • 0

[MVP Invasion] I need your help to enhance.


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

prontera,147,167,4	script	Prophet	705,{

//--------------------------------------------
	set .@mz, 2000000000;	
	set .@n$, "[Prophet]";	
//--------------------------------------------

//--------------------------------------------
	if($Invade == 1){
	mes .@n$;
	mes "MvP Invasion is now Activated.";
	mes "Get ready for the MvP Invasion and it will start at 12 midnight.";
	mes "You have only 1 day to eliminate them all.";
	close;
	}
	mes .@n$;
	mes "Balance : "+(.@mz - $donate)+"z";
	mes "Donated : "+$donate+"z";
	next;
	switch( select("Donate","What is MvP Invasion?","Nevermind") )
	{

		case 1: 

			input .@amt,0,.@mz;
			if ( .@amt == 0 )
			{
				next;
				mes .@n$;
				mes "^FF0000Invalid input...^000000";
				close;
			}
			if ( .@amt > Zeny ) 
			{
				next;
				mes .@n$;
				mes "^FF0000You have insufficient amount of Zeny on hand.^000000";
				close;
			}
			set Zeny, Zeny - .@amt;
			set $donate, $donate + .@amt;
			next;
			if($donate >= .@mz){
			mes .@n$;
			mes "Donated : "+$donate+"z";
			donpcevent "Invasion::OnInvasion";
			set $donate,0;
			close;
			}	
			mes .@n$;
			mes "Donated : "+$donate+"z";			
			close;

		case 2: 
			mes .@n$;
			mes "MvP Invasion will be activated if the whole midgard reach the amount of donation needed. Announcement will be held at the same time that donation is completed. All MvP monster will be summoned in morroc town at 12mn and will last a day.";
			close;

		case 4:
			mes .@n$;
			mes "As you wish.";
			mes "See you later.";
			close;
	}

}

-	script	Invasion	-1,{



OnInvasion:

//--------------------------------------------
	set $Invade,1;
//--------------------------------------------
announce "Prophet: MvP Invasion is now Activated",0;
sleep2 10000;
announce "Prophet: Get ready for the MvP Invasion and it will start at 12 midnight.",0;
sleep2 10000;
announce "Prophet: You have only 1 day to eliminate them all.",0;
end;

OnClock0000:
goto invade;

invade:
if($invade == 1){
set $invade,0;
donpcevent "Invasion::OnStart";
announce "Citizen of Morroc: We are invaded by MvP Monsters Please help us!!",0;
}else{
killmonsterall "morocc",1;
}
end;

OnStart:
monster "morocc",0,0,"Amon Ra",1511,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Assassin Cross Eremes",1647,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Atroce",1785,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"White Lady",1630,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Baphomet",1039,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Beelzebub",1873,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Boitata",2068,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Dark Lord",1272,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Detale",1719,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Doppelganger",1046,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Dracula",1389,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Drake",1112,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Eddga",1115,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Evil Snake Lord",1418,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Fallen Bishop Hibram",1871,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Garm",1252,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Gloom Under Night",1768,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Golden Thief Bug",1086,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Gopinich",1885,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"High Priest Magaleta",1649,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"High Wizard Katrinn",1651,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Ifrit",1832,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Incantation Samurai",1492,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Kiel D-01",1734,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Stormy Knight",1251,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Ktullanux",1779,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Lady Tanee",1688,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Lord Knight Seyren",1646,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Lord of Death",1373,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Maya",1147,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Mistress",1059,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Moonlight Flower",1150,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Nidhoggr's Shadow",2022,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Orc Hero",1087,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Orc Lord",1190,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Osiris",1038,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Pharaoh",1157,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Phreeoni",1159,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"RSX-0806",1623,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Sniper Cecil",1650,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Tao Gunka",1583,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Thanatos",1708,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Turtle General",1312,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Valkyrie Randgris",1751,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Vesper",1685,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Whitesmith Howard",1648,3,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Wounded Morroc",1917,1,"Invasion::OnMyMobDead";
monster "morocc",0,0,"Egnigem Cenia",1658,3,"Invasion::OnMyMobDead";
end;



OnMyMobDead:
announce "Citizen of Morroc: Thank you ["+strcharinfo(0)+"] for helping us!",0;
end;
}

//--------------------------------------------
morocc	mapflag	monster_noteleport
//--------------------------------------------

Hi guyss.. I need some edit on my script..

 

I want some changes first is when I complete the 2b zeny donation the invasion will start instead of waiting for 12nn and will end after 24 hours.. second is the set of monster will be on array type.. and 3rd is on OnMyMobDead:  player name and monster name will be announced.. example: Citizen of Morroc: Thank you player for eliminating baphomet..

 

I hope someone is willing to share...

Edited by gmprestige
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

-	script	Invasion	-1,{

OnInvasion:
announce "Prophet: MvP Invasion is now Activated",0;
sleep2 10000;
announce "Prophet: You have only 1 day to eliminate them all.",0;
sleep2 10000;
announce "Citizen of Morroc: We are invaded by MvP Monsters Please help us!!",0;
donpcevent "Invasion::OnStart";
initnpctimer;
end;

OnTimer1440000:
set $invade,0;
killmonsterall "morocc",1;
end;

OnStart:
setarray .@MvP[0],       1382, 1098, 1038, 1039, 1046, 1059, 1086, 1087, 1112, 1115, 1147, 1150, 1157, 1159, 1190, 1251, 1252, 1272, 1312, 1373, 1389, 1418, 1492, 1511, 1583, 1623, 1630, 1646, 1647, 1648, 1649, 1650, 1651, 1658, 1685, 1688, 1708, 1719, 1734, 1751, 1768, 1779, 1785, 1832, 1871, 1873, 1885, 1917, 2022, 2068;
setarray .@MvPAmount[0],  300,  600,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    3,    1,    3,    3,    1,    3,    1,    3,    3,    3,    1,    1,    3;
	for( set .@i, 0; .@i < getarraysize(.@MvP); set .@i, .@i + 1 ){
		monster "morocc",0,0,""+getmonsterinfo(.@MvP[.@i],0)+"",.@MvP[.@i],.@MvPAmount[.@i],"Invasion::OnMyMobDead";
}
end;

OnMyMobDead:
set .@luck,rand(1,10);
if(.@luck >=9){
getitem 25000,1;    // Bonus Golden Mineral
}else{
end;
}
}

Hi guys I need some help I dont know if my OnTimer is working.. what do you think so?

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