hallow06.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. //===== eAthena Script =======================================
  2. //= Custom Halloween Event 2006
  3. //===== By: ==================================================
  4. //= Stryker
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= Latest Svn
  9. //===== Description: =========================================
  10. //= Halloween Event Script
  11. //===== Additional Comments: =================================
  12. //= Version 1.1 - Added trick to script
  13. //= 1.2 fixed bugs, optimized. Now uses 1 var instead of 3 [Lupus]
  14. //============================================================
  15. prontera,151,190,5 script Hallows' Eve Event 807,{
  16. mes "[Hallows' Eve Event]";
  17. if(Class == Job_Novice){
  18. mes "I am sorry but you have to got a job to complete the event.";
  19. emotion e_swt,1;
  20. close;
  21. }
  22. if(EVENT_HALWN06&1 && EVENT_HALWN06&2){
  23. mes "I am sorry but you have already completed the event.";
  24. emotion e_sry;
  25. close;
  26. }
  27. mes "Greetings fellow lively human.";
  28. next;
  29. mes "[Hallows' Eve Event]";
  30. mes "Halloween is upon us and it is almost time to adventure out into places few dare go.";
  31. next;
  32. mes "[Hallows' Eve Event]";
  33. mes "Trick or treat, which do you prefer?";
  34. next;
  35. menu "Trick",-, "Treat",L_Treat;
  36. mes "[Hallows' Eve Event]";
  37. if(EVENT_HALWN06&2){
  38. mes "I'm sorry but you have already had a trick. Why don't you go pick a treat now.";
  39. emotion e_sry;
  40. close;
  41. }
  42. mes "Give me a min...";
  43. next;
  44. set BaseExp,BaseExp+BaseLevel*1000;
  45. set EVENT_HALWN06,EVENT_HALWN06|2;
  46. mes "[Hallows' Eve Event]";
  47. mes "Here is your treat. Your Base EXP has been slightly increased.";
  48. next;
  49. mes "[Hallows' Eve Event]";
  50. mes "I hope you enjoy your trick and Happy Halloween!";
  51. close;
  52. L_Treat:
  53. mes "[Hallows' Eve Event]";
  54. if(EVENT_HALWN06&1){
  55. mes "I'm sorry but you have already had a treat. Why don't you go pick a trick now.";
  56. emotion e_sry;
  57. close;
  58. }
  59. if(!(EVENT_HALWN06&4)){
  60. mes "Great! This shall be so much fun.";
  61. next;
  62. mes "[Hallows' Eve Event]";
  63. mes "I will be sending you on a scavenger hunt for items.";
  64. next;
  65. mes "[Hallows' Eve Event]";
  66. mes "Bring back all the necessary items, and I will create you a treat.";
  67. next;
  68. mes "[Hallows' Eve Event]";
  69. mes "Not just any normal treat either that you can eat, but it is something you can wear on your head.";
  70. next;
  71. mes "[Hallows' Eve Event]";
  72. mes "But with all things made, some items are required first.";
  73. mes "The list:";
  74. mes "1 Hat,";
  75. mes "30 Pumpkin, and";
  76. mes "20 Black Piece of Cloth";
  77. next;
  78. mes "[Hallows' Eve Event]";
  79. mes "Hurry along now.";
  80. set EVENT_HALWN06,EVENT_HALWN06|4;
  81. close;
  82. }
  83. mes "Did you get the items I requested or do you need to see the list again?";
  84. next;
  85. menu "Got'em",-, "Don't Have",L_Dont_Have, "See List",L_List;
  86. mes "[Hallows' Eve Event]";
  87. if((countitem(2220) < 1) || (countitem(535) < 30) || (countitem(7205) < 20)){
  88. mes "You don't have enough items. Come back when you do.";
  89. emotion e_sry;
  90. close;
  91. }
  92. delitem 2220,1;
  93. delitem 535,30;
  94. delitem 7205,20;
  95. getitem 5134,1;
  96. set EVENT_HALWN06,EVENT_HALWN06|1;
  97. mes "Good job! I hope you are happy with your item.";
  98. emotion e_grat;
  99. next;
  100. mes "[Hallows' Eve Event]";
  101. mes "Enjoy the rest of your halloween.";
  102. emotion e_scissors,1;
  103. close;
  104. L_Dont_Have:
  105. mes "[Hallows' Eve Event]";
  106. mes "Go back out and search for them. Would you like to view the list?";
  107. next;
  108. menu "No",-, "Yes",L_List;
  109. close;
  110. L_List:
  111. mes "[Hallows' Eve Event]";
  112. mes "I require the following items:";
  113. mes "1 Hat,";
  114. mes "30 Pumpkin, and";
  115. mes "20 Black Piece of Cloth.";
  116. close;
  117. }