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
Question
Prime
I want to limit the MVP spawn to 2 and can only be spawned every 30 minutes
Link to comment
Share on other sites
8 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.