archer_skills.txt 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. //===== rAthena Script =======================================
  2. //= Archer Skill Quest
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Current Version: =====================================
  6. //= 1.7
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Quest for skills: Arrow Crafting, Arrow Repel
  11. //===== Additional Comments: =================================
  12. //= 1.5 Rescripted to Aegis 10.3 stadards. [L0ne_W0lf]
  13. //= 1.6 Updated to latest available official file.
  14. //= also fixed Item issue [bugreport:5607]. [Masao]
  15. //= 1.7 Fixed JobLevel requirements. [Euphy]
  16. //============================================================
  17. moc_ruins,118,99,5 script Roberto 88,{
  18. if (BaseClass == Job_Archer) {
  19. if (getskilllv("AC_MAKINGARROW") == 1) {
  20. mes "[Roberto]";
  21. mes "Ooh, you're from my home town!";
  22. mes "Nice to see you!";
  23. mes "How are you?";
  24. mes "Ah! That arrow!";
  25. mes "You made it, didn't you!";
  26. next;
  27. mes "[Roberto]";
  28. mes "Haha...!";
  29. mes "Do you think it's a lot better?";
  30. mes "Haha... anyways, I am glad.";
  31. mes "Come back with once in a while";
  32. mes "with news from home.";
  33. mes "Then byebye~";
  34. close;
  35. }
  36. else if (JobLevel >= 30 || (BaseJob == Job_Hunter || BaseJob == Job_Bard || BaseJob == Job_Dancer)) {
  37. mes "[Roberto]";
  38. mes "Eh!";
  39. mes " ";
  40. mes "You are...";
  41. next;
  42. if ((countitem(907) > 19) && (countitem(921) > 6) && (countitem(906) > 40) && (countitem(1019) > 12) && (countitem(501) > 0)) {
  43. mes "[Roberto]";
  44. mes "You brought them!";
  45. mes "Thank you very much.";
  46. mes "Then, as I promised, I will teach you the skill.";
  47. next;
  48. delitem 907,20; //Resin
  49. delitem 921,7; //Mushroom_Spore
  50. delitem 906,41; //Tough_Scalelike_Stem
  51. delitem 1019,13; //Wooden_Block
  52. delitem 501,1; //Red_Potion
  53. skill "AC_MAKINGARROW",1,SKILL_PERM;
  54. mes "[Roberto]";
  55. mes "No need to worry about arrows now.";
  56. mes "Oh, and did you happen to see";
  57. mes "someone called Jason in Payon?";
  58. mes "Be careful. He is a";
  59. mes "ferocious one.";
  60. next;
  61. mes "[Roberto]";
  62. mes "You just have to be careful of Jason in Payon.";
  63. mes "Remember.";
  64. mes "Then bubye~ Thank you for the presents~";
  65. close;
  66. }
  67. mes "[Roberto]";
  68. mes "An archer in Morroc!?";
  69. mes "Nice to see you! Meeting a fellow";
  70. mes "archer in a place like this! *sniffsniff*!";
  71. mes "I came alone to Morroc..";
  72. mes "but I was a newcomer, and the pressure... waaah~";
  73. mes "I was very lonely~";
  74. next;
  75. switch (select("It must be hard. It's ok have faith.:Keep suffering.")) {
  76. case 1:
  77. mes "[Roberto]";
  78. mes "Yes. Thank you...";
  79. mes "You must be having a hard";
  80. mes "time in a place like this.";
  81. mes "Isn't it hard to find arrows?";
  82. mes "That's why I make my own.";
  83. next;
  84. select("Eh, really?!");
  85. mes "[Roberto]";
  86. mes "Yeah! I gather different items";
  87. mes "and make arrows using them.";
  88. mes "It is a useful skill to help me";
  89. mes "survive alone in this tough world.";
  90. mes "If you'd like, I can teach you.";
  91. next;
  92. select("That would be wonderful.");
  93. mes "[Roberto]";
  94. mes "But.. I can't do it for free.";
  95. mes "Nothing is free in this world~";
  96. mes "Mmm... How about this?";
  97. mes "You bring me what I ask for.";
  98. mes "Then I will teach you the skill.";
  99. next;
  100. mes "[Roberto]";
  101. mes "I've been very lonely since I left my hometown.";
  102. mes "I would like to treat my homesick-ness";
  103. mes "with things from there.";
  104. mes "Bring me 20 Resins from the trees in the ";
  105. mes "Payon forest, and 1 Red Potion";
  106. mes "sold in the store.";
  107. next;
  108. mes "[Roberto]";
  109. mes "Also, 13 Trunks from the Willows that";
  110. mes "lives near the Payon Forest,";
  111. mes "41 Pointed Scale,";
  112. mes "7 Mushroom Spores.";
  113. mes "If you bring me all of these.";
  114. next;
  115. mes "[Roberto]";
  116. mes "I will teach you the skill.";
  117. mes "Then.. I'll be waiting.";
  118. mes "For news from our home.";
  119. close;
  120. case 2:
  121. mes "[Roberto]";
  122. mes "...hey "+((Sex == SEX_MALE)?"mister":"miss")+".";
  123. mes "...be careful at night.";
  124. close;
  125. }
  126. }
  127. mes "[Roberto]";
  128. mes "Hmm... Do you";
  129. mes "have something to say?";
  130. mes "I have nothing.";
  131. mes "Difference in levels";
  132. mes "cuts off conversations.";
  133. close;
  134. }
  135. mes "[?]";
  136. mes "Eh... First time seeing an archer or something?";
  137. mes "Just go where you were going.";
  138. mes "I only talk to high level archers.";
  139. mes "Won't open my mouth otherwise!";
  140. close;
  141. }
  142. payon,103,63,3 script Jason 88,3,3,{
  143. if (BaseClass == Job_Archer) {
  144. if (getskilllv("AC_CHARGEARROW") == 1) {
  145. mes "[Jason]";
  146. mes "Eh, we meet again.";
  147. mes "Ehhhh so weird.";
  148. mes "Whenever I see someone again";
  149. mes "I start eh-ing a lot.";
  150. mes "Ehhh... anyways nice to see you again.";
  151. mes "Ehhhh... don't come any more ehh...";
  152. close;
  153. }
  154. else if (JobLevel >= 35 || (BaseJob == Job_Hunter || BaseJob == Job_Bard || BaseJob == Job_Dancer)) {
  155. mes "[Jason]";
  156. mes "Darn... my wound isn't healing.";
  157. mes "Bleh.. I was too careless... ";
  158. mes "to become like this.. err...";
  159. mes "But still, hurting me like this";
  160. mes "giving me so many injuries...";
  161. next;
  162. mes "What should I do about Roberto.";
  163. mes "Mmmm... Ah!";
  164. mes "You? How long have you been there?";
  165. mes "Mmm... very high level.";
  166. mes "Someone like you would definitely be";
  167. mes "able to know how to use Arrow Repel.";
  168. next;
  169. switch (select("What is that?:Teach me.")) {
  170. case 1:
  171. mes "[Jason]";
  172. mes "...you're kidding, right?";
  173. mes "Oh my, you don't even know";
  174. mes "Arrow Repel at that level?";
  175. mes "You're a strange person.";
  176. next;
  177. mes "[Jason]";
  178. mes "(Jason was in the lala land.)";
  179. next;
  180. mes "[Jason]";
  181. mes "Well, ok. I'll teach you what";
  182. mes "Arrow Repel is.";
  183. next;
  184. mes "[Jason]";
  185. mes "Arrow Repel is a skill that allows you to";
  186. mes "push the opponent away as soon as you attack.";
  187. mes "You can only use it when you aim exactly";
  188. mes "at the target. But unlike magic, ";
  189. mes "it doesn't de-spell.";
  190. next;
  191. mes "[Jason]";
  192. mes "It is very useful for an archer";
  193. mes "that is weak in close ranges.";
  194. mes "If you would like to learn,";
  195. mes "come find me again.";
  196. mes "There are some necessary materials.";
  197. next;
  198. mes "[Jason]";
  199. mes "First, because you must modify a bow";
  200. mes "bring a crossbow you do not use.";
  201. mes "10 Tentacles, 10 Bill of Birds,";
  202. mes "3 Yoyo Tails.. these are very elastic.";
  203. mes "Also, 2 Emeralds. And last but not least...";
  204. mes "36 bottles of Banana Juice that I love!";
  205. next;
  206. mes "[Jason]";
  207. mes "......Ehem!";
  208. mes "If you bring all of these,";
  209. mes "I shall teach you Arrow Repel.";
  210. mes "Then, see you again.";
  211. mes "(I'm going to be mad if you don't bring the Banana Juice.)";
  212. close;
  213. case 2:
  214. if ((countitem(721) > 1) && (countitem(942) > 2) && (countitem(962) > 9) && (countitem(925) > 9) && (countitem(532) > 35)) {
  215. mes "[Jason]";
  216. mes "Ok! Perfect!";
  217. mes "I shall teach you the nationally";
  218. mes "renowned skill, Arrow Repel!";
  219. next;
  220. delitem 721,2; //Azure_Jewel
  221. delitem 942,3; //Yoyo_Tail
  222. delitem 962,10; //Tentacle
  223. delitem 925,10; //Bill_Of_Birds
  224. delitem 532,36; //Banana_Juice
  225. skill "AC_CHARGEARROW",1,SKILL_PERM;
  226. mes "[Jason]";
  227. mes "Oh, works better than I expected!";
  228. mes "Won't be needing to modify the bow!";
  229. mes "You can take this back~";
  230. mes "And enjoy using your newly inherited";
  231. mes "skill in fields and dungeons!";
  232. mes "He~heh~!";
  233. close;
  234. }
  235. mes "[Jason]";
  236. mes "Mmm... too bad.";
  237. mes "You are missing some things.";
  238. mes "Once again, you need 2 Emeralds,";
  239. mes "3 Yoyo Tails, 10 Tentacles,";
  240. mes "10 Bill of Birds, and last but";
  241. mes "not least 36 bottles of Banana juice!";
  242. next;
  243. mes "[Jason]";
  244. mes "Make sure you have all of them and come again!";
  245. close;
  246. }
  247. }
  248. mes "[Jason]";
  249. mes "Ooh... you are an archer.";
  250. mes "If you try a little more";
  251. mes "you will have a great";
  252. mes "reputation as an archer!";
  253. mes "Exert yourself!";
  254. close;
  255. }
  256. mes "[?]";
  257. mes "What does life need from";
  258. mes "a lonely lad like me?";
  259. close;
  260. OnTouch_:
  261. mes "[???]";
  262. mes "Errrrrrr...";
  263. close;
  264. }
  265. //============================================================
  266. // Old changelog
  267. //============================================================
  268. //= 1.0 Roberto message text is based off RO npc. Jason message
  269. //= text is custom from old version.
  270. //= All items are from official quests though.[kobra_k88]
  271. //= 1.0a Now using functions found in "Global_Functions.txt"
  272. //= for class checks.[kobra_k88]
  273. //= 1.2 Added Baby Class Support [Lupus]
  274. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  275. //= 1.4 Fixed exploits [Lupus]
  276. //= 1.4a Fixed some typos [IVBela]
  277. //= 1.4b changed perm. variables to temp ones [Lupus]
  278. //============================================================