brendorox

Untitled

Jul 27th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. //===== eAthena Script =======================================
  2. //= Poring Event
  3. //===== By: ==================================================
  4. //= hellflaem aka Nezra.
  5. //===== Current Version: =====================================
  6. //= 2.1
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN & Cronus SVN
  9. //===== Description: =========================================
  10. //= An event with 100 false porings and 1 really poring.
  11. //===== Additional Comments: =================================
  12. //= 1.0 script created. ~ hellflaem
  13. //= 2.0 translated to portuguese. ~ Macabu
  14. //= 2.1 fixed somethings. ~ Macabu
  15. //===== Variables: ===========================================
  16. - script Evento Poring#var -1,{
  17. end;
  18. OnInit:
  19. //- ID do item do prêmio.
  20. set $ipe, 607;
  21.  
  22. //- Quantidade do item do prêmio.
  23. set $qpe, 5;
  24.  
  25. //- Tirar 50% de HP quando matar
  26. //- um poring falso?
  27. //- [0=NÃO|1=SIM]
  28. set $hpe, 0;
  29. end;
  30. }
  31. //===== Script: ==============================================
  32. prontera,147,171,3 script Evento Poring 763,{
  33.  
  34. if(getgmlevel() < 50)
  35. {
  36. if(!.poringcatch)
  37. {
  38. mes "[Evento Poring]";
  39. mes "Não tem evento por inquanto.";
  40. close;
  41. }
  42. mes "[Evento Poring]";
  43. mes "Olá "+strcharinfo(0)+" o que posso fazer por você?";
  44. next;
  45. switch(select("Entrar no evento.:Informação."))
  46. {
  47. case 1:
  48. mes "[Evento Poring]";
  49. mes "Divirta-se!";
  50. next;
  51. warp "poring_c01", 100, 100;
  52. end;
  53.  
  54. case 2:
  55. mes "[Evento Poring]";
  56. mes "São invocados 100 Porings.";
  57. mes "Só UM é verdadeiro e você tem que acha-lo.";
  58. mes "Caso consiga, ganhará um item.";
  59. mes "Boa Sorte.";
  60. close;
  61. }
  62. }
  63. mes "[Evento Poring]";
  64. mes "Olá "+strcharinfo(0)+" o que posso fazer por você?";
  65. next;
  66. if(select("Ligar evento.:Entrar no evento.") == 1) callsub OnStart;
  67. mes "[Evento Poring]";
  68. mes "Divirta-se!";
  69. next;
  70. warp "poring_c01", 100, 100;
  71. end;
  72.  
  73. Onclock0200: callsub OnEventStart;
  74. Onclock0030: callsub OnEventStart;
  75. OnClock1630: callsub OnEventStart;
  76. OnClock0500: callsub OnEventStart;
  77. OnClock2000: callsub OnEventStart;
  78. OnClock1900: callsub OnEventStart;
  79.  
  80. OnEventStart:
  81. announce "[Evento Poring]: Gente, é hora do evento. Falem comigo para entrar.",0;
  82. initnpctimer;
  83. monster "poring_c01",0,0,"Poring",1002,1,strnpcinfo(0)+"::OnMobKilled";
  84. monster "poring_c01",0,0,"Pouring",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  85. monster "poring_c01",0,0,"Proing",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  86. monster "poring_c01",0,0,"Poirng",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  87. monster "poring_c01",0,0,"Poing",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  88. monster "poring_c01",0,0,"Porimg",1002,5,strnpcinfo(0)+"::OnWrongKilled";
  89. monster "poring_c01",0,0,"Porinq",1002,1,strnpcinfo(0)+"::OnWrongKilled";
  90. monster "poring_c01",0,0,"Poring",1113,1,strnpcinfo(0)+"::OnWrongKilled";
  91. monster "poring_c01",0,0,"Poring",1062,1,strnpcinfo(0)+"::OnWrongKilled";
  92. monster "poring_c01",0,0,"Por|ng",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  93. monster "poring_c01",0,0,"Por1ng",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  94. monster "poring_c01",0,0,"Porong",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  95. monster "poring_c01",0,0,"P0ring",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  96. monster "poring_c01",0,0,"P@ring",1002,10,strnpcinfo(0)+"::OnWrongKilled";
  97. monster "poring_c01",0,0,"Porng",1002,1,strnpcinfo(0)+"::OnWrongKilled";
  98. set .poringcatch,1;
  99. end;
  100. return;
  101.  
  102. OnTimer600000:
  103. stopnpctimer;
  104. announce "[Evento Poring]: O tempo acabou, tente na próxima vez.",0;
  105. set .poringcatch,0;
  106. killmonsterall "poring_c01";
  107. end;
  108.  
  109. OnMobKilled:
  110. stopnpctimer;
  111. announce "[Evento Poring]: "+strcharinfo(0)+" encontrou o Poring. Tente denovo na próxima vez.",0;
  112. dispbottom "Parabéns, você me achou.";
  113. getitem $ipe,$qpe;
  114. killmonsterall "poring_c01";
  115. set .poringcatch,0;
  116. end;
  117.  
  118. OnWrongKilled:
  119. dispbottom "Whaa, você errou feio.";
  120. if($hpe) percentheal -50,0;
  121. warp "prontera",157,175;
  122. end;
  123. }
Advertisement
Add Comment
Please, Sign In to add comment