sage_skills.txt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. //===== rAthena Script =======================================
  2. //= Sage Skills Quests
  3. //===== By: ==================================================
  4. //= Lupus, Reddozen
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Quests for skills: Create Converter, Elemental Change
  12. //===== Additional Comments: =================================
  13. //= 1.4 Rescripted to Aegis 10.3 standards. [5511]
  14. //= 1.5 Optimized. [Euphy]
  15. //============================================================
  16. yuno_in03,176,24,3 script Mischna 755,{
  17. if(BaseJob != Job_Sage) {
  18. mes "[Mishuna]";
  19. mes "Good day, I'm Mishuna, one";
  20. mes "of the instructors here in the";
  21. mes "Schweicherbil Magic Academy.";
  22. mes "By any chance, are you a Sage";
  23. mes "or Scholar? Oh... You're not?";
  24. next;
  25. mes "[Mishuna]";
  26. mes "Oh, that's too bad.";
  27. mes "My apologies. But if you";
  28. mes "happen to know any, or meet";
  29. mes "any in your journeys, please";
  30. mes "direct them to me if they haven't heard of the lessons I provide.";
  31. next;
  32. mes "[Mishuna]";
  33. mes "I'm sorry to bother";
  34. mes "you, and I thank you";
  35. mes "for your time. Good";
  36. mes "day to you, adventurer.";
  37. close;
  38. }
  39. if(SAG_SK == 100) {
  40. set .@Element, getskilllv("SA_ELEMENTFIRE") + getskilllv("SA_ELEMENTGROUND") + getskilllv("SA_ELEMENTWIND") + getskilllv("SA_ELEMENTWATER");
  41. set .@Convert, getskilllv("SA_CREATECON");
  42. if(.@Element && .@Convert) {
  43. mes "[Mishuna]";
  44. mes "If you have any Sage or";
  45. mes "Scholar friends who haven't";
  46. mes "learned the skills from Sir";
  47. mes "Barmundt's scrolls, then";
  48. mes "please refer them to me.";
  49. next;
  50. mes "[Mishuna]";
  51. mes "I trust that you are";
  52. mes "finding that these";
  53. mes "element based skills";
  54. mes "are very useful in battle.";
  55. mes "Knowledge truly equates";
  56. mes "to power in the long run...";
  57. close;
  58. }
  59. mes "[Mishuna]";
  60. mes "Ah, you must have";
  61. mes "forgotten what I taught";
  62. mes "you somehow. Perhaps";
  63. mes "you lost your copy of the";
  64. mes "skill scroll I gave you? No";
  65. mes "matter, I'll help you remember.";
  66. next;
  67. if(.@Element == 0) {
  68. mes "[Mishuna]";
  69. mes "You'll be given the chance to";
  70. mes "choose which kind of ^FF0000Elemental";
  71. mes "Change^000000 skill that you want, even one that you didn't previously";
  72. mes "learn, so long as you fulfill";
  73. mes "the skill's requirements.";
  74. next;
  75. mes "[Mishuna]";
  76. mes "Keep in mind that once";
  77. mes "you learn your Elemental";
  78. mes "Change skill, you won't be";
  79. mes "able to change it. Now, which";
  80. mes "skill would you like to learn?";
  81. next;
  82. setarray .@ReqSkill[0],280,283,282,281;
  83. setarray .@ReqSkill$[0],"Blaze","Quake","Tornado","Tsunami";
  84. setarray .@Skill[0],1018,1017,1019,1008;
  85. setarray .@Skill$[0],"Fire","Earth","Wind","Water";
  86. while(1) {
  87. set .@i, select("Fire Elemental Change:Earth Elemental Change:Wind Elemental Change:Water Elemental Change")-1;
  88. if(getskilllv(.@ReqSkill[.@i]) == 0) {
  89. mes "[Mishuna]";
  90. mes "I'm sorry, but you haven't";
  91. mes "learned ^FF0000Endow "+.@ReqSkill$[.@i]+"^000000, the skill";
  92. mes "required for ^FF0000"+.@Skill$[.@i]+" Elemental";
  93. mes "Change^000000. You'll need to learn";
  94. mes "Endow "+.@ReqSkill$[.@i]+" or select another";
  95. mes "Elemental Change skill.";
  96. next;
  97. }
  98. else {
  99. mes "[Mishuna]";
  100. mes "Very well, I shall";
  101. mes "teach you the ^FF0000"+.@Skill$[.@i];
  102. mes "Elemental Change^000000 skill";
  103. mes "and the ^FF0000Elemental Converter";
  104. mes "Creation skill^000000. Please remain";
  105. mes "still while I chant this spell.";
  106. next;
  107. mes "[Mishuna]";
  108. mes "%$#@!#$% Yap~~";
  109. specialeffect2 EF_RUWACH;
  110. next;
  111. mes "[Mishuna]";
  112. mes "Yap!";
  113. specialeffect2 EF_BRANDISHSPEAR;
  114. next;
  115. mes "^3355FFYou've successfully";
  116. mes "learned the "+.@Skill$[.@i]+" Elemental";
  117. mes "Change skill and the Elemental";
  118. mes "Converter Creation skill.^000000";
  119. skill .@Skill[.@i],1,SKILL_PERM;
  120. if(.@Convert == 0)
  121. skill "SA_CREATECON",1,SKILL_PERM;
  122. next;
  123. break;
  124. }
  125. }
  126. }
  127. else if(.@Convert == 0) {
  128. mes "[Mishuna]";
  129. mes "Alright, I'm going";
  130. mes "to cast a spell that";
  131. mes "will help you remember";
  132. mes "the skills you forgot.";
  133. mes "Don't move, and try to";
  134. mes "stay as still as possible...";
  135. next;
  136. mes "[Mishuna]";
  137. mes "%$#@!#$% Yap~~";
  138. specialeffect2 EF_RUWACH;
  139. next;
  140. mes "[Mishuna]";
  141. mes "Yap!";
  142. specialeffect2 EF_BRANDISHSPEAR;
  143. next;
  144. mes "^3355FFYou successfully recalled";
  145. mes "the Elemental Coverter";
  146. mes "Creation skill and are";
  147. mes "able to use it again.^000000";
  148. skill "SA_CREATECON",1,SKILL_PERM;
  149. next;
  150. }
  151. mes "[Mishuna]";
  152. mes "Ah, you've learned these";
  153. mes "skills as quickly as I thought";
  154. mes "you would. Very well then,";
  155. mes "I hope you adeptly use these";
  156. mes "talents for the right purposes.";
  157. mes "Farewell for now, "+strcharinfo(0)+".";
  158. close;
  159. }
  160. else if(SAG_SK == 0) {
  161. mes "[Mishuna]";
  162. mes "Good day, I'm Mishuna, one";
  163. mes "of the instructors here in the";
  164. mes "Schweicherbil Magic Academy.";
  165. mes "How may I be of service?";
  166. next;
  167. select("I seek new knowledge.");
  168. mes "[Mishuna]";
  169. mes "Ah, you must be "+strcharinfo(0)+".";
  170. mes "I've looked forward to meeting";
  171. mes "you. In the noble pursuit of";
  172. mes "knowledge, might I suggest";
  173. mes "reading the recently restored";
  174. mes "scrolls of Sir Barmundt?";
  175. next;
  176. mes "[Mishuna]";
  177. mes "Sir Barmundt's scrolls contain";
  178. mes "knowledge about the 4 elements,";
  179. mes "which are Fire, Water, Earth, and Wind. The knowledge of these";
  180. mes "scrolls can be applied in the";
  181. mes "use of 2 new Sage skills.";
  182. next;
  183. mes "[Mishuna]";
  184. mes "The first is called ^FF0000Elemental";
  185. mes "Change^000000, which enables you";
  186. mes "to change a monster's attribute";
  187. mes "according to the specific element of the Elemental Change skill";
  188. mes "that you have learned.";
  189. next;
  190. mes "[Mishuna]";
  191. mes "The second is called";
  192. mes "Elemental Converter Creation,";
  193. mes "which enables you to create";
  194. mes "converter items that are required to use the Elemental Change skill.";
  195. next;
  196. mes "[Mishuna]";
  197. mes "Although the knowledge of";
  198. mes "these two skills has been";
  199. mes "lost for years, we've finally";
  200. mes "been able to recover most";
  201. mes "of it. So, do you think you're";
  202. mes "ready to learn these skills?";
  203. next;
  204. if(select("Maybe later.:Yes, I am.") == 1) {
  205. mes "[Mishuna]";
  206. mes "Ah, you must be busy right";
  207. mes "now. No problem, just come";
  208. mes "back when you think you're";
  209. mes "ready to learn. Well then,";
  210. mes "farewell and have a good day~";
  211. close;
  212. }
  213. mes "[Mishuna]";
  214. mes "Very well, then. First, you";
  215. mes "must learn the Elemental";
  216. mes "Coverter Creation skill, which";
  217. mes "is essential to learning the";
  218. mes "Elemental Change skill.";
  219. next;
  220. mes "[Mishuna]";
  221. mes "Please bring the required";
  222. mes "materials so that we can";
  223. mes "construct a basic elemental";
  224. mes "converter in order for you to";
  225. mes "learn the skill. Let's see,";
  226. mes "you will need to bring...";
  227. next;
  228. mes "[Mishuna]";
  229. mes "^ff00007 Horns^000000,";
  230. mes "^ff000012 Rainbow Shells^000000,";
  231. mes "^ff000010 Snail's Shells^000000,";
  232. mes "^ff00004 Blank Scrolls^000000 and";
  233. mes "^ff000010 Scorpion Tails^000000.^000000";
  234. next;
  235. mes "[Mishuna]";
  236. mes "Alright, I shall be";
  237. mes "nexting here for your";
  238. mes "return. Remember that we";
  239. mes "need these items to create";
  240. mes "a converter so that you can learn the skill from my example...";
  241. set SAG_SK,1;
  242. close;
  243. }
  244. else if(SAG_SK == 1) {
  245. if (countitem(904) < 10 || countitem(947) < 7 || countitem(1013) < 12 || countitem(946) < 10 || countitem(7433) < 4) {
  246. mes "[Mishuna]";
  247. mes "Hm, you still haven't";
  248. mes "gathered all of the materials";
  249. mes "required to create an elemental";
  250. mes "coverter. Let me remind you";
  251. mes "what to bring so that you";
  252. mes "don't forget next time...";
  253. next;
  254. mes "[Mishuna]";
  255. mes "^ff00007 Horns^000000,";
  256. mes "^ff000012 Rainbow Shells^000000,";
  257. mes "^ff000010 Snail's Shells^000000,";
  258. mes "^ff00004 Blank Scrolls^000000 and";
  259. mes "^ff000010 Scorpion Tails^000000.^000000";
  260. next;
  261. mes "[Mishuna]";
  262. mes "Don't forget that we need";
  263. mes "all of these items to create";
  264. mes "a converter so that you can";
  265. mes "learn the Elemental Converter";
  266. mes "Creation skill by watching";
  267. mes "me demonstrate it for you.";
  268. close;
  269. }
  270. else {
  271. mes "[Mishuna]";
  272. mes "Great, you brought everything.";
  273. mes "Now, let me explain the skill.";
  274. mes "The skills you learn as a Sage";
  275. mes "determine what kind of elemental converters that you can craft.";
  276. next;
  277. mes "[Mishuna]";
  278. mes "The ^FF0000Endow Blaze^000000 skill enables";
  279. mes "you to create Fire elemental";
  280. mes "converters. The ^FF0000Endow Quake^000000";
  281. mes "skill enables the creation";
  282. mes "of Earth elemental converters.";
  283. next;
  284. mes "[Mishuna]";
  285. mes "^FF0000Endow Tornado^000000 enables";
  286. mes "the creation of Wind elemental";
  287. mes "converters, and ^FF0000Endow Tsunami^000000";
  288. mes "enables the creation of Water";
  289. mes "elemental converters. That";
  290. mes "all makes sense, right?";
  291. next;
  292. mes "[Mishuna]";
  293. mes "Now, your elemental coverter";
  294. mes "creation success rate depends";
  295. mes "on the level of the Endow Blaze, Endow Quake, Endow Tornado,";
  296. mes "or Endow Tsunami skills, and";
  297. mes "your abilities.";
  298. next;
  299. mes "[Mishuna]";
  300. mes "Now, please take this copy";
  301. mes "of Barmundt's scroll, and use";
  302. mes "it as a reference when you try";
  303. mes "to craft elemental converters";
  304. mes "when you use the Elemental";
  305. mes "Converter Creation skill.";
  306. next;
  307. mes "^3355FFYou have learned the";
  308. mes "Elemental Converter";
  309. mes "Creation skill by reviewing";
  310. mes "your copy of Barmundt's scroll.^000000";
  311. specialeffect2 EF_ABSORBSPIRITS;
  312. delitem 904,10; // Scorpion_Tail
  313. delitem 947,7; // Horn
  314. delitem 1013,12; // Rainbow_Shell
  315. delitem 946,10; // Snail's_Shell
  316. delitem 7433,4; // Blank_Scroll
  317. set SAG_SK,2;
  318. skill "SA_CREATECON",1,SKILL_PERM;
  319. next;
  320. mes "[Mishuna]";
  321. mes "Wow, "+strcharinfo(0)+"!";
  322. mes "You learned that skill";
  323. mes "really quickly! No wonder";
  324. mes "people say that you're one";
  325. mes "of the best Sages around!";
  326. next;
  327. mes "[Mishuna]";
  328. mes "Now you're ready to";
  329. mes "learn the other skill,";
  330. mes "Elemental Change. Alright,";
  331. mes "I need to prepare a few things";
  332. mes "for this lesson, so we'll meet";
  333. mes "and discuss this later, okay?";
  334. close;
  335. }
  336. }
  337. else if(SAG_SK == 2) {
  338. if(getskilllv("SA_CREATECON") == 0) {
  339. skill "SA_CREATECON",1,SKILL_PERM;
  340. mes "- I recalled ^ff0000Elemental Converter Creation skill^000000 While I talk to Mishuna! -";
  341. next;
  342. }
  343. mes "[Mishuna]";
  344. mes "You'll be given the chance to";
  345. mes "choose which kind of ^FF0000Elemental";
  346. mes "Change^000000 skill that you want, even one that you didn't previously";
  347. mes "learn, so long as you fulfill";
  348. mes "the skill's requirements.";
  349. next;
  350. mes "[Mishuna]";
  351. mes "Keep in mind that once";
  352. mes "you learn your Elemental";
  353. mes "Change skill, you won't be";
  354. mes "able to change it. Now, which";
  355. mes "skill would you like to learn?";
  356. next;
  357. setarray .@ReqSkill[0],280,283,282,281;
  358. setarray .@ReqSkill$[0],"Blaze","Quake","Tornado","Tsunami";
  359. setarray .@ReqItem$[0],"Red Bloods","Green Lives","Wind of Verdure","Crystal Blues";
  360. setarray .@Skill$[0],"Fire","Earth","Wind","Water";
  361. while(1) {
  362. set .@i, select("Fire Elemental Change:Earth Elemental Change:Wind Elemental Change:Water Elemental Change")-1;
  363. if(getskilllv(.@ReqSkill[.@i]) == 0) {
  364. mes "[Mishuna]";
  365. mes "I'm sorry, but you have not";
  366. mes "learned ^FF0000Endow "+.@ReqSkill$[.@i]+"^000000, the skill";
  367. mes "required for the "+.@Skill$[.@i]+" Elemental Change skill. Please learn Endow";
  368. mes .@ReqSkill$[.@i]+" or select another Elemental Change skill for me to teach you.";
  369. next;
  370. }
  371. else {
  372. mes "[Mishuna]";
  373. mes "Very well, then. Please";
  374. mes "bring the following items";
  375. mes "so that you can learn the";
  376. mes .@Skill$[.@i]+" Elemental Change skill.";
  377. next;
  378. mes "[Mishuna]";
  379. mes "^FF000020 "+.@ReqItem$[.@i]+"^000000,";
  380. mes "^FF00001 Payon Solution^000000 and";
  381. mes "^FF00001 Morroc Solution^000000. Please";
  382. mes "return to me once you have";
  383. mes "all the materials ready.";
  384. set SAG_SK, 10 * (.@i+1); //10,20,30,40
  385. close;
  386. }
  387. }
  388. }
  389. else if(SAG_SK == 10 || SAG_SK == 20 || SAG_SK == 30 || SAG_SK == 40) {
  390. if(getskilllv("SA_CREATECON") == 0) {
  391. skill "SA_CREATECON",1,SKILL_PERM;
  392. mes "- I recalled ^ff0000Elemental Converter Creation skill^000000 While I talk to Mishuna! -";
  393. next;
  394. }
  395. set .@i, (SAG_SK/10) - 1;
  396. setarray .@ReqItem[0],990,993,992,991;
  397. setarray .@ReqItem$[0],"Red Bloods","Green Lives","Wind of Verdure","Crystal Blues";
  398. setarray .@Skill[0],1018,1017,1019,1008;
  399. setarray .@Skill$[0],"Fire","Earth","Wind","Water";
  400. if (countitem(.@ReqItem[.@i]) < 20 || countitem(1089) < 1 || countitem(1088) < 1) {
  401. mes "[Mishuna]";
  402. mes "Are you having trouble";
  403. mes "gathering all the required";
  404. mes "items? Just in case, let me";
  405. mes "remind you of what you need";
  406. mes "to bring me to learn the "+.@Skill$[.@i];
  407. mes "Elemental Change skill.";
  408. next;
  409. mes "[Mishuna]";
  410. mes "^ff000020 "+.@ReqItem$[.@i]+"^000000,";
  411. mes "^ff00001 Payon Solution^000000 and";
  412. mes "^ff00001 Morroc Solution^000000. Please";
  413. mes "don't forget and have the";
  414. mes "materials ready for the next";
  415. mes "time you see me, alright?";
  416. close;
  417. }
  418. mes "[Mishuna]";
  419. mes "Ah, you're back. I can now";
  420. mes "finally teach you about the";
  421. mes .@Skill$[.@i]+" Elemental Change skill.";
  422. mes "This skill has the chance to";
  423. mes "permanently change a targeted";
  424. mes "monster's attribute to "+.@Skill$[.@i]+".";
  425. next;
  426. mes "[Mishuna]";
  427. mes "Remember that you must";
  428. mes "use an elemental converter to";
  429. mes "cast this skill, and that it has a success rate, similarly to the";
  430. mes "Elemental Converter Creation";
  431. mes "skill. So be aware of that.";
  432. next;
  433. mes "[Mishuna]";
  434. mes "Now, "+strcharinfo(0)+",";
  435. mes "I'm going to cast a spell";
  436. mes "that will help you memorize";
  437. mes "the "+.@Skill$[.@i]+" Elemental Change";
  438. mes "skill. Try to stay still...";
  439. next;
  440. mes "^3355FFMishuna begins to chant";
  441. mes "a strange incantation as";
  442. mes "a soft blue glow surrounds";
  443. mes "his body and slowly grows";
  444. mes "brighter and more intense.^000000";
  445. specialeffect2 EF_RUWACH;
  446. next;
  447. mes "[Mishuna]";
  448. mes "@#$%^~ Yap!";
  449. specialeffect2 EF_BRANDISHSPEAR;
  450. delitem .@ReqItem[.@i],20;
  451. delitem 1089,1; // Payon Potion
  452. delitem 1088,1; // Morocc Potion
  453. set SAG_SK,100;
  454. skill .@Skill[.@i],1,0;
  455. next;
  456. mes "[Mishuna]";
  457. mes strcharinfo(0)+"...";
  458. mes "I'm happy to say that you've";
  459. mes "successfully memorized the";
  460. mes .@Skill$[.@i]+" Elemental Change skill.";
  461. mes "I hope that it serves you well";
  462. mes "in battle. Farewell for now~";
  463. close;
  464. }
  465. else {
  466. mes "[Mishuna]";
  467. mes "If you have any Sage or";
  468. mes "Scholar friends who haven't";
  469. mes "learned the skills from Sir";
  470. mes "Barmundt's scrolls, then";
  471. mes "please refer them to me.";
  472. next;
  473. mes "[Mishuna]";
  474. mes "I trust that you are";
  475. mes "finding that these";
  476. mes "element based skills";
  477. mes "are very useful in battle.";
  478. mes "Knowledge truly equates";
  479. mes "to power in the long run...";
  480. close;
  481. }
  482. }
  483. //============================================================
  484. // Old changelog
  485. //===== Additional Comments: =================================
  486. //= 1.0 for fully working skills only [Lupus]
  487. //= 1.1 Added more new skill quests for more classes [Lupus]
  488. //= Somehow eA engine doesn't let you keep learn't skill V_V'
  489. //= 1.2 Added to correct locations, correct NPC's, fixed
  490. //= some of the items required and made them into real
  491. //= quests. [Reddozen]
  492. //= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
  493. //= 1.3a fixed an item ID typo, thx 2Spiritual Kid
  494. //= 1.3b Splitted into different files [DracoRPG]
  495. //= 1.3c Fixed some typos [IVBela]
  496. //============================================================