lhz_dun.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. //===== rAthena 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. lhz_dun01,149,291,0 warp lhz_dun1-1 1,1,lhz_in01,19,129
  35. lhz_dun01,281,150,0 warp lhz_dun2-1 1,1,lhz_dun02,282,153
  36. lhz_dun02,282,161,0 warp lhz_dun2-2 1,1,lhz_dun01,281,154
  37. lhz_dun01,149,9,0 warp lhz_dun3-1 1,1,lhz_dun02,153,19
  38. lhz_dun02,146,19,0 warp lhz_dun3-2 1,1,lhz_dun01,144,9
  39. lhz_dun01,18,145,0 warp lhz_dun4-1 1,1,lhz_dun02,17,150
  40. lhz_dun02,17,156,0 warp lhz_dun4-2 1,1,lhz_dun01,18,150
  41. lhz_dun02,149,149,4 script lhz_dun5-1 45,2,2,{
  42. OnTouch:
  43. if ((Upper != 1 && BaseLevel<95) || (Upper == 1 && BaseLevel<90)) {
  44. warp "lhz_dun02",145,149;
  45. }
  46. else {
  47. warp "lhz_dun03",140,133;
  48. }
  49. end;
  50. }
  51. lhz_dun03,139,137,0 warp lhz_dun5-2 1,1,lhz_dun02,149,142
  52. //--------------------------Sewer Pipe--------------------------
  53. lighthalzen,313,301,0 script Sewer Pipe#lt 111,{
  54. if (MISC_QUEST&512) {
  55. mes "^3355FFYou found some sort";
  56. mes "of large sewage pipe.";
  57. mes "Naturally, the stench";
  58. mes "emanating from inside";
  59. mes "the pipe is barely endurable.^000000";
  60. next;
  61. if (select("Enter:Cancel") == 1) {
  62. warp "lhz_cube",231,17;
  63. end;
  64. }
  65. close;
  66. }
  67. mes "^3355FFYou found some sort";
  68. mes "of large sewage pipe.";
  69. mes "Naturally, the stench";
  70. mes "emanating from inside";
  71. mes "the pipe is barely endurable.^000000";
  72. close;
  73. }
  74. //--------------------------Warp--------------------------
  75. //Cube room <-> Organism test laboratory level 2
  76. lhz_cube,231,96,0 warp lhzcube1 1,1,lhz_dun02,220,6
  77. lhz_dun02,224,6,0 warp lhzcube2 1,1,lhz_cube,231,90
  78. //Cube room -> Lighthalzen
  79. lhz_cube,231,12,0 warp lhzcube3 1,1,lighthalzen,310,302
  80. lhz_cube,177,96,0 warp lhzcube4 1,1,lighthalzen,310,302
  81. //----------------- Cube Room Maze ---------------------------
  82. // -1 are warps facing east.
  83. // -2 the warps facing south.
  84. // -3 are warps facing west.
  85. // -4 are warps facing north.
  86. //----------------- Room 66 74 -------------------------------
  87. lhz_cube,74,74,0 script cubew01-1 45,1,1,{
  88. callfunc "randomw";
  89. end;
  90. }
  91. lhz_cube,66,67,0 warp cubew01-2 2,2,lhz_cube,10,18
  92. lhz_cube,59,74,0 script cubew01-3 45,1,1,{
  93. callfunc "randomw";
  94. end;
  95. }
  96. lhz_cube,66,82,0 script cubew01-4 45,1,1,{
  97. callfunc "randomw";
  98. end;
  99. }
  100. //----------------- Room 66 136 ------------------------------
  101. lhz_cube,74,136,0 warp cubew02-1 2,2,lhz_cube,10,193
  102. lhz_cube,66,129,0 script cubew02-2 45,1,1,{
  103. callfunc "randomw";
  104. end;
  105. }
  106. lhz_cube,59,136,0 script cubew02-3 45,1,1,{
  107. callfunc "randomw";
  108. end;
  109. }
  110. lhz_cube,66,144,0 script cubew02-4 45,1,1,{
  111. callfunc "randomw";
  112. end;
  113. }
  114. //----------------- Room 67 193 ------------------------------
  115. lhz_cube,74,192,0 script cubew03-1 45,1,1,{
  116. callfunc "randomw";
  117. end;
  118. }
  119. lhz_cube,67,185,0 script cubew03-2 45,1,1,{
  120. callfunc "randomw";
  121. end;
  122. }
  123. lhz_cube,59,192,0 script cubew03-3 45,1,1,{
  124. callfunc "randomw";
  125. end;
  126. }
  127. lhz_cube,67,200,0 warp cubew03-4 2,2,lhz_cube,10,136
  128. //----------------- Room 66 18 -------------------------------
  129. lhz_cube,74,18,0 script cubew04-1 45,1,1,{
  130. callfunc "randomw";
  131. end;
  132. }
  133. lhz_cube,66,11,0 warp cubew04-2 2,2,lhz_cube,10,18
  134. lhz_cube,59,18,0 script cubew04-3 45,1,1,{
  135. callfunc "randomw";
  136. end;
  137. }
  138. lhz_cube,66,26,0 warp cubew04-4 2,2,lhz_cube,123,18
  139. //----------------- Room 66 18 -------------------------------
  140. lhz_cube,18,18,0 warp cubew05-1 2,2,lhz_cube,10,193
  141. lhz_cube,10,11,0 warp cubew05-2 2,2,lhz_cube,123,18
  142. lhz_cube,3,18,0 script cubew05-3 45,1,1,{
  143. callfunc "randomw";
  144. end;
  145. }
  146. lhz_cube,10,26,0 script cubew05-4 45,1,1,{
  147. callfunc "randomw";
  148. end;
  149. }
  150. //----------------- Room 10 74 -------------------------------
  151. lhz_cube,18,74,0 script cubew06-1 45,1,1,{
  152. callfunc "randomw";
  153. end;
  154. }
  155. lhz_cube,10,67,0 warp cubew06-2 2,2,lhz_cube,123,18
  156. lhz_cube,3,74,0 warp cubew06-3 2,2,lhz_cube,66,18
  157. lhz_cube,10,82,0 script cubew06-4 45,1,1,{
  158. callfunc "randomw";
  159. end;
  160. }
  161. //----------------- Room 10 136 ------------------------------
  162. lhz_cube,18,136,0 warp cubew07-1 2,2,lhz_cube,10,74
  163. lhz_cube,10,129,0 script cubew07-2 45,1,1,{
  164. callfunc "randomw";
  165. end;
  166. }
  167. lhz_cube,3,136,0 script cubew07-3 45,1,1,{
  168. callfunc "randomw";
  169. end;
  170. }
  171. lhz_cube,10,144,0 script cubew07-4 45,1,1,{
  172. callfunc "randomw";
  173. end;
  174. }
  175. //----------------- Room 10 193 ------------------------------
  176. lhz_cube,18,192,0 script cubew08-1 45,1,1,{
  177. callfunc "randomw";
  178. end;
  179. }
  180. lhz_cube,10,185,0 script cubew08-2 45,1,1,{
  181. callfunc "randomw";
  182. end;
  183. }
  184. lhz_cube,3,192,0 warp cubew08-3 2,2,lhz_cube,10,74
  185. lhz_cube,10,200,0 warp cubew08-4 2,2,lhz_cube,66,18
  186. //----------------- Room 123 18 ------------------------------
  187. lhz_cube,130,18,0 script cubew09-1 45,1,1,{
  188. callfunc "randomw";
  189. end;
  190. }
  191. lhz_cube,123,11,0 script cubew09-2 45,1,1,{
  192. callfunc "randomw";
  193. end;
  194. }
  195. lhz_cube,115,18,0 warp cubew09-3 2,2,lhz_cube,248,184
  196. lhz_cube,123,26,0 script cubew09-4 45,1,1,{
  197. callfunc "randomw";
  198. end;
  199. }
  200. //----- Function for Random Warps ----------------------------
  201. function script randomw {
  202. switch(rand(3)) {
  203. case 1: warp "lhz_cube",66,136; end;
  204. case 2: warp "lhz_cube",66,74; end;
  205. default: warp "lhz_cube",67,193; end;
  206. }
  207. }