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