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