renters.txt 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. //===== rAthena Script =======================================
  2. //= Renters
  3. //===== Description: =========================================
  4. //= [Official Conversion]
  5. //= Renewal-specific breeder NPCs.
  6. //===== Changelogs: ==========================================
  7. //= 2.1 Moved some renters to a separate renewal file. [Daegaladh]
  8. //= 2.2 Updated to match the official scripts. [Euphy]
  9. //= 2.3 Added fourth class support. [Emistry]
  10. //============================================================
  11. // Dragon Breeder :: dragon
  12. //============================================================
  13. job3_rune01,88,62,5 script Dragon Breeder 105,{
  14. mes "[Dragon Breeder]";
  15. if ((eaclass()&EAJ_THIRDMASK)==EAJ_RUNE_KNIGHT) {
  16. mes "Welcome. Would you like to rent a Dragon?";
  17. next;
  18. switch(select("Yes:No")) {
  19. case 1:
  20. //if (!getskilllv("RK_DRAGONTRAINING")) {
  21. if (!getskilllv("KN_RIDING")) {
  22. mes "[Dragon Breeder]";
  23. mes "Please learn how to ride a Dragon first.";
  24. close;
  25. }
  26. else if (checkdragon()) {
  27. mes "[Dragon Breeder]";
  28. mes "You already have a Dragon.";
  29. close;
  30. }
  31. else if (ismounting()) {
  32. mes "[Dragon Breeder]";
  33. mes "Please remove your cash mount.";
  34. close;
  35. }
  36. setdragon;
  37. close;
  38. case 2:
  39. mes "[Dragon Breeder]";
  40. mes "I see. Then have a great day.";
  41. close;
  42. }
  43. }
  44. mes "What are you doing here?";
  45. mes "Only Rune Knights can rent a Dragon.";
  46. close;
  47. }
  48. // Dragon/Gryphon Master :: dragon
  49. //============================================================
  50. prontera,130,213,5 script Riding Creature Master 105,{
  51. mes "[Riding Creature Master]";
  52. if ((eaclass()&EAJ_THIRDMASK)==EAJ_RUNE_KNIGHT) {
  53. mes "Welcome. Would you like to rent a Dragon?";
  54. next;
  55. switch(select("Yes:No")) {
  56. case 1:
  57. //if (!getskilllv("RK_DRAGONTRAINING")) {
  58. if (!getskilllv("KN_RIDING")) {
  59. mes "[Riding Creature Master]";
  60. mes "Please learn how to ride a Dragon first.";
  61. close;
  62. }
  63. else if (checkdragon()) {
  64. mes "[Riding Creature Master]";
  65. mes "You already have a Dragon.";
  66. close;
  67. }
  68. else if (ismounting()) {
  69. mes "[Riding Creature Master]";
  70. mes "Please remove your cash mount.";
  71. close;
  72. }
  73. setdragon;
  74. close;
  75. case 2:
  76. mes "[Riding Creature Master]";
  77. mes "I see. Then have a great day.";
  78. close;
  79. }
  80. }
  81. if ((eaclass()&EAJ_THIRDMASK)==EAJ_ROYAL_GUARD) {
  82. mes "Welcome. Would you like to rent a Gryphon?";
  83. next;
  84. switch(select("Yes:No")) {
  85. case 1:
  86. if (!getskilllv("KN_RIDING")) {
  87. mes "[Riding Creature Master]";
  88. mes "Please learn how to ride a Gryphon first.";
  89. close;
  90. }
  91. else if (checkriding()) {
  92. mes "[Riding Creature Master]";
  93. mes "You already have a Gryphon.";
  94. close;
  95. }
  96. else if (ismounting()) {
  97. mes "[Riding Creature Master]";
  98. mes "Please remove your cash mount.";
  99. close;
  100. }
  101. setriding;
  102. close;
  103. case 2:
  104. mes "[Riding Creature Master]";
  105. mes "I see. Then have a great day.";
  106. close;
  107. }
  108. }
  109. mes "I'm here to provide Rune Knights and Royal Guards with riding creatures.";
  110. close;
  111. }
  112. geffen,100,55,3 duplicate(Riding Creature Master) Riding Creature Master#2 105
  113. payon,166,102,5 duplicate(Riding Creature Master) Riding Creature Master#3 105
  114. aldebaran,133,109,5 duplicate(Riding Creature Master) Riding Creature Master#4 105
  115. yuno,171,187,3 duplicate(Riding Creature Master) Riding Creature Master#5 105
  116. rachel,106,130,5 duplicate(Riding Creature Master) Riding Creature Master#6 105
  117. // Peco removing NPC :: dragon
  118. //============================================================
  119. prontera,125,208,5 script Peco Peco Remover 105,{
  120. mes "[Soldier]";
  121. mes "If you're unable to dismount from a Peco Peco";
  122. mes "for some unknown reason,";
  123. mes "please feel free to use my services.";
  124. if (checkriding()) {
  125. next;
  126. mes "[Soldier]";
  127. mes "You're riding a Peco Peco.";
  128. mes "Would you like to dismount?";
  129. next;
  130. switch(select("Yes:No")) {
  131. case 1:
  132. setriding 0;
  133. mes "[Soldier]";
  134. mes "Say, how does it feel to";
  135. mes "step on the ground on your own";
  136. mes "feet again?";
  137. close;
  138. case 2:
  139. mes "[Soldier]";
  140. mes "I see. Please feel free to ask me";
  141. mes "if you change your mind.";
  142. close;
  143. }
  144. }
  145. close;
  146. }
  147. // Mado Gear Renter :: madogear
  148. //============================================================
  149. - script ::mgm -1,{
  150. mes "[Mado Gear Armorer]";
  151. if ((eaclass()&EAJ_THIRDMASK)==EAJ_MECHANIC) {
  152. mes "Welcome, Mechanic.";
  153. mes "Would you like to rent a Pushcart or";
  154. mes "ride a Mado Gear?";
  155. next;
  156. switch(select("Rent a Pushcart:Ride a Mado Gear:Buy Emergency Mado Gear:Upgrade Cooling Device:Cancel")) {
  157. case 1:
  158. if (checkcart()) {
  159. mes "[Mado Gear Armorer]";
  160. mes "I'm sorry, but you already";
  161. mes "have a Pushcart.";
  162. close;
  163. }
  164. setcart;
  165. mes "[Mado Gear Armorer]";
  166. mes "There you go!";
  167. close;
  168. case 2:
  169. if (checkmadogear()) {
  170. mes "[Mado Gear Armorer]";
  171. mes "I'm sorry, but you're already";
  172. mes "riding a Mado Gear.";
  173. close;
  174. }
  175. else if (!getskilllv("NC_MADOLICENCE")) {
  176. mes "[Mado Gear Armorer]";
  177. mes "Please learn the skill to get the Mado Gear License first.";
  178. close;
  179. }
  180. else if(ismounting()) {
  181. mes "[Mado Gear Armorer]";
  182. mes "Please remove your cash mount.";
  183. close;
  184. }
  185. setmadogear;
  186. mes "[Mado Gear Armorer]";
  187. mes "Have fun, and please come again!";
  188. close;
  189. case 3:
  190. mes "[Mado Gear Armorer]";
  191. mes "Emergency Mado Gear is really useful for emergency situations and it is sold at 1,000,000 Zeny.";
  192. next;
  193. if (select("Purchase:Cancel") == 2) {
  194. mes "[Mado Gear Armorer]";
  195. mes "I see. Please feel free to ask me";
  196. mes "if you change your mind.";
  197. close;
  198. }
  199. if (countitem(23277) > 0) {
  200. mes "[Mado Gear Armorer]";
  201. mes "I'm sorry, but you already have an Emergency Mado Gear.";
  202. close;
  203. }
  204. if (Zeny < 1000000) {
  205. mes "[Mado Gear Armorer]";
  206. mes "I'm sorry, but you don't have enough Zeny to purchase the Emergency Mado Gear.";
  207. close;
  208. }
  209. Zeny -= 1000000;
  210. getitem 23277,1; //Mado_Box
  211. mes "[Mado Gear Armorer]";
  212. mes "There you go!";
  213. close;
  214. case 4:
  215. mes "[Mado Gear Armorer]";
  216. mes "Which device do you want to upgrade?";
  217. next;
  218. if (select("Cooling Device:High Quality Cooler") == 1) {
  219. mes "[Mado Gear Armorer]";
  220. mes "Upgrading Cooling Device to High Quality Cooler needs 1 Cooling Device and 2,000,000 Zeny.";
  221. next;
  222. .@itemid = 2804;
  223. .@cost = 2000000;
  224. } else {
  225. mes "[Mado Gear Armorer]";
  226. mes "Upgrading High Quality Cooler to Special Cooler needs 1 High Quality Cooler and 4,000,000 Zeny.";
  227. next;
  228. .@itemid = 2809;
  229. .@cost = 4000000;
  230. }
  231. if (select("Upgrade:Cancel") == 2) {
  232. mes "[Mado Gear Armorer]";
  233. mes "I see. Please feel free to ask me";
  234. mes "if you change your mind.";
  235. close;
  236. }
  237. if (!countitem(.@itemid)) {
  238. mes "[Mado Gear Armorer]";
  239. mes "I'm sorry, but you don't have the " + getitemname(.@itemid) + ".";
  240. close;
  241. }
  242. if (Zeny < .@cost) {
  243. mes "[Mado Gear Armorer]";
  244. mes "I'm sorry, but you don't have enough Zeny to upgrade the device.";
  245. close;
  246. }
  247. Zeny -= .@cost;
  248. delitem .@itemid,1;
  249. getitem (.@itemid == 2804 ? 2809 : 2810),1; //High_Quality_Cooler,Special_Cooler
  250. mes "[Mado Gear Armorer]";
  251. mes "Here you are! Your very own " + getitemname(.@itemid) + ".";
  252. close;
  253. case 5:
  254. close;
  255. }
  256. }
  257. mes "How may I help you?";
  258. mes "Mado Gears are only available for Mechanics.";
  259. close;
  260. }
  261. prontera,163,178,3 duplicate(mgm) Mado Gear Armorer#prt 105
  262. geffen,103,55,5 duplicate(mgm) Mado Gear Armorer#gef 105
  263. payon,166,106,5 duplicate(mgm) Mado Gear Armorer#pay 105
  264. aldebaran,133,112,5 duplicate(mgm) Mado Gear Armorer#alde 105
  265. yuno,167,187,3 duplicate(mgm) Mado Gear Armorer#yuno 105
  266. rachel,106,134,5 duplicate(mgm) Mado Gear Armorer#ra 105
  267. dicastes01,187,207,3 duplicate(mgm) Mado Gear Armorer#dic 105
  268. manuk,273,212,5 duplicate(mgm) Mado Gear Armorer#man 105
  269. splendide,180,174,5 duplicate(mgm) Mado Gear Armorer#spl 105
  270. mid_camp,242,243,3 duplicate(mgm) Mado Gear Armorer#mid 105