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