Jump to content
  • 0

MvP Room Limit spawn


Prime

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

I want to limit the MVP spawn to 2 and can only be spawned every 30 minutes

//#####################################################################
//#		 #
//#   #####	 #	  ########  #	#   #####  ##	#	  #	   #
//#   #		###		##	 #	#   #	  # #   #	 ###	  #
//#   ####	#   #	   ##	 ######   ####   #  #  #	#   #	 #
//#   #	  #######	  ##	 #	#   #	  #   # #   #######	#
//#   #####  #	 #	  ##	 #	#   #####  #	##   #	 #	#
//#																   #
//#####################################################################
//=========== Script for eathena Users ====================//
//MVP Arena made by Rikimaru on rathena.org ==============//
//=========================================================//
//======== Description ====================================//
//== Easy made MVP Arena with all MVP's except the new ====//
//== Renewal MVP's. Do not remove the Credits =============//
//== Price to spawn 1 MVP is 50.000.000 Zenny =============//
//== Price for Thanatos or LHZ MVP's is 250.000.000 Zenny =//
//== Do not Remove theese Credits =========================//
//================= Version : =============================//
//============= V. 1.0 Bug Fixes by Rikimaru ==============//
//============= V. 1.1 Shorted by llchrisll
//=========== Credits End =================================//
//
//
//===================== Script of the MVP Warper ==========//
prontera,164,140,3	script	MVP Warper	619,{
mes "[ MVP Warper ]";
mes "I can warp you to the MVP Room,do you want to go there?";
next;
switch(select("Yes!:No!")) {
	case 1:
	mes "[ MVP Warper ]";	
	mes "Okay I'm going to warp you.";
	warp "guild_vs1",50,50;
	close;

	case 2:
	mes "[ MVP Warper ]";
	mes "Okay bye!";
	close;
}
}
//========================= First Script End =============//
//================== MVP Summoner ========================//
guild_vs1,50,57,5	script	MVP Summoner	790,{
mes "[ MVP Summoner ]";
mes "Hello,I'm able to spawn MVP's.";
mes "Which MVP do you want me to spawn?";
mes "[ MVP List ]";
mes "1 Bacsojin "+.zeny[8]+" Zeny";
mes "1 Baphomet "+.zeny[9]+" Zeny";
mes "1 Dark Lord "+.zeny[8]+" Zeny";
mes "1 Evil Snake "+.zeny[10]+" Zeny";
mes "1 Detale "+.zeny[11]+" Zeny";
mes "1 Dracula "+.zeny[12]+" Zeny";
mes "1 Drake "+.zeny[13]+" Zeny";
mes "1 Edgga "+.zeny[14]+" Zeny";
mes "1 Golden Bug "+.zeny[15]+" Zeny";
mes "1 Incant Samurai "+.zeny[16]+" Zeny";
mes "1 Lord Of Death "+.zeny[17]+" Zeny";
mes "1 Maya "+.zeny[18]+" Zeny";
mes "1 Mistress "+.zeny[19]+" Zeny";
mes "1 Moonlight "+.zeny[12]+" Zeny";
mes "1 Orc Hero "+.zeny[8]+" Zeny";
mes "1 Pharaon "+.zeny[8]+" Zeny";
mes "1 Phreeoni "+.zeny[10]+" Zeny";
mes "1 RSX "+.zeny[12]+" Zeny";
mes "1 Tao Gunka "+.zeny[15]+" Zeny";
mes "1 Stormy Knight "+.zeny[11]+" Zeny";
mes "[ Mini-Boss List ]";
mes "1 Angeling "+.zeny[7]+" Zeny.";
mes "1 Archangeling "+.zeny[5]+" Zeny.";
mes "1 Bloody Knight "+.zeny[5]+" Zeny.";
mes "1 Chimera "+.zeny[5]+" Zeny.";
mes "1 Dragon Fly "+.zeny[5]+" Zeny.";
mes "1 Eclipse "+.zeny[5]+" Zeny.";
mes "1 Ghostring "+.zeny[7]+" Zeny.";
mes "1 Giant Whisper "+.zeny[4]+" Zeny.";
mes "1 Goblin Leader "+.zeny[4]+" Zeny.";
mes "1 Gryphoon "+.zeny[4]+" Zeny.";
mes "1 Toad "+.zeny[4]+" Zeny.";
mes "1 Vagabond Wolf "+.zeny[4]+" Zeny.";
mes "1 Vocal "+.zeny[4]+" Zeny.";
mes "1 Dark Ilussion "+.zeny[4]+" Zeny.";
next;
set .@m,select(.smenu$) - 1;
mes "[ MVP Summoner ]";
mes "Okay let me check if you have enough Zeny.";
if( Zeny < .zeny[.mobze[.@m]] ) {
	mes "You don't have enough money";
	close;
} else {
	close2;
	set Zeny, Zeny - .zeny[.mobze[.@m]];
	atcommand "@spawn "+.mobid[.@m] + " "+.mobam[.@m];
	npctalk "[ MVP Summoner]: "+getmonsterinfo(.mobid[.@m],0) +" Spawned!";
	end;
}
OnInit:
setarray .zeny[1],10000000,5000000,30000000,200000,300000,700000,400000,500000,15000000,600000,2000000,800000,550000,700000,1000000,800000,1500000,700000,900000; // 50m,250m Zeny
// Mob IDs
setarray .mobid[0],1518,1039,1272,1529,1719,1389,1115,1086,1429,1373,1147,1059,1150,1087,1038,1157,1159,1623,1583,1251,1096,1388,1268,1283,1091,1093,1120,1186,1299,1259,1402,1092,1088,1302;
// Mob Spawn Amount
setarray .mobam[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
// Price: Entry as Index from .zeny
// 1 = .zeny[1] - 2 = .zeny[2]
setarray .mobze[0],8,9,8,10,11,12,13,14,15,16,17,18,19,12,8,8,10,12,15,15,11,7,5,5,5,5,5,7,4,4,4,4,4,4;
set .smenu$,"";
for( set .@s,0; .@s < getarraysize(.mobid); set .@s,.@s + 1) {
	// Skips an Monster if it does not exist in the db
	if(getmonsterinfo(.mobid[.@s],0) == "" || getmonsterinfo(.mobid[.@s],0) == "null") continue;
	// else adding it to the menu
	set .smenu$,.smenu$ + "- "+getmonsterinfo(.mobid[.@s],0) + ( (.mobid[.@s+1] == 0)?"":":");
}
end;
}
guild_vs1,31,68,5	duplicate(MVP Summoner)	MVP Summoner#1	790
guild_vs1,31,31,5	duplicate(MVP Summoner)	MVP Summoner#2	790
guild_vs1,68,31,5	duplicate(MVP Summoner)	MVP Summoner#3	790
guild_vs1,68,68,5	duplicate(MVP Summoner)	MVP Summoner#4	790
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

//#####################################################################
//#		 #
//#   #####	 #	  ########  #	#   #####  ##	#	  #	   #
//#   #		###		##	 #	#   #	  # #   #	 ###	  #
//#   ####	#   #	   ##	 ######   ####   #  #  #	#   #	 #
//#   #	  #######	  ##	 #	#   #	  #   # #   #######	#
//#   #####  #	 #	  ##	 #	#   #####  #	##   #	 #	#
//#																   #
//#####################################################################
//=========== Script for eathena Users ====================//
//MVP Arena made by Rikimaru on rathena.org ==============//
//=========================================================//
//======== Description ====================================//
//== Easy made MVP Arena with all MVP's except the new ====//
//== Renewal MVP's. Do not remove the Credits =============//
//== Price to spawn 1 MVP is 50.000.000 Zenny =============//
//== Price for Thanatos or LHZ MVP's is 250.000.000 Zenny =//
//== Do not Remove theese Credits =========================//
//================= Version : =============================//
//============= V. 1.0 Bug Fixes by Rikimaru ==============//
//============= V. 1.1 Shorted by llchrisll
//=========== Credits End =================================//
//
//
//===================== Script of the MVP Warper ==========//
prontera,164,140,3	script	MVP Warper	619,{
mes "[ MVP Warper ]";
mes "I can warp you to the MVP Room,do you want to go there?";
next;
switch(select("Yes!:No!")) {
	case 1:
	mes "[ MVP Warper ]";	
	mes "Okay I'm going to warp you.";
	warp "guild_vs1",50,50;
	close;

	case 2:
	mes "[ MVP Warper ]";
	mes "Okay bye!";
	close;
}
}
//========================= First Script End =============//
//================== MVP Summoner ========================//
guild_vs1,50,57,5	script	MVP Summoner	790,{
mes "[ MVP Summoner ]";
if (MVPSpawnedCount >= 2 && (gettimetick(2)-LastSpawnedTime) < (30*60)) {
	if (!MVPTimer) MVPTimer = gettimetick(2) + 30*60;
	if (MVPTimer > gettimetick(2)) { mes "You already spawned "+MVPSpawnedCount+" MVPs, you have to wait "+((MVPTimer-gettimetick(2))/60)+" minutes "+((MVPTimer-gettimetick(2))%60)+" seconds to spawn more" ; close; }
	MVPSpawnedCount = 0;
}
else if ((gettimetick(2)-LastSpawnedTime) >= (30*60)) MVPSpawnedCount = 0;
mes "Hello,I'm able to spawn MVP's.";
mes "Which MVP do you want me to spawn?";
mes "[ MVP List ]";
mes "1 Bacsojin "+.zeny[8]+" Zeny";
mes "1 Baphomet "+.zeny[9]+" Zeny";
mes "1 Dark Lord "+.zeny[8]+" Zeny";
mes "1 Evil Snake "+.zeny[10]+" Zeny";
mes "1 Detale "+.zeny[11]+" Zeny";
mes "1 Dracula "+.zeny[12]+" Zeny";
mes "1 Drake "+.zeny[13]+" Zeny";
mes "1 Edgga "+.zeny[14]+" Zeny";
mes "1 Golden Bug "+.zeny[15]+" Zeny";
mes "1 Incant Samurai "+.zeny[16]+" Zeny";
mes "1 Lord Of Death "+.zeny[17]+" Zeny";
mes "1 Maya "+.zeny[18]+" Zeny";
mes "1 Mistress "+.zeny[19]+" Zeny";
mes "1 Moonlight "+.zeny[12]+" Zeny";
mes "1 Orc Hero "+.zeny[8]+" Zeny";
mes "1 Pharaon "+.zeny[8]+" Zeny";
mes "1 Phreeoni "+.zeny[10]+" Zeny";
mes "1 RSX "+.zeny[12]+" Zeny";
mes "1 Tao Gunka "+.zeny[15]+" Zeny";
mes "1 Stormy Knight "+.zeny[11]+" Zeny";
mes "[ Mini-Boss List ]";
mes "1 Angeling "+.zeny[7]+" Zeny.";
mes "1 Archangeling "+.zeny[5]+" Zeny.";
mes "1 Bloody Knight "+.zeny[5]+" Zeny.";
mes "1 Chimera "+.zeny[5]+" Zeny.";
mes "1 Dragon Fly "+.zeny[5]+" Zeny.";
mes "1 Eclipse "+.zeny[5]+" Zeny.";
mes "1 Ghostring "+.zeny[7]+" Zeny.";
mes "1 Giant Whisper "+.zeny[4]+" Zeny.";
mes "1 Goblin Leader "+.zeny[4]+" Zeny.";
mes "1 Gryphoon "+.zeny[4]+" Zeny.";
mes "1 Toad "+.zeny[4]+" Zeny.";
mes "1 Vagabond Wolf "+.zeny[4]+" Zeny.";
mes "1 Vocal "+.zeny[4]+" Zeny.";
mes "1 Dark Ilussion "+.zeny[4]+" Zeny.";
next;
set .@m,select(.smenu$) - 1;
mes "[ MVP Summoner ]";
mes "Okay let me check if you have enough Zeny.";
if( Zeny < .zeny[.mobze[.@m]] ) {
	mes "You don't have enough money";
	close;
} else {
	close2;
	set Zeny, Zeny - .zeny[.mobze[.@m]];
	atcommand "@spawn "+.mobid[.@m] + " "+.mobam[.@m];
	MVPSpawnedCount++ ; LastSpawnedTime = gettimetick(2);
	npctalk "[ MVP Summoner]: "+getmonsterinfo(.mobid[.@m],0) +" Spawned!";
	end;
}
OnInit:
setarray .zeny[1],10000000,5000000,30000000,200000,300000,700000,400000,500000,15000000,600000,2000000,800000,550000,700000,1000000,800000,1500000,700000,900000; // 50m,250m Zeny
// Mob IDs
setarray .mobid[0],1518,1039,1272,1529,1719,1389,1115,1086,1429,1373,1147,1059,1150,1087,1038,1157,1159,1623,1583,1251,1096,1388,1268,1283,1091,1093,1120,1186,1299,1259,1402,1092,1088,1302;
// Mob Spawn Amount
setarray .mobam[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
// Price: Entry as Index from .zeny
// 1 = .zeny[1] - 2 = .zeny[2]
setarray .mobze[0],8,9,8,10,11,12,13,14,15,16,17,18,19,12,8,8,10,12,15,15,11,7,5,5,5,5,5,7,4,4,4,4,4,4;
set .smenu$,"";
for( set .@s,0; .@s < getarraysize(.mobid); set .@s,.@s + 1) {
	// Skips an Monster if it does not exist in the db
	if(getmonsterinfo(.mobid[.@s],0) == "" || getmonsterinfo(.mobid[.@s],0) == "null") continue;
	// else adding it to the menu
	set .smenu$,.smenu$ + "- "+getmonsterinfo(.mobid[.@s],0) + ( (.mobid[.@s+1] == 0)?"":":");
}
end;
}
guild_vs1,31,68,5	duplicate(MVP Summoner)	MVP Summoner#1	790
guild_vs1,31,31,5	duplicate(MVP Summoner)	MVP Summoner#2	790
guild_vs1,68,31,5	duplicate(MVP Summoner)	MVP Summoner#3	790
guild_vs1,68,68,5	duplicate(MVP Summoner)	MVP Summoner#4	790

I'm surprised no one did it before me since it's a simple task.

 

2 is the maximum amount of MVPs you can spawn and 30 is the time delay in minutes.

I also added a line which check if you've already waited 30minutes to spawn another MVP and if so reset your spawn counter.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

sorry but what i meant is 2 spawn per every mvp :c and 30 min delay between them!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

So you mean instead of spawning 1 MVP you would spawn 2 MVPs at a time and then you would have to wait 30minutes to spawn 2 other MVPs?

If that's what you want, then it's even simplier:

//#####################################################################
//#		 #
//#   #####	 #	  ########  #	#   #####  ##	#	  #	   #
//#   #		###		##	 #	#   #	  # #   #	 ###	  #
//#   ####	#   #	   ##	 ######   ####   #  #  #	#   #	 #
//#   #	  #######	  ##	 #	#   #	  #   # #   #######	#
//#   #####  #	 #	  ##	 #	#   #####  #	##   #	 #	#
//#																   #
//#####################################################################
//=========== Script for eathena Users ====================//
//MVP Arena made by Rikimaru on rathena.org ==============//
//=========================================================//
//======== Description ====================================//
//== Easy made MVP Arena with all MVP's except the new ====//
//== Renewal MVP's. Do not remove the Credits =============//
//== Price to spawn 1 MVP is 50.000.000 Zenny =============//
//== Price for Thanatos or LHZ MVP's is 250.000.000 Zenny =//
//== Do not Remove theese Credits =========================//
//================= Version : =============================//
//============= V. 1.0 Bug Fixes by Rikimaru ==============//
//============= V. 1.1 Shorted by llchrisll
//=========== Credits End =================================//
//
//
//===================== Script of the MVP Warper ==========//
prontera,164,140,3	script	MVP Warper	619,{
mes "[ MVP Warper ]";
mes "I can warp you to the MVP Room,do you want to go there?";
next;
switch(select("Yes!:No!")) {
	case 1:
	mes "[ MVP Warper ]";	
	mes "Okay I'm going to warp you.";
	warp "guild_vs1",50,50;
	close;

	case 2:
	mes "[ MVP Warper ]";
	mes "Okay bye!";
	close;
}
}
//========================= First Script End =============//
//================== MVP Summoner ========================//
guild_vs1,50,57,5	script	MVP Summoner	790,{
mes "[ MVP Summoner ]";
if ((gettimetick(2)-LastSpawnedTime) < (30*60)) { mes "You already spawned 2 MVPs, you have to wait "+((MVPTimer-gettimetick(2))/60)+" minutes "+((MVPTimer-gettimetick(2))%60)+" seconds to spawn more" ; close; }
mes "Hello,I'm able to spawn MVP's.";
mes "Which MVP do you want me to spawn?";
mes "[ MVP List ]";
mes "2 Bacsojin "+.zeny[8]+" Zeny";
mes "2 Baphomet "+.zeny[9]+" Zeny";
mes "2 Dark Lord "+.zeny[8]+" Zeny";
mes "2 Evil Snake "+.zeny[10]+" Zeny";
mes "2 Detale "+.zeny[11]+" Zeny";
mes "2 Dracula "+.zeny[12]+" Zeny";
mes "2 Drake "+.zeny[13]+" Zeny";
mes "2 Edgga "+.zeny[14]+" Zeny";
mes "2 Golden Bug "+.zeny[15]+" Zeny";
mes "2 Incant Samurai "+.zeny[16]+" Zeny";
mes "2 Lord Of Death "+.zeny[17]+" Zeny";
mes "2 Maya "+.zeny[18]+" Zeny";
mes "2 Mistress "+.zeny[19]+" Zeny";
mes "2 Moonlight "+.zeny[12]+" Zeny";
mes "2 Orc Hero "+.zeny[8]+" Zeny";
mes "2 Pharaon "+.zeny[8]+" Zeny";
mes "2 Phreeoni "+.zeny[10]+" Zeny";
mes "2 RSX "+.zeny[12]+" Zeny";
mes "2 Tao Gunka "+.zeny[15]+" Zeny";
mes "2 Stormy Knight "+.zeny[11]+" Zeny";
mes "[ Mini-Boss List ]";
mes "2 Angeling "+.zeny[7]+" Zeny.";
mes "2 Archangeling "+.zeny[5]+" Zeny.";
mes "2 Bloody Knight "+.zeny[5]+" Zeny.";
mes "2 Chimera "+.zeny[5]+" Zeny.";
mes "2 Dragon Fly "+.zeny[5]+" Zeny.";
mes "2 Eclipse "+.zeny[5]+" Zeny.";
mes "2 Ghostring "+.zeny[7]+" Zeny.";
mes "2 Giant Whisper "+.zeny[4]+" Zeny.";
mes "2 Goblin Leader "+.zeny[4]+" Zeny.";
mes "2 Gryphoon "+.zeny[4]+" Zeny.";
mes "2 Toad "+.zeny[4]+" Zeny.";
mes "2 Vagabond Wolf "+.zeny[4]+" Zeny.";
mes "2 Vocal "+.zeny[4]+" Zeny.";
mes "2 Dark Ilussion "+.zeny[4]+" Zeny.";
next;
set .@m,select(.smenu$) - 1;
mes "[ MVP Summoner ]";
mes "Okay let me check if you have enough Zeny.";
if( Zeny < .zeny[.mobze[.@m]] ) {
	mes "You don't have enough money";
	close;
} else {
	close2;
	set Zeny, Zeny - .zeny[.mobze[.@m]];
	atcommand "@spawn "+.mobid[.@m] + " "+.mobam[.@m];
	LastSpawnedTime = gettimetick(2);
	npctalk "[ MVP Summoner]: "+getmonsterinfo(.mobid[.@m],0) +" Spawned!";
	end;
}
OnInit:
setarray .zeny[1],10000000,5000000,30000000,200000,300000,700000,400000,500000,15000000,600000,2000000,800000,550000,700000,1000000,800000,1500000,700000,900000; // 50m,250m Zeny
// Mob IDs
setarray .mobid[0],1518,1039,1272,1529,1719,1389,1115,1086,1429,1373,1147,1059,1150,1087,1038,1157,1159,1623,1583,1251,1096,1388,1268,1283,1091,1093,1120,1186,1299,1259,1402,1092,1088,1302;
// Mob Spawn Amount
setarray .mobam[0],2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2;
// Price: Entry as Index from .zeny
// 1 = .zeny[1] - 2 = .zeny[2]
setarray .mobze[0],8,9,8,10,11,12,13,14,15,16,17,18,19,12,8,8,10,12,15,15,11,7,5,5,5,5,5,7,4,4,4,4,4,4;
set .smenu$,"";
for( set .@s,0; .@s < getarraysize(.mobid); set .@s,.@s + 1) {
	// Skips an Monster if it does not exist in the db
	if(getmonsterinfo(.mobid[.@s],0) == "" || getmonsterinfo(.mobid[.@s],0) == "null") continue;
	// else adding it to the menu
	set .smenu$,.smenu$ + "- "+getmonsterinfo(.mobid[.@s],0) + ( (.mobid[.@s+1] == 0)?"":":");
}
end;
}
guild_vs1,31,68,5	duplicate(MVP Summoner)	MVP Summoner#1	790
guild_vs1,31,31,5	duplicate(MVP Summoner)	MVP Summoner#2	790
guild_vs1,68,31,5	duplicate(MVP Summoner)	MVP Summoner#3	790
guild_vs1,68,68,5	duplicate(MVP Summoner)	MVP Summoner#4	790
Edited by Kurofly
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

no what i mean is, you can spawn twice every mvp, example if you spawn 2 tao gunka you get the delay only for tao gunka but still can spawn baphomet, dod you get it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Ahhhh ok this time I get it.

I don't know if I'll have time to do it now but in worst case you'll have it tomorrow in the evening.

See you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

no worry, men thanks for the help, i'll wait for it patiently

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

I'm back!

Here it is:

//#####################################################################
//#		 #
//#   #####	 #	  ########  #	#   #####  ##	#	  #	   #
//#   #		###		##	 #	#   #	  # #   #	 ###	  #
//#   ####	#   #	   ##	 ######   ####   #  #  #	#   #	 #
//#   #	  #######	  ##	 #	#   #	  #   # #   #######	#
//#   #####  #	 #	  ##	 #	#   #####  #	##   #	 #	#
//#																   #
//#####################################################################
//=========== Script for eathena Users ====================//
//MVP Arena made by Rikimaru on rathena.org ==============//
//=========================================================//
//======== Description ====================================//
//== Easy made MVP Arena with all MVP's except the new ====//
//== Renewal MVP's. Do not remove the Credits =============//
//== Price to spawn 1 MVP is 50.000.000 Zenny =============//
//== Price for Thanatos or LHZ MVP's is 250.000.000 Zenny =//
//== Do not Remove theese Credits =========================//
//================= Version : =============================//
//============= V. 1.0 Bug Fixes by Rikimaru ==============//
//============= V. 1.1 Shorted by llchrisll
//=========== Credits End =================================//
//
//
//===================== Script of the MVP Warper ==========//
prontera,164,140,3	script	MVP Warper	619,{
mes "[ MVP Warper ]";
mes "I can warp you to the MVP Room,do you want to go there?";
next;
switch(select("Yes!:No!")) {
	case 1:
	mes "[ MVP Warper ]";	
	mes "Okay I'm going to warp you.";
	warp "guild_vs1",50,50;
	close;

	case 2:
	mes "[ MVP Warper ]";
	mes "Okay bye!";
	close;
}
}
//========================= First Script End =============//
//================== MVP Summoner ========================//
guild_vs1,50,57,5	script	MVP Summoner	790,{
mes "[ MVP Summoner ]";
mes "Hello,I'm able to spawn MVP's.";
mes "Which MVP do you want me to spawn?";
mes "[ MVP List ]";
mes "1 Bacsojin "+.zeny[8]+" Zeny";
mes "1 Baphomet "+.zeny[9]+" Zeny";
mes "1 Dark Lord "+.zeny[8]+" Zeny";
mes "1 Evil Snake "+.zeny[10]+" Zeny";
mes "1 Detale "+.zeny[11]+" Zeny";
mes "1 Dracula "+.zeny[12]+" Zeny";
mes "1 Drake "+.zeny[13]+" Zeny";
mes "1 Edgga "+.zeny[14]+" Zeny";
mes "1 Golden Bug "+.zeny[15]+" Zeny";
mes "1 Incant Samurai "+.zeny[16]+" Zeny";
mes "1 Lord Of Death "+.zeny[17]+" Zeny";
mes "1 Maya "+.zeny[18]+" Zeny";
mes "1 Mistress "+.zeny[19]+" Zeny";
mes "1 Moonlight "+.zeny[12]+" Zeny";
mes "1 Orc Hero "+.zeny[8]+" Zeny";
mes "1 Pharaon "+.zeny[8]+" Zeny";
mes "1 Phreeoni "+.zeny[10]+" Zeny";
mes "1 RSX "+.zeny[12]+" Zeny";
mes "1 Tao Gunka "+.zeny[15]+" Zeny";
mes "1 Stormy Knight "+.zeny[11]+" Zeny";
mes "[ Mini-Boss List ]";
mes "1 Angeling "+.zeny[7]+" Zeny.";
mes "1 Archangeling "+.zeny[5]+" Zeny.";
mes "1 Bloody Knight "+.zeny[5]+" Zeny.";
mes "1 Chimera "+.zeny[5]+" Zeny.";
mes "1 Dragon Fly "+.zeny[5]+" Zeny.";
mes "1 Eclipse "+.zeny[5]+" Zeny.";
mes "1 Ghostring "+.zeny[7]+" Zeny.";
mes "1 Giant Whisper "+.zeny[4]+" Zeny.";
mes "1 Goblin Leader "+.zeny[4]+" Zeny.";
mes "1 Gryphoon "+.zeny[4]+" Zeny.";
mes "1 Toad "+.zeny[4]+" Zeny.";
mes "1 Vagabond Wolf "+.zeny[4]+" Zeny.";
mes "1 Vocal "+.zeny[4]+" Zeny.";
mes "1 Dark Ilussion "+.zeny[4]+" Zeny.";
next;
set .@m,select(.smenu$) - 1;
if (getd(.mobname$[.@m]+"_count") >= .MaxSpawnCount) {
	if (getd(.mobname$[.@m]+"_delay")-gettimetick(2) > 0) {
			mes "[ MVP Summoner ]";
			mes "You have already spawned "+.MaxSpawnCount+" "+.mobname$[.@m]+".";
			mes "You have to wait "+(getd(.mobname$[.@m]+"_delay")-gettimetick(2))/60+" minutes "+(getd(.mobname$[.@m]+"_delay")-gettimetick(2))%60+" seconds to spawn this MVP again.";
			close;
	}
	else setd .mobname$[.@m]+"_count" , 0;
}
mes "[ MVP Summoner ]";
mes "Okay let me check if you have enough Zeny.";
if( Zeny < .zeny[.mobze[.@m]] ) {
	mes "You don't have enough money";
	close;
} else {
	close2;
	set Zeny, Zeny - .zeny[.mobze[.@m]];
	atcommand "@spawn "+.mobid[.@m] + " "+.mobam[.@m];
	setd .mobname$[.@m]+"_count" , getd(.mobname$[.@m]+"_count") + 1;
	setd .mobname$[.@m]+"_delay" , gettimetick(2)+(.Timedelay*60);
	npctalk "[ MVP Summoner]: "+getmonsterinfo(.mobid[.@m],0) +" Spawned!";
	end;
}
OnInit:
.MaxSpawnCount = 2; //maximum amount of MVps you can spawn each .Timedelay minutes.
.Timedelay = 3; //delay before you can spawn more MVPs (in minutes)

setarray .zeny[1],10000000,5000000,30000000,200000,300000,700000,400000,500000,15000000,600000,2000000,800000,550000,700000,1000000,800000,1500000,700000,900000; // 50m,250m Zeny
// Mob IDs
setarray .mobid[0],1518,1039,1272,1529,1719,1389,1115,1086,1429,1373,1147,1059,1150,1087,1038,1157,1159,1623,1583,1251,1096,1388,1268,1283,1091,1093,1120,1186,1299,1259,1402,1092,1088,1302;
// Mob Spawn Amount
setarray .mobam[0],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1;
// Price: Entry as Index from .zeny
// 1 = .zeny[1] - 2 = .zeny[2]
setarray .mobze[0],8,9,8,10,11,12,13,14,15,16,17,18,19,12,8,8,10,12,15,15,11,7,5,5,5,5,5,7,4,4,4,4,4,4;
set .smenu$,"";
for( set .@s,0; .@s < getarraysize(.mobid); set .@s,.@s + 1) {
	// Skips an Monster if it does not exist in the db
	if(getmonsterinfo(.mobid[.@s],0) == "" || getmonsterinfo(.mobid[.@s],0) == "null") continue;
	// else adding it to the menu
	set .smenu$,.smenu$ + "- "+getmonsterinfo(.mobid[.@s],0) + ( (.mobid[.@s+1] == 0)?"":":");
	setarray .mobname$[.@s],getmonsterinfo(.mobid[.@s],0);
}
end;
}
guild_vs1,31,68,5	duplicate(MVP Summoner)	MVP Summoner#1	790
guild_vs1,31,31,5	duplicate(MVP Summoner)	MVP Summoner#2	790
guild_vs1,68,31,5	duplicate(MVP Summoner)	MVP Summoner#3	790
guild_vs1,68,68,5	duplicate(MVP Summoner)	MVP Summoner#4	790

So players can spawn twice each MVP but will have to wait 30 minutes to spawn more of the same MVP.

I kept the structure as it was and just added a few lines.

I made it so that if a player spawn only one MVP but wait 30 minutes to spawn again the same MVP, he'll be able to spawn it twice.

 

You can change the maximum amount of MVP you can spawn and the delay by editting these lines:

.MaxSpawnCount = 2; //maximum amount of MVps you can spawn each .Timedelay minutes.
.Timedelay = 3; //delay before you can spawn more MVPs (in minutes)

Works fine for me, let me know if you want to change or improve anything.

Hope it fits your expectations.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  01/11/12
  • Last Seen:  

Sorry was absent past day, thank you very much sir you're amazing

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