yuhsing

Untitled

May 26th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 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(.ItemID)+"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$;
  10. mes "Prize: " + getitemname(.ItemID);
  11. mes "Number of Mushrooms: " + .Mushrooms;
  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 [" + getitemname(.ItemID) + "]: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. input .ItemID;
  24. goto Main;
  25. case 2:
  26. mes "Starting the event now...";
  27. set .Event,1;
  28. close2;
  29. goto OnStart;
  30.  
  31. case 3:
  32. mes "Ending the event now...";
  33. if(.Event) announce ""+strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
  34. killmonster .Map$,"All";
  35. set .Event,0;
  36. close;
  37. }
  38.  
  39. OnInit:
  40. setarray .map_list$,"pvp_y_room";
  41. set .map_list_size,getarraysize( .map_list$ );
  42. end;
  43.  
  44. OnClock0548:
  45. OnClock0800:
  46. OnClock1000:
  47. OnClock1200:
  48. OnClock1415:
  49. OnClock1601:
  50. OnClock1800:
  51. OnClock2030:
  52. OnClock2230:
  53. OnClock0100:
  54. OnClock0300:
  55.  
  56.  
  57. OnStart:
  58. set .Map$,.map_list$[ rand( .map_list_size ) ];
  59. announce "Mushroom NPC : It's time to play Find the Mushroom Event in PvP!",0;
  60. sleep2 10000;
  61. set $@ran2, rand(1,5);
  62. if ($@ran2 == 5) set .Mushrooms,9;
  63. if ($@ran2 == 4) set .Mushrooms,7;
  64. if ($@ran2 == 3) set .Mushrooms,7;
  65. if ($@ran2 == 2) set .Mushrooms,5;
  66. if ($@ran2 == 1) set .Mushrooms,3;
  67.  
  68. announce "Mushroom NPC : " + .Mushrooms + " Mushrooms have spawned in map ["+ .Map$ +" pvp] with 200 pcs. "+getitemname(.ItemID)+"s bounty for each! Gear up for battle now!",0;
  69. sleep2 10000;
  70. monster .Map$,0,0,"Don't kill me please!",8084,.Mushrooms,"Find the Mushroom::OnMobKilled";
  71. end;
  72.  
  73. OnMobKilled:
  74. mapannounce .Map$,"Mushroom NPC: " + strcharinfo(0) + " has obtained 200 pcs. "+getitemname(.ItemID)+"s for finding a mushroom!",0;
  75.  
  76. // item drop on ground
  77. getmapxy( .@map$,.@x,.@y,0 );
  78. makeitem .ItemID,200,.@map$,.@x,.@y
  79. set .Event,0;
  80. end;
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment