quest_warper.txt 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694
  1. //===== rAthena Script ============================================
  2. //= Quest Warper Script
  3. //===== By: =======================================================
  4. //= DZeroX, Darkchild, Neouni
  5. //===== Current Version: ==========================================
  6. //= 2.3
  7. //===== Compatible With: ==========================================
  8. //= rAthena Project
  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) {
  499. mes "They say there is an island you can only get to when married...";
  500. emotion e_heh;
  501. }
  502. next;
  503. mes "Let me check what dungeons you have.";
  504. callfunc "QWS_DungeonStamps";
  505. mes "You collected^00FF00 "+@Dstamp+" of "+@MaxDstamp+" ^000000Dungeons.";
  506. mes "To unlock a dungeon, search for my colleagues.";
  507. mes "You can usually find them near the middle or end of the dungeon.";
  508. return;
  509. }
  510. function script QWS_TownStamps {
  511. set @Tstamp,0;
  512. set @MaxTstamp,30; //maximum number of towns
  513. set @binvalue,1;
  514. set @Tstamploop,0;
  515. do {
  516. if ((@binvalue & ##QWS_T_Unlock) == @binvalue) set @Tstamp,@Tstamp+1;
  517. set @binvalue, @binvalue *2;
  518. set @Tstamploop, @Tstamploop + 1;
  519. } while (@Tstamploop < @MaxTstamp);
  520. return;
  521. }
  522. function script QWS_DungeonStamps {
  523. set @Dstamp,0;
  524. set @MaxDstamp,29; //maximum number of dungeons
  525. set @binvalue,1;
  526. set @Dstamploop,0;
  527. do {
  528. if ((@binvalue & ##QWS_D_Unlock) == @binvalue) set @Dstamp,@Dstamp+1;
  529. set @binvalue, @binvalue *2;
  530. set @Dstamploop, @Dstamploop + 1;
  531. } while (@Dstamploop < @MaxDstamp);
  532. return;
  533. }
  534. //======================Main=Menu=Array============================
  535. function script QWS_MMarray {
  536. // Currently 9 items
  537. 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";
  538. set @Mi,0; // loop counter
  539. set @Mj,0; // menu line counter
  540. //----------------GameMaster-Menu
  541. if (getgmlevel()>= 80) {
  542. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  543. set @Mmenuref[@Mj],@Mi;
  544. set @Mj,@Mj+1;
  545. }
  546. set @Mi,@Mi+1;
  547. //----------------Special-Warp
  548. callfunc "QWS_TownStamps";
  549. callfunc "QWS_DungeonStamps";
  550. if (@Tstamp == @MaxTstamp)&&(@Dstamp == @MaxDstamp)&&($QW_SP_WarpMap$ != "") {
  551. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  552. set @Mmenuref[@Mj],@Mi;
  553. set @Mj,@Mj+1;
  554. }
  555. set @Mi,@Mi+1;
  556. //----------------Town-Warp
  557. if ($QW_TW_OFF == 0) {
  558. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  559. set @Mmenuref[@Mj],@Mi;
  560. set @Mj,@Mj+1;
  561. }
  562. set @Mi,@Mi+1;
  563. //----------------Dungeon-Warp
  564. if ($QW_DW_OFF == 0) {
  565. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  566. set @Mmenuref[@Mj],@Mi;
  567. set @Mj,@Mj+1;
  568. }
  569. set @Mi,@Mi+1;
  570. //----------------Why-So-Few-Warps
  571. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  572. set @Mmenuref[@Mj],@Mi;
  573. set @Mj,@Mj+1;
  574. set @Mi,@Mi+1;
  575. //----------------No-Unlock
  576. if (getarg(0) == 1) {
  577. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  578. set @Mmenuref[@Mj],@Mi;
  579. set @Mj,@Mj+1;
  580. }
  581. set @Mi,@Mi+1;
  582. //----------------Healfull
  583. if ($QW_HF == 1) {
  584. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  585. set @Mmenuref[@Mj],@Mi;
  586. set @Mj,@Mj+1;
  587. }
  588. set @Mi,@Mi+1;
  589. //----------------Healpart
  590. if ($QW_HP == 1) {
  591. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  592. set @Mmenuref[@Mj],@Mi;
  593. set @Mj,@Mj+1;
  594. }
  595. set @Mi,@Mi+1;
  596. //----------------Storage
  597. if ($QW_Stor == 1) {
  598. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  599. set @Mmenuref[@Mj],@Mi;
  600. set @Mj,@Mj+1;
  601. }
  602. set @Mi,@Mi+1;
  603. //----------------GuildStorage
  604. if ($QW_GStor == 1) {
  605. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  606. set @Mmenuref[@Mj],@Mi;
  607. set @Mj,@Mj+1;
  608. }
  609. set @Mi,@Mi+1;
  610. //----------------Cancel
  611. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  612. set @Mmenuref[@Mj],@Mi;
  613. return;
  614. }
  615. //======================Town=Menu=Array============================
  616. // Adding a town:
  617. // setarray @pTmenuitems$[@Ti], "Prontera";// Name of Town shown in Town select Menu
  618. // setarray @pTprice[@Ti], $QW_BW_PRICE; // Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
  619. //
  620. // setarray @pTmap$[@Ti], "prontera"; // Map name
  621. // setarray @pTXcoords[@Ti], 156; // X warp coords
  622. // setarray @pTYcoords[@Ti], 187; // Y warp coords
  623. //
  624. // QWS_Make_Town_Menu 0; // Use a free number (last used is 30, Eclage)
  625. //
  626. // Adding a warpra:
  627. // map,x,y,facing script Warpra#example 113,{
  628. // callfunc "QWS_Town_Warpra",<town number>,"Your Town";
  629. // close;
  630. // }
  631. // Town number is the same as "QWS_Make_Town_Menu".
  632. //==================================================================
  633. function script QWS_Tarray {
  634. function QWS_Make_Town_Menu;
  635. set @Ti,0; // loop counter
  636. set @Tj,0; // menu lines counter
  637. //----------------Prontera
  638. setarray @pTmenuitems$[@Ti], "Prontera";
  639. setarray @pTprice[@Ti], $QW_BW_PRICE;
  640. setarray @pTmap$[@Ti], "prontera";
  641. setarray @pTXcoords[@Ti], 156;
  642. setarray @pTYcoords[@Ti], 187;
  643. QWS_Make_Town_Menu 0;
  644. //----------------Alberta
  645. setarray @pTmenuitems$[@Ti], "Alberta";
  646. setarray @pTprice[@Ti], $QW_BW_PRICE;
  647. setarray @pTmap$[@Ti], "alberta";
  648. setarray @pTXcoords[@Ti], 27;
  649. setarray @pTYcoords[@Ti], 236;
  650. QWS_Make_Town_Menu 1;
  651. //----------------Aldebaran
  652. setarray @pTmenuitems$[@Ti], "Aldebaran";
  653. setarray @pTprice[@Ti], $QW_AW_PRICE;
  654. setarray @pTmap$[@Ti], "aldebaran";
  655. setarray @pTXcoords[@Ti], 145;
  656. setarray @pTYcoords[@Ti], 120;
  657. QWS_Make_Town_Menu 2;
  658. //----------------Amatsu:
  659. setarray @pTmenuitems$[@Ti], "Amatsu";
  660. setarray @pTprice[@Ti], $QW_OW_PRICE;
  661. setarray @pTmap$[@Ti], "amatsu";
  662. setarray @pTXcoords[@Ti], 197;
  663. setarray @pTYcoords[@Ti], 86;
  664. QWS_Make_Town_Menu 3;
  665. //----------------Ayothaya:
  666. setarray @pTmenuitems$[@Ti], "Ayothaya";
  667. setarray @pTprice[@Ti], $QW_OW_PRICE;
  668. setarray @pTmap$[@Ti], "ayothaya";
  669. setarray @pTXcoords[@Ti], 150;
  670. setarray @pTYcoords[@Ti], 57;
  671. QWS_Make_Town_Menu 4;
  672. //----------------Brasilis:
  673. setarray @pTmenuitems$[@Ti], "Brasilis";
  674. setarray @pTprice[@Ti], $QW_OW_PRICE;
  675. setarray @pTmap$[@Ti], "brasilis";
  676. setarray @pTXcoords[@Ti], 195;
  677. setarray @pTYcoords[@Ti], 220;
  678. QWS_Make_Town_Menu 21;
  679. //----------------Comodo:
  680. setarray @pTmenuitems$[@Ti], "Comodo";
  681. setarray @pTprice[@Ti], $QW_AW_PRICE;
  682. setarray @pTmap$[@Ti], "comodo";
  683. setarray @pTXcoords[@Ti], 188;
  684. setarray @pTYcoords[@Ti], 161;
  685. QWS_Make_Town_Menu 5;
  686. //----------------Dewata:
  687. setarray @pTmenuitems$[@Ti], "Dewata";
  688. setarray @pTprice[@Ti], $QW_OW_PRICE;
  689. setarray @pTmap$[@Ti], "dewata";
  690. setarray @pTXcoords[@Ti], 199;
  691. setarray @pTYcoords[@Ti], 179;
  692. QWS_Make_Town_Menu 29;
  693. //----------------Eclage:
  694. setarray @pTmenuitems$[@Ti], "Eclage";
  695. setarray @pTprice[@Ti], $QW_OW_PRICE;
  696. setarray @pTmap$[@Ti], "eclage";
  697. setarray @pTXcoords[@Ti], 111;
  698. setarray @pTYcoords[@Ti], 39;
  699. QWS_Make_Town_Menu 30;
  700. //----------------Einbech:
  701. setarray @pTmenuitems$[@Ti], "Einbech";
  702. setarray @pTprice[@Ti], $QW_AW_PRICE;
  703. setarray @pTmap$[@Ti], "einbech";
  704. setarray @pTXcoords[@Ti], 172;
  705. setarray @pTYcoords[@Ti], 126;
  706. QWS_Make_Town_Menu 6;
  707. //----------------Einbroch:
  708. setarray @pTmenuitems$[@Ti], "Einbroch";
  709. setarray @pTprice[@Ti], $QW_AW_PRICE;
  710. setarray @pTmap$[@Ti], "einbroch";
  711. setarray @pTXcoords[@Ti], 230;
  712. setarray @pTYcoords[@Ti], 191;
  713. QWS_Make_Town_Menu 7;
  714. //----------------El Dicastes:
  715. setarray @pTmenuitems$[@Ti], "El Dicastes";
  716. setarray @pTprice[@Ti], $QW_OW_PRICE;
  717. setarray @pTmap$[@Ti], "dicastes01";
  718. setarray @pTXcoords[@Ti], 197;
  719. setarray @pTYcoords[@Ti], 187;
  720. QWS_Make_Town_Menu 22;
  721. //----------------Geffen:
  722. setarray @pTmenuitems$[@Ti], "Geffen";
  723. setarray @pTprice[@Ti], $QW_BW_PRICE;
  724. setarray @pTmap$[@Ti], "geffen";
  725. setarray @pTXcoords[@Ti], 119;
  726. setarray @pTYcoords[@Ti], 66;
  727. QWS_Make_Town_Menu 8;
  728. //----------------Gonryun:
  729. setarray @pTmenuitems$[@Ti], "Gonryun";
  730. setarray @pTprice[@Ti], $QW_OW_PRICE;
  731. setarray @pTmap$[@Ti], "gonryun";
  732. setarray @pTXcoords[@Ti], 150;
  733. setarray @pTYcoords[@Ti], 130;
  734. QWS_Make_Town_Menu 9;
  735. //----------------Hugel:
  736. setarray @pTmenuitems$[@Ti], "Hugel";
  737. setarray @pTprice[@Ti], $QW_AW_PRICE;
  738. setarray @pTmap$[@Ti], "hugel";
  739. setarray @pTXcoords[@Ti], 95;
  740. setarray @pTYcoords[@Ti], 121;
  741. QWS_Make_Town_Menu 10;
  742. //----------------Izlude:
  743. setarray @pTmenuitems$[@Ti], "Izlude";
  744. setarray @pTprice[@Ti], $QW_BW_PRICE;
  745. setarray @pTmap$[@Ti], "izlude";
  746. setarray @pTXcoords[@Ti], 128;
  747. setarray @pTYcoords[@Ti], 111;
  748. QWS_Make_Town_Menu 11;
  749. //----------------Jawaii:
  750. setarray @pTmenuitems$[@Ti], "Jawaii";
  751. setarray @pTprice[@Ti], $QW_AW_PRICE;
  752. setarray @pTmap$[@Ti], "jawaii";
  753. setarray @pTXcoords[@Ti], 243;
  754. setarray @pTYcoords[@Ti], 115;
  755. QWS_Make_Town_Menu 12;
  756. //----------------Lighthalzen:
  757. setarray @pTmenuitems$[@Ti], "Lighthalzen";
  758. setarray @pTprice[@Ti], $QW_AW_PRICE;
  759. setarray @pTmap$[@Ti], "lighthalzen";
  760. setarray @pTXcoords[@Ti], 158;
  761. setarray @pTYcoords[@Ti], 110;
  762. QWS_Make_Town_Menu 13;
  763. //----------------Louyang:
  764. setarray @pTmenuitems$[@Ti], "Louyang";
  765. setarray @pTprice[@Ti], $QW_OW_PRICE;
  766. setarray @pTmap$[@Ti], "louyang";
  767. setarray @pTXcoords[@Ti], 210;
  768. setarray @pTYcoords[@Ti], 108;
  769. QWS_Make_Town_Menu 14;
  770. //----------------Lutie
  771. setarray @pTmenuitems$[@Ti], "Lutie";
  772. setarray @pTprice[@Ti], $QW_AW_PRICE;
  773. setarray @pTmap$[@Ti], "xmas";
  774. setarray @pTXcoords[@Ti], 148;
  775. setarray @pTYcoords[@Ti], 131;
  776. QWS_Make_Town_Menu 15;
  777. //----------------Manuk
  778. setarray @pTmenuitems$[@Ti], "Manuk";
  779. setarray @pTprice[@Ti], $QW_OW_PRICE;
  780. setarray @pTmap$[@Ti], "manuk";
  781. setarray @pTXcoords[@Ti], 260;
  782. setarray @pTYcoords[@Ti], 175;
  783. QWS_Make_Town_Menu 23;
  784. //----------------Mora
  785. setarray @pTmenuitems$[@Ti], "Mora";
  786. setarray @pTprice[@Ti], $QW_OW_PRICE;
  787. setarray @pTmap$[@Ti], "mora";
  788. setarray @pTXcoords[@Ti], 111;
  789. setarray @pTYcoords[@Ti], 97;
  790. QWS_Make_Town_Menu 24;
  791. //----------------Morroc:
  792. setarray @pTmenuitems$[@Ti], "Morroc";
  793. setarray @pTprice[@Ti], $QW_BW_PRICE;
  794. setarray @pTmap$[@Ti], "morocc";
  795. setarray @pTXcoords[@Ti], 159;
  796. setarray @pTYcoords[@Ti], 93;
  797. QWS_Make_Town_Menu 16;
  798. //----------------Moscovia
  799. setarray @pTmenuitems$[@Ti], "Moscovia";
  800. setarray @pTprice[@Ti], $QW_OW_PRICE;
  801. setarray @pTmap$[@Ti], "moscovia";
  802. setarray @pTXcoords[@Ti], 219;
  803. setarray @pTYcoords[@Ti], 193;
  804. QWS_Make_Town_Menu 25;
  805. //----------------Niflheim:
  806. setarray @pTmenuitems$[@Ti], "Niflheim";
  807. setarray @pTprice[@Ti], $QW_AW_PRICE;
  808. setarray @pTmap$[@Ti], "niflheim";
  809. setarray @pTXcoords[@Ti], 195;
  810. setarray @pTYcoords[@Ti], 186;
  811. QWS_Make_Town_Menu 17;
  812. //----------------Payon:
  813. setarray @pTmenuitems$[@Ti], "Payon";
  814. setarray @pTprice[@Ti], $QW_BW_PRICE;
  815. setarray @pTmap$[@Ti], "payon";
  816. setarray @pTXcoords[@Ti], 152;
  817. setarray @pTYcoords[@Ti], 75;
  818. QWS_Make_Town_Menu 18;
  819. //----------------Rachel
  820. setarray @pTmenuitems$[@Ti], "Rachel";
  821. setarray @pTprice[@Ti], $QW_AW_PRICE;
  822. setarray @pTmap$[@Ti], "rachel";
  823. setarray @pTXcoords[@Ti], 130;
  824. setarray @pTYcoords[@Ti], 111;
  825. QWS_Make_Town_Menu 26;
  826. //----------------Splendide
  827. setarray @pTmenuitems$[@Ti], "Splendide";
  828. setarray @pTprice[@Ti], $QW_OW_PRICE;
  829. setarray @pTmap$[@Ti], "splendide";
  830. setarray @pTXcoords[@Ti], 200;
  831. setarray @pTYcoords[@Ti], 153;
  832. QWS_Make_Town_Menu 27;
  833. //----------------Umbala:
  834. setarray @pTmenuitems$[@Ti], "Umbala";
  835. setarray @pTprice[@Ti], $QW_AW_PRICE;
  836. setarray @pTmap$[@Ti], "umbala";
  837. setarray @pTXcoords[@Ti], 130;
  838. setarray @pTYcoords[@Ti], 130;
  839. QWS_Make_Town_Menu 19;
  840. //----------------Veins
  841. setarray @pTmenuitems$[@Ti], "Veins";
  842. setarray @pTprice[@Ti], $QW_OW_PRICE;
  843. setarray @pTmap$[@Ti], "veins";
  844. setarray @pTXcoords[@Ti], 216;
  845. setarray @pTYcoords[@Ti], 123;
  846. QWS_Make_Town_Menu 28;
  847. //----------------Yuno:
  848. setarray @pTmenuitems$[@Ti], "Yuno";
  849. setarray @pTprice[@Ti], $QW_AW_PRICE;
  850. setarray @pTmap$[@Ti], "yuno";
  851. setarray @pTXcoords[@Ti], 160;
  852. setarray @pTYcoords[@Ti], 168;
  853. QWS_Make_Town_Menu 20;
  854. //----------------Cancel
  855. setarray @pTmenuitems$[@Ti], "Cancel";
  856. setarray @pTprice[@Ti], 0;
  857. set @Tmenulist$[@Tj],@pTmenuitems$[@Ti];
  858. set @Tmenuref[@Tj],57005; // 57005='dead' in hex
  859. return;
  860. //----------------Make Town Menu Function
  861. function QWS_Make_Town_Menu {
  862. set @temptownmenubin,1;
  863. if (getarg(0) == 0) goto menu_item;
  864. set @templooptownmenu,0;
  865. do {
  866. set @temptownmenubin, @temptownmenubin * 2;
  867. set @templooptownmenu, @templooptownmenu + 1;
  868. }while (getarg(0) > @templooptownmenu);
  869. // check marker and make menu item
  870. menu_item:
  871. if ((@temptownmenubin & ##QWS_T_Unlock) != @temptownmenubin) {
  872. set @Ti,@Ti+1;
  873. return;
  874. }
  875. if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  876. if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  877. if (@pTprice[@Ti] != 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]"+" -> "+@pTprice[@Ti];
  878. if (@pTprice[@Ti] == 0)&&($QW_MapUserShow == 1) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" ["+getmapusers(@pTmap$[@Ti])+"]";
  879. set @Tmenuref[@Tj],@Ti;
  880. set @Tj,@Tj+1;
  881. set @Ti,@Ti+1;
  882. return;
  883. }
  884. }
  885. //====================Dungeon=Menu=Arrays==========================
  886. // Adding a dungeon:
  887. // setarray @pDmenuitems$[@Di], "Abyss Lake"; // Name of Dungeon shown in Dungeon select Menu
  888. // setarray @pDprice[@Di], $QW_AW_PRICE; // Warp prices: Basic ($QW_BW_PRICE), Advanced ($QW_AW_PRICE), Overseas ($QW_OW_PRICE)
  889. // setarray @pDfee$[@Di], "$QW_AW_FEE"; // Identifier for fee caluclation: Basic ("$QW_BW_FEE"), Advanced ("$QW_AW_FEE"), Overseas ("$QW_OW_FEE")
  890. // setarray @DLevels[@Di], 3; // Number of levels in dungeon
  891. //
  892. // setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03"; // Map names of dungeon levels
  893. // setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3"; // Name of dungeon levels shown in Menu
  894. // setarray @DXcoords[@Dref], 265, 275, 116; // X warp coords
  895. // setarray @DYcoords[@Dref], 273, 270, 27; // Y warp coords
  896. // setarray @DDepth[@Dref], 0, 1, 2; // Relative depth to entrance, to calculate extra warp fee
  897. //
  898. // QWS_Make_Dungeon_Menu 0; // Use a free number (last used is 28, Kiel Dungeon)
  899. //
  900. // Adding a warpra:
  901. // map,x,y,facing script Warpra Helper#example 112,{
  902. // callfunc "QWS_Dungeon_Warpra",<dungeon number>,"Your Dungeon";
  903. // close;
  904. // }
  905. // Dungeon number is the same as "QWS_Make_Dungeon_Menu".
  906. //==================================================================
  907. function script QWS_Darray {
  908. function QWS_Make_Dungeon_Menu;
  909. set @Di,0;
  910. set @Dj,0;
  911. set @Dref,0;
  912. //----------------ABYSS LAKE
  913. setarray @pDmenuitems$[@Di], "Abyss Lake";
  914. setarray @pDprice[@Di], $QW_AW_PRICE;
  915. setarray @pDfee$[@Di], "$QW_AW_FEE";
  916. setarray @DLevels[@Di], 3;
  917. setarray @DGat$[@Dref], "abyss_01", "abyss_02", "abyss_03";
  918. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  919. setarray @DXcoords[@Dref], 265, 275, 116;
  920. setarray @DYcoords[@Dref], 273, 270, 27;
  921. setarray @DDepth[@Dref], 0, 1, 2;
  922. QWS_Make_Dungeon_Menu 0;
  923. //----------------AMATSU DUNGEON
  924. setarray @pDmenuitems$[@Di], "Amatsu Dungeon";
  925. setarray @pDprice[@Di], $QW_OW_PRICE;
  926. setarray @pDfee$[@Di], "$QW_OW_FEE";
  927. setarray @DLevels[@Di], 3;
  928. setarray @DGat$[@Dref], "ama_dun01", "ama_dun02", "ama_dun03";
  929. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  930. setarray @DXcoords[@Dref], 227, 32, 119;
  931. setarray @DYcoords[@Dref], 10, 43, 15;
  932. setarray @DDepth[@Dref], 0, 1, 2;
  933. QWS_Make_Dungeon_Menu 1;
  934. //----------------ANT HELL
  935. setarray @pDmenuitems$[@Di], "Ant Hell Dungeon";
  936. setarray @pDprice[@Di], $QW_BW_PRICE;
  937. setarray @pDfee$[@Di], "$QW_BW_FEE";
  938. setarray @DLevels[2], 2;
  939. setarray @DGat$[@Dref], "anthell01", "anthell02";
  940. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  941. setarray @DXcoords[@Dref], 32, 34;
  942. setarray @DYcoords[@Dref], 262, 263;
  943. setarray @DDepth[@Dref], 0, 1;
  944. QWS_Make_Dungeon_Menu 2;
  945. //----------------AYOTAYA
  946. setarray @pDmenuitems$[@Di], "Ayotaya Dungeon";
  947. setarray @pDprice[@Di], $QW_OW_PRICE;
  948. setarray @pDfee$[@Di], "$QW_OW_FEE";
  949. setarray @DLevels[3], 2;
  950. setarray @DGat$[@Dref], "ayo_dun01", "ayo_dun02";
  951. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  952. setarray @DXcoords[@Dref], 275, 150;
  953. setarray @DYcoords[@Dref], 17, 13;
  954. setarray @DDepth[@Dref], 0, 1;
  955. QWS_Make_Dungeon_Menu 3;
  956. //----------------BYALAN
  957. setarray @pDmenuitems$[@Di], "Byalan Dungeon";
  958. setarray @pDprice[@Di], $QW_BW_PRICE;
  959. setarray @pDfee$[@Di], "$QW_BW_FEE";
  960. setarray @DLevels[4], 5;
  961. setarray @DGat$[@Dref], "iz_dun00", "iz_dun01", "iz_dun02", "iz_dun03", "iz_dun04";
  962. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  963. setarray @DXcoords[@Dref], 168, 41, 236, 32, 26;
  964. setarray @DYcoords[@Dref], 168, 37, 204, 63, 27;
  965. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  966. QWS_Make_Dungeon_Menu 4;
  967. //----------------CLOCK TOWER
  968. setarray @pDmenuitems$[@Di], "Clock Tower Dungeon";
  969. setarray @pDprice[@Di], $QW_AW_PRICE;
  970. setarray @pDfee$[@Di], "$QW_AW_FEE";
  971. setarray @DLevels[5], 8;
  972. setarray @DGat$[@Dref], "c_tower1", "c_tower2", "c_tower3", "c_tower4", "alde_dun01", "alde_dun02", "alde_dun03", "alde_dun04";
  973. 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";
  974. setarray @DXcoords[@Dref], 200, 268, 64, 32, 197, 262, 276, 122;
  975. setarray @DYcoords[@Dref], 163, 26, 148, 63, 25, 41, 53, 125;
  976. setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2, 3, 4;
  977. QWS_Make_Dungeon_Menu 5;
  978. //----------------COAL MINE
  979. setarray @pDmenuitems$[@Di], "Coal Mine Dungeon";
  980. setarray @pDprice[@Di], $QW_AW_PRICE;
  981. setarray @pDfee$[@Di], "$QW_AW_FEE";
  982. setarray @DLevels[6], 3;
  983. setarray @DGat$[@Dref], "mjo_dun01", "mjo_dun02", "mjo_dun03";
  984. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  985. setarray @DXcoords[@Dref], 52, 381, 302;
  986. setarray @DYcoords[@Dref], 17, 343, 261;
  987. setarray @DDepth[@Dref], 0, 1, 2;
  988. QWS_Make_Dungeon_Menu 6;
  989. //----------------CULVERT
  990. setarray @pDmenuitems$[@Di], "Culvert Dungeon";
  991. setarray @pDprice[@Di], $QW_BW_PRICE;
  992. setarray @pDfee$[@Di], "$QW_BW_FEE";
  993. setarray @DLevels[7], 4;
  994. setarray @DGat$[@Dref], "prt_sewb1", "prt_sewb2", "prt_sewb3", "prt_sewb4";
  995. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  996. setarray @DXcoords[@Dref], 132, 19, 180, 100;
  997. setarray @DYcoords[@Dref], 248, 19, 169, 92;
  998. setarray @DDepth[@Dref], 0, 1, 2, 3;
  999. QWS_Make_Dungeon_Menu 7;
  1000. //----------------EINBECH DUNGEON
  1001. setarray @pDmenuitems$[@Di], "Einbech Dungeon";
  1002. setarray @pDprice[@Di], $QW_AW_PRICE;
  1003. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1004. setarray @DLevels[8], 2;
  1005. setarray @DGat$[@Dref], "ein_dun01", "ein_dun02";
  1006. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1007. setarray @DXcoords[@Dref], 22, 292;
  1008. setarray @DYcoords[@Dref], 14, 290;
  1009. setarray @DDepth[@Dref], 0, 1;
  1010. QWS_Make_Dungeon_Menu 8;
  1011. //----------------GEFENIA DUNGEON
  1012. setarray @pDmenuitems$[@Di], "Gefenia Dungeon";
  1013. setarray @pDprice[@Di], $QW_BW_PRICE;
  1014. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1015. setarray @DLevels[9], 4;
  1016. setarray @DGat$[@Dref], "gefenia01", "gefenia02", "gefenia03", "gefenia04";
  1017. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  1018. setarray @DXcoords[@Dref], 59, 201, 264, 33;
  1019. setarray @DYcoords[@Dref], 167, 35, 236, 270;
  1020. setarray @DDepth[@Dref], 0, 1, 2, 3;
  1021. QWS_Make_Dungeon_Menu 9;
  1022. //----------------GEFFEN DUNGEON
  1023. setarray @pDmenuitems$[@Di], "Geffen Dungeon";
  1024. setarray @pDprice[@Di], $QW_BW_PRICE;
  1025. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1026. setarray @DLevels[@Di], 4;
  1027. setarray @DGat$[@Dref], "gef_dun00", "gef_dun01", "gef_dun02", "gef_dun03";
  1028. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4";
  1029. setarray @DXcoords[@Dref], 104, 115, 106, 203;
  1030. setarray @DYcoords[@Dref], 100, 236, 132, 200;
  1031. setarray @DDepth[@Dref], 0, 1, 2, 3;
  1032. QWS_Make_Dungeon_Menu 10;
  1033. //----------------GLAST HEIM
  1034. setarray @pDmenuitems$[@Di], "Glast Heim Dungeon";
  1035. setarray @pDprice[@Di], $QW_BW_PRICE;
  1036. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1037. setarray @DLevels[@Di], 17;
  1038. 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";
  1039. 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";
  1040. setarray @DXcoords[@Dref], 370, 156, 147, 121, 199, 104, 150, 157, 14, 150, 117, 258, 108, 171, 68, 133, 224;
  1041. setarray @DYcoords[@Dref], 300, 8, 15, 59, 29, 25, 10, 287, 70, 14, 124, 255, 291, 273, 277, 271, 274;
  1042. setarray @DDepth[@Dref], 0, 1, 2, 1, 1, 2, 1, 2, 2, 3, 1, 4, 2, 3, 4, 5, 6;
  1043. QWS_Make_Dungeon_Menu 11;
  1044. //----------------GONRYUN DUNGEON
  1045. setarray @pDmenuitems$[@Di], "Gonryun Dungeon";
  1046. setarray @pDprice[@Di], $QW_OW_PRICE;
  1047. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1048. setarray @DLevels[@Di], 3;
  1049. setarray @DGat$[@Dref], "gon_dun01", "gon_dun02", "gon_dun03";
  1050. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1051. setarray @DXcoords[@Dref], 143, 17, 68;
  1052. setarray @DYcoords[@Dref], 59, 114, 9;
  1053. setarray @DDepth[@Dref], 0, 1, 2;
  1054. QWS_Make_Dungeon_Menu 12;
  1055. //----------------HIDDEN DUNGEON
  1056. setarray @pDmenuitems$[@Di], "Hidden Dungeon";
  1057. setarray @pDprice[@Di], $QW_BW_PRICE;
  1058. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1059. setarray @DLevels[@Di], 3;
  1060. setarray @DGat$[@Dref], "prt_maze01", "prt_maze02", "prt_maze03";
  1061. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1062. setarray @DXcoords[@Dref], 176, 94, 23;
  1063. setarray @DYcoords[@Dref], 6, 19, 8;
  1064. setarray @DDepth[@Dref], 0, 1, 2;
  1065. QWS_Make_Dungeon_Menu 13;
  1066. //----------------JUPEROS CAVE
  1067. setarray @pDmenuitems$[@Di], "Juperos Cave";
  1068. setarray @pDprice[@Di], $QW_AW_PRICE;
  1069. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1070. setarray @DLevels[@Di], 2;
  1071. setarray @DGat$[@Dref], "juperos_01", "juperos_02";
  1072. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1073. setarray @DXcoords[@Dref], 53, 36;
  1074. setarray @DYcoords[@Dref], 247, 60;
  1075. setarray @DDepth[@Dref], 0, 1;
  1076. QWS_Make_Dungeon_Menu 14;
  1077. //----------------KIEL DUNGEON
  1078. setarray @pDmenuitems$[@Di], "Kiel Dungeon";
  1079. setarray @pDprice[@Di], $QW_AW_PRICE;
  1080. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1081. setarray @DLevels[@Di], 2;
  1082. setarray @DGat$[@Dref], "kh_dun01", "kh_dun02";
  1083. setarray @DLevelName$[@Dref], "1st Floor", "2nd Floor";
  1084. setarray @DXcoords[@Dref], 63, 42;
  1085. setarray @DYcoords[@Dref], 10, 197;
  1086. setarray @DDepth[@Dref], 0, 1;
  1087. QWS_Make_Dungeon_Menu 28;
  1088. //----------------LIGHTHALZEN BIO LAB
  1089. setarray @pDmenuitems$[@Di], "Lighthalzen Bio Lab";
  1090. setarray @pDprice[@Di], $QW_AW_PRICE;
  1091. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1092. setarray @DLevels[@Di], 3;
  1093. setarray @DGat$[@Dref], "lhz_dun01", "lhz_dun02", "lhz_dun03";
  1094. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3";
  1095. setarray @DXcoords[@Dref], 150, 150, 140;
  1096. setarray @DYcoords[@Dref], 287, 18, 137;
  1097. setarray @DDepth[@Dref], 0, 1, 2;
  1098. QWS_Make_Dungeon_Menu 15;
  1099. //----------------LOUYANG DUNGEON
  1100. setarray @pDmenuitems$[@Di], "Louyang Dungeon";
  1101. setarray @pDprice[@Di], $QW_OW_PRICE;
  1102. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1103. setarray @DLevels[@Di], 2;
  1104. setarray @DGat$[@Dref], "lou_dun02", "lou_dun03";
  1105. setarray @DLevelName$[@Dref], "Royal Tomb Level 1", "Royal Tomb Level 2";
  1106. setarray @DXcoords[@Dref], 282, 165;
  1107. setarray @DYcoords[@Dref], 20, 38;
  1108. setarray @DDepth[@Dref], 0, 1;
  1109. QWS_Make_Dungeon_Menu 16;
  1110. //----------------MAGMA DUNGEON
  1111. setarray @pDmenuitems$[@Di], "Magma Dungeon";
  1112. setarray @pDprice[@Di], $QW_AW_PRICE;
  1113. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1114. setarray @DLevels[@Di], 2;
  1115. setarray @DGat$[@Dref], "mag_dun01", "mag_dun02";
  1116. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1117. setarray @DXcoords[@Dref], 126, 47;
  1118. setarray @DYcoords[@Dref], 69, 32;
  1119. setarray @DDepth[@Dref], 0, 1;
  1120. QWS_Make_Dungeon_Menu 17;
  1121. //----------------ODIN TEMPLE
  1122. setarray @pDmenuitems$[@Di], "Odin Temple";
  1123. setarray @pDprice[@Di], $QW_AW_PRICE;
  1124. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1125. setarray @DLevels[@Di], 1;
  1126. setarray @DGat$[@Dref], "odin_tem01";
  1127. setarray @DLevelName$[@Dref], "Level 1";
  1128. setarray @DXcoords[@Dref], 96;
  1129. setarray @DYcoords[@Dref], 145;
  1130. setarray @DDepth[@Dref], 0;
  1131. QWS_Make_Dungeon_Menu 18;
  1132. //----------------ORC DUNGEON
  1133. setarray @pDmenuitems$[@Di], "Orc Dungeon";
  1134. setarray @pDprice[@Di], $QW_BW_PRICE;
  1135. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1136. setarray @DLevels[@Di], 2;
  1137. setarray @DGat$[@Dref], "orcsdun01", "orcsdun02";
  1138. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1139. setarray @DXcoords[@Dref], 32, 21;
  1140. setarray @DYcoords[@Dref], 169, 185;
  1141. setarray @DDepth[@Dref], 0, 1;
  1142. QWS_Make_Dungeon_Menu 19;
  1143. //----------------PAYON DUNGEON
  1144. setarray @pDmenuitems$[@Di], "Payon Dungeon";
  1145. setarray @pDprice[@Di], $QW_BW_PRICE;
  1146. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1147. setarray @DLevels[@Di], 5;
  1148. setarray @DGat$[@Dref], "pay_dun00", "pay_dun01", "pay_dun02", "pay_dun03", "pay_dun04";
  1149. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  1150. setarray @DXcoords[@Dref], 22, 19, 19, 155, 201;
  1151. setarray @DYcoords[@Dref], 180, 33, 63, 159, 204;
  1152. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  1153. QWS_Make_Dungeon_Menu 20;
  1154. //----------------PYRAMIDS
  1155. setarray @pDmenuitems$[@Di], "Pyramids Dungeon";
  1156. setarray @pDprice[@Di], $QW_BW_PRICE;
  1157. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1158. setarray @DLevels[@Di], 6;
  1159. setarray @DGat$[@Dref], "moc_pryd01", "moc_pryd02", "moc_pryd03", "moc_pryd04", "moc_pryd05", "moc_pryd06";
  1160. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Basement 1", "Basement 2";
  1161. setarray @DXcoords[@Dref], 192, 10, 100, 181, 94, 192;
  1162. setarray @DYcoords[@Dref], 9, 192, 92, 11, 96, 8;
  1163. setarray @DDepth[@Dref], 0, 1, 2, 3, 1, 2;
  1164. QWS_Make_Dungeon_Menu 21;
  1165. //----------------SPHINX
  1166. setarray @pDmenuitems$[@Di], "Sphinx Dungeon";
  1167. setarray @pDprice[@Di], $QW_BW_PRICE;
  1168. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1169. setarray @DLevels[@Di], 5;
  1170. setarray @DGat$[@Dref], "in_sphinx1", "in_sphinx2", "in_sphinx3", "in_sphinx4", "in_sphinx5";
  1171. setarray @DLevelName$[@Dref], "Level 1", "Level 2", "Level 3", "Level 4", "Level 5";
  1172. setarray @DXcoords[@Dref], 192, 149, 210, 10, 100;
  1173. setarray @DYcoords[@Dref], 9, 81, 54, 222, 99;
  1174. setarray @DDepth[@Dref], 0, 1, 2, 3, 4;
  1175. QWS_Make_Dungeon_Menu 22;
  1176. //----------------SUNKEN SHIP
  1177. setarray @pDmenuitems$[@Di], "Sunken Ship Dungeon";
  1178. setarray @pDprice[@Di], $QW_BW_PRICE;
  1179. setarray @pDfee$[@Di], "$QW_BW_FEE";
  1180. setarray @DLevels[@Di], 2;
  1181. setarray @DGat$[@Dref], "treasure01", "treasure02";
  1182. setarray @DLevelName$[@Dref], "Level 1", "Level 2";
  1183. setarray @DXcoords[@Dref], 69, 102;
  1184. setarray @DYcoords[@Dref], 24, 27;
  1185. setarray @DDepth[@Dref], 0, 1;
  1186. QWS_Make_Dungeon_Menu 23;
  1187. //----------------THANATOS TOWER
  1188. setarray @pDmenuitems$[@Di], "Thanatos Tower";
  1189. setarray @pDprice[@Di], $QW_AW_PRICE;
  1190. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1191. setarray @DLevels[@Di], 13;
  1192. 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";
  1193. 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";
  1194. setarray @DXcoords[@Dref], 150, 150, 220, 59, 62, 206, 35, 105, 88, 168, 90, 129, 85;
  1195. setarray @DYcoords[@Dref], 35, 136, 158, 143, 11, 8, 166, 44, 145, 138, 36, 83, 76;
  1196. setarray @DDepth[@Dref], 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
  1197. QWS_Make_Dungeon_Menu 24;
  1198. //----------------TOY FACTORY
  1199. setarray @pDmenuitems$[@Di], "Toy Factory Dungeon";
  1200. setarray @pDprice[@Di], $QW_AW_PRICE;
  1201. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1202. setarray @DLevels[@Di], 2;
  1203. setarray @DGat$[@Dref], "xmas_dun01", "xmas_dun02";
  1204. setarray @DLevelName$[@Dref], "Factory Warehouse", "Classifying Room";
  1205. setarray @DXcoords[@Dref], 205, 129;
  1206. setarray @DYcoords[@Dref], 16, 133;
  1207. setarray @DDepth[@Dref], 0, 1;
  1208. QWS_Make_Dungeon_Menu 25;
  1209. //----------------TURTLE ISTLAND
  1210. setarray @pDmenuitems$[@Di], "Turtle Island Dungeon";
  1211. setarray @pDprice[@Di], $QW_AW_PRICE;
  1212. setarray @pDfee$[@Di], "$QW_AW_FEE";
  1213. setarray @DLevels[@Di], 4;
  1214. setarray @DGat$[@Dref], "tur_dun01", "tur_dun02", "tur_dun03", "tur_dun04";
  1215. setarray @DLevelName$[@Dref], "Outside", "Level 1", "Level 2", "Level 3";
  1216. setarray @DXcoords[@Dref], 161, 148, 132, 100;
  1217. setarray @DYcoords[@Dref], 34, 256, 190, 192;
  1218. setarray @DDepth[@Dref], 0, 0, 1, 2;
  1219. QWS_Make_Dungeon_Menu 26;
  1220. //----------------UMBALA
  1221. setarray @pDmenuitems$[@Di], "Umbala Dungeon";
  1222. setarray @pDprice[@Di], $QW_OW_PRICE;
  1223. setarray @pDfee$[@Di], "$QW_OW_FEE";
  1224. setarray @DLevels[@Di], 3;
  1225. setarray @DGat$[@Dref], "um_dun01", "um_dun02", "yggdrasil01";
  1226. setarray @DLevelName$[@Dref], "Carpenter's Shop in The Tree", "Passage to a Foreign World", "Hvergelmir's Fountain";
  1227. setarray @DXcoords[@Dref], 205, 48, 40;
  1228. setarray @DYcoords[@Dref], 26, 30, 63;
  1229. setarray @DDepth[@Dref], 0, 1, 2;
  1230. QWS_Make_Dungeon_Menu 27;
  1231. //----------------Cancel
  1232. setarray @pDmenuitems$[@Di], "Cancel";
  1233. setarray @pDprice[@Di], 0;
  1234. set @Dmenulist$[@Dj],@pDmenuitems$[@Di];
  1235. set @Dmenuref[@Dj],57005; // 57005='dead' in hex
  1236. return;
  1237. //----------------Make Dungeon Menu Function
  1238. function QWS_Make_Dungeon_Menu {
  1239. set @tempdungeonmenubin,1;
  1240. if (getarg(0) == 0) goto menu_item;
  1241. set @temploopdungeonmenu,0;
  1242. do {
  1243. set @tempdungeonmenubin, @tempdungeonmenubin * 2;
  1244. set @temploopdungeonmenu, @temploopdungeonmenu + 1;
  1245. }while (getarg(0) > @temploopdungeonmenu);
  1246. // check marker and make menu item
  1247. menu_item:
  1248. if ((@tempdungeonmenubin & ##QWS_D_Unlock) != @tempdungeonmenubin) {
  1249. setarray @DLocRef[@Di], @Dref;
  1250. set @Dref, @Dref+@DLevels[@Di];
  1251. set @Di,@Di+1;
  1252. return;
  1253. }
  1254. if ($QW_MapUserShow == 1) {
  1255. set @tempmapusers,0;
  1256. set @mapusersloop,0;
  1257. do {
  1258. set @tempmapusers,(getmapusers(@DGat$[@Dref+@mapusersloop]) + @tempmapusers);
  1259. set @mapusersloop, (@mapusersloop + 1);
  1260. } while (@DLevels[@Di] > @mapusersloop);
  1261. if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"] -> "+@pDprice[@Di];
  1262. if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" ["+@tempmapusers+"]";
  1263. set @Dmenuref[@Dj],@Di;
  1264. set @Dj,@Dj+1;
  1265. setarray @DLocRef[@Di], @Dref;
  1266. set @Dref, @Dref+@DLevels[@Di];
  1267. set @Di,@Di+1;
  1268. return;
  1269. }
  1270. if (@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1271. if (@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1272. set @Dmenuref[@Dj],@Di;
  1273. set @Dj,@Dj+1;
  1274. setarray @DLocRef[@Di], @Dref;
  1275. set @Dref, @Dref+@DLevels[@Di];
  1276. set @Di,@Di+1;
  1277. return;
  1278. }
  1279. }
  1280. function script QWS_DLarray {
  1281. //----------------Start building Menu
  1282. set @DWref,@DLocRef[@DwarpMenu]; // reference to the arrays with leveldata
  1283. set @DWi,0; // loop counter
  1284. set @DWj,0; // menu lines counter
  1285. cleararray @DWLmenulist$[0],"",20; // Clearing the array to get rid off ghost items in menu
  1286. do {
  1287. if ($QW_DL == 0)||($QW_DDL >= @DDepth[@DWref]) {
  1288. set @warpprice, (@pDprice[@DwarpMenu]+ (getd(@pDfee$[@DwarpMenu])*@DDepth[@DWref]));
  1289. if (@warpprice != 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" -> "+@warpprice;
  1290. if (@warpprice == 0)&&($QW_MapUserShow == 0) set @DWLmenulist$[@DWj], @DLevelName$[@DWref];
  1291. if (@warpprice != 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"] -> "+@warpprice;
  1292. if (@warpprice == 0)&&($QW_MapUserShow == 1) set @DWLmenulist$[@DWj], @DLevelName$[@DWref]+" ["+getmapusers(@DGat$[@DWref])+"]";
  1293. set @DWLmenuref[@DWj],@DWref;
  1294. set @DWj,@DWj+1;
  1295. }
  1296. set @DWref, @DWref+1;
  1297. set @DWi,@DWi+1;
  1298. } while (@DWi < @DLevels[@DwarpMenu]);
  1299. set @DWLmenulist$[@DWj], "Exit";
  1300. set @DWLmenuref[@DWj],57005; // 57005='dead' in hex
  1301. return;
  1302. }
  1303. //================Dungeon=Warpras=That=Only=Unlock=================
  1304. function script QWS_Dungeon_Warpra {
  1305. function QWS_D_getbin;
  1306. function QWS_D_setbin;
  1307. if ((QWS_D_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
  1308. mes "[Warpra]";
  1309. mes getarg(1)+" unlocked!";
  1310. QWS_D_setbin(getarg(0));
  1311. return;
  1312. } else if (QWS_D_getbin(getarg(0)) == 1) {
  1313. mes "[Warpra]";
  1314. mes "Sorry, I can only unlock this location.";
  1315. } else
  1316. debugmes "QWS_Dungeon_Warpra error, improper syntax?";
  1317. return;
  1318. function QWS_D_setbin {
  1319. set @tempsetbindata,1;
  1320. if (getarg(0) == 0) goto binset;
  1321. set @temploopsetbin,0;
  1322. do {
  1323. set @tempsetbindata, @tempsetbindata * 2;
  1324. set @temploopsetbin, @temploopsetbin + 1;
  1325. } while (getarg(0) > @temploopsetbin);
  1326. binset:
  1327. set ##QWS_D_Unlock,(##QWS_D_Unlock | @tempsetbindata);
  1328. return;
  1329. }
  1330. function QWS_D_getbin {
  1331. set @tempgetbindata,1;
  1332. if (getarg(0) == 0) goto binget;
  1333. set @temploopgetbin,0;
  1334. do {
  1335. set @tempgetbindata, @tempgetbindata * 2;
  1336. set @temploopgetbin, @temploopgetbin + 1;
  1337. } while (getarg(0) > @temploopgetbin);
  1338. binget:
  1339. if ((@tempgetbindata & ##QWS_D_Unlock) == @tempgetbindata) return 1;
  1340. return 0;
  1341. }
  1342. }
  1343. //==========================Town=Warpras===========================
  1344. function script QWS_Town_Warpra {
  1345. function QWS_T_getbin;
  1346. function QWS_T_setbin;
  1347. if ((QWS_T_getbin(getarg(0)) == 0) && (getarg(1) != "")) {
  1348. mes "[Warpra]";
  1349. mes getarg(1)+" unlocked!";
  1350. QWS_T_setbin(getarg(0));
  1351. return;
  1352. } else if (QWS_T_getbin(getarg(0)) == 1) {
  1353. callfunc "Q_Warpra",0;
  1354. } else
  1355. debugmes "QWS_Town_Warpra error, improper syntax ?";
  1356. return;
  1357. function QWS_T_setbin {
  1358. set @tempsetbindata,1;
  1359. if (getarg(0) == 0) goto binset;
  1360. set @temploopsetbin,0;
  1361. do {
  1362. set @tempsetbindata, @tempsetbindata * 2;
  1363. set @temploopsetbin, @temploopsetbin + 1;
  1364. } while (getarg(0) > @temploopsetbin);
  1365. binset:
  1366. set ##QWS_T_Unlock,(##QWS_T_Unlock | @tempsetbindata);
  1367. return;
  1368. }
  1369. function QWS_T_getbin {
  1370. set @tempgetbindata,1;
  1371. if (getarg(0) == 0) goto binget;
  1372. set @temploopgetbin,0;
  1373. do {
  1374. set @tempgetbindata, @tempgetbindata * 2;
  1375. set @temploopgetbin, @temploopgetbin + 1;
  1376. } while (getarg(0) > @temploopgetbin);
  1377. binget:
  1378. if ((@tempgetbindata & ##QWS_T_Unlock) == @tempgetbindata) return 1;
  1379. return 0;
  1380. }
  1381. }
  1382. //============================Warpras==============================
  1383. - script Warpra#0 -1,{ callfunc "Q_Warpra",1; }
  1384. alb2trea,73,101,4 duplicate(Warpra#0) Warpra#1 113
  1385. ama_fild01,178,325,1 duplicate(Warpra#0) Warpra#2 113
  1386. gef_fild10,71,339,4 duplicate(Warpra#0) Warpra#3 113
  1387. izlu2dun,104,82,4 duplicate(Warpra#0) Warpra#4 113
  1388. mjolnir_02,85,363,4 duplicate(Warpra#0) Warpra#5 113
  1389. moc_fild04,207,331,4 duplicate(Warpra#0) Warpra#6 113
  1390. moc_fild19,106,97,4 duplicate(Warpra#0) Warpra#7 113
  1391. moc_ruins,64,166,4 duplicate(Warpra#0) Warpra#8 113
  1392. niflheim,197,192,3 duplicate(Warpra#0) Warpra#9 113
  1393. pay_arche,39,135,4 duplicate(Warpra#0) Warpra#10 113
  1394. prt_fild05,273,215,4 duplicate(Warpra#0) Warpra#11 113
  1395. tur_dun01,148,239,4 duplicate(Warpra#0) Warpra#12 113
  1396. valkyrie,48,35,8 duplicate(Warpra#0) Warpra#13 113
  1397. yuno_fild03,37,135,4 duplicate(Warpra#0) Warpra#14 113
  1398. alberta,32,240,4 script Warpra#15 113,{ callfunc "QWS_Town_Warpra",1,"Alberta Town"; close; }
  1399. aldebaran,146,118,4 script Warpra#16 113,{ callfunc "QWS_Town_Warpra",2,"Aldebaran Town"; close; }
  1400. ayothaya,216,171,5 script Warpra#17 113,{ callfunc "QWS_Town_Warpra",4,"Ayotaya Town"; close; }
  1401. amatsu,193,81,1 script Warpra#18 113,{ callfunc "QWS_Town_Warpra",3,"Amatsu Town"; close; }
  1402. comodo,195,158,4 script Warpra#19 113,{ callfunc "QWS_Town_Warpra",5,"Comodo Town"; close; }
  1403. einbroch,229,196,5 script Warpra#20 113,{ callfunc "QWS_Town_Warpra",7,"Einbroch Town"; close; }
  1404. einbech,173,131,5 script Warpra#21 113,{ callfunc "QWS_Town_Warpra",6,"Einbech Town"; close; }
  1405. geffen,116,66,4 script Warpra#22 113,{ callfunc "QWS_Town_Warpra",8,"Geffen Town"; close; }
  1406. gonryun,152,130,4 script Warpra#23 113,{ callfunc "QWS_Town_Warpra",9,"Gonryun Town"; close; }
  1407. hugel,90,127,5 script Warpra#24 113,{ callfunc "QWS_Town_Warpra",10,"Hugel Town"; close; }
  1408. jawaii,107,182,5 script Warpra#25 113,{ callfunc "QWS_Town_Warpra",12,"Jawaii Town"; close; }
  1409. izlude,132,116,4 script Warpra#26 113,{ callfunc "QWS_Town_Warpra",11,"Izlude Town"; close; }
  1410. lighthalzen,153,100,5 script Warpra#27 113,{ callfunc "QWS_Town_Warpra",13,"Lighthalzen Town"; close; }
  1411. louyang,211,106,4 script Warpra#28 113,{ callfunc "QWS_Town_Warpra",14,"Louyang Town"; close; }
  1412. morocc,157,95,4 script Warpra#29 113,{ callfunc "QWS_Town_Warpra",16,"Morroc Town"; close; }
  1413. nif_fild01,319,77,1 script Warpra#30 113,{ callfunc "QWS_Town_Warpra",17,"Niflheim Town"; close; }
  1414. payon,183,110,4 script Warpra#31 113,{ callfunc "QWS_Town_Warpra",18,"Payon Town"; close; }
  1415. prontera,147,172,5 script Warpra#32 113,{ callfunc "QWS_Town_Warpra",0,"Prontera Town"; close; }
  1416. umbala,133,130,4 script Warpra#33 113,{ callfunc "QWS_Town_Warpra",19,"Umbala Town"; close; }
  1417. xmas,151,136,4 script Warpra#34 113,{ callfunc "QWS_Town_Warpra",15,"Lutie Town"; close; }
  1418. yuno,138,162,4 script Warpra#35 113,{ callfunc "QWS_Town_Warpra",20,"Yuno Town"; close; }
  1419. brasilis,201,222,4 script Warpra#36 113,{ callfunc "QWS_Town_Warpra",21,"Brasilis Town"; close; }
  1420. dicastes01,194,194,6 script Warpra#37 113,{ callfunc "QWS_Town_Warpra",22,"El Dicastes Town"; close; }
  1421. manuk,262,177,4 script Warpra#38 113,{ callfunc "QWS_Town_Warpra",23,"Manuk Town"; close; }
  1422. mora,110,100,4 script Warpra#39 113,{ callfunc "QWS_Town_Warpra",24,"Mora Town"; close; }
  1423. moscovia,216,196,6 script Warpra#40 113,{ callfunc "QWS_Town_Warpra",25,"Moscovia Town"; close; }
  1424. rachel,135,116,4 script Warpra#41 113,{ callfunc "QWS_Town_Warpra",26,"Rachel Town"; close; }
  1425. splendide,205,153,4 script Warpra#42 113,{ callfunc "QWS_Town_Warpra",27,"Splendide Town"; close; }
  1426. veins,214,123,4 script Warpra#43 113,{ callfunc "QWS_Town_Warpra",28,"Veins Town"; close; }
  1427. dewata,194,178,6 script Warpra#44 113,{ callfunc "QWS_Town_Warpra",29,"Dewata Town"; close; }
  1428. eclage,107,37,4 script Warpra#45 113,{ callfunc "QWS_Town_Warpra",30,"Eclage Town"; close; }
  1429. abyss_02,274,266,1 script Warpra Helper#0 112,{ callfunc "QWS_Dungeon_Warpra",0,"Abyss Lake"; close; }
  1430. ama_dun02,192,118,5 script Warpra Helper#1 112,{ callfunc "QWS_Dungeon_Warpra",1,"Amatsu Dungeon"; close; }
  1431. anthell02,170,165,3 script Warpra Helper#2 112,{ callfunc "QWS_Dungeon_Warpra",2,"Ant Hell Dungeon"; close; }
  1432. ayo_dun02,258,193,5 script Warpra Helper#3 112,{ callfunc "QWS_Dungeon_Warpra",3,"Ayotaya Dungeon"; close; }
  1433. ein_dun02,292,282,1 script Warpra Helper#4 112,{ callfunc "QWS_Dungeon_Warpra",8,"Einbech Dungeon"; close; }
  1434. iz_dun03,202,47,2 script Warpra Helper#5 112,{ callfunc "QWS_Dungeon_Warpra",4,"Byalan Dungeon"; close; }
  1435. c_tower3,129,106,4 script Warpra Helper#6 112,{ callfunc "QWS_Dungeon_Warpra",5,"Clock Tower Dungeon"; close; }
  1436. mjo_dun02,39,25,4 script Warpra Helper#7 112,{ callfunc "QWS_Dungeon_Warpra",6,"Coal Mine Dungeon"; close; }
  1437. prt_sewb2,176,30,3 script Warpra Helper#8 112,{ callfunc "QWS_Dungeon_Warpra",7,"Culvert Dungeon"; close; }
  1438. gefenia03,137,34,0 script Warpra Helper#9 112,{ callfunc "QWS_Dungeon_Warpra",9,"Gefenia Dungeon"; close; }
  1439. gef_dun02,218,61,2 script Warpra Helper#10 112,{ callfunc "QWS_Dungeon_Warpra",10,"Gefen Dungeon"; close; }
  1440. glast_01,371,308,3 script Warpra Helper#11 112,{ callfunc "QWS_Dungeon_Warpra",11,"Glast Heim Dungeon"; close; }
  1441. gon_dun01,167,273,4 script Warpra Helper#12 112,{ callfunc "QWS_Dungeon_Warpra",12,"Gonryun Dungeon"; close; }
  1442. juperos_02,127,154,5 script Warpra Helper#13 112,{ callfunc "QWS_Dungeon_Warpra",14,"Juperos Cave"; close; }
  1443. kh_dun01,14,224,3 script Warpra Helper#14 112,{ callfunc "QWS_Dungeon_Warpra",28,"Kiel Dungeon"; close; }
  1444. lhz_dun02,156,151,5 script Warpra Helper#15 112,{ callfunc "QWS_Dungeon_Warpra",15,"Lighthalzen Bio Lab"; close; }
  1445. lou_dun02,168,264,4 script Warpra Helper#16 112,{ callfunc "QWS_Dungeon_Warpra",16,"Louyang Dungeon"; close; }
  1446. mag_dun02,46,41,3 script Warpra Helper#17 112,{ callfunc "QWS_Dungeon_Warpra",17,"Magma Dungeon"; close; }
  1447. odin_tem01,115,148,3 script Warpra Helper#18 112,{ callfunc "QWS_Dungeon_Warpra",18,"Odin Temple"; close; }
  1448. orcsdun01,185,11,3 script Warpra Helper#19 112,{ callfunc "QWS_Dungeon_Warpra",19,"Orc Dungeon"; close; }
  1449. pay_dun03,162,143,3 script Warpra Helper#20 112,{ callfunc "QWS_Dungeon_Warpra",20,"Payon Dungeon"; close; }
  1450. moc_pryd02,101,95,3 script Warpra Helper#21 112,{ callfunc "QWS_Dungeon_Warpra",21,"Pyramides Dungeon"; close; }
  1451. in_sphinx2,274,268,1 script Warpra Helper#22 112,{ callfunc "QWS_Dungeon_Warpra",22,"Sphinx Dungeon"; close; }
  1452. tha_t07,111,162,3 script Warpra Helper#23 112,{ callfunc "QWS_Dungeon_Warpra",24,"Thanatos Tower"; close; }
  1453. treasure02,104,40,3 script Warpra Helper#24 112,{ callfunc "QWS_Dungeon_Warpra",23,"Sunken Ship Dungeon"; close; }
  1454. xmas_dun02,124,131,3 script Warpra Helper#25 112,{ callfunc "QWS_Dungeon_Warpra",25,"Toy Factory Dungeon"; close; }
  1455. um_dun02,44,28,3 script Warpra Helper#26 112,{ callfunc "QWS_Dungeon_Warpra",27,"Umbala Dungeon"; close; }
  1456. tur_dun02,162,23,3 script Warpra Helper#27 112,{ callfunc "QWS_Dungeon_Warpra",26,"Turtle Island Dungeon"; close; }
  1457. prt_maze02,102,69,4 script Warpra Helper#28 112,{ callfunc "QWS_Dungeon_Warpra",13,"Hidden Dungeon"; close; }