swordman_skills.txt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. //===== rAthena Script =======================================
  2. //= Swordsman Skills Quests
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.8
  7. //===== Compatible With: =====================================
  8. //= rAthena SVN
  9. //===== Description: =========================================
  10. //= Quests for skills: Fatal Blow, Mobile HP Recovery,
  11. // Auto-Berserk
  12. //===== Additional Comments: =================================
  13. //= 1.6 Rescripted to Aegis 10.3 stadards. [L0ne_W0lf]
  14. //= 1.7 Updated to latest available official file. [Masao]
  15. //= 1.8 Fixed JobLevel requirements. [Euphy]
  16. //============================================================
  17. izlude_in,175,130,2 script Knight De Thomas 98,4,4,{
  18. if ((BaseClass == Job_Swordman) && (sm_movingrecovery_x < 1)) {
  19. mes "[De Thomas]";
  20. mes "Oh, no! You must have been hurt! Are you ok?";
  21. mes "You must have fought hard to get such serious injuries..";
  22. mes "Being a swordsman must come with a lot of responsibility and sacrifice.";
  23. next;
  24. mes "[De Thomas]";
  25. if (Sex == 0) {
  26. mes "For these swordsmen and knights, there is a wonderful skill.";
  27. }
  28. else {
  29. mes "For these swordswomen and knights, there is a wonderful skill young lady.";
  30. }
  31. mes "I present to you - HP Recovery While Moving!";
  32. mes "Body moving is a splendid skill";
  33. mes "that allows you to regain strength(HP)";
  34. mes "while you are moving!";
  35. next;
  36. mes "[De Thomas]";
  37. mes "It is currently under development";
  38. mes "so it may not recover that much,";
  39. mes "but it will help a little.";
  40. mes "What do you think? Would you like to learn this skill?";
  41. next;
  42. switch (select("What a nice skill! I want to learn it!:No, thank you.")) {
  43. case 1:
  44. mes "[De Thomas]";
  45. mes "Very well. I will tell you what you need to learn this skill.";
  46. mes "First, your job level must be higher than ^00880035^000000.";
  47. mes "You will also need ^008800200 empty bottles^000000.";
  48. mes "Why? Because it is proof that you fought fiercely to have used that many potions.";
  49. next;
  50. mes "[De Thomas]";
  51. mes "Also, the armor you used in battle.";
  52. mes "This is also proof of an experienced fighter.";
  53. mes "For the armor... your armor is perfect!";
  54. mes "Bring your armor!";
  55. mes "Last but not least... bring me one ^008800Moth Wing^000000.";
  56. next;
  57. menu "Eh? You need that, too?",-;
  58. mes "[De Thomas]";
  59. mes "Not really.. I don't really NEED it.";
  60. mes "It's just that my niece has gotten a bug hunting as a holiday task during the summer vacation.";
  61. mes "Of course! It would be much easier for me to get it myself.";
  62. mes "but I must work here all the time so I don't exactly have the time to go out and get it.";
  63. next;
  64. mes "[De Thomas]";
  65. mes "Don't you think it is pitiful that I have to stay in once place everyday, not being able to go outside?";
  66. mes "Please, find me one...*sniffsniff*";
  67. mes "If you don't...";
  68. set sm_movingrecovery_x,1;
  69. mes "You won't get anything! Muahahaha.";
  70. close;
  71. case 2:
  72. mes "[De Thomas]";
  73. mes "...";
  74. close;
  75. }
  76. }
  77. else if ((BaseClass == Job_Swordman) && (sm_movingrecovery_x > 1)) {
  78. mes "[De Thomas]";
  79. mes "Oh, it's you?";
  80. mes "Long time no see!";
  81. mes "You seem healthier than before.";
  82. mes "Hahahaha!";
  83. mes "Take care! See you again!";
  84. close;
  85. }
  86. else if ((BaseClass == Job_Swordman) && (sm_movingrecovery_x == 1)) {
  87. mes "[De Thomas]";
  88. mes "Welcome back...";
  89. mes "are you ready to learn Body Movin'?";
  90. next;
  91. switch (select("Yes.:No, I'm not ready yet.")) {
  92. case 1:
  93. if ((JobLevel > 34 || (BaseJob == Job_Knight || BaseJob == Job_Crusader)) && (countitem(713) > 199) && (countitem(1058) > 0)) {
  94. mes "[De Thomas]";
  95. mes "Let's see.....";
  96. next;
  97. mes "[De Thomas]";
  98. mes "Ok! I shall now teach you...";
  99. mes "...The Body Movin' skill!";
  100. next;
  101. delitem 713,200; //Empty_Bottle
  102. delitem 1058,1; //Wing_Of_Moth
  103. skill "SM_MOVINGRECOVERY",1,0;
  104. set sm_movingrecovery_x,2;
  105. mes "[De Thomas]";
  106. mes "There you go!";
  107. mes "Try it yourself.";
  108. mes "But don't overdo it.";
  109. next;
  110. mes "[De Thomas]";
  111. mes "Oh yeah, I won't be needing your";
  112. mes "armor so you can keep it.";
  113. mes "Good luck now!";
  114. close;
  115. }
  116. else if (JobLevel < 35 && (BaseJob != Job_Knight && BaseJob != Job_Crusader)) {
  117. mes "[De Thomas]";
  118. mes "Wait a second, your Job level isn't above ^00880035^000000!";
  119. mes "Come back when it is.";
  120. close;
  121. }
  122. else if ((countitem(713) < 200) || (countitem(1058) < 1)) {
  123. mes "[De Thomas]";
  124. mes "You do not have all the items I asked for.";
  125. next;
  126. mes "[De Thomas]";
  127. mes "Remember I need, ^008800200 empty bottles^000000, your armor, and a ^008800Moth Wing^000000. Come back when you have it all.";
  128. close;
  129. }
  130. mes "[De Thomas]";
  131. mes "You do not have all the items I asked for.";
  132. next;
  133. mes "[De Thomas]";
  134. mes "Remember I need, ^008800200 empty bottles^000000, your armor, and a ^008800Moth Wing^000000. Come back when you have it all.";
  135. close;
  136. case 2:
  137. mes "[De Thomas]";
  138. mes "Is that so?";
  139. mes "Then come when you are prepared.";
  140. close;
  141. }
  142. }
  143. mes "[De Thomas]";
  144. mes "My name is De Thomas Carlos.";
  145. mes "Knight of Prontera's 3rd Calvary.";
  146. mes "I have a certain duty these days.";
  147. mes "Ehem! Need I say more.";
  148. close;
  149. }
  150. prt_in,75,88,5 script Leon Von Frich 85,3,3,{
  151. if ((BaseClass == Job_Swordman) && (JobLevel >= 25 || (BaseJob == Job_Knight || BaseJob == Job_Crusader))) {
  152. if (getskilllv("SM_FATALBLOW") == 1) {
  153. mes "[Leon]";
  154. mes "Eh?";
  155. mes "I was wondering who that was!";
  156. mes "Why it's you from before!";
  157. mes "Nice to see you again! How are you?";
  158. mes "Be careful! Hahaha!";
  159. close;
  160. }
  161. else if ((countitem(1752) > 9) && (countitem(1751) > 9) && (countitem(532) > 0) && (countitem(962) > 29) && (countitem(526) > 4)) {
  162. mes "[Leon]";
  163. mes "Ooh! You are more than ready";
  164. mes "to learn Fatal Blow!";
  165. mes "So how about it? Would you like to learn?";
  166. next;
  167. switch (select("Yes!:No, I don't want to.:But, what is Fatal Blow?")) {
  168. case 1:
  169. mes "[Leon]";
  170. mes "OK, lets begin!";
  171. next;
  172. delitem 1752,10; //Fire_Arrow
  173. delitem 1751,10; //Silver_Arrow
  174. delitem 532,1; //Banana_Juice
  175. delitem 962,30; //Tentacle
  176. delitem 526,5; //Royal_Jelly
  177. skill "SM_FATALBLOW",1,0;
  178. mes "[Leon]";
  179. mes "Success!";
  180. mes "Go use your new skill to its full potential.";
  181. mes "Hahahahahahahaha!";
  182. close;
  183. case 2:
  184. mes "[Leon]";
  185. mes "I don't like you!!!";
  186. close;
  187. case 3:
  188. mes "[Leon]";
  189. mes "I developed this skill recently.";
  190. mes "When you use bash, depending ";
  191. mes "on your level, you can stun ";
  192. mes "your opponent. .";
  193. mes "You have learned bash, haven't you?";
  194. next;
  195. mes "[Leon]";
  196. mes "What do you think. Stun is";
  197. mes "a very useful technique. Don't you find this skill attractive?";
  198. mes "When you think you do, just come right back to me!";
  199. close;
  200. }
  201. }
  202. mes "[Leon]";
  203. mes "Ooh! A young and strong swordsman!";
  204. next;
  205. mes "[Leon]";
  206. mes "Wow, seeing your arm, you must enjoy using bash?";
  207. next;
  208. menu "Eh, I.. just...",-;
  209. mes "[Leon]";
  210. if (Sex == 0) {
  211. mes "No need to be surprised.";
  212. mes "If you use a sword, of course you ought to have a good arm!";
  213. }
  214. else {
  215. mes "Nothing to be embarrassed about.";
  216. mes "Even if you are a female you need a strong arm to use a sword!";
  217. }
  218. mes "In times of only useless and lazy youngsters,";
  219. mes "I'm glad I met someone strong like you.";
  220. next;
  221. mes "[Leon]";
  222. mes "Yes, I would like to give a present to an awesome swordsman like you.";
  223. next;
  224. switch (select("What present?:It's ok.")) {
  225. case 1:
  226. mes "[Leon]";
  227. mes "Haha nothing special, but a skill to attack the vital point!";
  228. next;
  229. case 2:
  230. mes "[Leon]";
  231. mes "...Haha nothing special, just a skill that aims at the vital spot!";
  232. next;
  233. }
  234. mes "[Leon]";
  235. mes "It's a skill I developed recently.";
  236. mes "When you use bash, depending on";
  237. mes "your level, your opponent can";
  238. mes "become stunned.";
  239. mes "You have learned bash, haven't you?";
  240. next;
  241. mes "[Leon]";
  242. mes "When I was a swordsman like you,";
  243. mes "I used to enjoy using Bash. Every time, I thought";
  244. mes "- maybe the attack would be more powerful";
  245. mes "if I use stun at the same time.";
  246. next;
  247. mes "[Leon]";
  248. mes "I drew back from the battlefield to do research";
  249. mes "and finally, I developed this wonderful new skill!";
  250. mes "Would you like to learn this skill?";
  251. next;
  252. switch (select("Yes.:No.:Do you have any advice on how to eat sushi?")) {
  253. case 1:
  254. mes "[Leon]";
  255. mes "Ok. I'll tell you the requirements.";
  256. mes "First you need to have level 5 Bash.";
  257. mes "You will also need to prepare 10 Fire Arrows, 10 Silver Arrows, 1 bottle of Banana Juice, 30 Tentacles, and 5 bottles of Royal Jelly.";
  258. mes "They are.. somewhat like ingredients.";
  259. next;
  260. mes "[Leon]";
  261. mes "come to me again once you have all the materials.";
  262. mes "We shall talk then.";
  263. close;
  264. case 2:
  265. mes "[Leon]";
  266. mes "Hahahahahahahahahaha!";
  267. mes "... ";
  268. mes " ... ";
  269. mes " ...";
  270. mes "I'm at a loss of words!?";
  271. close;
  272. case 3:
  273. mes "[Sushi King Leon]";
  274. mes "The best way to eat sushi is";
  275. mes "with your hands.";
  276. mes "That is the basic.";
  277. mes "And dip the fish, not the rice,";
  278. mes "in the soy sauce.";
  279. next;
  280. mes "[Sushi King Leon]";
  281. mes "That way you get a richer flavor.";
  282. mes "Also, always eat the kind that is in season.";
  283. mes "Eating in the order of white fish then";
  284. mes "blue fish will make it taste better!";
  285. mes "Mmm! I like sushi~~!";
  286. close;
  287. }
  288. }
  289. mes "[Leon]";
  290. mes "Oh, no! I have nothing to offer you!";
  291. mes "I can't say nice and fun things to anyone";
  292. mes "other than swordsmen!";
  293. mes "See you in a better world!";
  294. close;
  295. OnTouch:
  296. mes "[Leon]";
  297. mes "Hahahahahahaha!";
  298. mes "Hahahahahahaha!";
  299. close;
  300. }
  301. prt_in,94,57,3 script Juan 85,4,4,{
  302. if (BaseClass == Job_Swordman) {
  303. if (getskilllv("SM_AUTOBERSERK") == 1) {
  304. mes "[Juan]";
  305. mes "Mmm? Long time no see!";
  306. mes "How are you?";
  307. mes "You got stronger than before.";
  308. mes "Many expect great things from you.";
  309. mes "You can do it.";
  310. close;
  311. }
  312. else if (JobLevel < 10 && (BaseJob != Job_Knight && BaseJob != Job_Crusader)) {
  313. mes "[?]";
  314. mes "What are you?";
  315. mes "Eh, still a beginner.";
  316. mes "I'm busy, so go train a little more";
  317. mes "before coming back.";
  318. close;
  319. }
  320. else if (JobLevel < 30 && (BaseJob != Job_Knight && BaseJob != Job_Crusader)) {
  321. mes "[Juan]";
  322. mes "Oh, nice to meet you.";
  323. mes "You can be on your way. (smiley~)";
  324. close;
  325. }
  326. else if ((countitem(924) > 34) && (countitem(958) > 9) && (countitem(957) > 9) && (countitem(518) > 9)) {
  327. mes "[Juan]";
  328. mes "Ooh. Young swordsman!";
  329. mes "You are ready to learn the";
  330. mes "newest skill, Auto Berserk?!";
  331. next;
  332. switch (select("Hoho, I would like to learn it now.:What is that?")) {
  333. case 1:
  334. mes "[Juan]";
  335. mes "Ok. Then...";
  336. next;
  337. delitem 924,35; //Powder_Of_Butterfly
  338. delitem 958,10; //Horrendous_Mouth
  339. delitem 957,10; //Decayed_Nail
  340. delitem 518,10; //Honey
  341. skill "SM_AUTOBERSERK",1,0;
  342. mes "[Juan]";
  343. mes "You have just become a swordsman";
  344. mes "that can use Auto Berserk.";
  345. mes "You can go about ";
  346. mes "and achieve great things!";
  347. next;
  348. mes "[Juan]";
  349. mes "Good luck!";
  350. next;
  351. mes "[Juan]";
  352. mes "....................................oh yeah.";
  353. mes "I forgot to say something.";
  354. mes "There are some things you must keep in mind.";
  355. next;
  356. mes "[Juan]";
  357. mes "Once you regain health,";
  358. mes "this skill will subside.";
  359. mes "Also, there isn't really a time limit";
  360. mes "but it can still disappear when";
  361. mes "it is attacked with a skill that can";
  362. mes "nullify provoke.";
  363. next;
  364. mes "[Juan]";
  365. mes "If you don't remember these characteristics,";
  366. mes "you may run into some problems on the battlefield";
  367. mes "when the skill disappears all of a sudden.";
  368. next;
  369. mes "[Juan]";
  370. mes "Then... bye for real~";
  371. close;
  372. case 2:
  373. mes "[Juan]";
  374. mes "Auto Berserk?";
  375. mes "It's a skill crucial on the battlefield.";
  376. mes "When your health is in red,";
  377. mes "your hidden potential provokes yourself";
  378. mes "to help you in battle.";
  379. next;
  380. mes "[Juan]";
  381. mes "It is perfect for those that";
  382. mes "fight on the battlefield like fire!";
  383. mes "With your ability, you can learn";
  384. mes "this skill right now.";
  385. mes "Then, I shall tell you the necessary materials.";
  386. next;
  387. mes "[Juan]";
  388. mes "You need 35 Powder of Butterfly.";
  389. mes "The energy from the magnificent";
  390. mes "wings of a butterfly will";
  391. mes "help you gather your strength!";
  392. mes "And 10 Horrendous Mouth.";
  393. mes "10 Decayed Nail.";
  394. mes "and last but not least...";
  395. mes "10 Honey!";
  396. next;
  397. mes "[Juan]";
  398. mes "Did you get all that down?";
  399. mes "As always, please come back";
  400. mes "when you are ready.";
  401. mes "I look forward to seeing you again.";
  402. close;
  403. }
  404. }
  405. mes "[Juan]";
  406. mes "Oh no, you have more injuries";
  407. mes "since the last time I saw you.";
  408. mes "You went into battle like this?";
  409. mes "Seems like you are straining yourself.";
  410. next;
  411. mes "[Juan]";
  412. mes "Even though you may have a lot of strength";
  413. mes "you can't do much when you reach your limits so";
  414. mes "don't overestimate your powers.";
  415. mes "Of course you could always use the";
  416. mes "skill we developed to overcome these limits.";
  417. next;
  418. switch (select("Eh! What are you talking about?:Haha, there can't be such a thing.:Keuuuuuuuh!")) {
  419. case 1:
  420. mes "[Juan]";
  421. mes "The skill is called Berserk.";
  422. mes "It is deemed the flower of a battlefield.";
  423. mes "When your health is red,";
  424. mes "your hidden potential is provokes yourself";
  425. mes "to help you in battle.";
  426. next;
  427. mes "[Juan]";
  428. mes "It is perfect for those that";
  429. mes "fight on the battlefield like fire!";
  430. mes "With your ability, you can learn";
  431. mes "this skill right now.";
  432. mes "Then, I shall tell you the necessary materials.";
  433. next;
  434. mes "[Juan]";
  435. mes "You need 35 Powder of Butterfly.";
  436. mes "The energy from the magnificent";
  437. mes "wings of a butterfly will";
  438. mes "help you gather your strength!";
  439. mes "And 10 Horrendous Mouth.";
  440. mes "10 Decayed Nail.";
  441. mes "and last but not least...";
  442. mes "10 Honeys!";
  443. next;
  444. mes "[Juan]";
  445. mes "Did you get all that down?";
  446. mes "As always, please come back";
  447. mes "when you are ready.";
  448. mes "I look forward to seeing you again.";
  449. close;
  450. case 2:
  451. mes "[Juan]";
  452. mes "Bleh, were you fooled all your life.";
  453. mes "I don't know. Don't talk to me.";
  454. close;
  455. case 3:
  456. mes "[Juan]";
  457. mes "Keuuuuuuuuuuuuuh!";
  458. mes "Ooowwwwwuuuuuuuuuuuuuhhh!";
  459. mes "Keuaaaaaaaaaaah!";
  460. close;
  461. }
  462. }
  463. mes "[Juan]";
  464. mes "Are you enjoying your trip?";
  465. mes "I hope you have nice days ahead of you.";
  466. mes "Ah, I am just a kind knight Juan.";
  467. mes "Don't worry about me too much. Hahaha...";
  468. close;
  469. }
  470. //============================================================
  471. // Old changelog
  472. //============================================================
  473. //= Fully working
  474. //= 1.0a Now using functions found in "Global_Functions.txt"
  475. //= for class checks.
  476. //= 1.1 Added missing delitem [Lupus]
  477. //= 1.2 Added Baby Class Support [Lupus]
  478. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  479. //= 1.4 Updated the NPC to allow subclasses of swordsman to learn the skills, [MasterOfMuppets]
  480. //= 1.5 Fixed exploits [Lupus]
  481. //= 1.5a Fixed some typos [IVBela]
  482. //============================================================