acolyte_warp.txt 4.9 KB

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