1 | //===== eAthena Script ======================================= |
---|
2 | //= Lighthalzen Dungeon Warp Script |
---|
3 | //===== By: ================================================== |
---|
4 | //= Sara-chan (1.0) |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 2.1b |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= Any Athena Version; RO Episode 8+ |
---|
9 | //===== Description: ========================================= |
---|
10 | //= Warp Points for Lighthalzen Dungeon |
---|
11 | //===== Additional Comments: ================================= |
---|
12 | //= No Comment! |
---|
13 | //= 1.1 Added temp restriction by Azazel [Lupus] |
---|
14 | //= 1.2 Optimized [Lupus] |
---|
15 | //= and fixed 005 and 005a warps coords, thanks to Justin84 |
---|
16 | //= 1.3 Fixed entrance condition check, thanx2Daegaladh [Lupus] |
---|
17 | //= 1.4 Added coords of secret dungeon entrance, thanks to Justin84 |
---|
18 | //= proved with screenshots [Lupus] |
---|
19 | //= 1.5a thx2 Justin84, some additions and fixes [Lupus] |
---|
20 | //= 1.5b re-enabled main entrance warp [Lupus] <-reverted 1.5c |
---|
21 | //= 1.6 Updated entrances, added Cube room warps, thanx 2 Justin84 |
---|
22 | //= 1.6a Disabled the "Entrance" to lhz_dun01 [Poki#3] |
---|
23 | //= 1.6b Updated Sewer Pipe [Vicious] |
---|
24 | //= 1.7 Fixed a warp-back |
---|
25 | //= 1.8 Some small changes [MasterOfMuppets] |
---|
26 | //= 1.9 Removed duplicates [Toms] |
---|
27 | //= 2.0 Now use MISC_QUEST&512 instead of 'hzdun' [Lupus] |
---|
28 | //= 2.1 Updated all standard dungeon warps. [L0ne_W0lf] |
---|
29 | //= Updated Sewer pipe dungeon entrance. |
---|
30 | //= Removed dialog from level 3 entrance warp. |
---|
31 | //= 2.1a Updated 3rd floor warp. Again... [L0ne_W0lf] |
---|
32 | //= 2.1b Fixed reverse level requirement in 3rd floor warp. [L0ne_W0lf] |
---|
33 | //============================================================ |
---|
34 | |
---|
35 | lhz_dun01,149,291,0 warp lhz_dun1-1 1,1,lhz_in01,19,129 |
---|
36 | lhz_dun01,281,150,0 warp lhz_dun2-1 1,1,lhz_dun02,282,153 |
---|
37 | lhz_dun02,282,161,0 warp lhz_dun2-2 1,1,lhz_dun01,281,154 |
---|
38 | lhz_dun01,149,9,0 warp lhz_dun3-1 1,1,lhz_dun02,153,19 |
---|
39 | lhz_dun02,146,19,0 warp lhz_dun3-2 1,1,lhz_dun01,144,9 |
---|
40 | lhz_dun01,18,145,0 warp lhz_dun4-1 1,1,lhz_dun02,17,150 |
---|
41 | lhz_dun02,17,156,0 warp lhz_dun4-2 1,1,lhz_dun01,18,150 |
---|
42 | lhz_dun02,149,149,4 script lhz_dun5-1 45,2,2,{ |
---|
43 | OnTouch: |
---|
44 | if ((Upper != 1 && BaseLevel<95) || (Upper == 1 && BaseLevel<90)) { |
---|
45 | warp "lhz_dun02",145,149; |
---|
46 | } |
---|
47 | else { |
---|
48 | warp "lhz_dun03",140,133; |
---|
49 | } |
---|
50 | end; |
---|
51 | } |
---|
52 | lhz_dun03,139,137,0 warp lhz_dun5-2 1,1,lhz_dun02,149,142 |
---|
53 | |
---|
54 | //--------------------------Sewer Pipe-------------------------- |
---|
55 | |
---|
56 | lighthalzen,313,301,0 script Sewer Pipe#lt 111,{ |
---|
57 | if (MISC_QUEST&512) { |
---|
58 | mes "^3355FFYou found some sort"; |
---|
59 | mes "of large sewage pipe."; |
---|
60 | mes "Naturally, the stench"; |
---|
61 | mes "emanating from inside"; |
---|
62 | mes "the pipe is barely endurable.^000000"; |
---|
63 | next; |
---|
64 | if (select("Enter:Cancel") == 1) { |
---|
65 | warp "lhz_cube",231,17; |
---|
66 | end; |
---|
67 | } |
---|
68 | close; |
---|
69 | } |
---|
70 | mes "^3355FFYou found some sort"; |
---|
71 | mes "of large sewage pipe."; |
---|
72 | mes "Naturally, the stench"; |
---|
73 | mes "emanating from inside"; |
---|
74 | mes "the pipe is barely endurable.^000000"; |
---|
75 | close; |
---|
76 | } |
---|
77 | |
---|
78 | //--------------------------Warp-------------------------- |
---|
79 | |
---|
80 | //Cube room <-> Organism test laboratory level 2 |
---|
81 | lhz_cube,231,96,0 warp lhzcube1 1,1,lhz_dun02,220,6 |
---|
82 | lhz_dun02,224,6,0 warp lhzcube2 1,1,lhz_cube,231,90 |
---|
83 | |
---|
84 | //Cube room -> Lighthalzen |
---|
85 | lhz_cube,231,12,0 warp lhzcube3 1,1,lighthalzen,310,302 |
---|
86 | lhz_cube,177,96,0 warp lhzcube4 1,1,lighthalzen,310,302 |
---|
87 | |
---|
88 | //----------------- Cube Room Maze --------------------------- |
---|
89 | // -1 are warps facing east. |
---|
90 | // -2 the warps facing south. |
---|
91 | // -3 are warps facing west. |
---|
92 | // -4 are warps facing north. |
---|
93 | //----------------- Room 66 74 ------------------------------- |
---|
94 | lhz_cube,74,74,0 script cubew01-1 45,1,1,{ |
---|
95 | callfunc "randomw"; |
---|
96 | end; |
---|
97 | } |
---|
98 | lhz_cube,66,67,0 warp cubew01-2 2,2,lhz_cube,10,18 |
---|
99 | lhz_cube,59,74,0 script cubew01-3 45,1,1,{ |
---|
100 | callfunc "randomw"; |
---|
101 | end; |
---|
102 | } |
---|
103 | lhz_cube,66,82,0 script cubew01-4 45,1,1,{ |
---|
104 | callfunc "randomw"; |
---|
105 | end; |
---|
106 | } |
---|
107 | //----------------- Room 66 136 ------------------------------ |
---|
108 | lhz_cube,74,136,0 warp cubew02-1 2,2,lhz_cube,10,193 |
---|
109 | lhz_cube,66,129,0 script cubew02-2 45,1,1,{ |
---|
110 | callfunc "randomw"; |
---|
111 | end; |
---|
112 | } |
---|
113 | lhz_cube,59,136,0 script cubew02-3 45,1,1,{ |
---|
114 | callfunc "randomw"; |
---|
115 | end; |
---|
116 | } |
---|
117 | lhz_cube,66,144,0 script cubew02-4 45,1,1,{ |
---|
118 | callfunc "randomw"; |
---|
119 | end; |
---|
120 | } |
---|
121 | //----------------- Room 67 193 ------------------------------ |
---|
122 | lhz_cube,74,192,0 script cubew03-1 45,1,1,{ |
---|
123 | callfunc "randomw"; |
---|
124 | end; |
---|
125 | } |
---|
126 | lhz_cube,67,185,0 script cubew03-2 45,1,1,{ |
---|
127 | callfunc "randomw"; |
---|
128 | end; |
---|
129 | } |
---|
130 | lhz_cube,59,192,0 script cubew03-3 45,1,1,{ |
---|
131 | callfunc "randomw"; |
---|
132 | end; |
---|
133 | } |
---|
134 | lhz_cube,67,200,0 warp cubew03-4 2,2,lhz_cube,10,136 |
---|
135 | //----------------- Room 66 18 ------------------------------- |
---|
136 | lhz_cube,74,18,0 script cubew04-1 45,1,1,{ |
---|
137 | callfunc "randomw"; |
---|
138 | end; |
---|
139 | } |
---|
140 | lhz_cube,66,11,0 warp cubew04-2 2,2,lhz_cube,10,18 |
---|
141 | lhz_cube,59,18,0 script cubew04-3 45,1,1,{ |
---|
142 | callfunc "randomw"; |
---|
143 | end; |
---|
144 | } |
---|
145 | lhz_cube,66,26,0 warp cubew04-4 2,2,lhz_cube,123,18 |
---|
146 | //----------------- Room 66 18 ------------------------------- |
---|
147 | lhz_cube,18,18,0 warp cubew05-1 2,2,lhz_cube,10,193 |
---|
148 | lhz_cube,10,11,0 warp cubew05-2 2,2,lhz_cube,123,18 |
---|
149 | lhz_cube,3,18,0 script cubew05-3 45,1,1,{ |
---|
150 | callfunc "randomw"; |
---|
151 | end; |
---|
152 | } |
---|
153 | lhz_cube,10,26,0 script cubew05-4 45,1,1,{ |
---|
154 | callfunc "randomw"; |
---|
155 | end; |
---|
156 | } |
---|
157 | //----------------- Room 10 74 ------------------------------- |
---|
158 | lhz_cube,18,74,0 script cubew06-1 45,1,1,{ |
---|
159 | callfunc "randomw"; |
---|
160 | end; |
---|
161 | } |
---|
162 | lhz_cube,10,67,0 warp cubew06-2 2,2,lhz_cube,123,18 |
---|
163 | lhz_cube,3,74,0 warp cubew06-3 2,2,lhz_cube,66,18 |
---|
164 | lhz_cube,10,82,0 script cubew06-4 45,1,1,{ |
---|
165 | callfunc "randomw"; |
---|
166 | end; |
---|
167 | } |
---|
168 | //----------------- Room 10 136 ------------------------------ |
---|
169 | lhz_cube,18,136,0 warp cubew07-1 2,2,lhz_cube,10,74 |
---|
170 | lhz_cube,10,129,0 script cubew07-2 45,1,1,{ |
---|
171 | callfunc "randomw"; |
---|
172 | end; |
---|
173 | } |
---|
174 | lhz_cube,3,136,0 script cubew07-3 45,1,1,{ |
---|
175 | callfunc "randomw"; |
---|
176 | end; |
---|
177 | } |
---|
178 | lhz_cube,10,144,0 script cubew07-4 45,1,1,{ |
---|
179 | callfunc "randomw"; |
---|
180 | end; |
---|
181 | } |
---|
182 | //----------------- Room 10 193 ------------------------------ |
---|
183 | lhz_cube,18,192,0 script cubew08-1 45,1,1,{ |
---|
184 | callfunc "randomw"; |
---|
185 | end; |
---|
186 | } |
---|
187 | lhz_cube,10,185,0 script cubew08-2 45,1,1,{ |
---|
188 | callfunc "randomw"; |
---|
189 | end; |
---|
190 | } |
---|
191 | lhz_cube,3,192,0 warp cubew08-3 2,2,lhz_cube,10,74 |
---|
192 | lhz_cube,10,200,0 warp cubew08-4 2,2,lhz_cube,66,18 |
---|
193 | //----------------- Room 123 18 ------------------------------ |
---|
194 | lhz_cube,130,18,0 script cubew09-1 45,1,1,{ |
---|
195 | callfunc "randomw"; |
---|
196 | end; |
---|
197 | } |
---|
198 | lhz_cube,123,11,0 script cubew09-2 45,1,1,{ |
---|
199 | callfunc "randomw"; |
---|
200 | end; |
---|
201 | } |
---|
202 | lhz_cube,115,18,0 warp cubew09-3 2,2,lhz_cube,248,184 |
---|
203 | lhz_cube,123,26,0 script cubew09-4 45,1,1,{ |
---|
204 | callfunc "randomw"; |
---|
205 | end; |
---|
206 | } |
---|
207 | |
---|
208 | //----- Function for Random Warps ---------------------------- |
---|
209 | function script randomw { |
---|
210 | switch(rand(3)) { |
---|
211 | case 1: warp "lhz_cube",66,136; end; |
---|
212 | case 2: warp "lhz_cube",66,74; end; |
---|
213 | default: warp "lhz_cube",67,193; end; |
---|
214 | } |
---|
215 | } |
---|