Advertisement
Guest User

a

a guest
Jun 8th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. //===== rAthena Script =======================================
  2. //= Poring Summoner
  3. //===== By: ==================================================
  4. //= Bahmut (Made it automated)
  5. //= MoonlightRO (Original)
  6. //===== Current Version: =====================================
  7. //= 1.4
  8. //===== Compatible With: =====================================
  9. //= TXT & SQL
  10. //===== Link to orginal: =====================================
  11. //= http://www.eathena.ws/board/index.php?showtopic=236779
  12. //============================================================
  13.  
  14. - script Poring Summoner -1,{
  15.  
  16. OnInit:
  17. //---- NPC Config -----
  18. set .ItemID,7729;
  19. set .SpecialPorings,100;
  20. set .NormalPorings,300;
  21. //---------------------
  22. initnpctimer;
  23. end;
  24.  
  25. OnSpecialKill:
  26. set .SpecialPorings[1],.SpecialPorings[1]-1;
  27. announce strcharinfo(0) + " got a " + getitemname(.ItemID) + "!",bc_map;
  28. getitem .ItemID,2;
  29. getitem 674,1;
  30. goto PoringCount;
  31.  
  32. OnNormalKill:
  33. set .NormalPorings[1],.NormalPorings[1]-1;
  34. goto PoringCount;
  35.  
  36. PoringCount:
  37. announce "Special Poring: " + .SpecialPorings[1] + " || Normal Poring: " + .NormalPorings[1],bc_map;
  38. if(!.SpecialPorings[1]) goto EndEvent;
  39. end;
  40.  
  41. OnClock0400:
  42. OnClock1000:
  43. OnClock1600:
  44. OnClock2200:
  45. RestartEvent:
  46. killmonster .Map$,"All";
  47. set .Event,0;
  48. set .SpecialPorings[1],0;
  49. set .NormalPorings[1],0;
  50.  
  51. removemapflag .Map$,mf_noskill;
  52. set $@ran, rand(1,11);
  53. if ($@ran == 10) set .Map$,"lighthalzen";
  54. if ($@ran == 9) set .Map$,"louyang";
  55. if ($@ran == 8) set .Map$,"comodo";
  56. if ($@ran == 7) set .Map$,"xmas";
  57. if ($@ran == 6) set .Map$,"aldebaran";
  58. if ($@ran == 5) set .Map$,"izlude";
  59. if ($@ran == 4) set .Map$,"payon";
  60. if ($@ran == 3) set .Map$,"geffen";
  61. if ($@ran == 2) set .Map$,"morocc";
  62. if ($@ran == 1) set .Map$,"prontera";
  63. if ($@ran == 11) set .Map$,"pronguard";
  64. setmapflag .Map$,mf_noskill;
  65. monster .Map$,0,0,"Nekoling",3171,.SpecialPorings,"Poring Summoner::OnSpecialKill";
  66. monster .Map$,0,0,"Nekoling",3171,.NormalPorings,"Poring Summoner::OnNormalKill";
  67. set .SpecialPorings[1],.SpecialPorings;
  68. set .NormalPorings[1],.NormalPorings;
  69. announce "The Poring Event has begun!",bc_all;
  70. announce "Location: " + .Map$,bc_all;
  71. announce "Special Poring: " + .SpecialPorings,bc_all;
  72. announce "Normal Poring: " + .NormalPorings,bc_all;
  73.  
  74. setnpctimer 0;
  75. end;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement