Advertisement
plugandplaydev

VIP MvP Summoner v.2

Jun 8th, 2015
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.59 KB | None | 0 0
  1. //============================================================//
  2. // This script is made by Plug and Play //
  3. // Contact us on Facebook http://facebook.com/plugandplayPH //
  4. // Website : http://plugandplay.cf //
  5. // VIP MVP Summoner v.2 //
  6. // Hercules Support : Free Release //
  7. // Do not removed the credit //
  8. //============================================================//
  9. // --> Description <-- //
  10. // Can summon any mvp listed in each category //
  11. // Item is needed to summon a Mvp //
  12. // Limit Summon Count to avoid summon abuse //
  13. // You need to configure SET script to make it work //
  14. // Report Bug : Bump the Topic or send a PM //
  15. //============================================================//
  16. // --> New Version <-- //
  17. // VIP MVP Summoner v.2 //
  18. // Enable to use item in reseting the MVP Count Status //
  19. //============================================================//
  20.  
  21. guild_vs3,50,55,4 script MVP Summoner 123,{
  22. mes "[ MVP Summoner ]";
  23. mes "Good Day ^FF0000"+strcharinfo(0)+"^000000";
  24. mes "You can choose any MVP Boss you want to summon now";
  25. mes "MVPs has been classified as";
  26. mes "^FF0000Normal MVP^000000 ^00FF00Rare MVP^000000 ^0000FFLHZ MVP^000000";
  27. next;
  28. mes "[ MVP Summoner ]";
  29. mes "But before you can summon a MVP";
  30. mes "You need the following items";
  31. mes "^FF0000Normal MVP^000000 : "+.itemcount[0]+"x "+getitemname(.itemrequired[0]);
  32. mes "^00FF00Rare MVP^000000 : "+.itemcount[0]+"x "+getitemname(.itemrequired[1]);
  33. mes "^0000FFLHZ MVP^000000 : "+.itemcount[0]+"x "+getitemname(.itemrequired[2]);
  34. next;
  35. menu "^FF0000Normal MVP^000000",normalmvp,"^00FF00Rare MVP^000000",raremvp,"^0000FFLHZ MVP^000000",lhzmvp,"Exit Summoning Area",exit_area;
  36.  
  37. normalmvp:
  38. if ( #NormalMVPCount == .NormalMVP_Max && #NormalMVPCount <= .NormalMVP_Max ){
  39. mes "[ MVP Summoner ]";
  40. mes "You already summoned";
  41. mes "^CC0000"+.NormalMVP_Max+"^000000 Normal Mvp Monster";
  42. mes "Limit Status will be resetted after 24 Hours";
  43. mes "Talk to MVP Summoner Reseter in Prontera to Reset";
  44. close;
  45. }
  46. if ( countitem(.itemrequired[0]) < .itemcount[0] ){
  47. mes "[ MVP Summoner ]";
  48. mes "Sorry, You don't have";
  49. mes "^CC0000"+.itemcount[0]+"x "+getitemname(.itemrequired[0])+"^000000";
  50. close;
  51. }
  52. if ( countitem(.itemrequired[0]) >= .itemcount[0] && #NormalMVPCount <= .NormalMVP_Max ){
  53. mes "[ MVP Summoner ]";
  54. set .@NormalCount,.NormalMVP_Max - #NormalMVPCount;
  55. mes "Choose ^FF0000Normal MVP^000000";
  56. mes "You only have ^00CC00"+.@NormalCount+" Summon^000000 Left";
  57. set .@NormalMVP_Menu$,"";
  58. for (set @i,0; @i < getarraysize(.NormalMVPList); set @i,@i+1)
  59. set .@NormalMVP_Menu$,.@NormalMVP_Menu$ + ""+getmonsterinfo(.NormalMVPList[@i],0)+":";
  60. next;
  61. set .@NormalMVPSelect,select( .@NormalMVP_Menu$ ) - 1;
  62. mes "[ MVP Summoner ]";
  63. mes "Do you want to summon";
  64. mes getmonsterinfo(.NormalMVPList[.@NormalMVPSelect],0);
  65. next;
  66. menu "Yes Summon Now",summon_Normal_now,"Nope, Not Now",not_summon_Normal;
  67.  
  68. summon_Normal_now:
  69. message strcharinfo(0),"You summoned "+getmonsterinfo(.NormalMVPList[.@NormalMVPSelect],0);
  70. monster .mvpmap_summon$,.x_coordinate,.y_coordinate,getmonsterinfo(.NormalMVPList[.@NormalMVPSelect],0),.NormalMVPList[.@NormalMVPSelect],1;
  71. delitem .itemrequired[0], .itemcount[0];
  72. if( #NormalMVPCount > 0){
  73. #NormalMVPCount += 1;
  74. }
  75. if( #NormalMVPCount == 0){
  76. #NormalMVPCount += 1;
  77. #ResetNormalCount = gettimetick(2) + 24*60*60;
  78. }
  79.  
  80. close;
  81.  
  82. not_summon_Normal:
  83. close;
  84. end;
  85. }
  86. end;
  87.  
  88. raremvp:
  89. if ( #RareMVPCount == .RareMVP_Max && #RareMVPCount <= .RareMVP_Max ){
  90. mes "[ MVP Summoner ]";
  91. mes "You already summoned";
  92. mes "^CC0000"+.RareMVP_Max+"^000000 Rare Mvp Monster";
  93. mes "Limit Status will be resetted after 24 Hours";
  94. mes "Talk to MVP Summoner Reseter in Prontera to Reset";
  95. close;
  96. }
  97. if ( countitem(.itemrequired[1]) < .itemcount[1] ){
  98. mes "[ MVP Summoner ]";
  99. mes "Sorry, You don't have";
  100. mes "^CC0000"+.itemcount[1]+"x "+getitemname(.itemrequired[1])+"^000000";
  101. close;
  102. }
  103. if ( countitem(.itemrequired[1]) >= .itemcount[1] && #RareMVPCount <= .RareMVP_Max ){
  104. mes "[ MVP Summoner ]";
  105. set .@RareCount,.RareMVP_Max - #RareMVPCount;
  106. mes "Choose ^FF0000Rare MVP^000000";
  107. mes "You only have ^00CC00"+.@RareCount+" Summon^000000 Left";
  108. set .@RareMVP_Menu$,"";
  109. for (set @i,0; @i < getarraysize(.RareMVPList); set @i,@i+1)
  110. set .@RareMVP_Menu$,.@RareMVP_Menu$ + ""+getmonsterinfo(.RareMVPList[@i],0)+":";
  111. next;
  112. set .@RareMVPSelect,select( .@RareMVP_Menu$ ) - 1;
  113. mes "[ MVP Summoner ]";
  114. mes "Do you want to summon";
  115. mes getmonsterinfo(.RareMVPList[.@RareMVPSelect],0);
  116. next;
  117. menu "Yes Summon Now",summon_Rare_now,"Nope, Not Now",not_summon_Rare;
  118.  
  119. summon_Rare_now:
  120. message strcharinfo(0),"You summoned "+getmonsterinfo(.RareMVPList[.@RareMVPSelect],0);
  121. monster .mvpmap_summon$,.x_coordinate,.y_coordinate,getmonsterinfo(.RareMVPList[.@RareMVPSelect],0),.RareMVPList[.@RareMVPSelect],1;
  122. delitem .itemrequired[1], .itemcount[1];
  123. if( #RareMVPCount > 0){
  124. #RareMVPCount += 1;
  125. }
  126. if( #RareMVPCount == 0){
  127. #RareMVPCount += 1;
  128. #ResetRareCount = gettimetick(2) + 24*60*60;
  129. }
  130. close;
  131.  
  132. not_summon_Rare:
  133. close;
  134. end;
  135. }
  136. end;
  137.  
  138. lhzmvp:
  139. if ( #LhzMVPCount == .LhzMVP_Max && #LhzMVPCount <= .LhzMVP_Max ){
  140. mes "[ MVP Summoner ]";
  141. mes "You already summoned";
  142. mes "^CC0000"+.LhzMVP_Max+"^000000 Lhz Mvp Monster";
  143. mes "Limit Status will be resetted after 24 Hours";
  144. mes "Talk to MVP Summoner Reseter in Prontera to Reset";
  145. close;
  146. }
  147. if ( countitem(.itemrequired[2]) < .itemcount[2] ){
  148. mes "[ MVP Summoner ]";
  149. mes "Sorry, You don't have";
  150. mes "^CC0000"+.itemcount[2]+"x "+getitemname(.itemrequired[2])+"^000000";
  151. close;
  152. }
  153. if ( countitem(.itemrequired[2]) >= .itemcount[2] && #LhzMVPCount <= .LhzMVP_Max ){
  154. mes "[ MVP Summoner ]";
  155. set .@LhzCount,.LhzMVP_Max - #LhzMVPCount;
  156. mes "Choose ^FF0000Lhz MVP^000000";
  157. mes "You only have ^00CC00"+.@LhzCount+" Summon Left";
  158. set .@LhzMVP_Menu$,"";
  159. for (set @i,0; @i < getarraysize(.LhzMVPList); set @i,@i+1)
  160. set .@LhzMVP_Menu$,.@LhzMVP_Menu$ + ""+getmonsterinfo(.LhzMVPList[@i],0)+":";
  161. next;
  162. set .@LhzMVPSelect,select( .@LhzMVP_Menu$ ) - 1;
  163. mes "[ MVP Summoner ]";
  164. mes "Do you want to summon";
  165. mes getmonsterinfo(.LhzMVPList[.@LhzMVPSelect],0);
  166. next;
  167. menu "Yes Summon Now",summon_Lhz_now,"Nope, Not Now",not_summon_Lhz;
  168.  
  169. summon_Lhz_now:
  170. message strcharinfo(0),"You summoned "+getmonsterinfo(.LhzMVPList[.@LhzMVPSelect],0);
  171. monster .mvpmap_summon$,.x_coordinate,.y_coordinate,getmonsterinfo(.LhzMVPList[.@LhzMVPSelect],0),.LhzMVPList[.@LhzMVPSelect],1;
  172. delitem .itemrequired[2], .itemcount[2];
  173. if( #LhzMVPCount > 0){
  174. #LhzMVPCount += 1;
  175. }
  176. if( #LhzMVPCount == 0){
  177. #LhzMVPCount += 1;
  178. #ResetLhzCount = gettimetick(2) + 24*60*60;
  179. }
  180.  
  181.  
  182. close;
  183.  
  184. not_summon_Lhz:
  185. close;
  186. end;
  187. }
  188.  
  189. exit_area:
  190. killmonster .mvpmap_summon$,"All";
  191. savepoint "prontera",116,73;
  192. warp "prontera",105,65;
  193. end;
  194.  
  195.  
  196.  
  197. OnInit:
  198. //============ Maximum Summon Settings ================//
  199. set .NormalMVP_Max,15;
  200. set .RareMVP_Max,10;
  201. set .LhzMVP_Max,5;
  202.  
  203. //========== Summon Map Setting ==============//
  204. //use /where to get the exact coor
  205. // use 0 in both x and y if you want it random coordinate
  206. set .mvpmap_summon$,"guild_vs3";
  207. set .x_coordinate,0; // Horizontal
  208. set .y_coordinate,0; // Vertical
  209.  
  210. //======== Item Requirements and Amount Needed =========//
  211. setarray .itemrequired[0],501,502,503; //Normal MVP = 501 | Rare MVP = 502 | LHZ = 503
  212. setarray .itemcount[0],10,20,30; //now many item needed in each array ( 501=10 | 502=20 | 503=30 )
  213.  
  214. //======= List of Normal MVPS ========//
  215. setarray .NormalMVPList,1038, // Osiris
  216. 1039, // Baphomet
  217. 1046, // Doppelganger
  218. 1059, // Mistress
  219. 1086, // Golden Thief Bug
  220. 1087, // Orc Hero
  221. 1112, // Drake
  222. 1115, // Eddga
  223. 1147, // Maya
  224. 1150, // Moonlight Flower
  225. 1157, // Pharaoh
  226. 1159, // Phreeoni
  227. 1190, // Orc Lord
  228. 1251, // Stormy Knight
  229. 1252, // Garm
  230. 1272, // Dark Lord
  231. 1312, // Turtle General
  232. 1373, // Lord of the Dead
  233. 1389, // Dracula
  234. 1418, // Evil Snake Lord
  235. 1492, // Incantation Samurai
  236. 1511, // Amon Ra
  237. 1583, // Tao Gunka
  238. 1623, // RSX
  239. 1630, // Bacsojin
  240. 1658, // General Egnigem
  241. 1685, // Vesper
  242. 1719, // Detale
  243. 1779, // Ktullanux
  244. 1785, // Atroce
  245. 1885; // Gopinich
  246.  
  247. //======= List of Rare MVPS ========//
  248. setarray .RareMVPList, 1688, // Lady Tanee
  249. 1708, // Thanatos
  250. 1734, // Kiel D-01
  251. 1751, // Randgris
  252. 1768, // Gloom Undernight
  253. 1832, // Ifrit
  254. 1871, // Fallen Bishop
  255. 1874, // Berzebub
  256. 1917, // Wounded Morocc
  257. 2022; // Nidhoggr's Shadow
  258.  
  259. //======= List of LHZ MVPS ========//
  260. setarray .LhzMVPList,1646, // Lord Knight
  261. 1647, // Assassin Cross
  262. 1648, // Whitesmith
  263. 1649, // High Priest
  264. 1650, // Sniper
  265. 1651; // High Wizard
  266. end;
  267.  
  268. OnPCLogoutEvent:
  269. if ( (#NormalMVPCount || #RareMVPCount || #LhzMVPCount) && (strcharinfo(3) == .mvpmap_summon$ )){
  270. killmonster .mvpmap_summon$,"All";
  271. savepoint "prontera",116,73;
  272. end;
  273. }
  274. } //end of header
  275.  
  276. // ================ MVP Summoner Manager ===========================//
  277. prontera,105,70,4 script MVP Summoner Manager 125,{
  278. mes "[ MVP Summoner Manager ]";
  279. mes "Hello ^CC0000"+strcharinfo(0)+"^000000";
  280. mes "This is the Manager of the Summoner";
  281. mes "How can I help you?";
  282. next;
  283. menu "^CC0000Enter VIP MVP Summoner^000000",vip_summoner,"^00CC00Reset MVP Count^000000",reset_mvp_count;
  284.  
  285. vip_summoner:
  286. mes "[ MVP Summoner Manager ]";
  287. mes "Only 1 Player can enter in the VIP MVP Summon Room";
  288. next;
  289. mes "[ MVP Summoner Manager ]";
  290. if( getmapusers(.mvpmap_respawn$) > 0 ){
  291. mes "Sorry, Only 1 player is allowed to enter";
  292. mes "Wait until the player is done summoning";
  293. close;
  294. }
  295. if( getmapusers(.mvpmap_respawn$) == 0 ){
  296. warp .mvpmap_respawn$,.x_respawn,.y_respawn;
  297. savepoint .mvpmap_respawn$,.x_respawn,.y_respawn;
  298. }
  299.  
  300. end;
  301.  
  302. reset_mvp_count:
  303. mes "[ MVP Summoner Manager ]";
  304. mes "There is two option in reseting";
  305. mes "MvP Count Status";
  306. mes "Using ^00CC00"+.itemresetamount+"pcs "+getitemname(.itemresetreq)+"^000000";;
  307. mes "Or reset it after 24 Hours";
  308. next;
  309. menu "Reset using "+getitemname(.itemresetreq),res_using_item,"Check Time Reset",check_time_reset;
  310.  
  311. res_using_item:
  312. if(#NormalMVPCount == 0 && #RareMVPCount == 0 && #LhzMVPCount == 0){
  313. mes "[ MVP Summoner Manager ]";
  314. mes "You already resetted the MVP Count Status";
  315. close;
  316. }
  317. if( countitem(.itemresetreq) < .itemresetamount){
  318. mes "[ MVP Summoner Manager ]";
  319. mes "Sorry, You don't have ^00CC00"+.itemresetamount+"pcs "+getitemname(.itemresetreq)+"^000000";
  320. mes "All Mvp Count every 24 hours";
  321. close;
  322.  
  323. }
  324. if( countitem(.itemresetreq) >= .itemresetamount){
  325. mes "[ MVP Summoner Manager ]";
  326. mes "MVP Count has been resetted";
  327. mes "You can now summon again";
  328. mes "You can only reset MVP Count";
  329. mes "Every 24 Hours from the 1st summon";
  330. set #NormalMVPCount,0;
  331. set #RareMVPCount,0;
  332. set #LhzMVPCount,0;
  333. set #ResetNormalCount,0;
  334. set #ResetRareCount,0;
  335. set #ResetLhzCount,0;
  336. delitem .itemresetreq, .itemresetamount;
  337. message strcharinfo(0),"Reset MVP Count Status has been resetted, you can summon again";
  338. close;
  339. }
  340. end;
  341.  
  342. check_time_reset:
  343. if(#NormalMVPCount == 0 && #RareMVPCount == 0 && #LhzMVPCount == 0){
  344. mes "[ MVP Summoner Manager ]";
  345. mes "You already resetted the MVP Count Status";
  346. close;
  347. }
  348. if(#ResetNormalCount > gettimetick(2) || #ResetRareCount > gettimetick(2) || #ResetLhzCount > gettimetick(2)){
  349. mes "[ MVP Summoner Manager ]";
  350. mes "Sorry, You can only reset";
  351. mes "All Mvp Count every 24 hours";
  352. close;
  353.  
  354. }
  355. else{
  356. mes "[ MVP Summoner Manager ]";
  357. mes "MVP Count has been resetted";
  358. mes "You can now summon again";
  359. mes "You can only reset MVP Count";
  360. mes "Every 24 Hours from the 1st summon";
  361. set #NormalMVPCount,0;
  362. set #RareMVPCount,0;
  363. set #LhzMVPCount,0;
  364. message strcharinfo(0),"Reset MVP Count Status has been resetted, you can summon again";
  365. close;
  366. }
  367. end;
  368.  
  369. OnInit:
  370. //========== Summon Map Setting ==============//
  371. //use /where to get the exact coor
  372. set .mvpmap_respawn$,"guild_vs3";
  373. set .x_respawn,50; // Horizontal
  374. set .y_respawn,50; // Vertical
  375. set .itemresetreq,501; // Item Need to reset the MVP Count Status
  376. set .itemresetamount,10; // Amount of item needed to reset MVP Count Status
  377. }
  378.  
  379.  
  380. // LOG OUT Setting
  381. - script MVP Summoner Logout -1,{
  382.  
  383. }
  384. // SET MAPFLAG
  385. guild_vs3 mapflag pvp off
  386. guild_vs3 mapflag gvg off
  387. guild_vs3 mapflag monster_noteleport
  388. guild_vs3 mapflag nowarp
  389. guild_vs3 mapflag nowarpto
  390. guild_vs3 mapflag noreturn
  391. guild_vs3 mapflag noteleport
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement