renters.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. //===== rAthena Script =======================================
  2. //= Renters
  3. //===== By: ==================================================
  4. //= kobra_k88, mod by Lupus
  5. //===== Current Version: =====================================
  6. //= 2.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Knight and Crusader Peco Peco Breeders, Falcon Breeder scripts
  11. //===== Additional Comments: =================================
  12. //= Fully working
  13. //= Added another Falcon Master into the Hunters Guild [Lupus]
  14. //= 1.2: replaced checkoption(x) with checkriding,checkfalcon [Lupus]
  15. //= 1.3: Added support Adv Classes + Baby Class [Lupus]
  16. //= 1.4: Added different prices for normal, advanced and baby classes
  17. //= but you could set them to the same [Lupus]
  18. //= 1.5: Fixed spelling mistakes [Nexon]
  19. //= 1.5a: Small fix (Falcon Taming -> Falcon Mastery) [Komurka]
  20. //= 1.6: Moved the Falcon Master to Hugel [Poki#3]
  21. //= 1.7 Updated to Aegis 10.3 standards. [L0ne_W0lf]
  22. //= 1.8 Added 3rd Job creature NPCs (Dragon/Gryphon) [L0ne_W0lf]
  23. //= 1.9 Enabled Gryphon Renter NPC and added Mado Gear NPC. [Masao]
  24. //= 2.0 Fixed problems with third classes and new mounts. [Euphy]
  25. //= 2.1 Moved some renters to a separate renewal file. [Daegaladh]
  26. //= 2.2 Added warg checks. [Euphy]
  27. //============================================================
  28. // PecoPeco Breeder (for Knights) :: breeder
  29. //============================================================
  30. prontera,55,350,5 script Peco Peco Breeder#knt 105,{
  31. if(Upper==0) set .@price,2500; //Normal Peco - default price
  32. if(Upper==1) set .@price,2500; //Armored Peco
  33. if(Upper==2) set .@price,2500; //Baby Peco
  34. mes "[Peco Peco Breeder]";
  35. if (BaseJob == Job_Knight && Class < Job_Rune_Knight) {
  36. mes "Welcome.";
  37. mes "Honorable Knight,";
  38. mes "would you like to rent";
  39. mes "a Peco Peco? The rental";
  40. mes "fee is "+.@price+" zeny.";
  41. next;
  42. switch(select("Rent Peco Peco:Cancel")) {
  43. case 1:
  44. if (Zeny < .@price) {
  45. mes "[Peco Peco Breeder]";
  46. mes "You do not";
  47. mes "have enough zeny.";
  48. mes "Are you...";
  49. mes "bankrupt?";
  50. close;
  51. }
  52. else if(getskilllv("KN_RIDING") == 0) {
  53. mes "[Peco Peco Breeder]";
  54. mes "I'm sorry, but you're";
  55. mes "not eligible for this";
  56. mes "service. Please go learn";
  57. mes "the Peco Peco Ride skill first.";
  58. close;
  59. }
  60. else if(checkriding()) {
  61. mes "[Peco Peco Breeder]";
  62. mes "You're already";
  63. mes "mounted on a";
  64. mes "Peco Peco.";
  65. close;
  66. }
  67. else if(ismounting()) {
  68. mes "[Peco Peco Breeder]";
  69. mes "Please remove your cash mount.";
  70. close;
  71. }
  72. set Zeny, Zeny-.@price;
  73. setriding;
  74. close;
  75. case 2:
  76. mes "[Peco Peco Breeder]";
  77. mes "I see.";
  78. mes "Well then,";
  79. mes "have a good day.";
  80. close;
  81. }
  82. } else {
  83. mes "I'm sorry, but these";
  84. mes "Peco Pecos are only";
  85. mes "available for Knights";
  86. mes "and Lord Knights.";
  87. close;
  88. }
  89. }
  90. // Grand PecoPeco Breeder (for Crusaders)
  91. //============================================================
  92. prontera,232,318,3 script Peco Peco Breeder#cru 105,{
  93. if(Upper==0) set .@price,3500; //Normal Peco - default price
  94. if(Upper==1) set .@price,3500; //Armored Peco
  95. if(Upper==2) set .@price,3500; //Baby Peco
  96. mes "[PecoPeco Breeder]";
  97. if (BaseJob == Job_Crusader && Class < Job_Rune_Knight) {
  98. if(Upper != 1 ) mes "Welcome, Crusader.";
  99. else mes "Welcome, Paladin.";
  100. mes "We have a special";
  101. mes "Peco Peco prepared";
  102. mes "for you. To rent one";
  103. mes "will cost "+.@price+" zeny.";
  104. next;
  105. switch(select("Rent a PecoPeco:Quit")) {
  106. case 1:
  107. if (Zeny < .@price) {
  108. mes "[Peco Peco Breeder]";
  109. mes "You do not";
  110. mes "have enough zeny.";
  111. mes "If you would like";
  112. mes "a Peco Peco please";
  113. mes "bring "+.@price+" zeny...";
  114. close;
  115. }
  116. else if(getskilllv("KN_RIDING") == 0) {
  117. mes "[Peco Peco Breeder]";
  118. mes "You must first learn";
  119. mes "to ride a PecoPeco before";
  120. mes "I can rent one to you.";
  121. close;
  122. }
  123. else if(checkriding()) {
  124. mes "[Peco Peco Breeder]";
  125. mes "You are already";
  126. mes "mounted on a Peco Peco.";
  127. close;
  128. }
  129. else if(ismounting()) {
  130. mes "[Peco Peco Breeder]";
  131. mes "Please remove your cash mount.";
  132. close;
  133. }
  134. set Zeny, Zeny-.@price;
  135. setriding;
  136. close;
  137. case 2:
  138. mes "[PecoPeco Breeder]";
  139. mes "See you around.";
  140. close;
  141. }
  142. } else {
  143. mes "What can I do for you?";
  144. mes "Please be aware that";
  145. mes "this Peco Peco rental";
  146. mes "service is strictly for";
  147. mes "Crusaders and Paladins.";
  148. close;
  149. }
  150. }
  151. // Falcon Master :: breeder
  152. //============================================================
  153. hu_in01,381,304,5 script Falcon Breeder#hnt 105,{
  154. if(Upper==0) set .@price,2500; //Normal Falcon - default price
  155. if(Upper==1) set .@price,2500; //Scarf Falcon
  156. if(Upper==2) set .@price,2500; //Baby Falcon
  157. mes "[Falcon Breeder]";
  158. if (BaseJob == Job_Hunter) {
  159. if (checkwug()) {
  160. mes "Um...";
  161. mes "You can't rent a Falcon";
  162. mes "until you dismiss your warg first!";
  163. close;
  164. }
  165. mes "Do you need a Falcon?";
  166. mes "You can rent your own";
  167. mes "trusty bird of prey for a";
  168. mes "fee of just "+.@price+" zeny~";
  169. next;
  170. switch(select("Rent Falcon:Cancel")) {
  171. case 1:
  172. if (checkwug()) {
  173. mes "[Falcon Breeder]";
  174. mes "Um...";
  175. mes "You can't rent a Falcon";
  176. mes "until you dismiss your warg first!";
  177. close;
  178. }
  179. if (Zeny < .@price) {
  180. mes "[Falcon Breeder]";
  181. mes "What is this?";
  182. mes "You don't have";
  183. mes "enough zeny?!";
  184. mes "You better start";
  185. mes "hunting money";
  186. mes "instead of monsters~";
  187. close;
  188. }
  189. else if(getskilllv("HT_FALCON") == 0) {
  190. mes "[Falcon Breeder]";
  191. mes "Gosh~";
  192. mes "Go learn how to";
  193. mes "manage a Falcon";
  194. mes "first! I can't rent one";
  195. mes "to you if you can't";
  196. mes "handle it, you know.";
  197. close;
  198. }
  199. else if(checkfalcon()) {
  200. mes "[Falcon Breeder]";
  201. mes "Um...";
  202. mes "You already have";
  203. mes "a Falcon. It's right";
  204. mes "there, can't you see it?";
  205. close;
  206. }
  207. set Zeny, Zeny-.@price;
  208. setfalcon;
  209. close;
  210. case 2:
  211. mes "[Falcon Breeder]";
  212. mes "W-wait, where're";
  213. mes "you goin'? These";
  214. mes "Falcons are top notch,";
  215. mes "I guarantee it! C'mon, yo~";
  216. close;
  217. }
  218. } else {
  219. mes "Young fool!";
  220. mes "Falcons can only";
  221. mes "be used by Hunters";
  222. mes "and Snipers, capish?";
  223. mes "...Heh heh, jealous?";
  224. close;
  225. }
  226. }