halloween_2008.txt 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. //===== rAthena Script =======================================
  2. //= iRO Halloween (2008)
  3. //===== By: ==================================================
  4. //= Kisuka
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena SVN
  9. //===== Description: =========================================
  10. //= iRO Halloween (2008)
  11. //= Run away from the zombies for tickets.
  12. //= Redeem tickets for prizes.
  13. //===== Notes: ===============================================
  14. //= You must enable the event monsters in mob_db2.
  15. //===== Additional Comments: =================================
  16. //= 1.0 First version. [Kisuka]
  17. //= 1.1 Some small changes. [Kisuka]
  18. //============================================================
  19. payon,162,176,4 script Halloween Magician#iRO08 704,{
  20. if(Hallow08 < 1) {
  21. mes "[Halloween Magician]";
  22. mes "Kkkkkkkkk!";
  23. mes "I have a special event this Halloween that tests your luck and agility.";
  24. mes "Are you interested?";
  25. next;
  26. mes "[Halloween Magician]";
  27. mes "Come on! Don't be a wuss!";
  28. mes "If you collect enough tickets you can get good prizes!";
  29. mes "So what do you say?";
  30. next;
  31. goto MainMenu;
  32. }
  33. if (Hallow08Kill == 1) {
  34. mes "[Halloween Magician]";
  35. mes "You a 'fraidy cat or something?!";
  36. mes "You know you want to try again...";
  37. mes "Do you know the rules?";
  38. next;
  39. set Hallow08Kill,0;
  40. if(select("Yes, I know.:No, I don't know.") == 2) {
  41. goto Rules;
  42. }
  43. goto Participate;
  44. }
  45. if (Hallow08Kill == 2) {
  46. mes "[Halloween Magician]";
  47. mes "Oh, well done! You are alright!";
  48. mes "Isn't it fun with zombies??";
  49. mes "You know, zombies were people too!";
  50. mes "Ha!";
  51. mes "Kkkkkkk.";
  52. next;
  53. getitem 7941,1;
  54. set Hallow08Kill,0;
  55. mes "[Halloween Magician]";
  56. mes "As I promised";
  57. mes "You can get Halloween tickets for cool items.";
  58. close;
  59. }
  60. if(Hallow08 > 0) {
  61. mes "[Halloween Magician]";
  62. mes "Well, do you want to hear the rules again or, just get back to it...";
  63. next;
  64. goto MainMenu2;
  65. }
  66. Rules:
  67. mes "[Halloween Magician]";
  68. mes "This village is like a virtual Payon.";
  69. mes "There are zombies and ghouls roaming around and three southern exits, but only one works.";
  70. mes "That's up to you to find out.";
  71. next;
  72. mes "[Halloween Magician]";
  73. mes "You can't use any skills to kill the ghouls or zombies.";
  74. mes "And one more thing...";
  75. mes "you shouldn't forget...";
  76. next;
  77. mes "[Halloween Magician]";
  78. mes "All participants should be wearing nothing.";
  79. mes "Put all belongings in your storage and come back here when your weight is '0'.";
  80. next;
  81. mes "[Halloween Magician]";
  82. mes "Oh and one more thing!";
  83. mes "You can't be riding a PecoPeco or have a Cart.";
  84. mes "If you are, then I will remove them before you enter.";
  85. mes "Got it?";
  86. next;
  87. mes "[Halloween Magician]";
  88. mes "Remember, there are three exits but only one works randomly, the zombies and ghouls roaming around there can't be killed and you can't be wearing anything.";
  89. next;
  90. if (Hallow08 > 0) {
  91. mes "[Halloween Magician]";
  92. mes "Hey...";
  93. mes "Come back once you're ready.";
  94. close;
  95. }else{
  96. goto MainMenu;
  97. }
  98. Participate:
  99. mes "[Halloween Magician]";
  100. mes "Ok, you are ready.";
  101. mes "Let me check your weight.";
  102. next;
  103. if (Weight > 0) {
  104. mes "[Halloween Magician]";
  105. mes "Gosh!";
  106. mes "There's always a black sheep anywhere.";
  107. next;
  108. mes "[Halloween Magician]";
  109. mes "You think I wouldn't notice that your weight is above '0'?";
  110. mes "You're overweight...";
  111. close;
  112. }else{
  113. mes "[Halloween Magician]";
  114. mes "You seem good to go, and your weight is just right.";
  115. next;
  116. mes "[Halloween Magician]";
  117. mes "I was quite swamped with my work, so I'm exhausted.";
  118. next;
  119. mes "[Halloween Magician]";
  120. mes "I sometimes forget to send you there...";
  121. next;
  122. mes "[Halloween Magician]";
  123. mes "I hope you come back well.";
  124. close2;
  125. if (Hallow08 < 1) {
  126. set Hallow08,1;
  127. }
  128. set Hallow08Kill,1;
  129. set @Hallow08Warp, rand(1,3);
  130. percentheal -98,0;
  131. setriding 0;
  132. setcart 0;
  133. warp "evt_zombie",155,246;
  134. end;
  135. }
  136. TicketExchange:
  137. mes "[Halloween Magician]";
  138. mes "You want to exchange tickets for prizes?";
  139. mes "Good job! Kkkkkk!";
  140. next;
  141. mes "[Halloween Magician]";
  142. mes "Lemme tell you what items you can exchange for.";
  143. next;
  144. mes "[Halloween Magician]";
  145. mes "5 tickets for Pumpkin Pie.";
  146. mes "20 tickets for Pumpkin-Head.";
  147. mes "50 tickets for Old Blue Box.";
  148. mes "70 tickets for Old Purple Box.";
  149. mes "200 tickets for Old Card Album.";
  150. next;
  151. mes "[Halloween Magician]";
  152. mes "What would you like to exchange for?";
  153. next;
  154. switch(select("Pumpkin Pie:Pumpkin-Head:Old Blue Box:Old Purple Box:Old Card Album")) {
  155. case 1:
  156. if(countitem(7941) < 5) {
  157. goto NotEnough;
  158. }else{
  159. delitem 7941,5;
  160. getitem 12192,1;
  161. goto Enough;
  162. }
  163. break;
  164. case 2:
  165. if(countitem(7941) < 20) {
  166. goto NotEnough;
  167. }else{
  168. delitem 7941,20;
  169. getitem 5134,1;
  170. goto Enough;
  171. }
  172. break;
  173. case 3:
  174. if(countitem(7941) < 50) {
  175. goto NotEnough;
  176. }else{
  177. delitem 7941,50;
  178. getitem 603,1;
  179. goto Enough;
  180. }
  181. break;
  182. case 4:
  183. if(countitem(7941) < 70) {
  184. goto NotEnough;
  185. }else{
  186. delitem 7941,70;
  187. getitem 617,1;
  188. goto Enough;
  189. }
  190. break;
  191. case 5:
  192. if(countitem(7941) < 200) {
  193. goto NotEnough;
  194. }else{
  195. delitem 7941,200;
  196. getitem 616,1;
  197. goto Enough;
  198. }
  199. }
  200. NextTime:
  201. mes "[Halloween Magician]";
  202. mes "Ok, see you then.";
  203. mes "Kkkkkkkk.";
  204. close;
  205. MainMenu:
  206. menu "Explain it to me.",Rules,"I want to participate.",Participate,"I want to exchange tickets for prizes.",TicketExchange,"I'll come back next time.",NextTime;
  207. MainMenu2:
  208. menu "Get me back there now!",Participate,"Please, tell me the rules",Rules,"I want to exchange tickets for prizes.",TicketExchange,"I'll come back next time.",NextTime;
  209. NotEnough:
  210. mes "[Halloween Magician]";
  211. mes "You don't have enough tickets!";
  212. mes "Can't you even count?";
  213. mes "Please come here with the right number of tickets.";
  214. close;
  215. Enough:
  216. mes "[Halloween Magician]";
  217. mes "Here it is.";
  218. mes "Do you need...";
  219. mes "anything else?";
  220. next;
  221. if (Hallow08 == 1) {
  222. goto MainMenu2;
  223. }else{
  224. goto MainMenu;
  225. }
  226. }
  227. // --------------- MapFlags ---------------
  228. evt_zombie,16,142,1 script zombiewarp001 45,2,2,{
  229. OnTouch:
  230. if (@Hallow08Warp == 1) {
  231. set Hallow08Kill,2;
  232. specialeffect 16;
  233. warp "payon",28,142;
  234. }
  235. end;
  236. }
  237. evt_zombie,122,27,1 script zombiewarp002 45,2,2,{
  238. OnTouch:
  239. if (@Hallow08Warp == 2) {
  240. set Hallow08Kill,2;
  241. specialeffect 16;
  242. warp "payon",121,40;
  243. }
  244. end;
  245. }
  246. evt_zombie,267,89,1 script zombiewarp003 45,2,2,{
  247. OnTouch:
  248. if (@Hallow08Warp == 3) {
  249. set Hallow08Kill,2;
  250. specialeffect 16;
  251. warp "payon",253,95;
  252. }
  253. end;
  254. }
  255. evt_zombie,0,0,0,0 monster Zombie 3000,150,0,0,0
  256. evt_zombie,0,0,0,0 monster Ghoul 3001,80,0,0,0
  257. evt_zombie,0,0,0,0 monster Zombie Master 3002,20,0,0,0