yuhsing

Untitled

Jan 27th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. //Created by marikitangakak
  2. //Edited and Revised by Lunar from MoonlightRO
  3. //Original Link: http://www.eathena.ws/board/index.php?showtopic=243601
  4. //Edited and Revised Script Link: http://www.eathena.ws/board/index.php?showtopic=243753
  5. //Please do not take this script as your own.
  6. //http://www.eathena.ws/board/index.php?showtopic=243753
  7. // MyRO - edited to only spawn in some chosen pvp maps.
  8.  
  9. //splendide,185,200,4 script Find the Mushroom 1084,{
  10.  
  11. prontera,152,212,4 script Find the Mushroom 1084,{
  12.  
  13. mes "[ Find The Mushroom ]";
  14. if(getgmlevel() < 98) {
  15. if(.Event==0) mes "We have Find the Mushroom Event at random times of the day/night. We are giving away hundreds of "+ getitemname($item_id)+"s for every mushroom found! Standby for my broadcasts!";
  16. else {
  17. mes "There is a Find the Mushroom event on now!";
  18. mes "Location: "+ .map$;
  19. mes "Prize: " + getitemname($item_id);
  20. mes "Number of Mushrooms: " + .mushroom;
  21. }
  22. close;
  23. }
  24. mes "Hello "+strcharinfo(0)+"! Please customize this event:";
  25. Main:
  26. next;
  27. mes "[ Find The Mushroom ]";
  28. switch(select("Item ["+$amount+" x "+getitemname($item_id)+"]:Start Event:End Event")) {
  29. case 1:
  30. mes "Which item would you like the Mushroom to drop?";
  31. mes "Please input the item ID:";
  32. do{
  33. input $item_id;
  34. }while( getitemname($item_id) == "null" );
  35. mes "Enter amount.";
  36. input $amount,1,30000;
  37. mes "Event Prize : "+$amount+" x "+getitemname($item_id);
  38. goto Main;
  39. case 2:
  40. mes "Starting the event now...";
  41. set .Event,1;
  42. close2;
  43. goto OnStart;
  44.  
  45. case 3:
  46. mes "Ending the event now...";
  47. if(.Event) announce ""+strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
  48. killmonster .map$,"All";
  49. set .Event,0;
  50. close;
  51. }
  52.  
  53. //OnMinute51: //CHANGE THIS TO THE MINUTE YOU WOULD LIKE THIS EVENT TO LOAD!
  54. //OnMinute20:
  55.  
  56.  
  57. // Dice Time
  58. //OnClock0800:
  59. //OnClock1101:
  60. //OnClock1400:
  61. //OnClock1700:
  62. //OnClock2015:
  63. //OnClock2301:
  64. //OnClock0200:
  65. //OnClock0500:
  66.  
  67. // Mushroom Time
  68.  
  69. OnClock0548:
  70.  
  71. OnClock0800:
  72. OnClock1000:
  73. OnClock1200:
  74. OnClock1415:
  75. OnClock1601:
  76. OnClock1800:
  77. OnClock2030:
  78. OnClock2230:
  79. OnClock0100:
  80. OnClock0300:
  81.  
  82.  
  83. OnStart:
  84. announce "Mushroom NPC : It's time to play Find the Mushroom Event in PvP!",0;
  85. sleep2 10000;
  86. // set $@ran, rand(1,11);
  87. // if ($@ran == 11) set .map$,"splendide";
  88. // if ($@ran == 10) set .map$,"hugel";
  89. // if ($@ran == 9) set .map$,"yuno";
  90. // if ($@ran == 8) set .map$,"comodo";
  91. // if ($@ran == 7) set .map$,"xmas";
  92. // if ($@ran == 6) set .map$,"aldebaran";
  93. // if ($@ran == 5) set .map$,"izlude";
  94. // if ($@ran == 4) set .map$,"payon";
  95. // if ($@ran == 3) set .map$,"geffen";
  96. // if ($@ran == 2) set .map$,"morocc";
  97. // if ($@ran == 1) set .map$,"prontera";
  98.  
  99. set $@ran, rand(1,4);
  100. if ($@ran == 4) set .map$,"pvp_y_room";
  101. if ($@ran == 3) set .map$,"pvp_y_room";
  102. if ($@ran == 2) set .map$,"pvp_y_room";
  103. if ($@ran == 1) set .map$,"pvp_y_room";
  104. sleep2 1000;
  105. set $@ran2, rand(1,5);
  106. if ($@ran2 == 5) set .mushroom,9;
  107. if ($@ran2 == 4) set .mushroom,7;
  108. if ($@ran2 == 3) set .mushroom,7;
  109. if ($@ran2 == 2) set .mushroom,5;
  110. if ($@ran2 == 1) set .mushroom,3;
  111. // announce "Mushroom NPC : The Mushroom has spawned in PvP! ("+ .map$ +" pvp)",0;
  112. // announce "Mushroom NPC : The Mushroom has spawned in PvP! ("+getcastlename(.map$)+")",0;
  113. // sleep2 10000;
  114. announce "Mushroom NPC : " + .mushroom + " Mushrooms have spawned in map ["+ .map$ +" pvp] with 200 pcs. "+getitemname($item_id)+"s bounty for each! Gear up for battle now!",0;
  115. sleep2 10000;
  116. monster .map$,0,0,"Don't kill me please!",1084,.mushroom,"Find the Mushroom::OnMobKilled";
  117. end;
  118.  
  119. OnMobKilled:
  120. mapannounce .map$,"Mushroom NPC: " + strcharinfo(0) + " has obtained 200 pcs. "+getitemname($item_id)+"s for finding a mushroom!",0;
  121. //announce "Mushroom NPC: " + strcharinfo(0) + " has obtained 200 pcs. "+getitemname($item_id)+" for finding a mushroom!",0;
  122. // set zeny,zeny+10000000;
  123. getitem $item_id,200;
  124. set .Event,0;
  125. end;
  126.  
  127. }
Advertisement
Add Comment
Please, Sign In to add comment