acolyte_warp.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. //===== rAthena Script =======================================
  2. //= Acolyte Warpers
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena SVN
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Warpers to various towns.
  12. //===== Additional Comments: =================================
  13. //= 1.0 First version. [Euphy]
  14. //= Unsure if this is on kRO, so disabled for now.
  15. //= 1.1 Added iRO VIP features. [Euphy]
  16. //= The function is located in re/quests/eden/eden_vip.txt.
  17. //============================================================
  18. prontera,98,121,4 script Acolyte#Prtclear 90,{
  19. mes "[Keiki]";
  20. mes "Hello there, adventurer.";
  21. mes "I've been studying magic from all over Rune-Midgard to upgrade what I believe to be one of the greatest skills available to the acolyte class.";
  22. next;
  23. if (is_function("VIP_iRO_Acolyte"))
  24. callfunc "VIP_iRO_Acolyte","[Keiki]","Juno";
  25. mes "[Keiki]";
  26. mes "I am the one and only Acolyte that has attained the Level 10 Warp Portal skill!";
  27. emotion e_dots,1;
  28. next;
  29. mes "[Keiki]";
  30. mes "That's right! And...";
  31. mes "I promise you that I don't forget locations that I have already memorized.";
  32. mes "One day I will level up my skills to warp to wherever I please~";
  33. next;
  34. mes "[Keiki]";
  35. mes "I am willing to warp you to the many locations that I have memorized for a small fee.";
  36. mes "Would you like to use this service?";
  37. next;
  38. switch(select("Yes:No")) {
  39. case 1:
  40. mes "[Keiki]";
  41. mes "Where would you like to go to?";
  42. mes "I wish you goodluck on your journey.";
  43. next;
  44. setarray .@towns$[0], "Izlude", "Geffen", "Payon", "Morroc", "Alberta", "Al De Baran", "Comodo", "Umbala", "Juno";
  45. setarray .@cost[0], 600, 1200, 1200, 1200, 1800, 2200, 2200, 2200, 1800;
  46. set .@size, getarraysize(.@towns$);
  47. for(set .@i,0; .@i<.@size; set .@i,.@i+1)
  48. set .@menu$, .@menu$+.@towns$[.@i]+" -> "+.@cost[.@i]+"z:";
  49. set .@i, select(.@menu$+"Cancel")-1;
  50. if (.@i == .@size)
  51. close;
  52. if (Zeny < .@cost[.@i]) {
  53. mes "[Keiki]";
  54. mes "I'm sorry, but you don't have";
  55. mes "enough zeny for the Teleport";
  56. mes "Service. The fee to teleport";
  57. mes "to "+.@towns$[.@i]+" is "+.@cost[.@i]+" zeny.";
  58. close;
  59. }
  60. specialeffect2 EF_READYPORTAL;
  61. specialeffect2 EF_TELEPORTATION;
  62. specialeffect2 EF_PORTAL;
  63. next;
  64. set Zeny, Zeny - .@cost[.@i];
  65. switch(.@i) {
  66. case 0: if (checkre(0)) warp "izlude",128,98; else warp "izlude",91,105; break;
  67. case 1: warp "geffen",120,39; break;
  68. case 2: warp "payon",161,58; break;
  69. case 3: warp "morocc",156,46; break;
  70. case 4: warp "alberta",117,56; break;
  71. case 5: warp "aldebaran",168,112; break;
  72. case 6: warp "comodo",209,143; break;
  73. case 7: warp "umbala",100,154; break;
  74. case 8: warp "yuno",158,125; break;
  75. }
  76. close;
  77. case 2:
  78. close;
  79. }
  80. }
  81. yuno,142,184,6 script Acolyte#Junoclear 90,{
  82. mes "[Isalei]";
  83. mes "Hello, adventurer.";
  84. mes "My companion Keiki and I have discovered a way to increase our warp portal abilities.";
  85. next;
  86. if (is_function("VIP_iRO_Acolyte"))
  87. callfunc "VIP_iRO_Acolyte","[Isalei]","Prontera";
  88. mes "[Isalei]";
  89. mes "Though I have not mastered up to the level that she has, I have been able to attain Level 5.";
  90. emotion e_dots,1;
  91. next;
  92. mes "[Isalei]";
  93. mes "Maybe one day I can level up my skills enough so that I can use Warp portal to more saved locations.";
  94. next;
  95. mes "[Isalei]";
  96. mes "I am willing to warp you to the many locations that I have memorized for a small fee.";
  97. mes "Would you like to use this service?";
  98. next;
  99. switch(select("Yes:No")) {
  100. case 1:
  101. mes "[Isalei]";
  102. mes "Where would you like to go to?";
  103. mes "I wish you goodluck on your journey.";
  104. next;
  105. setarray .@towns$[0], "Einbroch", "Lighthalzen", "Hugel", "Rachel", "Prontera";
  106. setarray .@cost[0], 2200, 2200, 2200, 2200, 1800;
  107. set .@size, getarraysize(.@towns$);
  108. for(set .@i,0; .@i<.@size; set .@i,.@i+1)
  109. set .@menu$, .@menu$+.@towns$[.@i]+" -> "+.@cost[.@i]+"z:";
  110. set .@i, select(.@menu$+"Cancel")-1;
  111. if (.@i == .@size)
  112. close;
  113. if (Zeny < .@cost[.@i]) {
  114. mes "[Isalei]";
  115. mes "I'm sorry, but you don't have";
  116. mes "enough zeny for the Teleport";
  117. mes "Service. The fee to teleport";
  118. mes "to "+.@towns$[.@i]+" is "+.@cost[.@i]+" zeny.";
  119. close;
  120. }
  121. specialeffect2 EF_READYPORTAL;
  122. specialeffect2 EF_TELEPORTATION;
  123. specialeffect2 EF_PORTAL;
  124. next;
  125. set Zeny, Zeny - .@cost[.@i];
  126. switch(.@i) {
  127. case 0: warp "einbroch",67,195; break;
  128. case 1: warp "lighthalzen",159,90; break;
  129. case 2: warp "hugel",98,150; break;
  130. case 3: warp "rachel",119,135; break;
  131. case 4: warp "prontera",116,72; break;
  132. }
  133. close;
  134. case 2:
  135. close;
  136. }
  137. }