archer_skills.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. //===== eAthena Script =======================================
  2. //= Archer Skill Quest
  3. //===== By: ==================================================
  4. //= eAthena dev team
  5. //===== Current Version: =====================================
  6. //= 1.4b
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= Arrow crafting, Arrow Repel skills
  11. //===== Additional Comments: =================================
  12. //= v1.0 Roberto message text is based off RO npc. Jason message
  13. //= text is custom from old version.
  14. //= All items are from official quests though.[kobra_k88]
  15. //= v1.0a Now using functions found in "Global_Functions.txt"
  16. //= for class checks.[kobra_k88]
  17. //= 1.2 Added Baby Class Support [Lupus]
  18. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  19. //= 1.4 Fixed exploits [Lupus]
  20. //= 1.4a Fixed some typos [IVBela]
  21. //= 1.4b changed perm. variables to temp ones [Lupus]
  22. //============================================================
  23. //<======================== Roberto: Arrow crafting =========================>\\
  24. morocc.gat,121,109,5 script Roberto 88,{
  25. mes "[Roberto]";
  26. if(baseClass == Job_Archer) goto L_Start;
  27. L_Other:
  28. mes "Eh?... First time seeing an archer or something? Why don't you just";
  29. mes "go about your business and leave me be. I only talk to high level";
  30. mes "Archer types........";
  31. emotion e_what;
  32. close;
  33. L_Start:
  34. if(BaseJob==Job_Archer && JobLevel<30) goto L_LowLvl;
  35. if(getskilllv(147)>0) goto L_GotSkill;
  36. if(@ARWCRFT) goto L_GetSkill;
  37. mes "Hmmm?.... Oh you seem to be a high level Archer type. Why don't we";
  38. mes "converse for a while, eh? Let me start off by talking about my";
  39. mes "childhood.... . . . . . . . . . . .";
  40. next;
  41. mes "[Roberto]";
  42. mes "When I turned 15, I decided I'd work for a Blacksmith........";
  43. next;
  44. mes "[Roberto]";
  45. mes "............... ~(blah blah blah)~...................";
  46. next;
  47. mes "[Roberto]";
  48. mes ".... man was my Junior Prom a mess...........";
  49. next;
  50. mes "[Roberto]";
  51. mes "..~(blah blah)~........ ~(blah blah)~.........";
  52. next;
  53. mes "(many grueling hours later.....)";
  54. next;
  55. mes "[Roberto]";
  56. mes "So that's how I found out how to create all of these different";
  57. mes "kinds of arrows for myself. It definitely comes in handy.";
  58. next;
  59. mes "[Roberto]";
  60. mes "Say, would you like me to teach you? We've had such a nice talk";
  61. mes "that I feel like can trust you with this knowledge.......";
  62. next;
  63. menu "Zzz... Eh!! Uh, Arrows... making... yes, teach.",M_0, "Zzzzz... Eh! Uh... where am I????",M_1;
  64. M_0:
  65. mes "[Roberto]";
  66. mes "Alright then! In order for me to teach you the art of ^5533FF'Arrow";
  67. mes "Crafting'^000000, you must first bring me these items:";
  68. mes "^FF335520 Resin,";
  69. mes "7 Poison Spores,";
  70. mes "41 Pointed Scales,";
  71. mes "13 Trunks,";
  72. mes "1 Red potion^000000";
  73. set @ARWCRFT, 1;
  74. emotion e_ic;
  75. close;
  76. M_1:
  77. mes "[Roberto]";
  78. mes "................................................................";
  79. emotion e_ag;
  80. next;
  81. mes "[Roberto]";
  82. mes "Let me teach you this special skill.... It's called, my boot up";
  83. mes "your A........";
  84. emotion e_pif;
  85. next;
  86. mes "!!!!SMACK!!!!";
  87. percentheal -5,0;
  88. close;
  89. L_GetSkill:
  90. if((countitem(907)<20) || (countitem(7033)<7) || (countitem(906)<41) || (countitem(1019)<13) || (countitem(501)<1)) goto L_NotEnuf;
  91. delitem 907, 20;
  92. delitem 7033, 7;
  93. delitem 906, 41;
  94. delitem 1019, 13;
  95. delitem 501, 1;
  96. mes "You've brought all of the items... very good. Lets begin.....";
  97. next;
  98. mes "~ hands you a very long list of ingredients ~";
  99. next;
  100. mes "[Roberto]";
  101. mes "There you are. You're all set.";
  102. next;
  103. mes ".......................";
  104. next;
  105. mes "[Roberto]";
  106. mes "Hmm?...... What do you mean 'that's it'?....... What else were you";
  107. mes "expecting...... With that list you will be able to make any kind of";
  108. mes "arrows you want.......";
  109. next;
  110. mes "[Roberto]";
  111. mes "I hope you didn't expect some kind of elaborate ceremony or some";
  112. mes "kind of unique and lengthy training.......";
  113. next;
  114. skill 147,1,0;
  115. set @ARWCRFT, 0;
  116. mes "[Roberto]";
  117. mes "...... Well good luck and have fun making arrows. I've got other";
  118. mes "things to do if you don't mind.......";
  119. close;
  120. L_NotEnuf:
  121. mes "You don't have everything I need.";
  122. next;
  123. goto M_0;
  124. L_GotSkill:
  125. mes "Hmmm?.... Sorry but I've got nothing left to teach you. Just keep";
  126. mes "on making those arrows..... For us Archer types there can never be";
  127. mes "too many arrows.....";
  128. close;
  129. L_LowLvl:
  130. mes "Hmm?... Do you have something to say to me? Unfortunately I have";
  131. mes "nothing to say to you.....";
  132. emotion e_what;
  133. next;
  134. mes "[Roberto]";
  135. mes "It's sad but conversations with people who have ^5533FFlow job levels^000000 such";
  136. mes "as yourself always seem to end abruptly..... Maybe if you trained a";
  137. mes "little bit longer we would have more to talk about............";
  138. close;
  139. }
  140. //<============================== Arrow Repel ===============================>\\
  141. payon.gat,103,63,5 script Jason 88,{
  142. mes "[Jason]";
  143. if(baseClass == Job_Archer) goto L_Start;
  144. L_Other:
  145. mes "What does life need from a lonely lad like me?";
  146. close;
  147. L_Start:
  148. if(getskilllv(148)>0) goto L_GotSkill;
  149. if(BaseJob == Job_Archer && JobLevel < 35) goto L_LowLvl;
  150. if(@ARWREP) goto L_Check;
  151. mes "Hi, I'm the master of the skill ^0033FFArrow Repel^000000. I might be able to";
  152. mes "teach you the skill, but only if you help me get the ingredients";
  153. mes "for my Grandma's soup.";
  154. next;
  155. mes "[Jason]";
  156. mes "Arrow Repel allows you to use your arrows to repel, push back, an";
  157. mes "enemy and keep them at a distance. This is a great skill for us";
  158. mes "Archer types.";
  159. next;
  160. L_List:
  161. mes "[Jason]";
  162. mes "I need the following:";
  163. mes "- 2 ^FF0000Emeralds^000000";
  164. mes "- 3 ^FF0000Yoyo tails^000000";
  165. mes "- 10 ^FF0000Tentacles^000000";
  166. mes "- 10 ^FF0000Bill of birds^000000";
  167. mes "- 36 ^FF0000Banana Juices^000000";
  168. next;
  169. mes "[Jason]";
  170. mes "Hurry hurry!";
  171. set @ARWREP, 1;
  172. close;
  173. L_LowLvl:
  174. mes "Oh I think you're a bit inexperienced to learn anything from me,";
  175. mes "come back later! Maybe around ^5533FFjob level 35^000000 or so.....";
  176. close;
  177. L_Check:
  178. if((countitem(721)<2) || (countitem(942)<3) || (countitem(962)<10) || (countitem(925)<10) || (countitem(532)<36)) goto L_NotEnuf;
  179. delitem 721,2;
  180. delitem 942,3;
  181. delitem 962,10;
  182. delitem 925,10;
  183. delitem 532,36;
  184. mes "OH! Marvelous you brought me all the ingredients!";
  185. mes "Now it'll be my pleasure to teach you the skill ^0033FFArrow Repel^000000";
  186. next;
  187. skill 148,1,0;
  188. set @ARWREP, 0;
  189. mes "[Jason]";
  190. mes "There you go! Happy hunting in the future.";
  191. close;
  192. L_NotEnuf:
  193. mes "You don't have everything I need.";
  194. next;
  195. goto L_List;
  196. L_GotSkill:
  197. mes "Hey! It's you again? I'm afraid I've taught you everything I know.";
  198. close;
  199. }