swordman_skills.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. //===== eAthena Script =======================================
  2. //= Swordsman Skills Quests
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= <Description>
  11. //===== Additional Comments: =================================
  12. //= Fully working
  13. //= 1.0a Now using functions found in "Global_Functions.txt"
  14. //= for class checks.
  15. //= 1.1 Added missing delitem [Lupus]
  16. //= 1.2 Added Baby Class Support [Lupus]
  17. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  18. //= 1.4 Updated the NPC to allow subclasses of swordsman to learn the skills, [MasterOfMuppets]
  19. //= 1.5 Fixed exploits [Lupus]
  20. //============================================================
  21. //<-------------------------------------- Fatal Blow------------------------------------>\\
  22. prt_in.gat,75,88,5 script Leon 85,{
  23. mes "[Leon]";
  24. if(baseClass == Job_Swordman) goto L_Start;
  25. if(BaseJob == Job_Novice) goto L_Novice;
  26. mes "Hello there. I am Leon, a well known and well respected member of the famous Prontera Chivalry.";
  27. next;
  28. mes "[Leon]";
  29. mes "Are you here to learn more about the Chivalry, or are you hear to bask in the glory of us Knights? Hahahaha!";
  30. emotion 18;
  31. close;
  32. L_Novice:
  33. mes "Oh a novice.... I'm afraid I have nothing to offer you.";
  34. mes "I have no fun or nice things to say to anyone other then Swordsmen.";
  35. next;
  36. mes "[Leon]";
  37. mes "See you in a better world!";
  38. close;
  39. L_Start:
  40. if (FATALBLOW == 1) goto L_Check;
  41. if (getskilllv(145)>0) goto L_Done;
  42. if(sex==1)mes "Oooh! I see that you are quite a strong Swordsman.";
  43. if(sex==0)mes "Oooh! I see that you are quite a strong Swordswoman.";
  44. mes "How did I know? Hahaha! Just look at that strong arm of yours!";
  45. next;
  46. mes "[Leon]";
  47. mes "You must enjoy using ^0000ff'Bash'^000000, huh? Hahaha!";
  48. emotion 18;
  49. next;
  50. mes "[Leon]";
  51. if(sex==1)mes "I like a Swordsman who isn't afraid to use a powerfull skill such as that.";
  52. if(sex==0)mes "Now, now, don't be shy. It's ok for girls to like Bash.";
  53. if(sex==0)mes "Afterall, whether your a Swordsman or Swordswoman, there's no denying the power of Bash!";
  54. next;
  55. mes "[Leon]";
  56. mes "As great as Bash is though, I often felt that it could be even better if there was someway to stun an opponent with it.";
  57. mes "I decided to withdraw from the battlefield and research ways of making bash more powerfull.";
  58. next;
  59. mes "[Leon]";
  60. mes "I discovered that if one could strike an enemy's weak point with a precisely placed Bash, an opponent would be left utterly parralyzed!!";
  61. next;
  62. mes "[Leon]";
  63. mes "I then went on to develop the skill, ^ff0000'Fatal Blow'^000000, which allows you to do just that!";
  64. mes "Will rigorous training, one can learn to stun an opponent with a mighty Bash.";
  65. next;
  66. mes "[Leon]";
  67. mes "Since you seem to be so fond of Bash, I'd be willing to teach you the skill.";
  68. mes "However, I must warn you that a lot of hard work will be required.";
  69. next;
  70. mes "[Leon]";
  71. mes "So what do you think? Are you interested?";
  72. next;
  73. menu "You betcha!!",M_0, "Nah.... Not really.",M_1, "Any advice on how to eat sushi?",M_2;
  74. M_0:
  75. set FATALBLOW,1;
  76. mes "[Leon]";
  77. mes "Hahaha! I knew you love Bash as much as I do.";
  78. next;
  79. mes "[Leon]";
  80. mes "In order for me to teach you Fatal Blow, you must have at least ^5555FFlevel 5 Bash^000000. You then need to give me these items:";
  81. mes "- 10 ^FF0000Fire Arrows^000000,";
  82. mes "- 10 ^FF0000Silver Arrows^000000,";
  83. mes "- 1 ^FF0000Banana Juice^000000,";
  84. mes "- 30 ^FF0000Tentacles^000000,";
  85. mes "- and 5 ^FF0000Royal Jelly^000000.";
  86. next;
  87. mes "[Leon]";
  88. mes "When you have gathered all of these items come back and see me.";
  89. close;
  90. M_1:
  91. mes "[Leon]";
  92. mes "I see... I must have misjudged you...";
  93. close;
  94. M_2:
  95. mes "[*Sushi King* Leon]";
  96. mes "The best way to eat sushi is with your hands. That is the basic method. Oh, and dip the FISH, NOT the RICE, into the soy sauce.";
  97. next;
  98. mes "[*Sushi King* Leon]";
  99. mes "That way you get a richer flavor. Also, always eat the kind that is in season.";
  100. mes "Eating in the order of white fish, then blue fish, will make it taste even better!";
  101. next;
  102. mes "[*Sushi King* Leon]";
  103. mes "Mmmmm..... I love sushi!!!";
  104. emotion 33;
  105. close;
  106. L_Check:
  107. mes "So your back. Did you get what I asked for?";
  108. next;
  109. mes "[Leon]";
  110. if(countitem(1752)<10 || countitem(1751)<10 || countitem(532)<1 || countitem(962)<30 || countitem(526)<5) goto L_NoItems;
  111. if(getskilllv(5)<5) goto L_BashLvl;
  112. delitem 1752,10;
  113. delitem 1751,10;
  114. delitem 532,1;
  115. delitem 962,30;
  116. delitem 526,5;
  117. mes "Great work. You have everything I need for me to teach you Fatal Blow.";
  118. next;
  119. mes "[Leon]";
  120. mes "Ok, lets get started.";
  121. next;
  122. mes "!SMACK!~!CRACK!~!THWACK!~!BASH!.......... !SMACK!~!CRACK!~!THWACK!~!BASH!..........";
  123. next;
  124. mes "(5 hours later)";
  125. next;
  126. mes "[Leon]";
  127. mes "Yes! That's it! You have just mastered Fatal Blow!";
  128. emotion 21;
  129. next;
  130. skill 145,1,0;
  131. set FATALBLOW,0;
  132. mes "[Leon]";
  133. mes "Use it wisely young warrior!!";
  134. close;
  135. L_NoItems:
  136. mes "Hmm... you still don't have enough items. Come back when you do.";
  137. close;
  138. L_BashLvl:
  139. mes "Wait a minute... you have to train a little more before learning this skill.";
  140. mes "You need to have at least a ^5555FFlevel 5 Bash^000000.";
  141. close;
  142. L_Done:
  143. mes "So how is Fatal Blow? Isn't it great!! Hahaha! I knew you'd like it.";
  144. next;
  145. mes "[Leon]";
  146. mes "Go on and Bash the heck out of those monsters! Hahaha.";
  147. emotion 18;
  148. close;
  149. }
  150. //<---------------------------------- Moving HP Recovery ---------------------------------->\\
  151. izlude_in.gat,175,130,2 script Knight De Thomas 98,{
  152. mes "[Knight De Thomas]";
  153. if(baseClass == Job_Swordman) goto L_Start;
  154. L_Other:
  155. mes "I am Thomas De Knight of the Prontera Chivalry. I am very busy now so please leave me alone.";
  156. close;
  157. L_Start:
  158. if (MOVHPREC == 1) goto L_Check;
  159. if (getskilllv(144)>0) goto L_GotSkill;
  160. mes "Oh no! You must have been hurt in battle! Are you ok?";
  161. mes "It must have been a hard fought battle for you to recieve such serious injuries....";
  162. emotion 19;
  163. next;
  164. mes "[Knight De Thomas]";
  165. mes "Being a Swordsman or Knight comes with a lot of responsiblity and requires a great deal of self sacrifice.";
  166. mes "For Swordsmen and Knights there is a wonderfull skill that can aid in the recovery of HP.";
  167. next;
  168. mes "[Knight De Thomas]";
  169. mes "I present to you..... ^5555FF'Moving HP Recovery'^000000!! This skill allows you to recover HP while moving!";
  170. next;
  171. mes "[Knight De Thomas]";
  172. mes "The skill has not been perfected yet so the amount of HP recovered is a little low. Still, it is helpful.";
  173. mes "What do you think? Would you like to learn this skill?";
  174. next;
  175. menu "What a great skill! I would like to learn it!!",M_0, "No thank you.",M_End;
  176. M_0:
  177. mes "[Knight De Thomas]";
  178. mes "Very well. I will tell you what is needed to learn this skill. First you must have a job level of 35 or greater.";
  179. mes "This however doesn't apply to Knights or Crusaders. You will also need:";
  180. mes "^5555FF200 Empty Bottles^000000,";
  181. mes "^5555FF1 Padded Armour^000000,";
  182. mes "and ^5555FF1 Moth Wings^000000.";
  183. next;
  184. mes "[Knight De Thomas]";
  185. mes "The bottles are proof that you have fought feircely and have used many potions. The Padded Armor is proof of an experienced fighter.";
  186. mes "The Moth Wings..... well... really aren't necessary. It's just that my niece recieved a bug hunting assignment for summer vacation.......";
  187. next;
  188. mes "[Knight De Thomas]";
  189. mes "I would get them myself... it's just... I must work here all day long so I don't have any time to go out and get them.......";
  190. next;
  191. mes "[Knight De Thomas]";
  192. mes "Don't you think it's sad that I have to stay in once place everyday without even being able to go outside??";
  193. mes "Please.... find a pair of Moth Wings for my niece?.... (~sniff~sniff~)....";
  194. emotion 28;
  195. next;
  196. mes "[Knight De Thomas]";
  197. mes "If you don't..... I won't teach you anything!! Muahahahaha!!";
  198. emotion 29;
  199. set MOVHPREC, 1;
  200. close;
  201. M_End:
  202. mes "[Knight De Thomas]";
  203. mes "What?? What did you say?.....";
  204. emotion 1;
  205. close;
  206. L_Check:
  207. mes "Ah, you've come back. Let's, see... are you ready for HP Moving Recovery?....";
  208. next;
  209. mes "[Knight De Thomas]";
  210. if ((countitem(713)<200) || (countitem(1058)<1) || (countitem(2312)<1)) goto L_NoItems;
  211. if (baseClass==Job_Swordman && JobLevel < 35) goto L_LowLvl;
  212. delitem 713,200;
  213. delitem 1058,1;
  214. mes "Great! You have everything needed to learn this skill. Take a deep breath.... let us begin.";
  215. next;
  216. mes "(2 hours later)";
  217. next;
  218. mes "[Knight De Thomas]";
  219. mes "Can you feel it? Can you feel the energy flowing in you while you move around?";
  220. mes "Haha! You have just learned HP Moving Recovery!";
  221. //-- Padded armor does not have to be deleted! --
  222. // delitem 2312,1;
  223. skill 144,1,0;
  224. set MOVHPREC, 0;
  225. next;
  226. mes "[Knight De Thomas]";
  227. mes "Congratulations on learning the new skill and thank you for the Moth Wings! ^_^";
  228. emotion 21;
  229. close;
  230. L_NoItems:
  231. mes "As I said before you need to bring me these items:";
  232. mes "^5555FF200 Empty Bottles^000000,";
  233. mes "^5555FF1 Padded Armour^000000,";
  234. mes "and ^5555FF1 Moth Wings^000000.";
  235. close;
  236. L_LowLvl:
  237. mes "You are not yet experienced enough to learn this skill. Come back when you have a job level of at least 35.";
  238. close;
  239. L_GotSkill:
  240. mes "Ah, you're looking well. That HP Moving Recovery skill must be very helpfull.";
  241. mes "Well, continued success on your adventure!";
  242. close;
  243. }
  244. //<----------------------------------------- Auto-Berserk --------------------------------->\\
  245. prt_in.gat,94,57,3 script Juan 85,{
  246. mes "[Juan]";
  247. if(baseClass == Job_Swordman) goto L_Start;
  248. L_Other:
  249. mes "So how's your adventure going? I hope there will be good days ahead of you.";
  250. next;
  251. mes "[Juan]";
  252. mes "Who am I? Oh, I'm just a kind knight named Juan. Don't mind me. Hahahaha....";
  253. emotion 18;
  254. close;
  255. L_Start:
  256. if (baseClass == Job_Swordman && JobLevel<34) goto L_LowLvl;
  257. if (BERSERK == 1) goto L_Check;
  258. if (getskilllv(146)>0) goto L_GotSkill;
  259. mes "Oh no! You have more injuries since the last time I saw you.";
  260. mes "You went into battle like this? It seems like you're straining yourself.";
  261. next;
  262. mes "[Juan]";
  263. mes "Even though you may have a lot of strength, there is only so much you can do when you have reached your limits.";
  264. mes "So don't overestimate your own power.";
  265. next;
  266. mes "[Juan]";
  267. mes "Of course you could always use the ^5555FF'skill'^000000 we developed to overcome these limits.....";
  268. next;
  269. menu "Eh! What are you talking about?",M_0, "Haha! There's no such thing....",M_1, "Keuuuuuhhh!",M_3;
  270. M_0:
  271. mes "[Juan]";
  272. mes "The skill is called ^5555FFBerserk^000000. It has been deemed the flower of the battlefield!";
  273. mes "When your health is low, you can call upon your hidden potential by provoking yourself.";
  274. next;
  275. mes "[Juan]";
  276. mes "A surge of energy will flow through your body giving you a greater attack prowess at the cost of defensive strength.";
  277. mes "With this you will be able to fight on with a FIREY RAGE and an absolute disregard to your own safety!!";
  278. next;
  279. mes "[Juan]";
  280. mes "The enemy will be shocked by your new found strength!!";
  281. mes "This skill is especially great for those who fight with a no-holds-bar mentality.";
  282. next;
  283. mes "[Juan]";
  284. mes "In order to learn this skill you will need to bring me the following items:";
  285. mes "^5555FF35 Powder of Butterfly,";
  286. mes "10 Horrendous Mouth,";
  287. mes "10 Decayed Nail^000000,";
  288. mes "and ^5555FF10 Honeys^000000!";
  289. next;
  290. mes "[Juan]";
  291. mes "Did you get all of that down? Please come back when you are ready. I look forward to seeing you again.";
  292. set BERSERK, 1;
  293. close;
  294. M_1:
  295. mes "[Juan]";
  296. mes "Bleh! Have you been a fool all of your life?? Go away and don't talk to me.";
  297. emotion 32;
  298. close;
  299. M_3:
  300. mes "[Juan]";
  301. mes "Keuuuuuuuuuuuuuuuuuuh!";
  302. mes "Oooowwwwwwwwuuuuuuuuuuhhhhhh!";
  303. mes "Keuaaaaaaaaaaaaaaaaaah!";
  304. close;
  305. L_LowLvl:
  306. mes "Oh, nice to meet you.";
  307. next;
  308. mes "[Juan]";
  309. mes "You can go on your way now.";
  310. emotion 33;
  311. close;
  312. L_Check:
  313. if ((countitem(924)<35) && (countitem(957)<10) && (countitem(958)<10) && (countitem(518)<10)) goto L_NoItems;
  314. delitem 924,35;
  315. delitem 958,10;
  316. delitem 957,10;
  317. delitem 518,10;
  318. mes "Good job my dear friend. You have all 4 of the items I asked for.";
  319. mes "In return I will now teach you the skill: ^FF0000Berserk^000000.";
  320. next;
  321. mes "[Juan]";
  322. mes "Great job you have done well and deserve this skill.";
  323. skill 146,1,0;
  324. set BERSERK, 0;
  325. next;
  326. mes "[Juan]";
  327. mes "Muhahahaha!! Don't hold back young warrior, fight without any fears or regrets!!";
  328. emotion 29;
  329. close;
  330. L_NoItems:
  331. mes "[Juan]";
  332. mes "In order to learn this skill you will need to bring me the following items:";
  333. mes "^5555FF35 Powder of Butterfly,";
  334. mes "^10 Horrendous Mouth,";
  335. mes "^10 Decayed Nail^000000,";
  336. mes "and ^5555FF10 Honeys^000000!";
  337. close;
  338. L_GotSkill:
  339. mes "You have the eyes of a person who has seen death first hand!!";
  340. mes "But, because of Berserk, I'm sure you have been able to escape it many times as well.";
  341. emotion 0;
  342. close;
  343. }