swordman_skills.txt 13 KB

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