Advertisement
Lelouch17

Poring_Catcher

Aug 5th, 2014
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. //= Poring Catcher - Auto Event Script
  2. //===== By: =================================================================================
  3. //= Washi - www.EarthBound-RO.com
  4. //===== Compatible With: ====================================================================
  5. //= Any eAthena Version
  6. //===== Description: ========================================================================
  7. //= Single NPC that starts automatically starts every hour.
  8. //===== Additional Comments: ================================================================
  9. //= This script is a combenation of the Dice Event by [Mahina]
  10. //= and the origonal Poring Catcher Event by [Wild Karrd]
  11. //===========================================================================================
  12. //= OnMinute - Change this to the minute you would like this script to load. [ LINE 22 ]
  13. //= getitem - Change this to the Item ID of your prize. [ LINE 118 ]
  14. //===========================================================================================
  15. - script poring#announcer -1,{
  16.  
  17. OnInit:
  18. disablenpc "poringevent";
  19. hideonnpc "Poring Catcher#evnt2";
  20. end;
  21.  
  22. OnMinute30: // SET THE 30 TO THE MINUTE YOU WANT THE EVENT TO START EACH HOUR.
  23.  
  24. announce "Poring Catcher : It's time to play some Poring Catcher!",0;
  25. killmonster "poring_w01","All";
  26. sleep2 10000;
  27. announce "Poring Catcher : Please make your way to the centre of Izlude.",0;
  28. sleep2 10000;
  29. announce "Poring Catcher : After one minute the portal will close.",0;
  30. sleep2 10000;
  31. announce "Poring Catcher : Enter the warp portal now if you want to join.",0;
  32. enablenpc "poringevent";
  33. initnpctimer;
  34. end;
  35.  
  36. OnTimer30000:
  37. announce "Poring Catcher : Last 30 seconds.",0;
  38. sleep2 5000;
  39. announce "Poring Catcher : Hurry to the centre of Izlude if you want to join.",0;
  40. end;
  41.  
  42. OnTimer50000:
  43. announce "Poring Catcher : Last 10 seconds.",0;
  44. end;
  45.  
  46. OnTimer55000:
  47. announce "Poring Catcher : 5.",0;
  48. end;
  49.  
  50. OnTimer56000:
  51. announce "Poring Catcher : 4.",0;
  52. end;
  53.  
  54. OnTimer57000:
  55. announce "Poring Catcher : 3.",0;
  56. end;
  57.  
  58. OnTimer58000:
  59. announce "Poring Catcher : 2.",0;
  60. end;
  61.  
  62. OnTimer59000:
  63. announce "Poring Catcher : 1.",0;
  64. end;
  65.  
  66. OnTimer60000:
  67. announce "Poring Catcher : Time's up. Portal Will Open again in one hour.",0;
  68. end;
  69.  
  70. OnTimer67000:
  71. disablenpc "poringevent";
  72. donpcevent "Poring Catcher#evnt2::OnEnable";
  73. stopnpctimer;
  74. end;
  75. }
  76.  
  77. //--------------------------------------------------
  78. //prontera,160,171,0 warp poringevent 2,2,poring_w01,106,129
  79. izlude,128,142,0 warp poringevent 2,2,poring_w01,106,129
  80.  
  81. //--------------------------------------------------
  82.  
  83. poring_w01,100,127,4 script Poring Catcher#evnt2 715,{
  84.  
  85. //--------------------------------------------------
  86.  
  87. mes "[Poring Catcher]";
  88. if(PORING == 1) goto L_PORING;
  89. mes "Please tell me your name";
  90. next;
  91. input .@name$;
  92. if(.@name$ != strcharinfo(0)) {
  93. mes "[Poring Catcher]";
  94. mes "Are you sure thats your character name?";
  95. close;
  96. }
  97. mes "[Poring Catcher]";
  98. mes "Congrats. You've won.";
  99. close2;
  100. announce "Poring Catcher : All laugh at, "+.@name$+". - This player tried to cheat the system. Muhahahahaha!",0;
  101. // warp "prontera",155,178;
  102. warp "izlude",127,136;
  103. end;
  104.  
  105. L_PORING:
  106. mes "Please tell me your name";
  107. next;
  108. input .@name$;
  109. if(.@name$ != strcharinfo(0)) {
  110. mes "[Poring Catcher]";
  111. mes "Are you sure thats your character name?";
  112. close;
  113. }
  114. mes "[Poring Catcher]";
  115. mes "Congrats. You've won.";
  116. close2;
  117. announce "Poring Catcher : We have a winner, "+.@name$+". - 10,000 Cash Points!",0;
  118. // getitem 6379,20; // SET THE 20085 TO THE ITEM ID OF YOUR PRIZE
  119. set #CASHPOINTS, #CASHPOINTS + 10000;
  120. dispbottom "Gained 10,000 cash points. Total "+#CASHPOINTS+" points";
  121. // set zeny,zeny+1000000;
  122.  
  123. set PORING,0;
  124. // warp "prontera",155,178;
  125. warp "izlude",127,136;
  126. hideonnpc "Poring Catcher#evnt2";
  127. end;
  128.  
  129. OnEnable:
  130. mapannounce "poring_w01","Poring Catcher : I will be summoning 100 different Porings.",0;
  131. sleep2 10000;
  132. mapannounce "poring_w01","Poring Catcher : Only one of these Porings is the correct Poring.",0;
  133. sleep2 10000;
  134. mapannounce "poring_w01","Poring Catcher : The correct Poring is called [ Poring ], all the other Porings have different names.",0;
  135. sleep2 10000;
  136. mapannounce "poring_w01","Poring Catcher : Take your time because if you kill the wrong Poring, your out of the game.",0;
  137. sleep2 10000;
  138. mapannounce "poring_w01","Poring Catcher : The first player to kill the correct Poring wins.",0;
  139. sleep2 10000;
  140. mapannounce "poring_w01","Poring Catcher : That's that.. Now let's play...",0;
  141. goto L_Start;
  142. end;
  143.  
  144. L_Start:
  145. mapannounce "poring_w01","Poring Catcher : 5",0;
  146. sleep2 1000;
  147. mapannounce "poring_w01","Poring Catcher : 4",0;
  148. sleep2 1000;
  149. mapannounce "poring_w01","Poring Catcher : 3",0;
  150. sleep2 1000;
  151. mapannounce "poring_w01","Poring Catcher : 2",0;
  152. sleep2 1000;
  153. mapannounce "poring_w01","Poring Catcher : 1",0;
  154. sleep2 1000;
  155. mapannounce "poring_w01","Poring Catcher : Lets Do This!",0;
  156. areamonster "poring_w01",84,119,121,90,"Poring",1002,1,"poringwin::OnMobKilled";
  157. areamonster "poring_w01",84,119,121,90,"Pouring",1002,10,"poringlose::OnMobKilled";
  158. areamonster "poring_w01",84,119,121,90,"Proing",1002,10,"poringlose::OnMobKilled";
  159. areamonster "poring_w01",84,119,121,90,"Poiring",1002,10,"poringlose::OnMobKilled";
  160. areamonster "poring_w01",84,119,121,90,"Poing",1002,10,"poringlose::OnMobKilled";
  161. areamonster "poring_w01",84,119,121,90,"I am not Poring",1002,5,"poringlose::OnMobKilled";
  162. areamonster "poring_w01",84,119,121,90,"Gniriop",1002,1,"poringlose::OnMobKilled";
  163. areamonster "poring_w01",84,119,121,90,"Porring",1113,1,"poringlose::OnMobKilled";
  164. areamonster "poring_w01",84,119,121,90,"Porinng",1062,1,"poringlose::OnMobKilled";
  165. areamonster "poring_w01",84,119,121,90,"Poriiing",1002,10,"poringlose::OnMobKilled";
  166. areamonster "poring_w01",84,119,121,90,"PoriNgg",1002,10,"poringlose::OnMobKilled";
  167. areamonster "poring_w01",84,119,121,90,"Porong",1002,10,"poringlose::OnMobKilled";
  168. areamonster "poring_w01",84,119,121,90,"P0ring",1002,10,"poringlose::OnMobKilled";
  169. areamonster "poring_w01",84,119,121,90,"Por1ng",1002,10,"poringlose::OnMobKilled";
  170. areamonster "poring_w01",84,119,121,90,"Porng",1002,1,"poringlose::OnMobKilled";
  171. end;
  172. }
  173.  
  174. - script poringwin -1,{
  175.  
  176. OnMobKilled:
  177. dispbottom "Poring : Congratulations. You've got me.";
  178. set PORING,1;
  179. atcommand "@doommap";
  180. killmonster "poring_w01","All";
  181. mapannounce "poring_w01","Poring Catcher : Come to me and tell me your name.",0;
  182. hideoffnpc "Poring Catcher#evnt2";
  183. end;
  184.  
  185. }
  186.  
  187. - script poringlose -1,{
  188.  
  189. OnMobKilled:
  190. dispbottom "Poring Catcher : Wahaha, your a loser! - I wasnt the correct Poring.";
  191. // warp "prontera",155,178;
  192. warp "izlude",127,136;
  193. end;
  194.  
  195. }
  196.  
  197. // -- Mapflags
  198. poring_w01 mapflag nowarp
  199. poring_w01 mapflag nowarpto
  200. poring_w01 mapflag noteleport
  201. poring_w01 mapflag nosave
  202. poring_w01 mapflag nomemo
  203. poring_w01 mapflag nobranch
  204. poring_w01 mapflag noloot
  205. poring_w01 mapflag noskill
  206. poring_w01 mapflag nopenalty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement