quest_warper.txt 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946
  1. //===== eAthena Script ============================================
  2. //= Quest Warper Script
  3. //===== By: =======================================================
  4. //= Old Warper 2 by Darkchild - Remade with quest format by DZeroX
  5. //= Huge Rewrite by Neouni
  6. //===== Current Version: ==========================================
  7. //= 1.5
  8. //===== Compatible With: ==========================================
  9. //= Any eAthena Version
  10. //===== Description: ==============================================
  11. //= Warper that works only after locations are unlocked
  12. //===== Warning: ==================================================
  13. // you have to set the securitycode value [1337] the same as in
  14. // functions_kafras.txt if you changed it !!
  15. //===== Additional Comments: ======================================
  16. //= 1.0 - NPCs created
  17. //= 1.1 - Add Dungeons by sturm
  18. //= 1.2 - Add All char in account unlocked by ace_killer
  19. //= 1.3 - Add new 7 towns and 7 dungeons by escoteiro
  20. // - Correct bug jawaii town by escoteiro
  21. // - Remove some excessive warpras by escoteiro
  22. //= 1.4 - Rewrite of the Warpa system [Neouni]
  23. // - Corrected some bugs caused by autoconverting the old script
  24. //= 1.4a - Rewrite of menu to be custom for each player [Neouni]
  25. // - Dungeon listing rewrite
  26. // - Town listing rewrite
  27. // - GameMaster can Customise Main menu
  28. //= 1.4b - Pricing round [Neouni]
  29. // - GM menu added for pricing
  30. // - Town Warp pricing tags added
  31. // - Dungeon Warp pricing tags added
  32. //= 1.5 - storage functions pricing [Neouni]
  33. // - storage pricing added
  34. // - kafra points setting added
  35. // - kafra storage code security added
  36. // - Healing scripts pricing added
  37. // - Heal Part script added
  38. //=================================================================
  39. //========================Function=&=Script========================
  40. function script Q_Warpra {
  41. mes "[Warpra]";
  42. mes "Hello,";
  43. mes "I can warp you to any town or dungeon, but you need to unlock them first.";
  44. mes "To unlock them, you have to visit us.";
  45. mes "What do you need?";
  46. if(getarg(0) == 0) callfunc "QWS_MMarray",0;
  47. if(getarg(0) == 1) callfunc "QWS_MMarray",1;
  48. menu @Mmenulist$[0],-,@Mmenulist$[1],-,@Mmenulist$[2],-,@Mmenulist$[3],-,@Mmenulist$[4],-,@Mmenulist$[5],-,@Mmenulist$[6],-,@Mmenulist$[7],-,@Mmenulist$[8],-,@Mmenulist$[9],-;
  49. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "GameMaster Menu") goto GM_Menu;
  50. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Warp to Towns") goto L_town;
  51. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Warp to Dungeons") goto L_dungeon;
  52. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Why so few Warps ?") goto L_FewWarps;
  53. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Why don't you Unlock this location ?") goto L_NoUnlock;
  54. if (@Mmenuref[@menu-1] == 5) goto L_heal_Full;
  55. if (@Mmenuref[@menu-1] == 6) goto L_heal_Part;
  56. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Storage") goto L_Storage;
  57. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Guild Storage") goto L_GStorage;
  58. if (@pMmenuitems$[@Mmenuref[@menu-1]] == "Cancel") goto L_end;
  59. goto L_end;
  60. //=====================GM-Menu=Functions===========================
  61. GM_Menu:
  62. next;
  63. //----------------Town-Warp
  64. if ($QW_TW_OFF == 0) mes "Town warping = ^00FF00 On ^000000";
  65. if ($QW_TW_OFF == 1) mes "Town warping = ^FF0000 Off ^000000";
  66. //----------------Dungeon-Warp
  67. if ($QW_DW_OFF == 0) mes "Dungeon warping = ^00FF00 On ^000000";
  68. if ($QW_DW_OFF == 1) mes "Dungeon warping = ^FF0000 Off ^000000";
  69. //----------------Healfull
  70. if ($QW_HF == 1) mes "Healing full = ^00FF00 On ^000000";
  71. //----------------Healpart
  72. if ($QW_HP == 1) mes "Healing partly = ^00FF00 On ^000000";
  73. if (($QW_HF == 0)&&($QW_HP == 0)) mes "Healing = ^FF0000 Off ^000000";
  74. //----------------Storage
  75. if ($QW_Stor == 1) mes "Storage = ^00FF00 On ^000000";
  76. if ($QW_Stor == 0) mes "Storage = ^FF0000 Off ^000000";
  77. //----------------GuildStorage
  78. if ($QW_GStor == 1) mes "Guild Storage = ^00FF00 On ^000000";
  79. if ($QW_GStor == 0) mes "Guild Storage = ^FF0000 Off ^000000";
  80. //----------------GMmenu
  81. if ($QW_KPoint == 1) mes "Kafra points collect = ^00FF00 On ^000000";
  82. if ($QW_KPoint == 0) mes "Kafra points collect = ^FF0000 Off ^000000";
  83. set @GMmenu,select("Town Warping","Dungeon Warping","Healing full","Healing partly","Storage","Guild Storage","Kafra points collect","Set Prices","Exit");
  84. // Using callsub and a small check to not make 1 part of the script set it on and the other turning it off again
  85. // why not use TWSETON & TWSETOFF ?, this saves lines
  86. if ((@GMmenu == 1)&&($QW_TW_OFF == 0)) callsub TWSET,0;
  87. if ((@GMmenu == 1)&&($QW_TW_OFF == 1)) callsub TWSET,1;
  88. if ((@GMmenu == 2)&&($QW_DW_OFF == 0)) callsub DWSET,0;
  89. if ((@GMmenu == 2)&&($QW_DW_OFF == 1)) callsub DWSET,1;
  90. if (@GMmenu == 3)&&($QW_HF == 0) callsub HFSET,0;
  91. if (@GMmenu == 3)&&($QW_HF == 1) callsub HFSET,1;
  92. if (@GMmenu == 4)&&($QW_HP == 0) callsub HPSET,0;
  93. if (@GMmenu == 4)&&($QW_HP == 1) callsub HPSET,1;
  94. if (@GMmenu == 5)&&($QW_Stor == 0) callsub SSET,0;
  95. if (@GMmenu == 5)&&($QW_Stor == 1) callsub SSET,1;
  96. if (@GMmenu == 6)&&($QW_GStor == 0) callsub GSSET,0;
  97. if (@GMmenu == 6)&&($QW_GStor == 1) callsub GSSET,1;
  98. if (@GMmenu == 7)&&($QW_Kpoint == 0) callsub Kpoint,0;
  99. if (@GMmenu == 7)&&($QW_Kpoint == 1) callsub Kpoint,1;
  100. if (@GMmenu == 8) goto Setprice;
  101. close;
  102. end;
  103. TWSET:
  104. if (getarg(0) == 0) set $QW_TW_OFF,1;
  105. if (getarg(0) == 1) set $QW_TW_OFF,0;
  106. goto GM_Menu;
  107. DWSET:
  108. if (getarg(0) == 0) set $QW_DW_OFF,1;
  109. if (getarg(0) == 1) set $QW_DW_OFF,0;
  110. goto GM_Menu;
  111. HFSET:
  112. if (getarg(0) == 0) set $QW_HF,1;
  113. if (getarg(0) == 0) set $QW_HP,0;
  114. if (getarg(0) == 1) set $QW_HF,0;
  115. goto GM_Menu;
  116. HPSET:
  117. if (getarg(0) == 0) set $QW_HP,1;
  118. if (getarg(0) == 0) set $QW_HF,0;
  119. if (getarg(0) == 1) set $QW_HP,0;
  120. goto GM_Menu;
  121. SSET:
  122. if (getarg(0) == 0) set $QW_Stor,1;
  123. if (getarg(0) == 1) set $QW_Stor,0;
  124. goto GM_Menu;
  125. GSSET:
  126. if (getarg(0) == 0) set $QW_GStor,1;
  127. if (getarg(0) == 1) set $QW_GStor,0;
  128. goto GM_Menu;
  129. Kpoint:
  130. if (getarg(0) == 0) set $QW_Kpoint,1;
  131. if (getarg(0) == 1) set $QW_Kpoint,0;
  132. goto GM_Menu;
  133. //======================GM-Menu=Pricing============================
  134. Setprice:
  135. next;
  136. mes "Scroll thru the list to see all the options";
  137. //----------------Warp-Basic-Price
  138. if ($QW_BW_PRICE != 0) mes "Basic - Warps are = ^00FF00 "+$QW_BW_PRICE+" ^000000";
  139. if ($QW_BW_PRICE == 0) mes "Basic - Warps are = ^FF0000 Free ^000000";
  140. //----------------Warp-Advanced-Price
  141. if ($QW_AW_PRICE != 0) mes "Advanced - Warps are = ^00FF00 "+$QW_AW_PRICE+" ^000000";
  142. if ($QW_AW_PRICE == 0) mes "Advanced - Warps are = ^FF0000 Free ^000000";
  143. //----------------Warp-Oversea-Price
  144. if ($QW_OW_PRICE != 0) mes "Overseas - Warps are = ^00FF00 "+$QW_OW_PRICE+" ^000000";
  145. if ($QW_OW_PRICE == 0) mes "Overseas - Warps are = ^FF0000 Free ^000000";
  146. //----------------Heal-Full
  147. if ($QW_HF_PRICE != 0) mes "Full Healing = ^00FF00 "+$QW_HF_PRICE+" ^000000";
  148. if ($QW_HF_PRICE == 0) mes "Full Healing = ^FF0000 Free ^000000";
  149. //----------------Heal-Part
  150. if ($QW_HP_H_PRICE != 0) mes "^FF0000HP ^000000Part Healing = ^00FF00 "+$QW_HP_H_PRICE+" ^000000 a point";
  151. if ($QW_HP_H_PRICE == 0) mes "^FF0000HP ^000000Part Healing = ^FF0000 Free ^000000";
  152. if ($QW_HP_S_PRICE != 0) mes "^0000FFSP ^000000Part Healing = ^00FF00 "+$QW_HP_S_PRICE+" ^000000 a point";
  153. if ($QW_HP_S_PRICE == 0) mes "^0000FFSP ^000000Part Healing = ^FF0000 Free ^000000";
  154. //----------------Storage
  155. if (($QW_S_PRICE != 0)&&($QW_S_PRICE != 60)) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
  156. if ($QW_S_PRICE == 0) mes "Storage = ^FF0000 Free ^000000";
  157. if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
  158. //----------------Guild-Storage
  159. if ($QW_GS_PRICE != 0) mes "Guild Storage = ^00FF00 "+$QW_GS_PRICE+" ^000000";
  160. if ($QW_GS_PRICE == 0) mes "Guild Storage = ^FF0000 Free ^000000";
  161. set @GMmenu2,select("Basic - Warps","Advanced - Warps","Overseas - Warps","Full Healing","Part Healing","Storage","Guild Storage","Back","Exit");
  162. if (@GMmenu2 == 1) goto BWprice;
  163. if (@GMmenu2 == 2) goto AWprice;
  164. if (@GMmenu2 == 3) goto OWprice;
  165. if (@GMmenu2 == 4) goto FHprice;
  166. if (@GMmenu2 == 5) goto PHprice;
  167. if (@GMmenu2 == 6) goto Sprice;
  168. if (@GMmenu2 == 7) goto GSprice;
  169. if (@GMmenu2 == 8) goto GM_Menu;
  170. close;
  171. end;
  172. BWprice:
  173. next;
  174. if ($QW_BW_PRICE != 0) mes "Basic - Warps are = ^00FF00 "+$QW_BW_PRICE+" ^000000";
  175. if ($QW_BW_PRICE == 0) mes "Basic - Warps are = ^FF0000 Free ^000000";
  176. mes "Basic - Warps are starter towns and related dungeons";
  177. input $QW_BW_PRICE;
  178. goto Setprice;
  179. AWprice:
  180. next;
  181. if ($QW_AW_PRICE != 0) mes "Advanced - Warps are = ^00FF00 "+$QW_AW_PRICE+" ^000000";
  182. if ($QW_AW_PRICE == 0) mes "Advanced - Warps are = ^FF0000 Free ^000000";
  183. mes "Advanced - Warps are towns on the same island but not close to any starter town";
  184. input $QW_AW_PRICE;
  185. goto Setprice;
  186. OWprice:
  187. next;
  188. if ($QW_OW_PRICE != 0) mes "Overseas - Warps are = ^00FF00 "+$QW_OW_PRICE+" ^000000";
  189. if ($QW_OW_PRICE == 0) mes "Overseas - Warps are = ^FF0000 Free ^000000";
  190. mes "Overseas - Warps are towns and dungeons overseas reachable by boat from alberta";
  191. input $QW_OW_PRICE;
  192. goto Setprice;
  193. FHprice:
  194. next;
  195. if ($QW_HF_PRICE != 0) mes "Full Healing = ^00FF00 "+$QW_HF_PRICE+" ^000000";
  196. if ($QW_HF_PRICE == 0) mes "Full Healing = ^FF0000 Free ^000000";
  197. mes "Instant full healing 1 price";
  198. input $QW_HF_PRICE;
  199. goto Setprice;
  200. PHprice:
  201. next;
  202. if ($QW_HP_H_PRICE != 0) mes "^FF0000HP ^000000Part Healing = ^00FF00 "+$QW_HP_H_PRICE+" ^000000 a point";
  203. if ($QW_HP_H_PRICE == 0) mes "^FF0000HP ^000000Part Healing = ^FF0000 Free ^000000";
  204. if ($QW_HP_S_PRICE != 0) mes "^0000FFSP ^000000Part Healing = ^00FF00 "+$QW_HP_S_PRICE+" ^000000 a point";
  205. if ($QW_HP_S_PRICE == 0) mes "^0000FFSP ^000000Part Healing = ^FF0000 Free ^000000";
  206. mes "Healing price per 1 HP";
  207. mes "Healing price per 1 SP";
  208. mes "2 inputs, first HP then SP";
  209. input $QW_HP_H_PRICE;
  210. input $QW_HP_S_PRICE;
  211. goto Setprice;
  212. Sprice:
  213. next;
  214. if (($QW_S_PRICE != 0)&&($QW_S_PRICE != 60)) mes "Storage = ^00FF00 "+$QW_S_PRICE+" ^000000";
  215. if ($QW_S_PRICE == 0) mes "Storage = ^FF0000 Free ^000000";
  216. if ($QW_S_PRICE == 60) mes "Storage = ^0000FF Kafra Mode ^000000";
  217. mes "Storage cost, if set to 60 Kafra pricing will be handled";
  218. input $QW_S_PRICE;
  219. goto Setprice;
  220. GSprice:
  221. next;
  222. if ($QW_GS_PRICE != 0) mes "Guild Storage = ^00FF00 "+$QW_GS_PRICE+" ^000000";
  223. if ($QW_GS_PRICE == 0) mes "Guild Storage = ^FF0000 Free ^000000";
  224. mes "Guild Storage, free on Guild Kafras";
  225. input $QW_GS_PRICE;
  226. goto Setprice;
  227. //===========================Towns=================================
  228. L_town:
  229. callfunc "QWS_Tarray";
  230. // Expected maximum is set to 22, if you add more options add a more ",@Tmenulist$[xx],-"
  231. menu @Tmenulist$[0],-,@Tmenulist$[1],-,@Tmenulist$[2],-,@Tmenulist$[3],-,@Tmenulist$[4],-,@Tmenulist$[5],-,@Tmenulist$[6],-,@Tmenulist$[7],-,@Tmenulist$[8],-,@Tmenulist$[9],-,@Tmenulist$[10],-,@Tmenulist$[11],-,@Tmenulist$[12],-,@Tmenulist$[13],-,@Tmenulist$[14],-,@Tmenulist$[15],-,@Tmenulist$[16],-,@Tmenulist$[17],-,@Tmenulist$[18],-,@Tmenulist$[19],-,@Tmenulist$[20],-,@Tmenulist$[21],-,@Tmenulist$[22],-;
  232. if (@pTmap$[@Tmenuref[@menu-1]] == "L_End") goto L_end;
  233. if(Zeny<@pTprice[@Tmenuref[@menu-1]]) callsub L_Short_on_zeny,0;
  234. set Zeny, Zeny-@pTprice[@Tmenuref[@menu-1]];
  235. warp @pTmap$[@Tmenuref[@menu-1]],@pTXcoords[@Tmenuref[@menu-1]],@pTYcoords[@Tmenuref[@menu-1]];
  236. close2; // this part safegaurds against errors/typos
  237. set Zeny, Zeny+@pTprice[@Tmenuref[@menu-1]];
  238. close;
  239. end;
  240. //=========================Dungeons================================
  241. L_dungeon:
  242. callfunc "QWS_Darray";
  243. // Expected maximum is set to 27, if you add more options add a more ",@Dmenulist$[xx],-"
  244. menu @Dmenulist$[0],-,@Dmenulist$[1],-,@Dmenulist$[2],-,@Dmenulist$[3],-,@Dmenulist$[4],-,@Dmenulist$[5],-,@Dmenulist$[6],-,@Dmenulist$[7],-,@Dmenulist$[8],-,@Dmenulist$[9],-,@Dmenulist$[10],-,@Dmenulist$[11],-,@Dmenulist$[12],-,@Dmenulist$[13],-,@Dmenulist$[14],-,@Dmenulist$[15],-,@Dmenulist$[16],-,@Dmenulist$[17],-,@Dmenulist$[18],-,@Dmenulist$[19],-,@Dmenulist$[20],-,@Dmenulist$[21],-,@Dmenulist$[22],-,@Dmenulist$[23],-,@Dmenulist$[24],-,@Dmenulist$[25],-,@Dmenulist$[26],-,@Dmenulist$[27],-;
  245. // if statement made because goto & callsub doesn't accept string
  246. // should rewrite after loading dungeon levels into an array
  247. if (Zeny<@pDprice[@Dmenuref[@menu-1]]) callsub L_Short_on_zeny,1;
  248. set Zeny, Zeny-@pDprice[@Dmenuref[@menu-1]];
  249. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "abyss") goto abyss;
  250. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "ama_dun") goto ama_dun;
  251. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "anthell") goto anthell;
  252. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "ayotaya_dun") goto ayotaya_dun;
  253. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "iz_dun") goto iz_dun;
  254. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "c_tower") goto c_tower;
  255. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "mjo_dun") goto mjo_dun;
  256. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "prt_sewb") goto prt_sewb;
  257. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "einbech_dun") goto einbech_dun;
  258. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "gefenia") goto gefenia;
  259. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "gef_dun") goto gef_dun;
  260. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "gl_dun") goto gl_dun;
  261. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "gon_dun") goto gon_dun;
  262. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "hid_dun") goto hid_dun;
  263. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "juperos") goto juperos;
  264. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "lighthalzen_dun") goto lighthalzen_dun;
  265. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "mag_dun") goto mag_dun;
  266. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "odintemple") goto odintemple;
  267. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "orcsdun") goto orcsdun;
  268. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "pay_dun") goto pay_dun;
  269. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "moc_pryd") goto moc_pryd;
  270. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "in_sphinx") goto in_sphinx;
  271. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "treasure") goto treasure;
  272. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "xmas_dun") goto xmas_dun;
  273. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "tur_dun") goto tur_dun;
  274. if (@pDmenugoto$[@Dmenuref[@menu-1]] == "um_dun") goto um_dun;
  275. close2; // this part safegaurds against errors/typos
  276. set Zeny, Zeny+@pDprice[@Dmenuref[@menu-1]];
  277. close;
  278. end;
  279. //=========================Dungeons================================
  280. //----------------ABYSS LAKE
  281. abyss:
  282. next;
  283. mes "[Warpra]";
  284. mes "Please select the level:";
  285. next;
  286. menu "Level 1",d_abyss_1,
  287. "Level 2",d_abyss_2,
  288. "Level 3",d_abyss_3;
  289. d_abyss_1:
  290. warp "abyss_01.gat", 265, 273; close;
  291. d_abyss_2:
  292. warp "abyss_02.gat", 275, 270; close;
  293. d_abyss_3:
  294. warp "abyss_03.gat", 116, 27; close;
  295. //----------------AMATSU DUNGEON
  296. ama_dun:
  297. next;
  298. mes "[Warpra]";
  299. mes "Please select the level:";
  300. next;
  301. menu "Level 1",d_amatsu_1,
  302. "Level 2",d_amatsu_2,
  303. "Level 3",d_amatsu_3;
  304. d_amatsu_1:
  305. warp "ama_dun01.gat", 227, 10; close;
  306. d_amatsu_2:
  307. warp "ama_dun02.gat", 32, 43; close;
  308. d_amatsu_3:
  309. warp "ama_dun03.gat", 119, 15; close;
  310. //----------------ANT HELL
  311. anthell:
  312. next;
  313. mes "[Warpra]";
  314. mes "Please select the level:";
  315. next;
  316. menu "Level 1",d_anthell_1,
  317. "Level 2",d_anthell_2;
  318. d_anthell_1:
  319. warp "anthell01.gat", 32, 262; close;
  320. d_anthell_2:
  321. warp "anthell02.gat", 34, 263; close;
  322. //----------------AYOTAYA
  323. ayotaya_dun:
  324. next;
  325. mes "[Warpra]";
  326. mes "Please select the level:";
  327. next;
  328. menu "Level 1",d_ayotaya_1,
  329. "Level 2",d_ayotaya_2;
  330. d_ayotaya_1:
  331. warp "ayo_dun01.gat", 275, 17; close;
  332. d_ayotaya_2:
  333. warp "ayo_dun02.gat", 150, 13; close;
  334. //----------------BYALAN
  335. iz_dun:
  336. next;
  337. mes "[Warpra]";
  338. mes "Please select the level:";
  339. next;
  340. menu "Level 1",d_bylan_1,
  341. "Level 2",d_bylan_2,
  342. "Level 3",d_bylan_3,
  343. "Level 4",d_bylan_4,
  344. "Level 5",d_bylan_5;
  345. d_bylan_1:
  346. warp "iz_dun00.gat", 168, 168; close;
  347. d_bylan_2:
  348. warp "iz_dun01.gat", 41, 37; close;
  349. d_bylan_3:
  350. warp "iz_dun02.gat", 236, 204; close;
  351. d_bylan_4:
  352. warp "iz_dun03.gat", 32, 63; close;
  353. d_bylan_5:
  354. warp "iz_dun04.gat", 26, 27; close;
  355. //----------------CLOCK TOWER
  356. c_tower:
  357. next;
  358. mes "[Warpra]";
  359. mes "Please select the level:";
  360. next;
  361. menu "Clock Tower Level 1",d_ct_1,
  362. "Clock Tower Level 2",d_ct_2,
  363. "Clock Tower Level 3",d_ct_3,
  364. "Clock Tower Level 4",d_ct_4,
  365. "Basement 1F",d_alde_1,
  366. "Basement 2F",d_alde_2,
  367. "Basement 3F",d_alde_3,
  368. "Basement 4F",d_alde_4;
  369. d_ct_1:
  370. warp "c_tower1.gat", 200, 163; close;
  371. d_ct_2:
  372. warp "c_tower2.gat", 268, 26; close;
  373. d_ct_3:
  374. warp "c_tower3.gat", 64, 148; close;
  375. d_ct_4:
  376. warp "c_tower4.gat", 32, 63; close;
  377. d_alde_1:
  378. warp "alde_dun01.gat", 197, 25; close;
  379. d_alde_2:
  380. warp "alde_dun02.gat", 262, 41; close;
  381. d_alde_3:
  382. warp "alde_dun03.gat", 276, 53; close;
  383. d_alde_4:
  384. warp "alde_dun04.gat", 130, 130; close;
  385. //----------------COAL MINE
  386. mjo_dun:
  387. next;
  388. mes "[Warpra]";
  389. mes "Please select the level:";
  390. next;
  391. menu "Level 1",d_coal_1,
  392. "Level 2",d_coal_2,
  393. "Level 3",d_coal_3;
  394. d_coal_1:
  395. warp "mjo_dun01.gat", 52, 17; close;
  396. d_coal_2:
  397. warp "mjo_dun02.gat", 381, 343; close;
  398. d_coal_3:
  399. warp "mjo_dun03.gat", 302, 261; close;
  400. //----------------CULVERT
  401. prt_sewb:
  402. next;
  403. mes "[Warpra]";
  404. mes "Please select the level:";
  405. next;
  406. menu "Level 1",d_culvert_1,
  407. "Level 2",d_culvert_2,
  408. "Level 3",d_culvert_3,
  409. "Level 4",d_culvert_4,
  410. "Level 5",d_culvert_5;
  411. d_culvert_1:
  412. warp "prt_sewb1.gat", 132, 248; close;
  413. d_culvert_2:
  414. warp "prt_sewb2.gat", 19, 19; close;
  415. d_culvert_3:
  416. warp "prt_sewb3.gat", 180, 169; close;
  417. d_culvert_4:
  418. warp "prt_sewb4.gat", 100, 92; close;
  419. //----------------EINBECH DUNGEON
  420. einbech_dun:
  421. next;
  422. mes "[Warpra]";
  423. mes "Please select the level:";
  424. next;
  425. menu "Level 1",d_einbech_1,
  426. "Level 2",d_einbech_2;
  427. d_einbech_1:
  428. warp "ein_dun01.gat", 22, 14; close;
  429. d_einbech_2:
  430. warp "ein_dun02.gat", 292, 290; close;
  431. //----------------GEFENIA DUNGEON
  432. gefenia:
  433. next;
  434. mes "[Warpra]";
  435. mes "Please select the level:";
  436. next;
  437. menu "Level 1",d_gefenia_1,
  438. "Level 2",d_gefenia_2,
  439. "Level 3",d_gefenia_3,
  440. "Level 4",d_gefenia_4;
  441. d_gefenia_1:
  442. warp "gefenia01.gat", 59, 167; close;
  443. d_gefenia_2:
  444. warp "gefenia02.gat", 201, 35; close;
  445. d_gefenia_3:
  446. warp "gefenia03.gat", 264, 236; close;
  447. d_gefenia_4:
  448. warp "gefenia04.gat", 33, 270; close;
  449. //----------------GEFFEN DUNGEON
  450. gef_dun:
  451. next;
  452. mes "[Warpra]";
  453. mes "Please select the level:";
  454. next;
  455. menu "Level 1",d_geffen_1,
  456. "Level 2",d_geffen_2,
  457. "Level 3",d_geffen_3,
  458. "Level 3",d_geffen_4;
  459. d_gefen_1:
  460. warp "gef_dun00.gat", 104, 100; close;
  461. d_geffen_2:
  462. warp "gef_dun01.gat", 115, 236; close;
  463. d_geffen_3:
  464. warp "gef_dun02.gat", 106, 132; close;
  465. d_geffen_4:
  466. warp "gef_dun03.gat", 203, 200; close;
  467. //----------------GLAST HEIM
  468. gl_dun:
  469. next;
  470. mes "[Warpra]";
  471. mes "Please select the level:";
  472. next;
  473. menu "St. Abbey",d_glast_1,
  474. "Churchyard",d_glast_2,
  475. "Inside Glast Heim",d_glast_3,
  476. "Castle 1",d_glast_4,
  477. "Castle 2",d_glast_5,
  478. "Chivalry 1",d_glast_6,
  479. "Chivalry 2",d_glast_7,
  480. "Prison 1",d_glast_8,
  481. "Prison 2",d_glast_9,
  482. "Steps",d_glast_10,
  483. "Sewers 1",d_glast_11,
  484. "Sewers 2",d_glast_12,
  485. "Sewers 3",d_glast_13,
  486. "Sewers 4",d_glast_14,
  487. "Lowest Cave 1",d_glast_15,
  488. "Lowest Cave 2",d_glast_16;
  489. d_glast_1:
  490. warp "gl_church.gat", 156, 8; close;
  491. d_glast_2:
  492. warp "gl_chyard.gat", 147, 15; close;
  493. d_glast_3:
  494. warp "gl_in01.gat", 121, 59; close;
  495. d_glast_4:
  496. warp "gl_cas01.gat", 199, 29; close;
  497. d_glast_5:
  498. warp "gl_cas02.gat", 104, 25; close;
  499. d_glast_6:
  500. warp "gl_knt01.gat", 150, 10; close;
  501. d_glast_7:
  502. warp "gl_knt02.gat", 157, 287; close;
  503. d_glast_8:
  504. warp "gl_prison.gat", 14, 70; close;
  505. d_glast_9:
  506. warp "gl_prison1.gat", 150, 14; close;
  507. d_glast_10:
  508. warp "gl_step.gat", 117, 124; close;
  509. d_glast_11:
  510. warp "gl_sew01.gat", 258, 255; close;
  511. d_glast_12:
  512. warp "gl_sew02.gat", 108, 291; close;
  513. d_glast_13:
  514. warp "gl_sew03.gat", 171, 273; close;
  515. d_glast_14:
  516. warp "gl_sew04.gat", 68, 277; close;
  517. d_glast_15:
  518. warp "gl_dun01.gat", 133, 271; close;
  519. d_glast_16:
  520. warp "gl_dun02.gat", 224, 274; close;
  521. //----------------HIDDEN DUNGEON
  522. hid_dun:
  523. next;
  524. mes "[Warpra]";
  525. mes "Please select the level:";
  526. next;
  527. menu "Level 1",d_hid_1,
  528. "Level 2",d_hid_2,
  529. "Level 3",d_hid_3;
  530. d_hid_1:
  531. warp "prt_maze01.gat", 176, 6; close;
  532. d_hid_2:
  533. warp "prt_maze02.gat", 94, 19; close;
  534. d_hid_3:
  535. warp "prt_maze03.gat", 23, 8; close;
  536. //----------------JUPEROS CAVE
  537. juperos:
  538. next;
  539. mes "[Warpra]";
  540. mes "Please select the level:";
  541. next;
  542. menu "Level 1",d_juperos_1,
  543. "Level 2",d_juperos_2;
  544. d_juperos_1:
  545. warp "juperos_01.gat", 53, 247; close;
  546. d_juperos_2:
  547. warp "juperos_02.gat", 36, 60; close;
  548. //----------------GONRYUN DUNGEON
  549. gon_dun:
  550. next;
  551. mes "[Warpra]";
  552. mes "Please select the level:";
  553. next;
  554. menu "Level 1",d_gon_1,
  555. "Level 2",d_gon_2,
  556. "Level 3",d_gon_3;
  557. d_gon_1:
  558. warp "gon_dun01.gat", 143, 59; close;
  559. d_gon_2:
  560. warp "gon_dun02.gat", 17, 114; close;
  561. d_gon_3:
  562. warp "gon_dun03.gat", 68, 9; close;
  563. //----------------LIGHTHALZEN BIO LAB
  564. lighthalzen_dun:
  565. next;
  566. mes "[Warpra]";
  567. mes "Please select the level:";
  568. next;
  569. menu "Level 1",d_lighthalzen_1,
  570. "Level 2",d_lighthalzen_2,
  571. "Level 3",d_lighthalzen_3;
  572. d_lighthalzen_1:
  573. warp "lhz_dun01.gat", 150, 287; close;
  574. d_lighthalzen_2:
  575. warp "lhz_dun02.gat", 150, 18; close;
  576. d_lighthalzen_3:
  577. warp "lhz_dun03.gat", 140, 137; close;
  578. //----------------MAGMA DUNGEON
  579. mag_dun:
  580. next;
  581. mes "[Warpra]";
  582. mes "Please select the level:";
  583. next;
  584. menu "Level 1",d_magma_1,
  585. "Level 2",d_magma_2;
  586. d_magma_1:
  587. warp "mag_dun01.gat", 126, 69; close;
  588. d_magma_2:
  589. warp "mag_dun02.gat", 47, 32; close;
  590. //----------------ODIN TEMPLE
  591. odintemple:
  592. next;
  593. mes "[Warpra]";
  594. mes "Please select the level:";
  595. next;
  596. menu "Level 1",d_odintemple_1;
  597. d_odintemple_1:
  598. warp "odin_tem01.gat", 96, 145; close;
  599. //----------------ORC DUNGEON
  600. orcsdun:
  601. next;
  602. mes "[Warpra]";
  603. mes "Please select the level:";
  604. next;
  605. menu "Level 1",d_orc_1,
  606. "Level 2",d_orc_2;
  607. d_orc_1:
  608. warp "orcsdun01.gat", 32, 169; close;
  609. d_orc_2:
  610. warp "orcsdun02.gat", 21, 185; close;
  611. //----------------PAYON DUNGEON
  612. pay_dun:
  613. next;
  614. mes "[Warpra]";
  615. mes "Please select the level:";
  616. next;
  617. menu "Level 1",d_payon_1,
  618. "Level 2",d_payon_2,
  619. "Level 3",d_payon_3,
  620. "Level 4",d_payon_4,
  621. "Level 5",d_payon_5;
  622. d_payon_1:
  623. warp "pay_dun00.gat", 22, 180; close;
  624. d_payon_2:
  625. warp "pay_dun01.gat", 19, 33; close;
  626. d_payon_3:
  627. warp "pay_dun02.gat", 19, 63; close;
  628. d_payon_4:
  629. warp "pay_dun03.gat", 155, 159; close;
  630. d_payon_5:
  631. warp "pay_dun04.gat", 201, 204; close;
  632. //----------------PYRAMIDS
  633. moc_pryd:
  634. next;
  635. mes "[Warpra]";
  636. mes "Please select the level:";
  637. next;
  638. menu "Level 1",d_pyr_1,
  639. "Level 2",d_pyr_2,
  640. "Level 3",d_pyr_3,
  641. "Level 4",d_pyr_4,
  642. "Basement 1",d_pyr_5,
  643. "Basement 2",d_pyr_6;
  644. d_pyr_1:
  645. warp "moc_pryd01.gat", 192, 9; close;
  646. d_pyr_2:
  647. warp "moc_pryd02.gat", 10, 192; close;
  648. d_pyr_3:
  649. warp "moc_pryd03.gat", 100, 92; close;
  650. d_pyr_4:
  651. warp "moc_pryd04.gat", 181, 11; close;
  652. d_pyr_5:
  653. warp "moc_pryd05.gat", 94, 96; close;
  654. d_pyr_6:
  655. warp "moc_pryd06.gat", 192, 8; close;
  656. //----------------SPHINX
  657. in_sphinx:
  658. next;
  659. mes "[Warpra]";
  660. mes "Please select the level:";
  661. next;
  662. menu "Level 1",d_sph_1,
  663. "Level 2",d_sph_2,
  664. "Level 3",d_sph_3,
  665. "Level 4",d_sph_4,
  666. "Level 5",d_sph_5;
  667. d_sph_1:
  668. warp "in_sphinx1.gat", 192, 9; close;
  669. d_sph_2:
  670. warp "in_sphinx2.gat", 149, 81; close;
  671. d_sph_3:
  672. warp "in_sphinx3.gat", 210, 54; close;
  673. d_sph_4:
  674. warp "in_sphinx4.gat", 10, 222; close;
  675. d_sph_5:
  676. warp "in_sphinx5.gat", 100, 99; close;
  677. //----------------SUNKEN SHIP
  678. treasure:
  679. next;
  680. mes "[Warpra]";
  681. mes "Please select the level:";
  682. next;
  683. menu "Level 1",d_treasure_1,
  684. "Level 2",d_treasure_2;
  685. d_treasure_1:
  686. warp "treasure01.gat", 69, 24; close;
  687. d_treasure_2:
  688. warp "treasure02.gat", 102, 27; close;
  689. //----------------TOY FACTORY
  690. xmas_dun:
  691. next;
  692. mes "[Warpra]";
  693. mes "Please select the level:";
  694. next;
  695. menu "Factory Warehouse",d_xmas_1,
  696. "Classifying Room",d_xmas_2;
  697. d_xmas_1:
  698. warp "xmas_dun01.gat", 205, 16; close;
  699. d_xmas_2:
  700. warp "xmas_dun02.gat", 129, 133; close;
  701. //----------------TURTLE ISTLAND
  702. tur_dun:
  703. next;
  704. mes "[Warpra]";
  705. mes "Please select the level:";
  706. next;
  707. menu "Outside",d_tur_1,
  708. "Level 1",d_tur_2,
  709. "Level 2",d_tur_3,
  710. "Level 3",d_tur_4;
  711. d_tur_1:
  712. warp "tur_dun01.gat", 161, 34; close;
  713. d_tur_2:
  714. warp "tur_dun02.gat", 148, 256; close;
  715. d_tur_3:
  716. warp "tur_dun03.gat", 132, 190; close;
  717. d_tur_4:
  718. warp "tur_dun04.gat", 100, 192; close;
  719. //----------------UMBALA
  720. um_dun:
  721. next;
  722. mes "[Warpra]";
  723. mes "Please select the level:";
  724. next;
  725. menu "Carpender's Shop in The Tree",d_um_1,
  726. "Passage to a Foreign World",d_um_2,
  727. "Hvergelmir's Fountain",d_ygg_1;
  728. d_um_1:
  729. warp "um_dun01.gat", 205, 16; close;
  730. d_um_2:
  731. warp "um_dun02.gat", 48, 30; close;
  732. d_ygg_1:
  733. warp "yggdrasil01.gat", 40, 63; close;
  734. //=============================Healing=============================
  735. L_heal_Full:
  736. set @healfee, $QW_HF_PRICE;
  737. if(Zeny<@healfee) callsub L_Short_on_zeny,4;
  738. set Zeny, Zeny-@healfee;
  739. // if ($QW_Kpoint == 1) set RESRVPTS, RESRVPTS + (@healfee/50); //commented out because kafra's don't offer this
  740. next;
  741. mes "[Warpra]";
  742. mes "Close this window and I will Heal you.";
  743. close2;
  744. percentheal 100,100;
  745. close;
  746. end;
  747. L_heal_Part:
  748. set @healchoice,select("Full heal","Health Points only","Skill Points only","Exit");
  749. if (@healchoice == 1) callsub PHeal,1,1;
  750. if (@healchoice == 2) callsub PHeal,1,0;
  751. if (@healchoice == 3) callsub PHeal,0,1;
  752. goto L_end;
  753. PHeal:
  754. next;
  755. set @Hp, MaxHp-Hp;
  756. set @Sp, MaxSp-Sp;
  757. set @HpPrice, @hp*$QW_HP_H_PRICE;
  758. set @SpPrice, @sp*$QW_HP_S_PRICE;
  759. mes "[Warpra]";
  760. if(getarg(0) == 1) mes ""+@HpPrice+" Zeny for "+@Hp+" health points";
  761. if(getarg(1) == 1) mes ""+@SpPrice+" Zeny for "+@Sp+" skill points";
  762. set @total, @HpPrice+@SpPrice;
  763. mes "for a total of "+@total+" zeny";
  764. if (select("Heal me","Let me see the choices again")==2) goto L_heal_Part;
  765. if(getarg(0) == 1)set @HpPrice, (MaxHp-Hp)*$QW_HP_H_PRICE;
  766. if(getarg(1) == 1)set @SpPrice, (MaxSp-Sp)*$QW_HP_S_PRICE;
  767. set @healfee, @HpPrice+@SpPrice;
  768. if (getarg(0) == 1)&&(getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_Short_Both;
  769. if (getarg(0) == 1)&&(Zeny<@healfee) goto Zeny_short_HP;
  770. if (getarg(1) == 1)&&(Zeny<@healfee) goto Zeny_short_SP;
  771. set Zeny, Zeny-@healfee;
  772. if (getarg(0) == 1)&&(getarg(1) == 1) percentheal 100,100;
  773. if (getarg(0) == 1) percentheal 100,0;
  774. if (getarg(1) == 1) percentheal 0,100;
  775. close;
  776. end;
  777. Zeny_Short_Both:
  778. mes "[Warpra]";
  779. mes "choose another option, you can afford both.";
  780. mes "I can heal as much as you can afford too.";
  781. if (select("OK","Exit") == 2) goto L_end;
  782. goto PHeal;
  783. Zeny_short_HP:
  784. mes "[Warpra]";
  785. mes "do you want me to partly heal your HP ?";
  786. if (select("Yes","No") == 2) goto L_end;
  787. set @Hp, Zeny/$QW_HP_H_PRICE;
  788. set @HpPrice, @Hp*$QW_HP_H_PRICE;
  789. if (@Hp == 1) mes "your not worth the effort";
  790. if (@Hp == 1) goto L_end;
  791. set Zeny, Zeny-@HpPrice;
  792. heal @Hp,0;
  793. close;
  794. end;
  795. Zeny_short_SP:
  796. mes "[Warpra]";
  797. mes "do you want me to partly heal your SP ?";
  798. if (select("Yes","No") == 2) goto L_end;
  799. set @Sp, Zeny/$QW_HP_S_PRICE;
  800. set @SpPrice, @Sp*$QW_HP_S_PRICE;
  801. if (@Sp == 1) mes "your not worth the effort";
  802. if (@Sp == 1) goto L_end;
  803. set Zeny, Zeny-@SpPrice;
  804. heal 0,@Sp;
  805. close;
  806. end;
  807. //=============================Storage=============================
  808. L_Storage:
  809. next;
  810. if(basicskillcheck(0) > 0 && getskilllv(1) < 6) goto L_StorageJBlow;
  811. set @fee, $QW_S_PRICE;
  812. if ($QW_S_PRICE == 60)&&(BaseJob == Job_Novice) set @fee, 30;
  813. if ($QW_S_PRICE == 60)&&(BaseJob != Job_Novice) set @fee, 60;
  814. if(Zeny<@fee) callsub L_Short_on_zeny,2;
  815. set Zeny, Zeny-@fee;
  816. if ($QW_Kpoint == 1) set RESRVPTS, RESRVPTS + (@fee/5);
  817. mes "[Warpra]";
  818. mes "Close this window and i will open your storage.";
  819. callsub F_CheckKafCode; //check your storage password thru kafra coding, if set
  820. close2;
  821. openstorage;
  822. close;
  823. end;
  824. F_CheckKafCode:
  825. // you have to set the 1337 value the same as in functions_kafras.txt if you changed it !!
  826. if(#kafra_code==0) return;
  827. mes "Enter your storage password:";
  828. set @code_,0;
  829. input @code_;
  830. if(@code_ != #kafra_code-getcharid(3)-1337) {
  831. dispbottom "Wrong storage password.";
  832. close2;
  833. close;
  834. }
  835. set @kafcode_try,0;
  836. set @code_,0;
  837. return;
  838. L_StorageJBlow:
  839. mes "[Warpra]";
  840. mes "I am sorry but you have to be at least Novice level 6 if you want to use the storage.";
  841. return;
  842. L_GStorage:
  843. if(@GID==0) goto L_NoGuild;
  844. if(Zeny<$QW_GS_PRICE) callsub L_Short_on_zeny,3;
  845. set Zeny, Zeny-$QW_GS_PRICE;
  846. if ($QW_Kpoint == 1) set RESRVPTS, RESRVPTS + ($QW_GS_PRICE/5);
  847. next;
  848. mes "[Warpra]";
  849. mes "Close this window and i will open the ^5533FF" + GetGuildName(@GID) + "^000000 storage.";
  850. close2;
  851. guildopenstorage;
  852. close;
  853. end;
  854. L_NoGuild:
  855. next;
  856. mes "[Warpra]";
  857. mes "You are not a part of a guild I can't help you.";
  858. close;
  859. end;
  860. L_end:
  861. close;
  862. end;
  863. //============================Few=Warp=============================
  864. L_FewWarps:
  865. next;
  866. mes "[Warpra ]";
  867. mes "You need to unlock locations before they come available to you.";
  868. mes "To unlock a location talk to my colleagues all over the world.";
  869. mes "Each account got it's own stamp card.";
  870. mes "Want me to check what stamps you have collected so far ?.";
  871. if (select("Yes","No")==1) callsub stampcard;
  872. close;
  873. end;
  874. //============================No=Unlock============================
  875. L_NoUnlock:
  876. next;
  877. mes "[Warpra ]";
  878. mes "I don't unlock this location, my assistant deeper in the dungeon will unlock this place.";
  879. close;
  880. end;
  881. //=========================Short=On=Zeny===========================
  882. L_Short_on_zeny:
  883. next;
  884. if (getarg(0) == 0) mes "you don't seem to have "+@pTprice[@Tmenuref[@menu-1]]+" zeny, to pay for the warp fee to "+@pTmenuitems$[@Tmenuref[@menu-1]]+"";
  885. if (getarg(0) == 1) mes "you don't seem to have "+@pDprice[@Dmenuref[@menu-1]]+" zeny, to pay for the warp fee to "+@pDmenuitems$[@Dmenuref[@menu-1]]+"";
  886. if (getarg(0) == 2) mes "you don't seem to have "+@fee+" zeny, to pay for the storage fee";
  887. if (getarg(0) == 3) mes "you don't seem to have "+$QW_GS_PRICE+" zeny, to pay for the guild storage fee";
  888. if (getarg(0) == 4) mes "you don't seem to have "+@healfee+" zeny, to pay for your healing";
  889. close;
  890. end;
  891. //===========================Stamp=Card============================
  892. stampcard:
  893. // Counting of the ammount of places you have unlocked
  894. next;
  895. mes "Let me check what Towns you have";
  896. set @Tstamp,0;
  897. //----------------Prontera:
  898. if (#prontera == 1) set @Tstamp,@Tstamp+1;
  899. //----------------Alberta
  900. if (#alberta == 1) set @Tstamp,@Tstamp+1;
  901. //----------------Aldebaran
  902. if (#aldebaran == 1) set @Tstamp,@Tstamp+1;
  903. //----------------Amatsu:
  904. if (#amatsu == 1) set @Tstamp,@Tstamp+1;
  905. //----------------Ayotaya:
  906. if (#ayotaya == 1) set @Tstamp,@Tstamp+1;
  907. //----------------Comodo:
  908. if (#comodo == 1) set @Tstamp,@Tstamp+1;
  909. //----------------Einbech:
  910. if (#einbech == 1) set @Tstamp,@Tstamp+1;
  911. //----------------Einbroch:
  912. if (#einbroch == 1) set @Tstamp,@Tstamp+1;
  913. //----------------Geffen:
  914. if (#geffen == 1) set @Tstamp,@Tstamp+1;
  915. //----------------Gonryun:
  916. if (#gonryun == 1) set @Tstamp,@Tstamp+1;
  917. //----------------Hugel:
  918. if (#hugel == 1) set @Tstamp,@Tstamp+1;
  919. //----------------Izlude:
  920. if (#izlude == 1) set @Tstamp,@Tstamp+1;
  921. //----------------Jawaii:
  922. if (#jawaii == 1) set @Tstamp,@Tstamp+1;
  923. //----------------Lighthalzen:
  924. if (#lighthalzen == 1) set @Tstamp,@Tstamp+1;
  925. //----------------Louyang:
  926. if (#louyang == 1) set @Tstamp,@Tstamp+1;
  927. //----------------Lutie
  928. if (#xmas == 1) set @Tstamp,@Tstamp+1;
  929. //----------------Morroc:
  930. if (#morocc == 1) set @Tstamp,@Tstamp+1;
  931. //----------------Niflheim:
  932. if (#niflheim == 1) set @Tstamp,@Tstamp+1;
  933. //----------------Payon:
  934. if (#payon == 1) set @Tstamp,@Tstamp+1;
  935. //----------------Umbala:
  936. if (#umbala == 1) set @Tstamp,@Tstamp+1;
  937. //----------------Yuno:
  938. if (#yuno == 1) set @Tstamp,@Tstamp+1;
  939. mes "you collected^00FF00 "+@Tstamp+" of 21 ^000000Towns.";
  940. if (@Tstamp == 15) mes "They say there is an island you can only get to when married";
  941. if (@Tstamp == 15) emotion 18;
  942. next;
  943. mes "Let me check what dungeons you have";
  944. set @Dstamp,0;
  945. //----------------ABYSS LAKE
  946. if (#abyss == 1) set @Dstamp,@Dstamp+1;
  947. //----------------AMATSU DUNGEON
  948. if (#ama_dun == 1) set @Dstamp,@Dstamp+1;
  949. //----------------ANT HELL
  950. if (#anthell == 1) set @Dstamp,@Dstamp+1;
  951. //----------------AYOTAYA
  952. if (#ayotaya_dun == 1) set @Dstamp,@Dstamp+1;
  953. //----------------BYALAN
  954. if (#iz_dun == 1) set @Dstamp,@Dstamp+1;
  955. //----------------CLOCK TOWER
  956. if (#c_tower == 1) set @Dstamp,@Dstamp+1;
  957. //----------------COAL MINE
  958. if (#mjo_dun== 1) set @Dstamp,@Dstamp+1;
  959. //----------------CULVERT
  960. if (#prt_sewb == 1) set @Dstamp,@Dstamp+1;
  961. //----------------EINBECH DUNGEON
  962. if (#einbech_dun == 1) set @Dstamp,@Dstamp+1;
  963. //----------------GEFENIA DUNGEON
  964. if (#gefenia == 1) set @Dstamp,@Dstamp+1;
  965. //----------------GEFFEN DUNGEON
  966. if (#gef_dun == 1) set @Dstamp,@Dstamp+1;
  967. //----------------GLAST HEIM
  968. if (#gl_dun == 1) set @Dstamp,@Dstamp+1;
  969. //----------------GONRYUN DUNGEON
  970. if (#gon_dun == 1) set @Dstamp,@Dstamp+1;
  971. //----------------HIDDEN DUNGEON
  972. if (#hid_dun == 1) set @Dstamp,@Dstamp+1;
  973. //----------------JUPEROS CAVE
  974. if (#juperos == 1) set @Dstamp,@Dstamp+1;
  975. //----------------LIGHTHALZEN BIO LAB
  976. if (#lighthalzen_dun == 1) set @Dstamp,@Dstamp+1;
  977. //----------------MAGMA DUNGEON
  978. if (#mag_dun == 1) set @Dstamp,@Dstamp+1;
  979. //----------------ODIN TEMPLE
  980. if (#odintemple == 1) set @Dstamp,@Dstamp+1;
  981. //----------------ORC DUNGEON
  982. if (#orcsdun == 1) set @Dstamp,@Dstamp+1;
  983. //----------------PAYON DUNGEON
  984. if (#pay_dun == 1) set @Dstamp,@Dstamp+1;
  985. //----------------PYRAMIDS
  986. if (#moc_pryd == 1) set @Dstamp,@Dstamp+1;
  987. //----------------SPHINX
  988. if (#in_sphinx == 1) set @Dstamp,@Dstamp+1;
  989. //----------------SUNKEN SHIP
  990. if (#treasure == 1) set @Dstamp,@Dstamp+1;
  991. //----------------TOY FACTORY
  992. if (#xmas_dun == 1) set @Dstamp,@Dstamp+1;
  993. //----------------TURTLE ISTLAND
  994. if (#tur_dun == 1) set @Dstamp,@Dstamp+1;
  995. //----------------UMBALA
  996. if (#um_dun == 1) set @Dstamp,@Dstamp+1;
  997. mes "you collected^00FF00 "+@Dstamp+" of 26 ^000000Dungeons";
  998. mes "To unlock a dungeon, search for my colleague.";
  999. mes "You can usually find him near the end or middle of the dungeon";
  1000. return;
  1001. }
  1002. //======================Main=Menu=Array============================
  1003. function script QWS_MMarray {
  1004. // Currently 9 items
  1005. setarray @pMmenuitems$[0], "GameMaster Menu", "Warp to Towns", "Warp to Dungeons", "Why so few Warps ?", "Why don't you Unlock this location ?", "Heal", "Heal", "Storage", "Guild Storage", "Cancel";
  1006. set @Mi,0; // That's our loop counter.
  1007. set @Mj,0; // That's the menu lines counter.
  1008. //----------------GameMaster-Menu
  1009. if (getgmlevel(80)) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1010. if (getgmlevel(80)) set @Mmenuref[@Mj],@Mi;
  1011. if (getgmlevel(80)) set @Mj,@Mj+1;
  1012. set @Mi,@Mi+1;
  1013. //----------------Town-Warp
  1014. if ($QW_TW_OFF == 0) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1015. if ($QW_TW_OFF == 0) set @Mmenuref[@Mj],@Mi;
  1016. if ($QW_TW_OFF == 0) set @Mj,@Mj+1;
  1017. set @Mi,@Mi+1;
  1018. //----------------Dungeon-Warp
  1019. if ($QW_DW_OFF == 0) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1020. if ($QW_DW_OFF == 0) set @Mmenuref[@Mj],@Mi;
  1021. if ($QW_DW_OFF == 0) set @Mj,@Mj+1;
  1022. set @Mi,@Mi+1;
  1023. //----------------Why-So-Few-Warps
  1024. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1025. set @Mmenuref[@Mj],@Mi;
  1026. set @Mj,@Mj+1;
  1027. set @Mi,@Mi+1;
  1028. //----------------No-Unlock
  1029. if (getarg(0) == 1) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1030. if (getarg(0) == 1) set @Mmenuref[@Mj],@Mi;
  1031. if (getarg(0) == 1) set @Mj,@Mj+1;
  1032. set @Mi,@Mi+1;
  1033. //----------------Healfull
  1034. if ($QW_HF == 1) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1035. if ($QW_HF == 1) set @Mmenuref[@Mj],@Mi;
  1036. if ($QW_HF == 1) set @Mj,@Mj+1;
  1037. set @Mi,@Mi+1;
  1038. //----------------Healpart
  1039. if ($QW_HP == 1) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1040. if ($QW_HP == 1) set @Mmenuref[@Mj],@Mi;
  1041. if ($QW_HP == 1) set @Mj,@Mj+1;
  1042. set @Mi,@Mi+1;
  1043. //----------------Storage
  1044. if ($QW_Stor == 1) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1045. if ($QW_Stor == 1) set @Mmenuref[@Mj],@Mi;
  1046. if ($QW_Stor == 1) set @Mj,@Mj+1;
  1047. set @Mi,@Mi+1;
  1048. //----------------GuildStorage
  1049. if ($QW_GStor == 1) set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1050. if ($QW_GStor == 1) set @Mmenuref[@Mj],@Mi;
  1051. if ($QW_GStor == 1) set @Mj,@Mj+1;
  1052. set @Mi,@Mi+1;
  1053. //----------------Cancel
  1054. set @Mmenulist$[@Mj],@pMmenuitems$[@Mi];
  1055. set @Mmenuref[@Mj],@Mi;
  1056. return;
  1057. }
  1058. //======================Town=Menu=Array============================
  1059. function script QWS_Tarray {
  1060. // Currently 22 items
  1061. setarray @pTmenuitems$[0], "Prontera", "Alberta", "Aldebaran", "Amatsu", "Ayothaya", "Comodo", "Einbech", "Einbroch", "Geffen", "Gonryun", "Hugel", "Izlude", "Jawaii", "Lighthalzen", "Louyang", "Lutie", "Morroc", "Niflheim", "Payon", "Umbala", "Yuno", "Cancel"; // townnames
  1062. setarray @pTmap$[0], "prontera.gat", "alberta.gat", "aldebaran.gat", "amatsu.gat", "ayothaya.gat", "comodo.gat", "einbech.gat", "einbroch.gat", "geffen.gat", "gonryun.gat", "hugel.gat", "izlude.gat", "jawaii.gat", "lighthalzen.gat", "louyang.gat", "xmas.gat", "morocc.gat", "niflheim.gat", "payon.gat", "umbala.gat", "yuno.gat", "L_End"; // mapfile
  1063. setarray @pTXcoords[0], 156, 27, 145, 197, 150, 188, 172, 230, 119, 150, 95, 128, 243, 158, 210, 148, 159, 195, 152, 130, 160, "Cancel"; // all X coords
  1064. setarray @pTYcoords[0], 187, 236, 120, 86, 57, 161, 126, 191, 66, 130, 121, 111, 115, 110, 108, 131, 93, 186, 75, 130, 168, "Cancel"; // all Y coords
  1065. setarray @pTprice[0], $QW_BW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_OW_PRICE, $QW_OW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_OW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_OW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, 0;
  1066. set @Ti,0; // That's our loop counter.
  1067. set @Tj,0; // That's the menu lines counter.
  1068. //----------------Prontera
  1069. if (#prontera == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1070. if (#prontera == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1071. if (#prontera== 1) set @Tmenuref[@Tj],@Ti;
  1072. if (#prontera == 1) set @Tj,@Tj+1;
  1073. set @Ti,@Ti+1;
  1074. //----------------Alberta
  1075. if (#alberta == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1076. if (#alberta == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1077. if (#alberta == 1) set @Tmenuref[@Tj],@Ti;
  1078. if (#alberta == 1) set @Tj,@Tj+1;
  1079. set @Ti,@Ti+1;
  1080. //----------------Aldebaran
  1081. if (#aldebaran == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1082. if (#aldebaran == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1083. if (#aldebaran == 1) set @Tmenuref[@Tj],@Ti;
  1084. if (#aldebaran == 1) set @Tj,@Tj+1;
  1085. set @Ti,@Ti+1;
  1086. //----------------Amatsu:
  1087. if (#amatsu == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1088. if (#amatsu == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1089. if (#amatsu == 1) set @Tmenuref[@Tj],@Ti;
  1090. if (#amatsu == 1) set @Tj,@Tj+1;
  1091. set @Ti,@Ti+1;
  1092. //----------------Ayothaya:
  1093. if (#ayotaya == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1094. if (#ayotaya == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1095. if (#ayotaya == 1) set @Tmenuref[@Tj],@Ti;
  1096. if (#ayotaya == 1) set @Tj,@Tj+1;
  1097. set @Ti,@Ti+1;
  1098. //----------------Comodo:
  1099. if (#comodo == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1100. if (#comodo == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1101. if (#comodo == 1) set @Tmenuref[@Tj],@Ti;
  1102. if (#comodo == 1) set @Tj,@Tj+1;
  1103. set @Ti,@Ti+1;
  1104. //----------------Einbech:
  1105. if (#einbech == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1106. if (#einbech == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1107. if (#einbech == 1) set @Tmenuref[@Tj],@Ti;
  1108. if (#einbech == 1) set @Tj,@Tj+1;
  1109. set @Ti,@Ti+1;
  1110. //----------------Einbroch:
  1111. if (#einbroch == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1112. if (#einbroch == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1113. if (#einbroch == 1) set @Tmenuref[@Tj],@Ti;
  1114. if (#einbroch == 1) set @Tj,@Tj+1;
  1115. set @Ti,@Ti+1;
  1116. //----------------Geffen:
  1117. if (#geffen == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1118. if (#geffen == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1119. if (#geffen == 1) set @Tmenuref[@Tj],@Ti;
  1120. if (#geffen == 1) set @Tj,@Tj+1;
  1121. set @Ti,@Ti+1;
  1122. //----------------Gonryun:
  1123. if (#gonryun == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1124. if (#gonryun == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1125. if (#gonryun == 1) set @Tmenuref[@Tj],@Ti;
  1126. if (#gonryun == 1) set @Tj,@Tj+1;
  1127. set @Ti,@Ti+1;
  1128. //----------------Hugel:
  1129. if (#hugel == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1130. if (#hugel == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1131. if (#hugel == 1) set @Tmenuref[@Tj],@Ti;
  1132. if (#hugel == 1) set @Tj,@Tj+1;
  1133. set @Ti,@Ti+1;
  1134. //----------------Izlude:
  1135. if (#izlude == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1136. if (#izlude == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1137. if (#izlude == 1) set @Tmenuref[@Tj],@Ti;
  1138. if (#izlude == 1) set @Tj,@Tj+1;
  1139. set @Ti,@Ti+1;
  1140. //----------------Jawaii:
  1141. if (#jawaii == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1142. if (#jawaii == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1143. if (#jawaii == 1) set @Tmenuref[@Tj],@Ti;
  1144. if (#jawaii == 1) set @Tj,@Tj+1;
  1145. set @Ti,@Ti+1;
  1146. //----------------Lighthalzen:
  1147. if (#lighthalzen == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1148. if (#lighthalzen == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1149. if (#lighthalzen == 1) set @Tmenuref[@Tj],@Ti;
  1150. if (#lighthalzen == 1) set @Tj,@Tj+1;
  1151. set @Ti,@Ti+1;
  1152. //----------------Louyang:
  1153. if (#louyang == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1154. if (#louyang == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1155. if (#louyang == 1) set @Tmenuref[@Tj],@Ti;
  1156. if (#louyang == 1) set @Tj,@Tj+1;
  1157. set @Ti,@Ti+1;
  1158. //----------------Lutie
  1159. if (#xmas == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1160. if (#xmas == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1161. if (#xmas == 1) set @Tmenuref[@Tj],@Ti;
  1162. if (#xmas == 1) set @Tj,@Tj+1;
  1163. set @Ti,@Ti+1;
  1164. //----------------Morroc:
  1165. if (#morocc == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1166. if (#morocc == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1167. if (#morocc == 1) set @Tmenuref[@Tj],@Ti;
  1168. if (#morocc == 1) set @Tj,@Tj+1;
  1169. set @Ti,@Ti+1;
  1170. //----------------Niflheim:
  1171. if (#niflheim == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1172. if (#niflheim == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1173. if (#niflheim == 1) set @Tmenuref[@Tj],@Ti;
  1174. if (#niflheim == 1) set @Tj,@Tj+1;
  1175. set @Ti,@Ti+1;
  1176. //----------------Payon:
  1177. if (#payon == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1178. if (#payon == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1179. if (#payon == 1) set @Tmenuref[@Tj],@Ti;
  1180. if (#payon == 1) set @Tj,@Tj+1;
  1181. set @Ti,@Ti+1;
  1182. //----------------Umbala:
  1183. if (#umbala == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1184. if (#umbala == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1185. if (#umbala == 1) set @Tmenuref[@Tj],@Ti;
  1186. if (#umbala == 1) set @Tj,@Tj+1;
  1187. set @Ti,@Ti+1;
  1188. //----------------Yuno:
  1189. if (#yuno == 1)&&(@pTprice[@Ti] != 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti]+" -> "+@pTprice[@Ti];
  1190. if (#yuno == 1)&&(@pTprice[@Ti] == 0) set @Tmenulist$[@Tj], @pTmenuitems$[@Ti];
  1191. if (#yuno == 1) set @Tmenuref[@Tj],@Ti;
  1192. if (#yuno == 1) set @Tj,@Tj+1;
  1193. set @Ti,@Ti+1;
  1194. //----------------Cancel
  1195. set @Tmenulist$[@Tj],@pTmenuitems$[@Ti];
  1196. set @Tmenuref[@Tj],@Ti;
  1197. return;
  1198. }
  1199. //====================Dungeon=Menu=Array===========================
  1200. function script QWS_Darray {
  1201. setarray @pDmenuitems$[0], "Abyss Lake", "Amatsu Dungeon", "Ant Hell Dungeon", "Ayotaya Dungeon", "Byalan Dungeon", "Clock Tower Dungeon", "Coal Mine Dungeon", "Culvert Dungeon", "Einbech Dungeon", "Gefenia Dungeon", "Geffen Dungeon", "Glast Heim Dungeon", "Gonryun Dungeon", "Hidden Dungeon", "Juperos Cave", "Lighthalzen Bio Lab", "Magma Dungeon", "Odin Temple", "Orc Dungeon", "Payon Dungeon", "Pyramids Dungeon", "Sphinx Dungeon", "Sunken Ship Dungeon", "Toy Factory Dungeon", "Turtle Island Dungeon", "Umbala Dungeon", "Cancel";
  1202. setarray @pDmenugoto$[0], "abyss", "ama_dun", "anthell", "ayotaya_dun", "iz_dun", "c_tower", "mjo_dun", "prt_sewb", "einbech_dun", "gefenia", "gef_dun", "gl_dun", "gon_dun", "hid_dun", "juperos", "lighthalzen_dun", "mag_dun", "odintemple", "orcsdun", pay_dun, "moc_pryd", "in_sphinx", "treasure", "xmas_dun", "tur_dun", "um_dun", "L_End";
  1203. setarray @pDprice[0], $QW_AW_PRICE, $QW_OW_PRICE, $QW_BW_PRICE, $QW_OW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_OW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_BW_PRICE, $QW_AW_PRICE, $QW_AW_PRICE, $QW_OW_PRICE, 0;
  1204. set @Di,0; // That's our loop counter.
  1205. set @Dj,0; // That's the menu lines counter.
  1206. //----------------ABYSS LAKE
  1207. if (#abyss == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1208. if (#abyss == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1209. if (#abyss == 1) set @Dmenuref[@Dj],@Di;
  1210. if (#abyss == 1) set @Dj,@Dj+1;
  1211. set @Di,@Di+1;
  1212. //----------------AMATSU DUNGEON
  1213. if (#ama_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1214. if (#ama_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1215. if (#ama_dun == 1) set @Dmenuref[@Dj],@Di;
  1216. if (#ama_dun == 1) set @Dj,@Dj+1;
  1217. set @Di,@Di+1;
  1218. //----------------ANT HELL
  1219. if (#anthell == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1220. if (#anthell == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1221. if (#anthell == 1) set @Dmenuref[@Dj],@Di;
  1222. if (#anthell == 1) set @Dj,@Dj+1;
  1223. set @Di,@Di+1;
  1224. //----------------AYOTAYA
  1225. if (#ayotaya_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1226. if (#ayotaya_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1227. if (#ayotaya_dun == 1) set @Dmenuref[@Dj],@Di;
  1228. if (#ayotaya_dun == 1) set @Dj,@Dj+1;
  1229. set @Di,@Di+1;
  1230. //----------------BYALAN
  1231. if (#iz_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1232. if (#iz_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1233. if (#iz_dun == 1) set @Dmenuref[@Dj],@Di;
  1234. if (#iz_dun == 1) set @Dj,@Dj+1;
  1235. set @Di,@Di+1;
  1236. //----------------CLOCK TOWER
  1237. if (#c_tower == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1238. if (#c_tower == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1239. if (#c_tower == 1) set @Dmenuref[@Dj],@Di;
  1240. if (#c_tower == 1) set @Dj,@Dj+1;
  1241. set @Di,@Di+1;
  1242. //----------------COAL MINE
  1243. if (#mjo_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1244. if (#mjo_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1245. if (#mjo_dun == 1) set @Dmenuref[@Dj],@Di;
  1246. if (#mjo_dun == 1) set @Dj,@Dj+1;
  1247. set @Di,@Di+1;
  1248. //----------------CULVERT
  1249. if (#prt_sewb == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1250. if (#prt_sewb == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1251. if (#prt_sewb == 1) set @Dmenuref[@Dj],@Di;
  1252. if (#prt_sewb == 1) set @Dj,@Dj+1;
  1253. set @Di,@Di+1;
  1254. //----------------EINBECH DUNGEON
  1255. if (#einbech_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1256. if (#einbech_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1257. if (#einbech_dun == 1) set @Dmenuref[@Dj],@Di;
  1258. if (#einbech_dun == 1) set @Dj,@Dj+1;
  1259. set @Di,@Di+1;
  1260. //----------------GEFENIA DUNGEON
  1261. if (#gefenia == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1262. if (#gefenia == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1263. if (#gefenia == 1) set @Dmenuref[@Dj],@Di;
  1264. if (#gefenia == 1) set @Dj,@Dj+1;
  1265. set @Di,@Di+1;
  1266. //----------------GEFFEN DUNGEON
  1267. if (#gef_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1268. if (#gef_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1269. if (#gef_dun == 1) set @Dmenuref[@Dj],@Di;
  1270. if (#gef_dun == 1) set @Dj,@Dj+1;
  1271. set @Di,@Di+1;
  1272. //----------------GLAST HEIM
  1273. if (#gl_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1274. if (#gl_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1275. if (#gl_dun == 1) set @Dmenuref[@Dj],@Di;
  1276. if (#gl_dun == 1) set @Dj,@Dj+1;
  1277. set @Di,@Di+1;
  1278. //----------------GONRYUN DUNGEON
  1279. if (#gon_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1280. if (#gon_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1281. if (#gon_dun == 1) set @Dmenuref[@Dj],@Di;
  1282. if (#gon_dun == 1) set @Dj,@Dj+1;
  1283. set @Di,@Di+1;
  1284. //----------------HIDDEN DUNGEON
  1285. if (#hid_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1286. if (#hid_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1287. if (#hid_dun == 1) set @Dmenuref[@Dj],@Di;
  1288. if (#hid_dun == 1) set @Dj,@Dj+1;
  1289. set @Di,@Di+1;
  1290. //----------------JUPEROS CAVE
  1291. if (#juperos == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1292. if (#juperos == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1293. if (#juperos == 1) set @Dmenuref[@Dj],@Di;
  1294. if (#juperos == 1) set @Dj,@Dj+1;
  1295. set @Di,@Di+1;
  1296. //----------------LIGHTHALZEN BIO LAB
  1297. if (#lighthalzen_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1298. if (#lighthalzen_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1299. if (#lighthalzen_dun == 1) set @Dmenuref[@Dj],@Di;
  1300. if (#lighthalzen_dun == 1) set @Dj,@Dj+1;
  1301. set @Di,@Di+1;
  1302. //----------------MAGMA DUNGEON
  1303. if (#mag_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1304. if (#mag_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1305. if (#mag_dun == 1) set @Dmenuref[@Dj],@Di;
  1306. if (#mag_dun == 1) set @Dj,@Dj+1;
  1307. set @Di,@Di+1;
  1308. //----------------ODIN TEMPLE
  1309. if (#odintemple == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1310. if (#odintemple == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1311. if (#odintemple == 1) set @Dmenuref[@Dj],@Di;
  1312. if (#odintemple == 1) set @Dj,@Dj+1;
  1313. set @Di,@Di+1;
  1314. //----------------ORC DUNGEON
  1315. if (#orcsdun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1316. if (#orcsdun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1317. if (#orcsdun == 1) set @Dmenuref[@Dj],@Di;
  1318. if (#orcsdun == 1) set @Dj,@Dj+1;
  1319. set @Di,@Di+1;
  1320. //----------------PAYON DUNGEON
  1321. if (#pay_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1322. if (#pay_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1323. if (#pay_dun == 1) set @Dmenuref[@Dj],@Di;
  1324. if (#pay_dun == 1) set @Dj,@Dj+1;
  1325. set @Di,@Di+1;
  1326. //----------------PYRAMIDS
  1327. if (#moc_pryd == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1328. if (#moc_pryd == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1329. if (#moc_pryd == 1) set @Dmenuref[@Dj],@Di;
  1330. if (#moc_pryd == 1) set @Dj,@Dj+1;
  1331. set @Di,@Di+1;
  1332. //----------------SPHINX
  1333. if (#in_sphinx == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1334. if (#in_sphinx == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1335. if (#in_sphinx == 1) set @Dmenuref[@Dj],@Di;
  1336. if (#in_sphinx == 1) set @Dj,@Dj+1;
  1337. set @Di,@Di+1;
  1338. //----------------SUNKEN SHIP
  1339. if (#treasure == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1340. if (#treasure == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1341. if (#treasure == 1) set @Dmenuref[@Dj],@Di;
  1342. if (#treasure == 1) set @Dj,@Dj+1;
  1343. set @Di,@Di+1;
  1344. //----------------TOY FACTORY
  1345. if (#xmas_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1346. if (#xmas_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1347. if (#xmas_dun == 1) set @Dmenuref[@Dj],@Di;
  1348. if (#xmas_dun == 1) set @Dj,@Dj+1;
  1349. set @Di,@Di+1;
  1350. //----------------TURTLE ISTLAND
  1351. if (#tur_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1352. if (#tur_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1353. if (#tur_dun == 1) set @Dmenuref[@Dj],@Di;
  1354. if (#tur_dun == 1) set @Dj,@Dj+1;
  1355. set @Di,@Di+1;
  1356. //----------------UMBALA
  1357. if (#um_dun == 1)&&(@pDprice[@Di] != 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di]+" -> "+@pDprice[@Di];
  1358. if (#um_dun == 1)&&(@pDprice[@Di] == 0) set @Dmenulist$[@Dj], @pDmenuitems$[@Di];
  1359. if (#um_dun == 1) set @Dmenuref[@Dj],@Di;
  1360. if (#um_dun == 1) set @Dj,@Dj+1;
  1361. set @Di,@Di+1;
  1362. //----------------Cancel
  1363. set @Dmenulist$[@Dj],@pDmenuitems$[@Di];
  1364. set @Dmenuref[@Dj],@Di;
  1365. return;
  1366. }
  1367. //============================Warpras==============================
  1368. alb2trea.gat,73,101,4 script Warpra 113,{
  1369. callfunc "Q_Warpra",1;
  1370. }
  1371. ama_fild01.gat,178,325,1 script Warpra 113,{
  1372. callfunc "Q_Warpra",1;
  1373. }
  1374. gef_fild10.gat,71,339,4 script Warpra 113,{
  1375. callfunc "Q_Warpra",1;
  1376. }
  1377. izlu2dun.gat,104,82,4 script Warpra 113,{
  1378. callfunc "Q_Warpra",1;
  1379. }
  1380. mjolnir_02.gat,85,363,4 script Warpra 113,{
  1381. callfunc "Q_Warpra",1;
  1382. }
  1383. moc_fild04.gat,207,331,4 script Warpra 113,{
  1384. callfunc "Q_Warpra",1;
  1385. }
  1386. moc_fild19.gat,106,97,4 script Warpra 113,{
  1387. callfunc "Q_Warpra",1;
  1388. }
  1389. moc_ruins.gat,64,166,4 script Warpra 113,{
  1390. callfunc "Q_Warpra",1;
  1391. }
  1392. niflheim.gat,197,192,3 script Warpra 113,{
  1393. callfunc "Q_Warpra",1;
  1394. }
  1395. pay_arche.gat,39,135,4 script Warpra 113,{
  1396. callfunc "Q_Warpra",1;
  1397. }
  1398. prt_fild05.gat,273,215,4 script Warpra 113,{
  1399. callfunc "Q_Warpra",1;
  1400. }
  1401. tur_dun01.gat,148,239,4 script Warpra 113,{
  1402. callfunc "Q_Warpra",1;
  1403. }
  1404. valkyrie.gat,48,35,8 script Warpra 113,{
  1405. callfunc "Q_Warpra",1;
  1406. }
  1407. yuno_fild03.gat,37,135,4 script Warpra 113,{
  1408. callfunc "Q_Warpra",1;
  1409. }
  1410. alberta.gat,32,240,4 script Warpra 113,{
  1411. if (#alberta != 0) callfunc "Q_Warpra",0;
  1412. set #alberta,1;
  1413. mes "[Warpra]";
  1414. mes "Alberta Town unlocked!";
  1415. close;
  1416. }
  1417. aldebaran.gat,146,118,4 script Warpra 113,{
  1418. if (#aldebaran != 0) callfunc "Q_Warpra",0;
  1419. set #aldebaran,1;
  1420. mes "[Warpra]";
  1421. mes "Aldebaran Town unlocked!";
  1422. close;
  1423. }
  1424. ayothaya.gat,216,171,5 script Warpra 113,{
  1425. if (#ayotaya != 0) callfunc "Q_Warpra",0;
  1426. set #ayotaya,1;
  1427. mes "[Warpra]";
  1428. mes "Ayotaya Town unlocked!";
  1429. close;
  1430. }
  1431. amatsu.gat,193,81,1 script Warpra 113,{
  1432. if (#amatsu != 0) callfunc "Q_Warpra",0;
  1433. set #amatsu,1;
  1434. mes "[Warpra]";
  1435. mes "Amatsu Town unlocked!";
  1436. close;
  1437. }
  1438. comodo.gat,195,158,4 script Warpra 113,{
  1439. if (#comodo != 0) callfunc "Q_Warpra",0;
  1440. set #comodo,1;
  1441. mes "[Warpra]";
  1442. mes "Comodo Town unlocked!";
  1443. close;
  1444. }
  1445. einbroch.gat,229,196,5 script Warpra 113,{
  1446. if (#einbroch != 0) callfunc "Q_Warpra",0;
  1447. set #einbroch,1;
  1448. mes "[Warpra]";
  1449. mes "Einbroch Town unlocked!";
  1450. close;
  1451. }
  1452. einbech.gat,173,131,5 script Warpra 113,{
  1453. if (#einbech != 0) callfunc "Q_Warpra",0;
  1454. set #einbech,1;
  1455. mes "[Warpra]";
  1456. mes "Einbech Town unlocked!";
  1457. close;
  1458. }
  1459. geffen.gat,116,66,4 script Warpra 113,{
  1460. if (#geffen != 0) callfunc "Q_Warpra",0;
  1461. set #geffen,1;
  1462. mes "[Warpra]";
  1463. mes "Geffen Town unlocked!";
  1464. close;
  1465. }
  1466. gonryun.gat,152,130,4 script Warpra 113,{
  1467. if (#gonryun != 0) callfunc "Q_Warpra",0;
  1468. set #gonryun,1;
  1469. mes "[Warpra]";
  1470. mes "Gonryun Town unlocked!";
  1471. close;
  1472. }
  1473. hugel.gat,90,127,5 script Warpra 113,{
  1474. if (#hugel != 0) callfunc "Q_Warpra",0;
  1475. set #hugel,1;
  1476. mes "[Warpra]";
  1477. mes "Hugel Town unlocked!";
  1478. close;
  1479. }
  1480. jawaii.gat,107,182,5 script Warpra 113,{
  1481. if (#jawaii != 0) callfunc "Q_Warpra",0;
  1482. set #jawaii,1;
  1483. mes "[Warpra]";
  1484. mes "Jawaii Town unlocked!";
  1485. close;
  1486. }
  1487. izlude.gat,132,116,4 script Warpra 113,{
  1488. if (#izlude != 0) callfunc "Q_Warpra",0;
  1489. set #izlude,1;
  1490. mes "[Warpra]";
  1491. mes "Izlude Town unlocked!";
  1492. close;
  1493. }
  1494. lighthalzen.gat,153,100,5 script Warpra 113,{
  1495. if (#lighthalzen != 0) callfunc "Q_Warpra",0;
  1496. set #lighthalzen,1;
  1497. mes "[Warpra]";
  1498. mes "Lighthalzen Town unlocked!";
  1499. close;
  1500. }
  1501. louyang.gat,211,106,4 script Warpra 113,{
  1502. if (#louyang != 0) callfunc "Q_Warpra",0;
  1503. set #louyang,1;
  1504. mes "[Warpra]";
  1505. mes "Louyang Town unlocked!";
  1506. close;
  1507. }
  1508. morocc.gat,157,95,4 script Warpra 113,{
  1509. if (#morocc != 0) callfunc "Q_Warpra",0;
  1510. set #morocc,1;
  1511. mes "[Warpra]";
  1512. mes "Morroc Town unlocked!";
  1513. close;
  1514. }
  1515. nif_fild01.gat,319,77,1 script Warpra 113,{
  1516. if (#niflheim != 0) callfunc "Q_Warpra",0;
  1517. set #niflheim,1;
  1518. mes "[Warpra]";
  1519. mes "Niflheim Town unlocked!";
  1520. close;
  1521. }
  1522. payon.gat,183,110,4 script Warpra 113,{
  1523. if (#payon != 0) callfunc "Q_Warpra",0;
  1524. set #payon,1;
  1525. mes "[Warpra]";
  1526. mes "Payon Town unlocked!";
  1527. close;
  1528. }
  1529. prontera.gat,147,172,5 script Warpra 113,{
  1530. if (#prontera != 0) callfunc "Q_Warpra",0;
  1531. set #prontera,1;
  1532. mes "[Warpra]";
  1533. mes "Prontera Town unlocked!";
  1534. close;
  1535. }
  1536. umbala.gat,133,130,4 script Warpra 113,{
  1537. if (#umbala != 0) callfunc "Q_Warpra",0;
  1538. set #umbala,1;
  1539. mes "[Warpra]";
  1540. mes "Umbala Town unlocked!";
  1541. close;
  1542. }
  1543. xmas.gat,151,136,4 script Warpra 113,{
  1544. if (#xmas != 0) callfunc "Q_Warpra",0;
  1545. set #xmas,1;
  1546. mes "[Warpra]";
  1547. mes "Lutie Town unlocked!";
  1548. close;
  1549. }
  1550. yuno.gat,138,162,4 script Warpra 113,{
  1551. if (#yuno != 0) callfunc "Q_Warpra",0;
  1552. set #yuno,1;
  1553. mes "[Warpra]";
  1554. mes "Yuno Town unlocked!";
  1555. close;
  1556. }
  1557. abyss_02.gat,274,266,1 script Warpra 113,{
  1558. if (#abyss == 1) mes "[Warpra]";
  1559. if (#abyss == 1) mes "Sorry I can only unlock this location.";
  1560. if (#abyss == 1) close;
  1561. set #abyss,1;
  1562. mes "[Warpra]";
  1563. mes "Abyss Lake unlocked!";
  1564. close;
  1565. }
  1566. ama_dun02.gat,192,118,5 script Warpra Helper 112,{
  1567. if (#ama_dun == 1) mes "[Warpra]";
  1568. if (#ama_dun == 1) mes "Sorry I can only unlock this location.";
  1569. if (#ama_dun == 1) close;
  1570. set #ama_dun,1;
  1571. mes "[Warpra]";
  1572. mes "Amatsu Dungeon unlocked!";
  1573. close;
  1574. }
  1575. anthell02.gat,170,165,3 script Warpra Helper 112,{
  1576. if (#anthell == 1) mes "[Warpra]";
  1577. if (#anthell == 1) mes "Sorry I can only unlock this location.";
  1578. if (#anthell == 1) close;
  1579. set #anthell,1;
  1580. mes "[Warpra]";
  1581. mes "Ant Hell Dungeon unlocked!";
  1582. close;
  1583. }
  1584. ayo_dun02.gat,258,193,5 script Warpra Helper 112,{
  1585. if (#ayotaya_dun == 1) mes "[Warpra]";
  1586. if (#ayotaya_dun == 1) mes "Sorry I can only unlock this location.";
  1587. if (#ayotaya_dun == 1) close;
  1588. set #ayotaya_dun,1;
  1589. mes "[Warpra]";
  1590. mes "Ayotaya Dungeon unlocked!";
  1591. close;
  1592. }
  1593. ein_dun02.gat,292,282,1 script Warpra Helper 112,{
  1594. if (#einbech_dun == 1) mes "[Warpra]";
  1595. if (#einbech_dun == 1) mes "Sorry I can only unlock this location.";
  1596. if (#einbech_dun == 1) close;
  1597. set #einbech_dun,1;
  1598. mes "[Warpra]";
  1599. mes "Einbech Dungeon unlocked!";
  1600. close;
  1601. }
  1602. iz_dun03.gat,202,47,2 script Warpra Helper 112,{
  1603. if (#iz_dun == 1) mes "[Warpra]";
  1604. if (#iz_dun == 1) mes "Sorry I can only unlock this location.";
  1605. if (#iz_dun == 1) close;
  1606. set #iz_dun,1;
  1607. mes "[Warpra]";
  1608. mes "Byalan Dungeon unlocked!";
  1609. close;
  1610. }
  1611. c_tower3.gat,129,106,4 script Warpra Helper 112,{
  1612. if (#c_tower == 1) mes "[Warpra]";
  1613. if (#c_tower == 1) mes "Sorry I can only unlock this location.";
  1614. if (#c_tower == 1) close;
  1615. set #c_tower,1;
  1616. mes "[Warpra]";
  1617. mes "Clock Tower Dungeon unlocked!";
  1618. close;
  1619. }
  1620. mjo_dun02.gat,39,25,4 script Warpra Helper 112,{
  1621. if (#mjo_dun == 1) mes "[Warpra]";
  1622. if (#mjo_dun == 1) mes "Sorry I can only unlock this location.";
  1623. if (#mjo_dun == 1) close;
  1624. set #mjo_dun,1;
  1625. mes "[Warpra]";
  1626. mes "Coal Mine Dungeon unlocked!";
  1627. close;
  1628. }
  1629. prt_sewb2.gat,176,30,3 script Warpra Helper 112,{
  1630. if (#prt_sewb == 1) mes "[Warpra]";
  1631. if (#prt_sewb == 1) mes "Sorry I can only unlock this location.";
  1632. if (#prt_sewb == 1) close;
  1633. set #prt_sewb,1;
  1634. mes "[Warpra]";
  1635. mes "Culvert Dungeon unlocked!";
  1636. close;
  1637. }
  1638. gefenia03.gat,137,34,0 script Warpra Helper 112,{
  1639. if (#gefenia == 1) mes "[Warpra]";
  1640. if (#gefenia == 1) mes "Sorry I can only unlock this location.";
  1641. if (#gefenia == 1) close;
  1642. set #gefenia,1;
  1643. mes "[Warpra]";
  1644. mes "Gefenia Dungeon unlocked!";
  1645. close;
  1646. }
  1647. gef_dun02.gat,217,61,2 script Warpra Helper 112,{
  1648. if (#gef_dun == 1) mes "[Warpra]";
  1649. if (#gef_dun == 1) mes "Sorry I can only unlock this location.";
  1650. if (#gef_dun == 1) close;
  1651. set #gef_dun,1;
  1652. mes "[Warpra]";
  1653. mes "Gefen Dungeon unlocked!";
  1654. close;
  1655. }
  1656. glast_01.gat,371,308,3 script Warpra Helper 112,{
  1657. if (#gl_dun == 1) mes "[Warpra]";
  1658. if (#gl_dun == 1) mes "Sorry I can only unlock this location.";
  1659. if (#gl_dun == 1) close;
  1660. set #gl_dun,1;
  1661. mes "[Warpra]";
  1662. mes "Glast Heim Dungeon unlocked!";
  1663. close;
  1664. }
  1665. gon_dun01.gat,167,273,4 script Warpra Helper 112,{
  1666. if (#gon_dun == 1) mes "[Warpra]";
  1667. if (#gon_dun == 1) mes "Sorry I can only unlock this location.";
  1668. if (#gon_dun == 1) close;
  1669. set #gon_dun,1;
  1670. mes "[Warpra]";
  1671. mes "Gonryun Dungeon unlocked!";
  1672. close;
  1673. }
  1674. juperos_02.gat,127,154,5 script Warpra Helper 112,{
  1675. if (#juperos == 1) mes "[Warpra]";
  1676. if (#juperos == 1) mes "Sorry I can only unlock this location.";
  1677. if (#juperos == 1) close;
  1678. set #juperos,1;
  1679. mes "[Warpra]";
  1680. mes "Juperos Cave unlocked!";
  1681. close;
  1682. }
  1683. lhz_dun02.gat,156,151,3 script Warpra Helper 112,{
  1684. if (#lighthalzen_dun == 1) mes "[Warpra]";
  1685. if (#lighthalzen_dun == 1) mes "Sorry I can only unlock this location.";
  1686. if (#lighthalzen_dun == 1) close;
  1687. set #lighthalzen_dun,1;
  1688. mes "[Warpra]";
  1689. mes "Lighthalzen Bio Lab unlocked!";
  1690. close;
  1691. }
  1692. mag_dun02.gat,46,41,3 script Warpra Helper 112,{
  1693. if (#mag_dun == 1) mes "[Warpra]";
  1694. if (#mag_dun == 1) mes "Sorry I can only unlock this location.";
  1695. if (#mag_dun == 1) close;
  1696. set #mag_dun,1;
  1697. mes "[Warpra]";
  1698. mes "Magma Dungeon unlocked!";
  1699. close;
  1700. }
  1701. odin_tem01.gat,115,148,3 script Warpra Helper 112,{
  1702. if (#odintemple == 1) mes "[Warpra]";
  1703. if (#odintemple == 1) mes "Sorry I can only unlock this location.";
  1704. if (#odintemple == 1) close;
  1705. set #odintemple,1;
  1706. mes "[Warpra]";
  1707. mes "Odin Temple unlocked!";
  1708. close;
  1709. }
  1710. orcsdun01.gat,185,11,3 script Warpra Helper 112,{
  1711. if (#orcsdun == 1) mes "[Warpra]";
  1712. if (#orcsdun == 1) mes "Sorry I can only unlock this location.";
  1713. if (#orcsdun == 1) close;
  1714. set #orcsdun,1;
  1715. mes "[Warpra]";
  1716. mes "Orc Dungeon unlocked!";
  1717. close;
  1718. }
  1719. pay_dun03.gat,162,143,3 script Warpra Helper 112,{
  1720. if (#pay_dun== 1) mes "[Warpra]";
  1721. if (#pay_dun == 1) mes "Sorry I can only unlock this location.";
  1722. if (#pay_dun == 1) close;
  1723. set #pay_dun,1;
  1724. mes "[Warpra]";
  1725. mes "Payon Dungeon unlocked!";
  1726. close;
  1727. }
  1728. moc_pryd02.gat,101,95,3 script Warpra Helper 112,{
  1729. if (#moc_pryd == 1) mes "[Warpra]";
  1730. if (#moc_pryd == 1) mes "Sorry I can only unlock this location.";
  1731. if (#moc_pryd == 1) close;
  1732. set #moc_pryd,1;
  1733. mes "[Warpra]";
  1734. mes "Pyramides Dungeon unlocked!";
  1735. close;
  1736. }
  1737. in_sphinx2.gat,274,268,1 script Warpra Helper 112,{
  1738. if (#in_sphinx == 1) mes "[Warpra]";
  1739. if (#in_sphinx == 1) mes "Sorry I can only unlock this location.";
  1740. if (#in_sphinx == 1) close;
  1741. set #in_sphinx,1;
  1742. mes "[Warpra]";
  1743. mes "Sphinx Dungeon unlocked!";
  1744. close;
  1745. }
  1746. treasure02.gat,104,40,3 script Warpra Helper 112,{
  1747. if (#treasure == 1) mes "[Warpra]";
  1748. if (#treasure == 1) mes "Sorry I can only unlock this location.";
  1749. if (#treasure == 1) close;
  1750. set #treasure,1;
  1751. mes "[Warpra]";
  1752. mes "Sunken Ship Dungeon unlocked!";
  1753. close;
  1754. }
  1755. xmas_dun02.gat,124,131,3 script Warpra Helper 112,{
  1756. if (#xmas_dun == 1) mes "[Warpra]";
  1757. if (#xmas_dun == 1) mes "Sorry I can only unlock this location.";
  1758. if (#xmas_dun == 1) close;
  1759. set #xmas_dun,1;
  1760. mes "[Warpra]";
  1761. mes "Toy Factory Dungeon unlocked!";
  1762. close;
  1763. }
  1764. um_dun02.gat,44,28,3 script Warpra Helper 112,{
  1765. if (#um_dun == 1) mes "[Warpra]";
  1766. if (#um_dun == 1) mes "Sorry I can only unlock this location.";
  1767. if (#um_dun == 1) close;
  1768. set #um_dun,1;
  1769. mes "[Warpra]";
  1770. mes "Umbala Dungeon unlocked!";
  1771. close;
  1772. }
  1773. tur_dun02.gat,162,23,3 script Warpra Helper 112,{
  1774. if (#tur_dun == 1) mes "[Warpra]";
  1775. if (#tur_dun == 1) mes "Sorry I can only unlock this location.";
  1776. if (#tur_dun == 1) close;
  1777. set #tur_dun,1;
  1778. mes "[Warpra]";
  1779. mes "Turtle Island Dungeon unlocked!";
  1780. close;
  1781. }
  1782. prt_maze02.gat,102,69,4 script Warpra Helper 112,{
  1783. if (#hid_dun == 1) mes "[Warpra]";
  1784. if (#hid_dun == 1) mes "Sorry I can only unlock this location.";
  1785. if (#hid_dun == 1) close;
  1786. set #hid_dun,1;
  1787. mes "[Warpra]";
  1788. mes "Hidden Dungeon unlocked!";
  1789. close;
  1790. }