quest_warper.txt 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692
  1. //===== rAthena Script ============================================
  2. //= Quest Warper Script
  3. //===== By: =======================================================
  4. //= DZeroX, Darkchild, Neouni
  5. //===== Current Version: ==========================================
  6. //= 2.3
  7. //===== Compatible With: ==========================================
  8. //= rAthena SVN
  9. //===== Description: ==============================================
  10. //= Warper that works only after locations are unlocked.
  11. //===== Additional Comments: ======================================
  12. //= 1.0 - NPCs created
  13. //= 1.1 - Add Dungeons by sturm
  14. //= 1.2 - Add All char in account unlocked by ace_killer
  15. //= 1.3 - Add new 7 towns and 7 dungeons by escoteiro
  16. // - Correct bug jawaii town by escoteiro
  17. // - Remove some excessive warpras by escoteiro
  18. //= 1.4 - Rewrite of the Warpa system [Neouni]
  19. // - Corrected some bugs caused by autoconverting the old script
  20. //= 1.4a - Rewrite of menu to be custom for each player [Neouni]
  21. // - Dungeon listing rewrite
  22. // - Town listing rewrite
  23. // - GameMaster can Customise Main menu
  24. //= 1.4b - Pricing round [Neouni]
  25. // - GM menu added for pricing
  26. // - Town Warp pricing tags added
  27. // - Dungeon Warp pricing tags added
  28. //= 1.5 - storage functions pricing [Neouni]
  29. // - storage pricing added
  30. // - kafra points setting added
  31. // - kafra storage code security added
  32. // - Healing scripts pricing added
  33. // - Heal Part script added
  34. //= 1.6 - Dungeon warp [Neouni] (beta only)
  35. // - added option to add a extra fee for going down deeper into dungeon
  36. // partly by rebuilding the dungeon warping into variable menu's
  37. //= 1.6a - alot of fixes for beta release [Neouni] (public release)
  38. // - fixed syntax problems
  39. // - fixed missing pyramid gats in @DGat$ array
  40. // - removed the culver level 5 that didn't exist
  41. //= 1.7 - Readability of Dungeon menu building increased [Neouni]
  42. // - Thanatos Tower & Louyang Dungeon added
  43. //= 1.8 - changed around unlock variables [Neouni]
  44. // - Moved warp variables to mark what you have unlocked to an binary array in login based permanent variable
  45. // (warp variables are saved in login database, so all charservers have these unlocked)
  46. // - Town Warp unlock array max 21/(unknown max) items used instead of max account #variables 32 !
  47. // - Dungeon Warp unlock array 28/(unknown max) items used instead of max account #variables 32 !
  48. // - (max login ##variables = 16, i used 3)
  49. // - old variables are cleared on next save
  50. // - Extra Variable clear added for every character, just in case (request by Terces)
  51. //= 1.8a - Show amount of users on map [Neouni]
  52. //= 1.8b - Small typo fixed in stampcard script [Neouni]
  53. //= 1.9 - Making it more edit friendly [Neouni]
  54. // - Made Dungeon warp arrays more readable & editable (QWS_Darray)
  55. // - Made town warp arrays more readable & editable (QWS_Tarray)
  56. //= 2.0 - Special Warp menu added [Neouni]
  57. // - when all towns and dungeons are collected a new option on the main menu will show
  58. // - it will only show when you setup the mapname of the warp !
  59. //= 2.0a - Dungeon Level Limit & Split dungeon fees
  60. // - Limits dungeon based on Depth, access special setup menu thru GM-Menu
  61. // - Dungeon fees split up based on Basic , Advanced & Overseas
  62. // - Old Dungeon fee system removed, all dungeon fees now set to 0
  63. //= 2.0b - Special warpname menu option name bug fixed
  64. //= 2.1 - Updated names to fall within retrictions. [L0ne_W0lf]
  65. //= 2.2 - #kafra_code is now stored as is. [brianluau]
  66. //= 2.3 - Added new town maps, cleanup, and removed pre-1.8 backwards fix. [Euphy]
  67. //=================================================================
  68. //========================Function=&=Script========================
  69. function script Q_Warpra {
  70. mes "[Warpra]";
  71. mes "Hello,";
  72. mes "I can warp you to any town or dungeon, but you need to unlock them first by visiting us.";
  73. mes "What do you need?";
  74. if(getarg(0) == 0) callfunc "QWS_MMarray",0;
  75. if(getarg(0) == 1) callfunc "QWS_MMarray",1;
  76. set @MMenu,select(@Mmenulist$[0],@Mmenulist$[1],@Mmenulist$[2],@Mmenulist$[3],@Mmenulist$[4],@Mmenulist$[5],@Mmenulist$[6],@Mmenulist$[7],@Mmenulist$[8],@Mmenulist$[9],@Mmenulist$[10],@Mmenulist$[11]);
  77. switch(@Mmenuref[@MMenu-1]+1){
  78. case 1: goto GM_Menu;
  79. case 2:
  80. warp $QW_SP_WarpMap$, $QW_SP_WarpX, $QW_SP_WarpY;
  81. close2;
  82. debugmes "Please check your special warp menu settings on the Warpra.";
  83. end;
  84. case 3: goto L_town;
  85. case 4: goto L_dungeon;
  86. case 5: goto L_FewWarps;
  87. case 6: goto L_NoUnlock;
  88. case 7: goto L_heal_Full;
  89. case 8: goto L_heal_Part;
  90. case 9: goto L_Storage;
  91. case 10: goto L_GStorage;
  92. case 11:
  93. default:
  94. goto L_end;
  95. }
  96. //=====================GM-Menu=Functions===========================
  97. GM_Menu:
  98. next;
  99. mes "Town warping = "+(($QW_TW_OFF)?"^FF0000 Off":"^00FF00 On")+"^000000";
  100. mes "Dungeon warping = "+(($QW_DW_OFF)?"^FF0000 Off":"^00FF00 On")+"^000000";
  101. mes "Dungeon Depth limit is "+(($QW_DL)?"^00FF00 On":"^FF0000 Off")+"^000000";
  102. mes "If on Dungeon Depth limit is set to ^0000FF"+$QW_DDL+"^000000";
  103. mes "Show Map Users = "+(($QW_MapUserShow)?"^00FF00 On":"^FF0000 Off")+"^000000";
  104. if ($QW_HF) mes "Healing full = ^00FF00 On ^000000";
  105. if ($QW_HP) mes "Healing partly = ^00FF00 On ^000000";
  106. if (!$QW_HF && !$QW_HP) mes "Healing = ^FF0000 Off ^000000";
  107. mes "Storage = "+(($QW_Stor)?"^00FF00 On":"^FF0000 Off")+"^000000";
  108. mes "Guild Storage = "+(($QW_GStor)?"^00FF00 On":"^FF0000 Off")+"^000000";
  109. mes "Kafra points collect = "+(($QW_KPoint)?"^00FF00 On":"^FF0000 Off")+"^000000";
  110. switch(select("Town Warping","Dungeon Warping","Dungeon Level Limit","Show Map Users","Healing full","Healing partly","Storage","Guild Storage","Kafra points collect","Set Prices","Special Warp","Exit")) {
  111. case 1: set $QW_TW_OFF,($QW_TW_OFF)?0:1; goto GM_Menu;
  112. case 2: set $QW_DW_OFF,($QW_DW_OFF)?0:1; goto GM_Menu;
  113. case 3: goto DungeonLevelLimit;
  114. case 4: set $QW_MapUserShow,($QW_MapUserShow)?0:1; goto GM_Menu;
  115. case 5:
  116. if ($QW_HF == 0) {
  117. set $QW_HF,1;
  118. set $QW_HP,0;
  119. }
  120. else set $QW_HF,0;
  121. goto GM_Menu;
  122. case 6:
  123. if ($QW_HP == 0) {
  124. set $QW_HP,1;
  125. set $QW_HF,0;
  126. }
  127. else set $QW_HP,0;
  128. goto GM_Menu;
  129. case 7: set $QW_Stor,($QW_Stor)?0:1; goto GM_Menu;
  130. case 8: set $QW_GStor,($QW_GStor)?0:1; goto GM_Menu;
  131. case 9: set $QW_KPoint,($QW_KPoint)?0:1; goto GM_Menu;
  132. case 10: goto Setprice;
  133. case 11: goto SpecialWarpMenu;
  134. default:
  135. close;
  136. end;
  137. }
  138. //======================GM-Menu=Pricing============================
  139. Setprice:
  140. if ($QW_DW_FEE != 0) set $QW_DW_FEE,0;
  141. next;
  142. mes "Scroll through the list to see all the options.";
  143. mes "Basic - Warps are = "+(($QW_BW_PRICE)?"^00FF00"+$QW_BW_PRICE:"^FF0000Free")+"^000000";
  144. mes "Advanced - Warps are = "+(($QW_AW_PRICE)?"^00FF00"+$QW_AW_PRICE:"^FF0000Free")+"^000000";
  145. mes "Overseas - Warps are = "+(($QW_OW_PRICE)?"^00FF00"+$QW_OW_PRICE:"^FF0000Free")+"^000000";
  146. mes "Basic Dungeon level warp fee = "+(($QW_BW_FEE)?"^00FF00"+$QW_BW_FEE:"^FF0000NO")+"^000000 zeny per level";
  147. mes "Advanced Dungeon level warp fee = "+(($QW_AW_FEE)?"^00FF00"+$QW_AW_FEE:"^FF0000NO")+"^000000 zeny per level";
  148. mes "Overseas Dungeon level warp fee = "+(($QW_OW_FEE)?"^00FF00"+$QW_OW_FEE:"^FF0000NO")+"^000000 zeny per level";
  149. mes "Full Healing = "+(($QW_HF_PRICE)?"^00FF00"+$QW_HF_PRICE:"^FF0000Free")+"^000000";
  150. mes "^FF0000HP ^000000Part Healing = "+(($QW_HP_H_PRICE)?"^00FF00"+$QW_HP_H_PRICE+"^000000 a point":"^FF0000Free^000000");
  151. mes "^FF0000SP ^000000Part Healing = "+(($QW_HP_S_PRICE)?"^00FF00"+$QW_HP_S_PRICE+"^000000 a point":"^FF0000Free^000000");
  152. if ($QW_S_PRICE && $QW_S_PRICE != 60) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
  153. if (!$QW_S_PRICE) mes "Storage = ^FF0000 Free ^000000";
  154. if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
  155. mes "Guild Storage = "+(($QW_GS_PRICE)?"^00FF00"+$QW_GS_PRICE:"^FF0000Free")+"^000000";
  156. switch(select("Basic - Warps","Advanced - Warps","Overseas - Warps","Basic Dungeon warp fee","Advanced Dungeon warp fee","Overseas Dungeon warp fee","Full Healing","Part Healing","Storage","Guild Storage","Back","Exit")) {
  157. case 1:
  158. next;
  159. mes "Basic - Warps are = "+(($QW_BW_PRICE)?"^00FF00"+$QW_BW_PRICE:"^FF0000Free")+"^000000";
  160. mes "Basic - Warps are starter towns and related dungeons.";
  161. input $QW_BW_PRICE;
  162. goto Setprice;
  163. case 2:
  164. next;
  165. mes "Advanced - Warps are = "+(($QW_AW_PRICE)?"^00FF00"+$QW_AW_PRICE:"^FF0000Free")+"^000000";
  166. mes "Advanced - Warps are towns and dungeons on the same island but not close to any starter town.";
  167. input $QW_AW_PRICE;
  168. goto Setprice;
  169. case 3:
  170. next;
  171. mes "Overseas - Warps are = "+(($QW_OW_PRICE)?"^00FF00"+$QW_OW_PRICE:"^FF0000Free")+"^000000";
  172. mes "Overseas - Warps are towns and dungeons overseas reachable by boat from Alberta.";
  173. input $QW_OW_PRICE;
  174. goto Setprice;
  175. case 4:
  176. next;
  177. mes "Basic Dungeon level warp fee = "+(($QW_BW_FEE)?"^00FF00"+$QW_BW_FEE:"^FF0000NO")+"^000000 zeny per level";
  178. mes "Basic - Warps are starter town related dungeons.";
  179. mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
  180. mes "These costs are on top of the regular Warp costs.";
  181. input $QW_BW_FEE;
  182. goto Setprice;
  183. case 5:
  184. next;
  185. mes "Advanced Dungeon level warp fee = "+(($QW_AW_FEE)?"^00FF00"+$QW_AW_FEE:"^FF0000NO")+"^000000 zeny per level";
  186. mes "Advanced - Warps are dungeons not close to any starter town.";
  187. mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
  188. mes "These costs are on top of the regular Warp costs.";
  189. input $QW_AW_FEE;
  190. goto Setprice;
  191. case 6:
  192. next;
  193. mes "Overseas Dungeon level warp fee = "+(($QW_OW_FEE)?"^00FF00"+$QW_OW_FEE:"^FF0000NO")+"^000000 zeny per level";
  194. mes "Overseas - Warps are dungeons related to towns overseas reachable by boat from Alberta.";
  195. mes "Dungeon warp fees are calculated by maps away from entrance of the dungeon times Dungeon warp fee.";
  196. mes "These costs are on top of the regular Warp costs.";
  197. input $QW_OW_FEE;
  198. goto Setprice;
  199. case 7:
  200. next;
  201. mes "Full Healing = "+(($QW_HF_PRICE)?"^00FF00"+$QW_HF_PRICE:"^FF0000Free")+"^000000";
  202. mes "Instant full healing 1 price.";
  203. input $QW_HF_PRICE;
  204. goto Setprice;
  205. case 8:
  206. next;
  207. mes "^FF0000HP ^000000Part Healing = "+(($QW_HP_H_PRICE)?"^00FF00"+$QW_HP_H_PRICE+"^000000 a point":"^FF0000Free^000000");
  208. mes "^FF0000SP ^000000Part Healing = "+(($QW_HP_S_PRICE)?"^00FF00"+$QW_HP_S_PRICE+"^000000 a point":"^FF0000Free^000000");
  209. mes "Healing price per 1 HP.";
  210. mes "Healing price per 1 SP.";
  211. mes "2 inputs, first HP then SP.";
  212. input $QW_HP_H_PRICE;
  213. input $QW_HP_S_PRICE;
  214. goto Setprice;
  215. case 9:
  216. next;
  217. if ($QW_S_PRICE && $QW_S_PRICE != 60) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
  218. if (!$QW_S_PRICE) mes "Storage = ^FF0000 Free ^000000";
  219. if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
  220. mes "Storage cost, if set to 60 Kafra pricing will be handled.";
  221. input $QW_S_PRICE;
  222. goto Setprice;
  223. case 10:
  224. next;
  225. mes "Guild Storage = "+(($QW_GS_PRICE)?"^00FF00"+$QW_GS_PRICE:"^FF0000Free")+"^000000";
  226. mes "Guild Storage, free on Guild Kafras.";
  227. input $QW_GS_PRICE;
  228. goto Setprice;
  229. case 11:
  230. goto GM_Menu;
  231. default:
  232. close;
  233. end;
  234. }
  235. //======================Special=Warp=Menu==========================
  236. SpecialWarpMenu:
  237. if ($QW_SP_Warpname$ == "") set $QW_SP_Warpname$,"Special Warp";
  238. next;
  239. mes "Scroll down to see all the information";
  240. mes "The Special warp menu option will show in the main menu when all towns & dungeons are unlocked";
  241. mes "And when the map for special warping has been set";
  242. mes "menu option name set to ^0000FF"+$QW_SP_Warpname$+"^000000";
  243. if ($QW_SP_WarpMap$ == "") mes "map is currently ^FF0000not^000000 set, and Special warp menu is off";
  244. if ($QW_SP_WarpMap$ != "") mes "map is currently set to ^0000FF"+$QW_SP_WarpMap$+"^000000 and Special Warp menu is on";
  245. mes "coords are set to ^0000FF"+$QW_SP_WarpX+","+$QW_SP_WarpY+"^000000";
  246. switch(select("Set Special Warp name to show in menu", "Set WarpMap","Set Coords","Go Back to GM_Menu","Exit")){
  247. case 1:
  248. next;
  249. mes "Set the name to show in the menu as option.";
  250. input $QW_SP_Warpname$;
  251. goto SpecialWarpMenu;
  252. case 2:
  253. next;
  254. mes "Set the map in the ^0000FFmapname^000000 format.";
  255. mes "When this warpmap is set the option for players will show once they meet the requirments.";
  256. mes "To disable Special Warp Menu option, clear this!";
  257. input $QW_SP_WarpMap$;
  258. goto SpecialWarpMenu;
  259. case 3:
  260. next;
  261. mes "First input = Xcoord";
  262. mes "Second input = Ycoord";
  263. input $QW_SP_WarpX;
  264. input $QW_SP_WarpY;
  265. goto SpecialWarpMenu;
  266. case 4:
  267. goto GM_Menu;
  268. default:
  269. close;
  270. end;
  271. }
  272. //======================Dungeon=Level=Limit========================
  273. DungeonLevelLimit:
  274. next;
  275. mes "Dungeon Depth limit is "+(($QW_DL)?"^00FF00On":"^FF0000Off")+"^000000";
  276. mes "If^00FF00 On ^000000Dungeon Depth limit is set to ^0000FF"+$QW_DDL+"^000000";
  277. switch(select("Toggle Dungeon Depth Limit","Set Dungeon Depth Limit","Go Back to GM_Menu","Exit")){
  278. case 1: set $QW_DL,($QW_DL)?0:1; goto DungeonLevelLimit;
  279. case 2:
  280. next;
  281. mes "Set limit of Dungeon Depth 0 = entrance";
  282. mes "Depth 1 is a map connected to 0 and so on";
  283. mes "Shortest Route to map counts as depth";
  284. input $QW_DDL;
  285. goto DungeonLevelLimit;
  286. case 3: goto GM_Menu;
  287. default:
  288. close;
  289. end;
  290. }
  291. //===========================Towns=================================
  292. L_town:
  293. callfunc "QWS_Tarray";
  294. freeloop(1);
  295. set .@menu$,"";
  296. for(set .@i,0; .@i<35; set .@i,.@i+1) // Expected maximum is 35
  297. set .@menu$,.@menu$+@Tmenulist$[.@i]+":";
  298. freeloop(0);
  299. set @TWMenu,select(.@menu$);
  300. if (@Tmenuref[@TWMenu-1] == 57005) goto L_end; // 57005='dead' in hex
  301. if(Zeny<@pTprice[@Tmenuref[@TWMenu-1]]) callsub L_Short_on_zeny,0;
  302. set Zeny, Zeny-@pTprice[@Tmenuref[@TWMenu-1]];
  303. if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@pTprice[@Tmenuref[@TWMenu-1]]/16);
  304. warp @pTmap$[@Tmenuref[@TWMenu-1]],@pTXcoords[@Tmenuref[@TWMenu-1]],@pTYcoords[@Tmenuref[@TWMenu-1]];
  305. close2;
  306. set Zeny, Zeny+@pTprice[@Tmenuref[@TWMenu-1]];
  307. end;
  308. //=========================Dungeons================================
  309. L_dungeon:
  310. callfunc "QWS_Darray";
  311. freeloop(1);
  312. set .@menu$,"";
  313. for(set .@i,0; .@i<35; set .@i,.@i+1) // Expected maximum is 35
  314. set .@menu$,.@menu$+@Dmenulist$[.@i]+":";
  315. freeloop(0);
  316. set @DWMenu,select(.@menu$);
  317. if (@Dmenuref[@DWMenu-1] == 57005) goto L_end; // 57005='dead' in hex
  318. set @DwarpMenu, (@Dmenuref[@DWMenu-1]);
  319. callfunc "QWS_DLarray";
  320. next;
  321. mes "[Warpra]";
  322. mes "Please select where you want to go:";
  323. freeloop(1);
  324. set .@menu$,"";
  325. for(set .@i,0; .@i<18; set .@i,.@i+1) // Expected maximum is 18
  326. set .@menu$,.@menu$+@DWLmenulist$[.@i]+":";
  327. freeloop(0);
  328. set @DWLMenu,select(.@menu$);
  329. if (@DWLmenuref[@DWLMenu-1] == 57005) goto L_end; // 57005='dead' in hex
  330. set @Darrayref, @DWLmenuref[@DWLMenu-1];
  331. set @warpprice, @pDprice[@Dmenuref[@DWMenu-1]]+(getd(@pDfee$[@Dmenuref[@DWMenu-1]])*(@DDepth[@Darrayref]));
  332. if(Zeny<@warpprice) callsub L_Short_on_zeny,1;
  333. set Zeny, Zeny-(@warpprice);
  334. if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@warpprice/16);
  335. warp @DGat$[@Darrayref],@DXcoords[@Darrayref],@DYcoords[@Darrayref];
  336. close2;
  337. set Zeny, Zeny+@pTprice[@Tmenuref[@DWMenu-1]];
  338. end;
  339. //=============================Healing=============================
  340. L_heal_Full:
  341. set @healfee, $QW_HF_PRICE;
  342. if(Zeny<@healfee) callsub L_Short_on_zeny,4;
  343. set Zeny, Zeny-@healfee;
  344. if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@healfee/500);
  345. next;
  346. mes "[Warpra]";
  347. mes "Close this window and I will heal you.";
  348. close2;
  349. percentheal 100,100;
  350. end;
  351. L_heal_Part:
  352. set @healchoice,select("Full heal","Health Points only","Skill Points only","Exit");
  353. if (@healchoice == 1) callsub PHeal,1,1;
  354. if (@healchoice == 2) callsub PHeal,1,0;
  355. if (@healchoice == 3) callsub PHeal,0,1;
  356. goto L_end;
  357. PHeal:
  358. next;
  359. set @Hp, MaxHp-Hp;
  360. set @Sp, MaxSp-Sp;
  361. set @HpPrice, @hp*$QW_HP_H_PRICE;
  362. set @SpPrice, @sp*$QW_HP_S_PRICE;
  363. mes "[Warpra]";
  364. if(getarg(0) == 1) mes ""+@HpPrice+" Zeny for "+@Hp+" health points";
  365. if(getarg(1) == 1) mes ""+@SpPrice+" Zeny for "+@Sp+" skill points";
  366. set @total, @HpPrice+@SpPrice;
  367. mes "for a total of "+@total+" zeny";
  368. if (select("Heal me","Let me see the choices again")==2) goto L_heal_Part;
  369. if(getarg(0) == 1)set @HpPrice, (MaxHp-Hp)*$QW_HP_H_PRICE;
  370. if(getarg(1) == 1)set @SpPrice, (MaxSp-Sp)*$QW_HP_S_PRICE;
  371. set @healfee, @HpPrice+@SpPrice;
  372. if (getarg(0) == 1)&&(getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_Short_Both;
  373. if (getarg(0) == 1)&&(Zeny<@healfee) goto Zeny_short_HP;
  374. if (getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_short_SP;
  375. set Zeny, Zeny-@healfee;
  376. if (getarg(0) == 1)&&(getarg(1) == 1) percentheal 100,100;
  377. if (getarg(0) == 1) percentheal 100,0;
  378. if (getarg(1) == 1) percentheal 0,100;
  379. close;
  380. end;
  381. Zeny_Short_Both:
  382. mes "[Warpra]";
  383. mes "Choose another option, you can afford both.";
  384. mes "I can heal as much as you can afford, too.";
  385. if (select("OK","Exit") == 2) goto L_end;
  386. goto PHeal;
  387. Zeny_short_HP:
  388. mes "[Warpra]";
  389. mes "Do you want me to partly heal your HP?";
  390. if (select("Yes","No") == 2) goto L_end;
  391. set @Hp, Zeny/$QW_HP_H_PRICE;
  392. set @HpPrice, @Hp*$QW_HP_H_PRICE;
  393. if (@Hp == 1) mes "You're not worth the effort.";
  394. if (@Hp == 1) goto L_end;
  395. set Zeny, Zeny-@HpPrice;
  396. heal @Hp,0;
  397. close;
  398. end;
  399. Zeny_short_SP:
  400. mes "[Warpra]";
  401. mes "Do you want me to partly heal your SP?";
  402. if (select("Yes","No") == 2) goto L_end;
  403. set @Sp, Zeny/$QW_HP_S_PRICE;
  404. set @SpPrice, @Sp*$QW_HP_S_PRICE;
  405. if (@Sp == 1) mes "You're not worth the effort.";
  406. if (@Sp == 1) goto L_end;
  407. set Zeny, Zeny-@SpPrice;
  408. heal 0,@Sp;
  409. close;
  410. end;
  411. //=============================Storage=============================
  412. L_Storage:
  413. next;
  414. if(basicskillcheck() > 0 && getskilllv("NV_BASIC") < 6) goto L_StorageJBlow;
  415. set @fee, $QW_S_PRICE;
  416. if ($QW_S_PRICE == 60)&&(BaseJob == Job_Novice) set @fee, 30;
  417. if ($QW_S_PRICE == 60)&&(BaseJob != Job_Novice) set @fee, 60;
  418. if(Zeny<@fee) callsub L_Short_on_zeny,2;
  419. set Zeny, Zeny-@fee;
  420. if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + (@fee/5);
  421. mes "[Warpra]";
  422. if(#kafra_code) {
  423. mes "Enter your storage password:";
  424. set @code_,0;
  425. input @code_;
  426. if(@code_ != #kafra_code) {
  427. dispbottom "Wrong storage password.";
  428. close;
  429. }
  430. set @kafcode_try,0;
  431. set @code_,0;
  432. }
  433. mes "Close this window and I will open your storage.";
  434. close2;
  435. openstorage;
  436. end;
  437. L_StorageJBlow:
  438. mes "[Warpra]";
  439. mes "I am sorry but you have to be at least Novice level 6 if you want to use the storage.";
  440. return;
  441. L_GStorage:
  442. if (!@GID) {
  443. next;
  444. mes "[Warpra]";
  445. mes "You are not a part of a guild I can't help you.";
  446. close;
  447. end;
  448. }
  449. if (Zeny<$QW_GS_PRICE) callsub L_Short_on_zeny,3;
  450. set Zeny, Zeny-$QW_GS_PRICE;
  451. if ($QW_KPoint == 1) set RESRVPTS, RESRVPTS + ($QW_GS_PRICE/5);
  452. next;
  453. mes "[Warpra]";
  454. mes "Close this window and I will open the ^5533FF" + GetGuildName(@GID) + "^000000 storage.";
  455. close2;
  456. guildopenstorage;
  457. end;
  458. L_end:
  459. close;
  460. end;
  461. //============================Few=Warp=============================
  462. L_FewWarps:
  463. next;
  464. mes "[Warpra]";
  465. mes "You need to unlock locations before they come available to you.";
  466. mes "To unlock a location talk to my colleagues all over the world.";
  467. mes "Each account has its own stamp card.";
  468. mes "Want me to check what stamps you have collected so far?";
  469. if (select("Yes","No")==1) callsub stampcard;
  470. close;
  471. end;
  472. //============================No=Unlock============================
  473. L_NoUnlock:
  474. next;
  475. mes "[Warpra]";
  476. mes "I don't unlock this location, my assistant deeper in the dungeon will unlock this place.";
  477. close;
  478. end;
  479. //=========================Short=On=Zeny===========================
  480. L_Short_on_zeny:
  481. next;
  482. switch(getarg(0)) {
  483. case 0: mes "You don't seem to have "+@pTprice[@Tmenuref[@TWMenu-1]]+" zeny to pay for the warp to "+@pTmenuitems$[@Tmenuref[@TWMenu-1]]+"."; break;
  484. case 1: mes "You don't seem to have "+@warpprice+" zeny to pay for the warp to "+@DLevelName$[@DWLmenuref[@DWLMenu-1]]+" at "+@pDmenuitems$[@Dmenuref[@DWMenu-1]]+"."; break;
  485. case 2: mes "You don't seem to have "+@fee+" zeny to pay the storage fee."; break;
  486. case 3: mes "You don't seem to have "+$QW_GS_PRICE+" zeny to pay the guild storage fee."; break;
  487. case 4: mes "You don't seem to have "+@healfee+" zeny to pay for your healing."; break;
  488. }
  489. close;
  490. end;
  491. //===========================Stamp=Card============================
  492. stampcard:
  493. // Counting of the ammount of places you have unlocked
  494. next;
  495. mes "Let me check what Towns you have.";
  496. callfunc "QWS_TownStamps";
  497. mes "You collected^00FF00 "+@Tstamp+" of "+@MaxTstamp+" ^000000Towns.";
  498. if (@Tstamp == 15) mes "They say there is an island you can only get to when married...";
  499. if (@Tstamp == 15) emotion 18;
  500. next;
  501. mes "Let me check what dungeons you have.";
  502. callfunc "QWS_DungeonStamps";
  503. mes "You collected^00FF00 "+@Dstamp+" of "+@MaxDstamp+" ^000000Dungeons.";
  504. mes "To unlock a dungeon, search for my colleagues.";
  505. mes "You can usually find them near the middle or end of the dungeon.";
  506. return;
  507. }
  508. function script QWS_TownStamps {
  509. set @Tstamp,0;
  510. set @MaxTstamp,30; //maximum number of towns
  511. set @binvalue,1;
  512. set @Tstamploop,0;
  513. do {
  514. if ((@binvalue & ##QWS_T_Unlock) == @binvalue) set @Tstamp,@Tstamp+1;
  515. set @binvalue, @binvalue *2;
  516. set @Tstamploop, @Tstamploop + 1;
  517. } while (@Tstamploop < @MaxTstamp);
  518. return;
  519. }
  520. function script QWS_DungeonStamps {
  521. set @Dstamp,0;
  522. set @MaxDstamp,29; //maximum number of dungeons
  523. set @binvalue,1;
  524. set @Dstamploop,0;
  525. do {
  526. if ((@binvalue & ##QWS_D_Unlock) == @binvalue) set @Dstamp,@Dstamp+1;
  527. set @binvalue, @binvalue *2;
  528. set @Dstamploop, @Dstamploop + 1;
  529. } while (@Dstamploop < @MaxDstamp);
  530. return;
  531. }
  532. //======================Main=Menu=Array============================
  533. function script QWS_MMarray {
  534. // Currently 9 items
  535. setarray @pMmenuitems$[0], "GameMaster Menu", $QW_SP_Warpname$, "Warp to Towns", "Warp to Dungeons", "Why so few warps?", "Why don't you unlock this location?", "Heal", "Heal", "Storage", "Guild Storage", "Cancel";
  536. set @Mi,0; // loop counter
  537. set @Mj,0; // menu line counter
  538. //----------------GameMaster-Menu
  539. if (getgmlevel()>= 80) {
  540. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  541. set @Mmenuref[@Mj],@Mi;
  542. set @Mj,@Mj+1;
  543. }
  544. set @Mi,@Mi+1;
  545. //----------------Special-Warp
  546. callfunc "QWS_TownStamps";
  547. callfunc "QWS_DungeonStamps";
  548. if (@Tstamp == @MaxTstamp)&&(@Dstamp == @MaxDstamp)&&($QW_SP_WarpMap$ != "") {
  549. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  550. set @Mmenuref[@Mj],@Mi;
  551. set @Mj,@Mj+1;
  552. }
  553. set @Mi,@Mi+1;
  554. //----------------Town-Warp
  555. if ($QW_TW_OFF == 0) {
  556. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  557. set @Mmenuref[@Mj],@Mi;
  558. set @Mj,@Mj+1;
  559. }
  560. set @Mi,@Mi+1;
  561. //----------------Dungeon-Warp
  562. if ($QW_DW_OFF == 0) {
  563. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  564. set @Mmenuref[@Mj],@Mi;
  565. set @Mj,@Mj+1;
  566. }
  567. set @Mi,@Mi+1;
  568. //----------------Why-So-Few-Warps
  569. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  570. set @Mmenuref[@Mj],@Mi;
  571. set @Mj,@Mj+1;
  572. set @Mi,@Mi+1;
  573. //----------------No-Unlock
  574. if (getarg(0) == 1) {
  575. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  576. set @Mmenuref[@Mj],@Mi;
  577. set @Mj,@Mj+1;
  578. }
  579. set @Mi,@Mi+1;
  580. //----------------Healfull
  581. if ($QW_HF == 1) {
  582. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  583. set @Mmenuref[@Mj],@Mi;
  584. set @Mj,@Mj+1;
  585. }
  586. set @Mi,@Mi+1;
  587. //----------------Healpart
  588. if ($QW_HP == 1) {
  589. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  590. set @Mmenuref[@Mj],@Mi;
  591. set @Mj,@Mj+1;
  592. }
  593. set @Mi,@Mi+1;
  594. //----------------Storage
  595. if ($QW_Stor == 1) {
  596. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  597. set @Mmenuref[@Mj],@Mi;
  598. set @Mj,@Mj+1;
  599. }
  600. set @Mi,@Mi+1;
  601. //----------------GuildStorage
  602. if ($QW_GStor == 1) {
  603. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  604. set @Mmenuref[@Mj],@Mi;
  605. set @Mj,@Mj+1;
  606. }
  607. set @Mi,@Mi+1;
  608. //----------------Cancel
  609. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  610. set @Mmenuref[@Mj],@Mi;
  611. return;
  612. }
  613. //======================Town=Menu=Array============================
  614. // Adding a town:
  615. // setarray @pTmenuitems$[@Ti], "Prontera";// Name of Town shown in Town select Menu
  616. // setarray @pTprice[@Ti], $QW_BW_PRICE; // Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
  617. //
  618. // setarray @pTmap$[@Ti], "prontera"; // Map name
  619. // setarray @pTXcoords[@Ti], 156; // X warp coords
  620. // setarray @pTYcoords[@Ti], 187; // Y warp coords
  621. //
  622. // QWS_Make_Town_Menu 0; // Use a free number (last used is 30, Eclage)
  623. //
  624. // Adding a warpra:
  625. // map,x,y,facing script Warpra#example 113,{
  626. // callfunc "QWS_Town_Warpra",<town number>,"Your Town";
  627. // close;
  628. // }
  629. // Town number is the same as "QWS_Make_Town_Menu".
  630. //==================================================================
  631. function script QWS_Tarray {
  632. function QWS_Make_Town_Menu;
  633. set @Ti,0; // loop counter
  634. set @Tj,0; // menu lines counter
  635. //----------------Prontera
  636. setarray @pTmenuitems$[@Ti], "Prontera";
  637. setarray @pTprice[@Ti], $QW_BW_PRICE;
  638. setarray @pTmap$[@Ti], "prontera";
  639. setarray @pTXcoords[@Ti], 156;
  640. setarray @pTYcoords[@Ti], 187;
  641. QWS_Make_Town_Menu 0;
  642. //----------------Alberta
  643. setarray @pTmenuitems$[@Ti], "Alberta";
  644. setarray @pTprice[@Ti], $QW_BW_PRICE;
  645. setarray @pTmap$[@Ti], "alberta";
  646. setarray @pTXcoords[@Ti], 27;
  647. setarray @pTYcoords[@Ti], 236;
  648. QWS_Make_Town_Menu 1;
  649. //----------------Aldebaran
  650. setarray @pTmenuitems$[@Ti], "Aldebaran";
  651. setarray @pTprice[@Ti], $QW_AW_PRICE;
  652. setarray @pTmap$[@Ti], "aldebaran";
  653. setarray @pTXcoords[@Ti], 145;
  654. setarray @pTYcoords[@Ti], 120;
  655. QWS_Make_Town_Menu 2;
  656. //----------------Amatsu:
  657. setarray @pTmenuitems$[@Ti], "Amatsu";
  658. setarray @pTprice[@Ti], $QW_OW_PRICE;
  659. setarray @pTmap$[@Ti], "amatsu";
  660. setarray @pTXcoords[@Ti], 197;
  661. setarray @pTYcoords[@Ti], 86;
  662. QWS_Make_Town_Menu 3;
  663. //----------------Ayothaya:
  664. setarray @pTmenuitems$[@Ti], "Ayothaya";
  665. setarray @pTprice[@Ti], $QW_OW_PRICE;
  666. setarray @pTmap$[@Ti], "ayothaya";
  667. setarray @pTXcoords[@Ti], 150;
  668. setarray @pTYcoords[@Ti], 57;
  669. QWS_Make_Town_Menu 4;
  670. //----------------Brasilis:
  671. setarray @pTmenuitems$[@Ti], "Brasilis";
  672. setarray @pTprice[@Ti], $QW_OW_PRICE;
  673. setarray @pTmap$[@Ti], "brasilis";
  674. setarray @pTXcoords[@Ti], 195;
  675. setarray @pTYcoords[@Ti], 220;
  676. QWS_Make_Town_Menu 21;
  677. //----------------Comodo:
  678. setarray @pTmenuitems$[@Ti], "Comodo";
  679. setarray @pTprice[@Ti], $QW_AW_PRICE;
  680. setarray @pTmap$[@Ti], "comodo";
  681. setarray @pTXcoords[@Ti], 188;
  682. setarray @pTYcoords[@Ti], 161;
  683. QWS_Make_Town_Menu 5;
  684. //----------------Dewata:
  685. setarray @pTmenuitems$[@Ti], "Dewata";
  686. setarray @pTprice[@Ti], $QW_OW_PRICE;
  687. setarray @pTmap$[@Ti], "dewata";
  688. setarray @pTXcoords[@Ti], 199;
  689. setarray @pTYcoords[@Ti], 179;
  690. QWS_Make_Town_Menu 29;
  691. //----------------Eclage:
  692. setarray @pTmenuitems$[@Ti], "Eclage";
  693. setarray @pTprice[@Ti], $QW_OW_PRICE;
  694. setarray @pTmap$[@Ti], "eclage";
  695. setarray @pTXcoords[@Ti], 111;
  696. setarray @pTYcoords[@Ti], 39;
  697. QWS_Make_Town_Menu 30;
  698. //----------------Einbech:
  699. setarray @pTmenuitems$[@Ti], "Einbech";
  700. setarray @pTprice[@Ti], $QW_AW_PRICE;
  701. setarray @pTmap$[@Ti], "einbech";
  702. setarray @pTXcoords[@Ti], 172;
  703. setarray @pTYcoords[@Ti], 126;
  704. QWS_Make_Town_Menu 6;
  705. //----------------Einbroch:
  706. setarray @pTmenuitems$[@Ti], "Einbroch";
  707. setarray @pTprice[@Ti], $QW_AW_PRICE;
  708. setarray @pTmap$[@Ti], "einbroch";
  709. setarray @pTXcoords[@Ti], 230;
  710. setarray @pTYcoords[@Ti], 191;
  711. QWS_Make_Town_Menu 7;
  712. //----------------El Dicastes:
  713. setarray @pTmenuitems$[@Ti], "El Dicastes";
  714. setarray @pTprice[@Ti], $QW_OW_PRICE;
  715. setarray @pTmap$[@Ti], "dicastes01";
  716. setarray @pTXcoords[@Ti], 197;
  717. setarray @pTYcoords[@Ti], 187;
  718. QWS_Make_Town_Menu 22;
  719. //----------------Geffen:
  720. setarray @pTmenuitems$[@Ti], "Geffen";
  721. setarray @pTprice[@Ti], $QW_BW_PRICE;
  722. setarray @pTmap$[@Ti], "geffen";
  723. setarray @pTXcoords[@Ti], 119;
  724. setarray @pTYcoords[@Ti], 66;
  725. QWS_Make_Town_Menu 8;
  726. //----------------Gonryun:
  727. setarray @pTmenuitems$[@Ti], "Gonryun";
  728. setarray @pTprice[@Ti], $QW_OW_PRICE;
  729. setarray @pTmap$[@Ti], "gonryun";
  730. setarray @pTXcoords[@Ti], 150;
  731. setarray @pTYcoords[@Ti], 130;
  732. QWS_Make_Town_Menu 9;
  733. //----------------Hugel:
  734. setarray @pTmenuitems$[@Ti], "Hugel";
  735. setarray @pTprice[@Ti], $QW_AW_PRICE;
  736. setarray @pTmap$[@Ti], "hugel";
  737. setarray @pTXcoords[@Ti], 95;
  738. setarray @pTYcoords[@Ti], 121;
  739. QWS_Make_Town_Menu 10;
  740. //----------------Izlude:
  741. setarray @pTmenuitems$[@Ti], "Izlude";
  742. setarray @pTprice[@Ti], $QW_BW_PRICE;
  743. setarray @pTmap$[@Ti], "izlude";
  744. setarray @pTXcoords[@Ti], 128;
  745. setarray @pTYcoords[@Ti], 111;
  746. QWS_Make_Town_Menu 11;
  747. //----------------Jawaii:
  748. setarray @pTmenuitems$[@Ti], "Jawaii";
  749. setarray @pTprice[@Ti], $QW_AW_PRICE;
  750. setarray @pTmap$[@Ti], "jawaii";
  751. setarray @pTXcoords[@Ti], 243;
  752. setarray @pTYcoords[@Ti], 115;
  753. QWS_Make_Town_Menu 12;
  754. //----------------Lighthalzen:
  755. setarray @pTmenuitems$[@Ti], "Lighthalzen";
  756. setarray @pTprice[@Ti], $QW_AW_PRICE;
  757. setarray @pTmap$[@Ti], "lighthalzen";
  758. setarray @pTXcoords[@Ti], 158;
  759. setarray @pTYcoords[@Ti], 110;
  760. QWS_Make_Town_Menu 13;
  761. //----------------Louyang:
  762. setarray @pTmenuitems$[@Ti], "Louyang";
  763. setarray @pTprice[@Ti], $QW_OW_PRICE;
  764. setarray @pTmap$[@Ti], "louyang";
  765. setarray @pTXcoords[@Ti], 210;
  766. setarray @pTYcoords[@Ti], 108;
  767. QWS_Make_Town_Menu 14;
  768. //----------------Lutie
  769. setarray @pTmenuitems$[@Ti], "Lutie";
  770. setarray @pTprice[@Ti], $QW_AW_PRICE;
  771. setarray @pTmap$[@Ti], "xmas";
  772. setarray @pTXcoords[@Ti], 148;
  773. setarray @pTYcoords[@Ti], 131;
  774. QWS_Make_Town_Menu 15;
  775. //----------------Manuk
  776. setarray @pTmenuitems$[@Ti], "Manuk";
  777. setarray @pTprice[@Ti], $QW_OW_PRICE;
  778. setarray @pTmap$[@Ti], "manuk";
  779. setarray @pTXcoords[@Ti], 260;
  780. setarray @pTYcoords[@Ti], 175;
  781. QWS_Make_Town_Menu 23;
  782. //----------------Mora
  783. setarray @pTmenuitems$[@Ti], "Mora";
  784. setarray @pTprice[@Ti], $QW_OW_PRICE;
  785. setarray @pTmap$[@Ti], "mora";
  786. setarray @pTXcoords[@Ti], 111;
  787. setarray @pTYcoords[@Ti], 97;
  788. QWS_Make_Town_Menu 24;
  789. //----------------Morroc:
  790. setarray @pTmenuitems$[@Ti], "Morroc";
  791. setarray @pTprice[@Ti], $QW_BW_PRICE;
  792. setarray @pTmap$[@Ti], "morocc";
  793. setarray @pTXcoords[@Ti], 159;
  794. setarray @pTYcoords[@Ti], 93;
  795. QWS_Make_Town_Menu 16;
  796. //----------------Moscovia
  797. setarray @pTmenuitems$[@Ti], "Moscovia";
  798. setarray @pTprice[@Ti], $QW_OW_PRICE;
  799. setarray @pTmap$[@Ti], "moscovia";
  800. setarray @pTXcoords[@Ti], 219;
  801. setarray @pTYcoords[@Ti], 193;
  802. QWS_Make_Town_Menu 25;
  803. //----------------Niflheim:
  804. setarray @pTmenuitems$[@Ti], "Niflheim";
  805. setarray @pTprice[@Ti], $QW_AW_PRICE;
  806. setarray @pTmap$[@Ti], "niflheim";
  807. setarray @pTXcoords[@Ti], 195;
  808. setarray @pTYcoords[@Ti], 186;
  809. QWS_Make_Town_Menu 17;
  810. //----------------Payon:
  811. setarray @pTmenuitems$[@Ti], "Payon";
  812. setarray @pTprice[@Ti], $QW_BW_PRICE;
  813. setarray @pTmap$[@Ti], "payon";
  814. setarray @pTXcoords[@Ti], 152;
  815. setarray @pTYcoords[@Ti], 75;
  816. QWS_Make_Town_Menu 18;
  817. //----------------Rachel
  818. setarray @pTmenuitems$[@Ti], "Rachel";
  819. setarray @pTprice[@Ti], $QW_AW_PRICE;
  820. setarray @pTmap$[@Ti], "rachel";
  821. setarray @pTXcoords[@Ti], 130;
  822. setarray @pTYcoords[@Ti], 111;
  823. QWS_Make_Town_Menu 26;
  824. //----------------Splendide
  825. setarray @pTmenuitems$[@Ti], "Splendide";
  826. setarray @pTprice[@Ti], $QW_OW_PRICE;
  827. setarray @pTmap$[@Ti], "splendide";
  828. setarray @pTXcoords[@Ti], 200;
  829. setarray @pTYcoords[@Ti], 153;
  830. QWS_Make_Town_Menu 27;
  831. //----------------Umbala:
  832. setarray @pTmenuitems$[@Ti], "Umbala";
  833. setarray @pTprice[@Ti], $QW_AW_PRICE;
  834. setarray @pTmap$[@Ti], "umbala";
  835. setarray @pTXcoords[@Ti], 130;
  836. setarray @pTYcoords[@Ti], 130;
  837. QWS_Make_Town_Menu 19;
  838. //----------------Veins
  839. setarray @pTmenuitems$[@Ti], "Veins";
  840. setarray @pTprice[@Ti], $QW_OW_PRICE;
  841. setarray @pTmap$[@Ti], "veins";
  842. setarray @pTXcoords[@Ti], 216;
  843. setarray @pTYcoords[@Ti], 123;
  844. QWS_Make_Town_Menu 28;
  845. //----------------Yuno:
  846. setarray @pTmenuitems$[@Ti], "Yuno";
  847. setarray @pTprice[@Ti], $QW_AW_PRICE;
  848. setarray @pTmap$[@Ti], "yuno";
  849. setarray @pTXcoords[@Ti], 160;
  850. setarray @pTYcoords[@Ti], 168;
  851. QWS_Make_Town_Menu 20;
  852. //----------------Cancel
  853. setarray @pTmenuitems$[@Ti], "Cancel";
  854. setarray @pTprice[@Ti], 0;
  855. set @Tmenulist$[@Tj],@pTmenuitems$[@Ti];
  856. set @Tmenuref[@Tj],57005; // 57005='dead' in hex
  857. return;
  858. //----------------Make Town Menu Function
  859. function QWS_Make_Town_Menu {
  860. set @temptownmenubin,1;
  861. if (getarg(0) == 0) goto menu_item;
  862. set @templooptownmenu,0;
  863. do {
  864. set @temptownmenubin, @temptownmenubin * 2;
  865. set @templooptownmenu, @templooptownmenu + 1;
  866. }while (getarg(0) > @templooptownmenu);
  867. // check marker and make menu item
  868. menu_item:
  869. if ((@temptownmenubin & ##QWS_T_Unlock) != @temptownmenubin) {
  870. set @Ti,@Ti+1;
  871. return;
  872. }
  873. if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  874. if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  875. if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]"+" -> "+@pTprice[@Ti];
  876. if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]";
  877. set @Tmenuref[@Tj],@Ti;
  878. set @Tj,@Tj+1;
  879. set @Ti,@Ti+1;
  880. return;
  881. }
  882. }
  883. //====================Dungeon=Menu=Arrays==========================
  884. // Adding a dungeon:
  885. // setarray @pDmenuitems$[@Di], "Abyss Lake"; // Name of Dungeon shown in Dungeon select Menu
  886. // setarray @pDprice[@Di], $QW_AW_PRICE; // Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
  887. // setarray @pDfee$[@Di], "$QW_AW_FEE"; // Identifier for fee caluclation: Basic ("$QW_BW_FEE"), Advanced ("$QW_AW_FEE"), Overseas ("$QW_OW_FEE")
  888. // setarray @DLevels[@Di], 3; // Number of levels in dungeon
  889. //
  890. // setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03"; // Map names of dungeon levels
  891. // setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3"; // Name of dungeon levels shown in Menu
  892. // setarray @DXcoords[@Dref], 265, 275, 116; // X warp coords
  893. // setarray @DYcoords[@Dref], 273, 270, 27; // Y warp coords
  894. // setarray @DDepth[@Dref], 0, 1, 2; // Relative depth to entrance, to calculate extra warp fee
  895. //
  896. // QWS_Make_Dungeon_Menu 0; // Use a free number (last used is 28, Kiel Dungeon)
  897. //
  898. // Adding a warpra:
  899. // map,x,y,facing script Warpra Helper#example 112,{
  900. // callfunc "QWS_Dungeon_Warpra",<dungeon number>,"Your Dungeon";
  901. // close;
  902. // }
  903. // Dungeon number is the same as "QWS_Make_Dungeon_Menu".
  904. //==================================================================
  905. function script QWS_Darray {
  906. function QWS_Make_Dungeon_Menu;
  907. set @Di,0;
  908. set @Dj,0;
  909. set @Dref,0;
  910. //----------------ABYSS LAKE
  911. setarray @pDmenuitems$[@Di], "Abyss Lake";
  912. setarray @pDprice[@Di], $QW_AW_PRICE;
  913. setarray @pDfee$[@Di], "$QW_AW_FEE";
  914. setarray @DLevels[@Di], 3;
  915. setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03";
  916. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  917. setarray @DXcoords[@Dref], 265, 275, 116;
  918. setarray @DYcoords[@Dref], 273, 270, 27;
  919. setarray @DDepth[@Dref], 0, 1, 2;
  920. QWS_Make_Dungeon_Menu 0;
  921. //----------------AMATSU DUNGEON
  922. setarray @pDmenuitems$[@Di], "Amatsu Dungeon";
  923. setarray @pDprice[@Di], $QW_OW_PRICE;
  924. setarray @pDfee$[@Di], "$QW_OW_FEE";
  925. setarray @DLevels[@Di], 3;
  926. setarray @DGat$[@Dref], "ama_dun01", "ama_dun02", "ama_dun03";
  927. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  928. setarray @DXcoords[@Dref], 227, 32, 119;
  929. setarray @DYcoords[@Dref], 10, 43, 15;
  930. setarray @DDepth[@Dref], 0, 1, 2;
  931. QWS_Make_Dungeon_Menu 1;
  932. //----------------ANT HELL
  933. setarray @pDmenuitems$[@Di], "Ant Hell Dungeon";
  934. setarray @pDprice[@Di], $QW_BW_PRICE;
  935. setarray @pDfee$[@Di], "$QW_BW_FEE";
  936. setarray @DLevels[2], 2;
  937. setarray @DGat$[@Dref], "anthell01", "anthell02";
  938. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  939. setarray @DXcoords[@Dref], 32, 34;
  940. setarray @DYcoords[@Dref], 262, 263;
  941. setarray @DDepth[@Dref], 0, 1;
  942. QWS_Make_Dungeon_Menu 2;
  943. //----------------AYOTAYA
  944. setarray @pDmenuitems$[@Di], "Ayotaya Dungeon";
  945. setarray @pDprice[@Di], $QW_OW_PRICE;
  946. setarray @pDfee$[@Di], "$QW_OW_FEE";
  947. setarray @DLevels[3], 2;
  948. setarray @DGat$[@Dref], "ayo_dun01", "ayo_dun02";
  949. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  950. setarray @DXcoords[@Dref], 275, 150;
  951. setarray @DYcoords[@Dref], 17, 13;
  952. setarray @DDepth[@Dref], 0, 1;
  953. QWS_Make_Dungeon_Menu 3;
  954. //----------------BYALAN
  955. setarray @pDmenuitems$[@Di], "Byalan Dungeon";
  956. setarray @pDprice[@Di], $QW_BW_PRICE;
  957. setarray @pDfee$[@Di], "$QW_BW_FEE";
  958. setarray @DLevels[4], 5;
  959. setarray @DGat$[@Dref], "iz_dun00", "iz_dun01", "iz_dun02", "iz_dun03", "iz_dun04";
  960. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  961. setarray @DXcoords[@Dref], 168, 41, 236, 32, 26;
  962. setarray @DYcoords[@Dref], 168, 37, 204, 63, 27;
  963. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  964. QWS_Make_Dungeon_Menu 4;
  965. //----------------CLOCK TOWER
  966. setarray @pDmenuitems$[@Di], "Clock Tower Dungeon";
  967. setarray @pDprice[@Di], $QW_AW_PRICE;
  968. setarray @pDfee$[@Di], "$QW_AW_FEE";
  969. setarray @DLevels[5], 8;
  970. setarray @DGat$[@Dref], "c_tower1", "c_tower2", "c_tower3", "c_tower4", "alde_dun01", "alde_dun02", "alde_dun03", "alde_dun04";
  971. setarray @DLevelName$[@Dref], "Clock Tower Level 1", "Clock Tower Level 2", "Clock Tower Level 3", "Clock Tower Level 4", "Basement 1F", "Basement 2F", "Basement 3F", "Basement 4F";
  972. setarray @DXcoords[@Dref], 200, 268, 64, 32, 197, 262, 276, 122;
  973. setarray @DYcoords[@Dref], 163, 26, 148, 63, 25, 41, 53, 125;
  974. setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2, 3, 4;
  975. QWS_Make_Dungeon_Menu 5;
  976. //----------------COAL MINE
  977. setarray @pDmenuitems$[@Di], "Coal Mine Dungeon";
  978. setarray @pDprice[@Di], $QW_AW_PRICE;
  979. setarray @pDfee$[@Di], "$QW_AW_FEE";
  980. setarray @DLevels[6], 3;
  981. setarray @DGat$[@Dref], "mjo_dun01", "mjo_dun02", "mjo_dun03";
  982. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  983. setarray @DXcoords[@Dref], 52, 381, 302;
  984. setarray @DYcoords[@Dref], 17, 343, 261;
  985. setarray @DDepth[@Dref], 0, 1, 2;
  986. QWS_Make_Dungeon_Menu 6;
  987. //----------------CULVERT
  988. setarray @pDmenuitems$[@Di], "Culvert Dungeon";
  989. setarray @pDprice[@Di], $QW_BW_PRICE;
  990. setarray @pDfee$[@Di], "$QW_BW_FEE";
  991. setarray @DLevels[7], 4;
  992. setarray @DGat$[@Dref], "prt_sewb1", "prt_sewb2", "prt_sewb3", "prt_sewb4";
  993. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  994. setarray @DXcoords[@Dref], 132, 19, 180, 100;
  995. setarray @DYcoords[@Dref], 248, 19, 169, 92;
  996. setarray @DDepth[@Dref], 0, 1, 2, 3;
  997. QWS_Make_Dungeon_Menu 7;
  998. //----------------EINBECH DUNGEON
  999. setarray @pDmenuitems$[@Di], "Einbech Dungeon";
  1000. setarray @pDprice[@Di], $QW_AW_PRICE;
  1001. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1002. setarray @DLevels[8], 2;
  1003. setarray @DGat$[@Dref], "ein_dun01", "ein_dun02";
  1004. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1005. setarray @DXcoords[@Dref], 22, 292;
  1006. setarray @DYcoords[@Dref], 14, 290;
  1007. setarray @DDepth[@Dref], 0, 1;
  1008. QWS_Make_Dungeon_Menu 8;
  1009. //----------------GEFENIA DUNGEON
  1010. setarray @pDmenuitems$[@Di], "Gefenia Dungeon";
  1011. setarray @pDprice[@Di], $QW_BW_PRICE;
  1012. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1013. setarray @DLevels[9], 4;
  1014. setarray @DGat$[@Dref], "gefenia01", "gefenia02", "gefenia03", "gefenia04";
  1015. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  1016. setarray @DXcoords[@Dref], 59, 201, 264, 33;
  1017. setarray @DYcoords[@Dref], 167, 35, 236, 270;
  1018. setarray @DDepth[@Dref], 0, 1, 2, 3;
  1019. QWS_Make_Dungeon_Menu 9;
  1020. //----------------GEFFEN DUNGEON
  1021. setarray @pDmenuitems$[@Di], "Geffen Dungeon";
  1022. setarray @pDprice[@Di], $QW_BW_PRICE;
  1023. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1024. setarray @DLevels[@Di], 4;
  1025. setarray @DGat$[@Dref], "gef_dun00", "gef_dun01", "gef_dun02", "gef_dun03";
  1026. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  1027. setarray @DXcoords[@Dref], 104, 115, 106, 203;
  1028. setarray @DYcoords[@Dref], 100, 236, 132, 200;
  1029. setarray @DDepth[@Dref], 0, 1, 2, 3;
  1030. QWS_Make_Dungeon_Menu 10;
  1031. //----------------GLAST HEIM
  1032. setarray @pDmenuitems$[@Di], "Glast Heim Dungeon";
  1033. setarray @pDprice[@Di], $QW_BW_PRICE;
  1034. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1035. setarray @DLevels[@Di], 17;
  1036. setarray @DGat$[@Dref], "glast_01", "gl_church", "gl_chyard", "gl_in01", "gl_cas01", "gl_cas02", "gl_knt01", "gl_knt02", "gl_prison", "gl_prison1", "gl_step", "gl_sew01", "gl_sew02", "gl_sew03", "gl_sew04", "gl_dun01", "gl_dun02";
  1037. setarray @DLevelName$[@Dref], "Glast Heim Entrance", "St. Abbey", "Churchyard", "Inside Glast Heim", "Castle 1", "Castle 2", "Chivalry 1", "Chivalry 2", "Prison 1", "Prison 2", "Steps", "Sewers 1", "Sewers 2", "Sewers 3", "Sewers 4", "Lowest Cave 1", "Lowest Cave 2";
  1038. setarray @DXcoords[@Dref], 370, 156, 147, 121, 199, 104, 150, 157, 14, 150, 117, 258, 108, 171, 68, 133, 224;
  1039. setarray @DYcoords[@Dref], 300, 8, 15, 59, 29, 25, 10, 287, 70, 14, 124, 255, 291, 273, 277, 271, 274;
  1040. setarray @DDepth[@Dref], 0, 1, 2, 1, 1, 2, 1, 2, 2, 3, 1, 4, 2, 3, 4, 5, 6;
  1041. QWS_Make_Dungeon_Menu 11;
  1042. //----------------GONRYUN DUNGEON
  1043. setarray @pDmenuitems$[@Di], "Gonryun Dungeon";
  1044. setarray @pDprice[@Di], $QW_OW_PRICE;
  1045. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1046. setarray @DLevels[@Di], 3;
  1047. setarray @DGat$[@Dref], "gon_dun01", "gon_dun02", "gon_dun03";
  1048. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1049. setarray @DXcoords[@Dref], 143, 17, 68;
  1050. setarray @DYcoords[@Dref], 59, 114, 9;
  1051. setarray @DDepth[@Dref], 0, 1, 2;
  1052. QWS_Make_Dungeon_Menu 12;
  1053. //----------------HIDDEN DUNGEON
  1054. setarray @pDmenuitems$[@Di], "Hidden Dungeon";
  1055. setarray @pDprice[@Di], $QW_BW_PRICE;
  1056. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1057. setarray @DLevels[@Di], 3;
  1058. setarray @DGat$[@Dref], "prt_maze01", "prt_maze02", "prt_maze03";
  1059. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1060. setarray @DXcoords[@Dref], 176, 94, 23;
  1061. setarray @DYcoords[@Dref], 6, 19, 8;
  1062. setarray @DDepth[@Dref], 0, 1, 2;
  1063. QWS_Make_Dungeon_Menu 13;
  1064. //----------------JUPEROS CAVE
  1065. setarray @pDmenuitems$[@Di], "Juperos Cave";
  1066. setarray @pDprice[@Di], $QW_AW_PRICE;
  1067. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1068. setarray @DLevels[@Di], 2;
  1069. setarray @DGat$[@Dref], "juperos_01", "juperos_02";
  1070. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1071. setarray @DXcoords[@Dref], 53, 36;
  1072. setarray @DYcoords[@Dref], 247, 60;
  1073. setarray @DDepth[@Dref], 0, 1;
  1074. QWS_Make_Dungeon_Menu 14;
  1075. //----------------KIEL DUNGEON
  1076. setarray @pDmenuitems$[@Di], "Kiel Dungeon";
  1077. setarray @pDprice[@Di], $QW_AW_PRICE;
  1078. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1079. setarray @DLevels[@Di], 2;
  1080. setarray @DGat$[@Dref], "kh_dun01", "kh_dun02";
  1081. setarray @DLevelName$[@Dref], "1st Floor", "2nd Floor";
  1082. setarray @DXcoords[@Dref], 63, 42;
  1083. setarray @DYcoords[@Dref], 10, 197;
  1084. setarray @DDepth[@Dref], 0, 1;
  1085. QWS_Make_Dungeon_Menu 28;
  1086. //----------------LIGHTHALZEN BIO LAB
  1087. setarray @pDmenuitems$[@Di], "Lighthalzen Bio Lab";
  1088. setarray @pDprice[@Di], $QW_AW_PRICE;
  1089. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1090. setarray @DLevels[@Di], 3;
  1091. setarray @DGat$[@Dref], "lhz_dun01", "lhz_dun02", "lhz_dun03";
  1092. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1093. setarray @DXcoords[@Dref], 150, 150, 140;
  1094. setarray @DYcoords[@Dref], 287, 18, 137;
  1095. setarray @DDepth[@Dref], 0, 1, 2;
  1096. QWS_Make_Dungeon_Menu 15;
  1097. //----------------LOUYANG DUNGEON
  1098. setarray @pDmenuitems$[@Di], "Louyang Dungeon";
  1099. setarray @pDprice[@Di], $QW_OW_PRICE;
  1100. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1101. setarray @DLevels[@Di], 2;
  1102. setarray @DGat$[@Dref], "lou_dun02", "lou_dun03";
  1103. setarray @DLevelName$[@Dref], "Royal Tomb Level 1", "Royal Tomb Level 2";
  1104. setarray @DXcoords[@Dref], 282, 165;
  1105. setarray @DYcoords[@Dref], 20, 38;
  1106. setarray @DDepth[@Dref], 0, 1;
  1107. QWS_Make_Dungeon_Menu 16;
  1108. //----------------MAGMA DUNGEON
  1109. setarray @pDmenuitems$[@Di], "Magma Dungeon";
  1110. setarray @pDprice[@Di], $QW_AW_PRICE;
  1111. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1112. setarray @DLevels[@Di], 2;
  1113. setarray @DGat$[@Dref], "mag_dun01", "mag_dun02";
  1114. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1115. setarray @DXcoords[@Dref], 126, 47;
  1116. setarray @DYcoords[@Dref], 69, 32;
  1117. setarray @DDepth[@Dref], 0, 1;
  1118. QWS_Make_Dungeon_Menu 17;
  1119. //----------------ODIN TEMPLE
  1120. setarray @pDmenuitems$[@Di], "Odin Temple";
  1121. setarray @pDprice[@Di], $QW_AW_PRICE;
  1122. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1123. setarray @DLevels[@Di], 1;
  1124. setarray @DGat$[@Dref], "odin_tem01";
  1125. setarray @DLevelName$[@Dref], "Level 1";
  1126. setarray @DXcoords[@Dref], 96;
  1127. setarray @DYcoords[@Dref], 145;
  1128. setarray @DDepth[@Dref], 0;
  1129. QWS_Make_Dungeon_Menu 18;
  1130. //----------------ORC DUNGEON
  1131. setarray @pDmenuitems$[@Di], "Orc Dungeon";
  1132. setarray @pDprice[@Di], $QW_BW_PRICE;
  1133. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1134. setarray @DLevels[@Di], 2;
  1135. setarray @DGat$[@Dref], "orcsdun01", "orcsdun02";
  1136. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1137. setarray @DXcoords[@Dref], 32, 21;
  1138. setarray @DYcoords[@Dref], 169, 185;
  1139. setarray @DDepth[@Dref], 0, 1;
  1140. QWS_Make_Dungeon_Menu 19;
  1141. //----------------PAYON DUNGEON
  1142. setarray @pDmenuitems$[@Di], "Payon Dungeon";
  1143. setarray @pDprice[@Di], $QW_BW_PRICE;
  1144. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1145. setarray @DLevels[@Di], 5;
  1146. setarray @DGat$[@Dref], "pay_dun00", "pay_dun01", "pay_dun02", "pay_dun03", "pay_dun04";
  1147. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  1148. setarray @DXcoords[@Dref], 22, 19, 19, 155, 201;
  1149. setarray @DYcoords[@Dref], 180, 33, 63, 159, 204;
  1150. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  1151. QWS_Make_Dungeon_Menu 20;
  1152. //----------------PYRAMIDS
  1153. setarray @pDmenuitems$[@Di], "Pyramids Dungeon";
  1154. setarray @pDprice[@Di], $QW_BW_PRICE;
  1155. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1156. setarray @DLevels[@Di], 6;
  1157. setarray @DGat$[@Dref], "moc_pryd01", "moc_pryd02", "moc_pryd03", "moc_pryd04", "moc_pryd05", "moc_pryd06";
  1158. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Basement 1", "Basement 2";
  1159. setarray @DXcoords[@Dref], 192, 10, 100, 181, 94, 192;
  1160. setarray @DYcoords[@Dref], 9, 192, 92, 11, 96, 8;
  1161. setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2;
  1162. QWS_Make_Dungeon_Menu 21;
  1163. //----------------SPHINX
  1164. setarray @pDmenuitems$[@Di], "Sphinx Dungeon";
  1165. setarray @pDprice[@Di], $QW_BW_PRICE;
  1166. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1167. setarray @DLevels[@Di], 5;
  1168. setarray @DGat$[@Dref], "in_sphinx1", "in_sphinx2", "in_sphinx3", "in_sphinx4", "in_sphinx5";
  1169. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  1170. setarray @DXcoords[@Dref], 192, 149, 210, 10, 100;
  1171. setarray @DYcoords[@Dref], 9, 81, 54, 222, 99;
  1172. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  1173. QWS_Make_Dungeon_Menu 22;
  1174. //----------------SUNKEN SHIP
  1175. setarray @pDmenuitems$[@Di], "Sunken Ship Dungeon";
  1176. setarray @pDprice[@Di], $QW_BW_PRICE;
  1177. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1178. setarray @DLevels[@Di], 2;
  1179. setarray @DGat$[@Dref], "treasure01", "treasure02";
  1180. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1181. setarray @DXcoords[@Dref], 69, 102;
  1182. setarray @DYcoords[@Dref], 24, 27;
  1183. setarray @DDepth[@Dref], 0, 1;
  1184. QWS_Make_Dungeon_Menu 23;
  1185. //----------------THANATOS TOWER
  1186. setarray @pDmenuitems$[@Di], "Thanatos Tower";
  1187. setarray @pDprice[@Di], $QW_AW_PRICE;
  1188. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1189. setarray @DLevels[@Di], 13;
  1190. setarray @DGat$[@Dref], "tha_t01", "tha_t02", "tha_t03", "tha_t04", "tha_t05", "tha_t06", "tha_t07", "tha_t08", "tha_t09", "tha_t10", "tha_t11", "tha_t12", "thana_boss";
  1191. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Level 7", "Level 8", "Level 9", "Level 10", "Level 11", "Level 12", "Thanatos Boss";
  1192. setarray @DXcoords[@Dref], 150, 150, 220, 59, 62, 206, 35, 105, 88, 168, 90, 129, 85;
  1193. setarray @DYcoords[@Dref], 35, 136, 158, 143, 11, 8, 166, 44, 145, 138, 36, 83, 76;
  1194. setarray @DDepth[@Dref], 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
  1195. QWS_Make_Dungeon_Menu 24;
  1196. //----------------TOY FACTORY
  1197. setarray @pDmenuitems$[@Di], "Toy Factory Dungeon";
  1198. setarray @pDprice[@Di], $QW_AW_PRICE;
  1199. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1200. setarray @DLevels[@Di], 2;
  1201. setarray @DGat$[@Dref], "xmas_dun01", "xmas_dun02";
  1202. setarray @DLevelName$[@Dref], "Factory Warehouse", "Classifying Room";
  1203. setarray @DXcoords[@Dref], 205, 129;
  1204. setarray @DYcoords[@Dref], 16, 133;
  1205. setarray @DDepth[@Dref], 0, 1;
  1206. QWS_Make_Dungeon_Menu 25;
  1207. //----------------TURTLE ISTLAND
  1208. setarray @pDmenuitems$[@Di], "Turtle Island Dungeon";
  1209. setarray @pDprice[@Di], $QW_AW_PRICE;
  1210. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1211. setarray @DLevels[@Di], 4;
  1212. setarray @DGat$[@Dref], "tur_dun01", "tur_dun02", "tur_dun03", "tur_dun04";
  1213. setarray @DLevelName$[@Dref], "Outside", "Level 1", "Level 2", "Level 3";
  1214. setarray @DXcoords[@Dref], 161, 148, 132, 100;
  1215. setarray @DYcoords[@Dref], 34, 256, 190, 192;
  1216. setarray @DDepth[@Dref], 0, 0, 1, 2;
  1217. QWS_Make_Dungeon_Menu 26;
  1218. //----------------UMBALA
  1219. setarray @pDmenuitems$[@Di], "Umbala Dungeon";
  1220. setarray @pDprice[@Di], $QW_OW_PRICE;
  1221. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1222. setarray @DLevels[@Di], 3;
  1223. setarray @DGat$[@Dref], "um_dun01", "um_dun02", "yggdrasil01";
  1224. setarray @DLevelName$[@Dref], "Carpenter's Shop in The Tree", "Passage to a Foreign World", "Hvergelmir's Fountain";
  1225. setarray @DXcoords[@Dref], 205, 48, 40;
  1226. setarray @DYcoords[@Dref], 26, 30, 63;
  1227. setarray @DDepth[@Dref], 0, 1, 2;
  1228. QWS_Make_Dungeon_Menu 27;
  1229. //----------------Cancel
  1230. setarray @pDmenuitems$[@Di], "Cancel";
  1231. setarray @pDprice[@Di], 0;
  1232. set @Dmenulist$[@Dj],@pDmenuitems$[@Di];
  1233. set @Dmenuref[@Dj],57005; // 57005='dead' in hex
  1234. return;
  1235. //----------------Make Dungeon Menu Function
  1236. function QWS_Make_Dungeon_Menu {
  1237. set @tempdungeonmenubin,1;
  1238. if (getarg(0) == 0) goto menu_item;
  1239. set @temploopdungeonmenu,0;
  1240. do {
  1241. set @tempdungeonmenubin, @tempdungeonmenubin * 2;
  1242. set @temploopdungeonmenu, @temploopdungeonmenu + 1;
  1243. }while (getarg(0) > @temploopdungeonmenu);
  1244. // check marker and make menu item
  1245. menu_item:
  1246. if ((@tempdungeonmenubin & ##QWS_D_Unlock) != @tempdungeonmenubin) {
  1247. setarray @DLocRef[@Di], @Dref;
  1248. set @Dref, @Dref+@DLevels[@Di];
  1249. set @Di,@Di+1;
  1250. return;
  1251. }
  1252. if ($QW_MapUserShow == 1) {
  1253. set @tempmapusers,0;
  1254. set @mapusersloop,0;
  1255. do {
  1256. set @tempmapusers,(getmapusers(@DGat$[@Dref+@mapusersloop]) + @tempmapusers);
  1257. set @mapusersloop, (@mapusersloop + 1);
  1258. } while (@DLevels[@Di] > @mapusersloop);
  1259. if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"] -> "+@pDprice[@Di];
  1260. if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"]";
  1261. set @Dmenuref[@Dj],@Di;
  1262. set @Dj,@Dj+1;
  1263. setarray @DLocRef[@Di], @Dref;
  1264. set @Dref, @Dref+@DLevels[@Di];
  1265. set @Di,@Di+1;
  1266. return;
  1267. }
  1268. if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1269. if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1270. set @Dmenuref[@Dj],@Di;
  1271. set @Dj,@Dj+1;
  1272. setarray @DLocRef[@Di], @Dref;
  1273. set @Dref, @Dref+@DLevels[@Di];
  1274. set @Di,@Di+1;
  1275. return;
  1276. }
  1277. }
  1278. function script QWS_DLarray {
  1279. //----------------Start building Menu
  1280. set @DWref,@DLocRef[@DwarpMenu]; // reference to the arrays with leveldata
  1281. set @DWi,0; // loop counter
  1282. set @DWj,0; // menu lines counter
  1283. cleararray @DWLmenulist$[0],"",20; // Clearing the array to get rid off ghost items in menu
  1284. do {
  1285. if ($QW_DL == 0)||($QW_DDL >= @DDepth[@DWref]) {
  1286. set @warpprice, (@pDprice[@DwarpMenu]+ (getd(@pDfee$[@DwarpMenu])*@DDepth[@DWref]));
  1287. if (@warpprice != 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" -> "+@warpprice;
  1288. if (@warpprice == 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref];
  1289. if (@warpprice != 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"] -> "+@warpprice;
  1290. if (@warpprice == 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"]";
  1291. set @DWLmenuref[@DWj],@DWref;
  1292. set @DWj,@DWj+1;
  1293. }
  1294. set @DWref, @DWref+1;
  1295. set @DWi,@DWi+1;
  1296. } while (@DWi < @DLevels[@DwarpMenu]);
  1297. set @DWLmenulist$[@DWj], "Exit";
  1298. set @DWLmenuref[@DWj],57005; // 57005='dead' in hex
  1299. return;
  1300. }
  1301. //================Dungeon=Warpras=That=Only=Unlock=================
  1302. function script QWS_Dungeon_Warpra {
  1303. function QWS_D_getbin;
  1304. function QWS_D_setbin;
  1305. if ((QWS_D_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
  1306. mes "[Warpra]";
  1307. mes getarg(1)+" unlocked!";
  1308. QWS_D_setbin(getarg(0));
  1309. return;
  1310. } else if (QWS_D_getbin(getarg(0)) == 1) {
  1311. mes "[Warpra]";
  1312. mes "Sorry, I can only unlock this location.";
  1313. } else
  1314. debugmes "QWS_Dungeon_Warpra error, improper syntax?";
  1315. return;
  1316. function QWS_D_setbin {
  1317. set @tempsetbindata,1;
  1318. if (getarg(0) == 0) goto binset;
  1319. set @temploopsetbin,0;
  1320. do {
  1321. set @tempsetbindata, @tempsetbindata * 2;
  1322. set @temploopsetbin, @temploopsetbin + 1;
  1323. } while (getarg(0) > @temploopsetbin);
  1324. binset:
  1325. set ##QWS_D_Unlock,(##QWS_D_Unlock | @tempsetbindata);
  1326. return;
  1327. }
  1328. function QWS_D_getbin {
  1329. set @tempgetbindata,1;
  1330. if (getarg(0) == 0) goto binget;
  1331. set @temploopgetbin,0;
  1332. do {
  1333. set @tempgetbindata, @tempgetbindata * 2;
  1334. set @temploopgetbin, @temploopgetbin + 1;
  1335. } while (getarg(0) > @temploopgetbin);
  1336. binget:
  1337. if ((@tempgetbindata & ##QWS_D_Unlock) == @tempgetbindata) return 1;
  1338. return 0;
  1339. }
  1340. }
  1341. //==========================Town=Warpras===========================
  1342. function script QWS_Town_Warpra {
  1343. function QWS_T_getbin;
  1344. function QWS_T_setbin;
  1345. if ((QWS_T_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
  1346. mes "[Warpra]";
  1347. mes getarg(1)+" unlocked!";
  1348. QWS_T_setbin(getarg(0));
  1349. return;
  1350. } else if (QWS_T_getbin(getarg(0)) == 1) {
  1351. callfunc "Q_Warpra",0;
  1352. } else
  1353. debugmes "QWS_Town_Warpra error, improper syntax ?";
  1354. return;
  1355. function QWS_T_setbin {
  1356. set @tempsetbindata,1;
  1357. if (getarg(0) == 0) goto binset;
  1358. set @temploopsetbin,0;
  1359. do {
  1360. set @tempsetbindata, @tempsetbindata * 2;
  1361. set @temploopsetbin, @temploopsetbin + 1;
  1362. } while (getarg(0) > @temploopsetbin);
  1363. binset:
  1364. set ##QWS_T_Unlock,(##QWS_T_Unlock | @tempsetbindata);
  1365. return;
  1366. }
  1367. function QWS_T_getbin {
  1368. set @tempgetbindata,1;
  1369. if (getarg(0) == 0) goto binget;
  1370. set @temploopgetbin,0;
  1371. do {
  1372. set @tempgetbindata, @tempgetbindata * 2;
  1373. set @temploopgetbin, @temploopgetbin + 1;
  1374. } while (getarg(0) > @temploopgetbin);
  1375. binget:
  1376. if ((@tempgetbindata & ##QWS_T_Unlock) == @tempgetbindata) return 1;
  1377. return 0;
  1378. }
  1379. }
  1380. //============================Warpras==============================
  1381. - script Warpra#0 -1,{ callfunc "Q_Warpra",1; }
  1382. alb2trea,73,101,4 duplicate(Warpra#0) Warpra#1 113
  1383. ama_fild01,178,325,1 duplicate(Warpra#0) Warpra#2 113
  1384. gef_fild10,71,339,4 duplicate(Warpra#0) Warpra#3 113
  1385. izlu2dun,104,82,4 duplicate(Warpra#0) Warpra#4 113
  1386. mjolnir_02,85,363,4 duplicate(Warpra#0) Warpra#5 113
  1387. moc_fild04,207,331,4 duplicate(Warpra#0) Warpra#6 113
  1388. moc_fild19,106,97,4 duplicate(Warpra#0) Warpra#7 113
  1389. moc_ruins,64,166,4 duplicate(Warpra#0) Warpra#8 113
  1390. niflheim,197,192,3 duplicate(Warpra#0) Warpra#9 113
  1391. pay_arche,39,135,4 duplicate(Warpra#0) Warpra#10 113
  1392. prt_fild05,273,215,4 duplicate(Warpra#0) Warpra#11 113
  1393. tur_dun01,148,239,4 duplicate(Warpra#0) Warpra#12 113
  1394. valkyrie,48,35,8 duplicate(Warpra#0) Warpra#13 113
  1395. yuno_fild03,37,135,4 duplicate(Warpra#0) Warpra#14 113
  1396. alberta,32,240,4 script Warpra#15 113,{ callfunc "QWS_Town_Warpra",1,"Alberta Town"; close; }
  1397. aldebaran,146,118,4 script Warpra#16 113,{ callfunc "QWS_Town_Warpra",2,"Aldebaran Town"; close; }
  1398. ayothaya,216,171,5 script Warpra#17 113,{ callfunc "QWS_Town_Warpra",4,"Ayotaya Town"; close; }
  1399. amatsu,193,81,1 script Warpra#18 113,{ callfunc "QWS_Town_Warpra",3,"Amatsu Town"; close; }
  1400. comodo,195,158,4 script Warpra#19 113,{ callfunc "QWS_Town_Warpra",5,"Comodo Town"; close; }
  1401. einbroch,229,196,5 script Warpra#20 113,{ callfunc "QWS_Town_Warpra",7,"Einbroch Town"; close; }
  1402. einbech,173,131,5 script Warpra#21 113,{ callfunc "QWS_Town_Warpra",6,"Einbech Town"; close; }
  1403. geffen,116,66,4 script Warpra#22 113,{ callfunc "QWS_Town_Warpra",8,"Geffen Town"; close; }
  1404. gonryun,152,130,4 script Warpra#23 113,{ callfunc "QWS_Town_Warpra",9,"Gonryun Town"; close; }
  1405. hugel,90,127,5 script Warpra#24 113,{ callfunc "QWS_Town_Warpra",10,"Hugel Town"; close; }
  1406. jawaii,107,182,5 script Warpra#25 113,{ callfunc "QWS_Town_Warpra",12,"Jawaii Town"; close; }
  1407. izlude,132,116,4 script Warpra#26 113,{ callfunc "QWS_Town_Warpra",11,"Izlude Town"; close; }
  1408. lighthalzen,153,100,5 script Warpra#27 113,{ callfunc "QWS_Town_Warpra",13,"Lighthalzen Town"; close; }
  1409. louyang,211,106,4 script Warpra#28 113,{ callfunc "QWS_Town_Warpra",14,"Louyang Town"; close; }
  1410. morocc,157,95,4 script Warpra#29 113,{ callfunc "QWS_Town_Warpra",16,"Morroc Town"; close; }
  1411. nif_fild01,319,77,1 script Warpra#30 113,{ callfunc "QWS_Town_Warpra",17,"Niflheim Town"; close; }
  1412. payon,183,110,4 script Warpra#31 113,{ callfunc "QWS_Town_Warpra",18,"Payon Town"; close; }
  1413. prontera,147,172,5 script Warpra#32 113,{ callfunc "QWS_Town_Warpra",0,"Prontera Town"; close; }
  1414. umbala,133,130,4 script Warpra#33 113,{ callfunc "QWS_Town_Warpra",19,"Umbala Town"; close; }
  1415. xmas,151,136,4 script Warpra#34 113,{ callfunc "QWS_Town_Warpra",15,"Lutie Town"; close; }
  1416. yuno,138,162,4 script Warpra#35 113,{ callfunc "QWS_Town_Warpra",20,"Yuno Town"; close; }
  1417. brasilis,201,222,4 script Warpra#36 113,{ callfunc "QWS_Town_Warpra",21,"Brasilis Town"; close; }
  1418. dicastes01,194,194,6 script Warpra#37 113,{ callfunc "QWS_Town_Warpra",22,"El Dicastes Town"; close; }
  1419. manuk,262,177,4 script Warpra#38 113,{ callfunc "QWS_Town_Warpra",23,"Manuk Town"; close; }
  1420. mora,110,100,4 script Warpra#39 113,{ callfunc "QWS_Town_Warpra",24,"Mora Town"; close; }
  1421. moscovia,216,196,6 script Warpra#40 113,{ callfunc "QWS_Town_Warpra",25,"Moscovia Town"; close; }
  1422. rachel,135,116,4 script Warpra#41 113,{ callfunc "QWS_Town_Warpra",26,"Rachel Town"; close; }
  1423. splendide,205,153,4 script Warpra#42 113,{ callfunc "QWS_Town_Warpra",27,"Splendide Town"; close; }
  1424. veins,214,123,4 script Warpra#43 113,{ callfunc "QWS_Town_Warpra",28,"Veins Town"; close; }
  1425. dewata,194,178,6 script Warpra#44 113,{ callfunc "QWS_Town_Warpra",29,"Dewata Town"; close; }
  1426. eclage,107,37,4 script Warpra#45 113,{ callfunc "QWS_Town_Warpra",30,"Eclage Town"; close; }
  1427. abyss_02,274,266,1 script Warpra Helper#0 112,{ callfunc "QWS_Dungeon_Warpra",0,"Abyss Lake"; close; }
  1428. ama_dun02,192,118,5 script Warpra Helper#1 112,{ callfunc "QWS_Dungeon_Warpra",1,"Amatsu Dungeon"; close; }
  1429. anthell02,170,165,3 script Warpra Helper#2 112,{ callfunc "QWS_Dungeon_Warpra",2,"Ant Hell Dungeon"; close; }
  1430. ayo_dun02,258,193,5 script Warpra Helper#3 112,{ callfunc "QWS_Dungeon_Warpra",3,"Ayotaya Dungeon"; close; }
  1431. ein_dun02,292,282,1 script Warpra Helper#4 112,{ callfunc "QWS_Dungeon_Warpra",8,"Einbech Dungeon"; close; }
  1432. iz_dun03,202,47,2 script Warpra Helper#5 112,{ callfunc "QWS_Dungeon_Warpra",4,"Byalan Dungeon"; close; }
  1433. c_tower3,129,106,4 script Warpra Helper#6 112,{ callfunc "QWS_Dungeon_Warpra",5,"Clock Tower Dungeon"; close; }
  1434. mjo_dun02,39,25,4 script Warpra Helper#7 112,{ callfunc "QWS_Dungeon_Warpra",6,"Coal Mine Dungeon"; close; }
  1435. prt_sewb2,176,30,3 script Warpra Helper#8 112,{ callfunc "QWS_Dungeon_Warpra",7,"Culvert Dungeon"; close; }
  1436. gefenia03,137,34,0 script Warpra Helper#9 112,{ callfunc "QWS_Dungeon_Warpra",9,"Gefenia Dungeon"; close; }
  1437. gef_dun02,218,61,2 script Warpra Helper#10 112,{ callfunc "QWS_Dungeon_Warpra",10,"Gefen Dungeon"; close; }
  1438. glast_01,371,308,3 script Warpra Helper#11 112,{ callfunc "QWS_Dungeon_Warpra",11,"Glast Heim Dungeon"; close; }
  1439. gon_dun01,167,273,4 script Warpra Helper#12 112,{ callfunc "QWS_Dungeon_Warpra",12,"Gonryun Dungeon"; close; }
  1440. juperos_02,127,154,5 script Warpra Helper#13 112,{ callfunc "QWS_Dungeon_Warpra",14,"Juperos Cave"; close; }
  1441. kh_dun01,14,224,3 script Warpra Helper#14 112,{ callfunc "QWS_Dungeon_Warpra",28,"Kiel Dungeon"; close; }
  1442. lhz_dun02,156,151,5 script Warpra Helper#15 112,{ callfunc "QWS_Dungeon_Warpra",15,"Lighthalzen Bio Lab"; close; }
  1443. lou_dun02,168,264,4 script Warpra Helper#16 112,{ callfunc "QWS_Dungeon_Warpra",16,"Louyang Dungeon"; close; }
  1444. mag_dun02,46,41,3 script Warpra Helper#17 112,{ callfunc "QWS_Dungeon_Warpra",17,"Magma Dungeon"; close; }
  1445. odin_tem01,115,148,3 script Warpra Helper#18 112,{ callfunc "QWS_Dungeon_Warpra",18,"Odin Temple"; close; }
  1446. orcsdun01,185,11,3 script Warpra Helper#19 112,{ callfunc "QWS_Dungeon_Warpra",19,"Orc Dungeon"; close; }
  1447. pay_dun03,162,143,3 script Warpra Helper#20 112,{ callfunc "QWS_Dungeon_Warpra",20,"Payon Dungeon"; close; }
  1448. moc_pryd02,101,95,3 script Warpra Helper#21 112,{ callfunc "QWS_Dungeon_Warpra",21,"Pyramides Dungeon"; close; }
  1449. in_sphinx2,274,268,1 script Warpra Helper#22 112,{ callfunc "QWS_Dungeon_Warpra",22,"Sphinx Dungeon"; close; }
  1450. tha_t07,111,162,3 script Warpra Helper#23 112,{ callfunc "QWS_Dungeon_Warpra",24,"Thanatos Tower"; close; }
  1451. treasure02,104,40,3 script Warpra Helper#24 112,{ callfunc "QWS_Dungeon_Warpra",23,"Sunken Ship Dungeon"; close; }
  1452. xmas_dun02,124,131,3 script Warpra Helper#25 112,{ callfunc "QWS_Dungeon_Warpra",25,"Toy Factory Dungeon"; close; }
  1453. um_dun02,44,28,3 script Warpra Helper#26 112,{ callfunc "QWS_Dungeon_Warpra",27,"Umbala Dungeon"; close; }
  1454. tur_dun02,162,23,3 script Warpra Helper#27 112,{ callfunc "QWS_Dungeon_Warpra",26,"Turtle Island Dungeon"; close; }
  1455. prt_maze02,102,69,4 script Warpra Helper#28 112,{ callfunc "QWS_Dungeon_Warpra",13,"Hidden Dungeon"; close; }