halloween_2008.txt 7.5 KB

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