yuhsing

Untitled

Jan 29th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1.  
  2. prontera,152,212,4 script Find the Mushroom 1084,{
  3.  
  4. mes "[ Find The Mushroom ]";
  5. if(getgmlevel() < 98) {
  6. 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!";
  7. else {
  8. mes "There is a Find the Mushroom event on now!";
  9. mes "Location: "+ .map_name$[.map_index];
  10. mes "Prize: " + getitemname($item_id);
  11. mes "Number of Mushrooms: " + .mushroom;
  12. }
  13. close;
  14. }
  15. mes "Hello "+strcharinfo(0)+"! Please customize this event:";
  16. Main:
  17. next;
  18. mes "[ Find The Mushroom ]";
  19. switch(select("Item ["+$amount+" x "+getitemname($item_id)+"]:Start Event:End Event")) {
  20. case 1:
  21. mes "Which item would you like the Mushroom to drop?";
  22. mes "Please input the item ID:";
  23. do{
  24. input $item_id;
  25. }while( getitemname($item_id) == "null" );
  26. mes "Enter amount.";
  27. input $amount,1,30000;
  28. mes "Event Prize : "+$amount+" x "+getitemname($item_id);
  29. goto Main;
  30. case 2:
  31. mes "Starting the event now...";
  32. set .Event,1;
  33. close2;
  34. goto OnStart;
  35.  
  36. case 3:
  37. mes "Ending the event now...";
  38. if(.Event) announce strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
  39. killmonster .map$[.map_index],"All";
  40. set .Event,0;
  41. close;
  42. }
  43.  
  44. OnInit:
  45. setarray .map$[0],"splendide","hugel","yuno","comodo","xmas","aldebaran","izlude","payon","geffen","morocc","prontera";
  46. setarray .map_name$[0],"Splendide","Hugel Town","Yuno Town","Comodo Town","Christmas Town","Alde Baran","Izlude","Payon Town","Geffen Tower","Morocc Desert","Prontera";
  47. set .map_size,getarraysize( .map$ );
  48. end;
  49.  
  50.  
  51.  
  52. OnClock0548:
  53. OnClock0800:
  54. OnClock1000:
  55. OnClock1200:
  56. OnClock1415:
  57. OnClock1601:
  58. OnClock1800:
  59. OnClock2030:
  60. OnClock2230:
  61. OnClock0100:
  62. OnClock0300:
  63. OnStart:
  64. announce "Mushroom NPC : It's time to play Find the Mushroom Event in PvP!",0;
  65. sleep2 10000;
  66.  
  67. set .map_index,rand( .map_size );
  68. set .@ran2, rand(1,5);
  69. if (.@ran2 == 5) set .mushroom,9;
  70. if (.@ran2 == 4) set .mushroom,7;
  71. if (.@ran2 == 3) set .mushroom,7;
  72. if (.@ran2 == 2) set .mushroom,5;
  73. if (.@ran2 == 1) set .mushroom,3;
  74.  
  75. announce "Mushroom NPC : " + .mushroom + " Mushrooms have spawned in map [ "+ .map_name$[.map_index] +" ] with "+$amount+" pcs. "+getitemname($item_id)+"s bounty for each! Gear up for battle now!",0;
  76. sleep2 10000;
  77. monster .map$[.map_index],0,0,"Don't kill me please!",1084,.mushroom,"Find the Mushroom::OnMobKilled";
  78. end;
  79.  
  80. OnMobKilled:
  81. mapannounce .map$[.map_index],"Mushroom NPC: " + strcharinfo(0) + " has obtained "+$amount+" pcs. "+getitemname($item_id)+"s for finding a mushroom!",0;
  82. getitem $item_id,$amount;
  83. if( !mobcount( .map$[.map_index],"Find the Mushroom::OnMobKilled" ) ) set .Event,0;
  84. end;
  85.  
  86. }
Advertisement
Add Comment
Please, Sign In to add comment