root/npc/jobs/2-2e/SoulLinker.txt

Revision 1, 18.5 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= Soul Linker Job Quest
3//===== By: ==================================================
4//= Celestria & Samuray22
5//===== Current Version: =====================================
6//= 1.3a
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= [Aegis Conversion]
11//= Job quest for Soul Linker class.
12//= [Vars Used]
13//= SOUL_Q = Job Change Phase. (Max 4)
14//===== Additional Comments: =================================
15//= 1.2 Rescripted to Aegis 10.3 standards. [Samuray22]
16//= 1.3 Slight updates and fixes to the script. [L0ne_W0lf]
17//=     Removes the use of labels, and corrects other errors.
18//=     Removed the GM-use only NPC from the sec_in map.
19//=     No longer used a global var, uses an NPC var instead.
20//= 1.3a Deleted Empty Color Tag. (bugreport:1572) [Samuray22]
21//============================================================
22
23morocc_in,174,30,6      script  Kid#link1       716,{
24        if (Class == Job_Soul_Linker) {
25                mes "[Maia]";
26                mes "Best of luck in your";
27                mes "journeys. As you master";
28                mes "more Soul Linker skills,";
29                mes "you will be able to draw";
30                mes "more of the spirits' power";
31                mes "to endow upon your allies...";
32                close;
33        }
34        if (Class == Job_Star_Gladiator) {
35                mes "[Kid]";
36                if (Sex == 1) {
37                        mes "Aren't you a warrior";
38                        mes "of the sun? I'm familiar";
39                }
40                else {
41                        mes "Aren't you a warrior of";
42                        mes "the moon? I'm familiar";
43                }
44                mes "with your ways. After all,";
45                mes "the basis of both of our";
46                mes "skills is grounded in the";
47                mes "Taekwon Do job, right?";
48                close;
49        }
50        if (Class != Job_Taekwon) {
51                mes "[Kid]";
52                mes "Mm? I've got nothing to";
53                mes "offer you. But if you know";
54                mes "any well experienced";
55                mes "practitioners of Taekwon";
56                mes "Do, they might benefit";
57                mes "from what I know.";
58                close;
59        }
60        if (JobLevel < 40) {
61                mes "[Kid]";
62                mes "So you're studying";
63                mes "Taekwon Do. That's good,";
64                mes "that's very good. Just keep";
65                mes "refining those skills and";
66                mes "stick to your training.";
67                close;
68        }
69        else if (JobLevel > 39) {
70                if (SOUL_Q == 0) {
71                        mes "[Kid]";
72                        mes "...";
73                        mes "Hey you.";
74                        next;
75                        mes "["+ strcharinfo(0) +"]";
76                        mes "Did you call me?";
77                        next;
78                        mes "[Kid]";
79                        mes "Yeah, I called you.";
80                        mes "Now don't make me";
81                        mes "raise my voice, and";
82                        mes "just get over here.";
83                        next;
84                        if (select("You're awfully rude for a kid!:Ignore him.") == 1) {
85                                mes "[Kid]";
86                                mes "You're lucky I'm";
87                                mes "taking an interest";
88                                mes "in you! I might look";
89                                mes "like a kid, but I'm over";
90                                mes "three hundred years old!";
91                                emotion e_pif;
92                                next;
93                                mes "[Kid]";
94                                mes "Now listen...";
95                                mes "I know that you're a";
96                                mes "disciple of Taekwon Do.";
97                                mes "It's a respectable art, but";
98                                mes "I've got a proposition for";
99                                mes "you if you want to hear it.";
100                                emotion e_heh;
101                                next;
102                                mes "[Kid]";
103                                mes "I'm looking at you, and I can";
104                                mes "already tell that you're very";
105                                mes "spiritually inclined. You've";
106                                mes "got a lot of potential I don't";
107                                mes "wanna see wasted. Why don't";
108                                mes "you become a ''Soul-Linker?''";
109                                next;
110                                if (select("Ha! Silly little boy~:Soul Linker?") == 1) {
111                                        mes "[Kid]";
112                                        mes "You... You d-don't";
113                                        mes "believe me? I'm being";
114                                        mes "dead serious. Can you";
115                                        mes "forget the fact that I look";
116                                        mes "like a little kid for just one";
117                                        mes "minute? *Psh* ...Youngsters.";
118                                        close;
119                                }
120                                mes "[Kid]";
121                                mes "Soul Linkers communicate";
122                                mes "with spirits of fallen warriors";
123                                mes "that still wish to fight in the";
124                                mes "world of the living. Now, these";
125                                mes "warrior spirits can't fight as";
126                                mes "themselves in our world.";
127                                next;
128                                mes "[Kid]";
129                                mes "However, since you're";
130                                mes "spiritually inclined, these";
131                                mes "spirits are attracted to you.";
132                                mes "With enough training, you can";
133                                mes "temporarily imbue the power of these spirits to your allies.";
134                                next;
135                                mes "[Kid]";
136                                mes "Now, you can't imbue yourself";
137                                mes "with the spirits' power. Also,";
138                                mes "depending on your skills as";
139                                mes "a Soul Linker, you can only";
140                                mes "endow other characters of certain job classes with enchanced power.";
141                                next;
142                                mes "[Kid]";
143                                mes "You'll have to enter";
144                                mes "a wholly different world";
145                                mes "to become a Soul Linker,";
146                                mes "but I know it'll be possible";
147                                mes "for you. So what do you say?";
148                                next;
149                                if (select("No. At least, not now...:Alright. What do I have to do?") == 1) {
150                                        mes "[Kid]";
151                                        mes "Ah, alright. Well,";
152                                        mes "if you ever decide to";
153                                        mes "become a Soul Linker,";
154                                        mes "then please come back";
155                                        mes "and talk to me at any time.";
156                                        close;
157                                }
158                                set SOUL_Q,1;
159                                mes "[Kid]";
160                                mes "So you want to become";
161                                mes "a Soul Linker? Great!";
162                                mes "Alright, first I need you";
163                                mes "to bring back a few items.";
164                                mes "Don't worry, I'll explain";
165                                mes "why you need them later.";
166                                next;
167                                mes "[Kid]";
168                                mes "Now bring me";
169                                mes "^0000FF1 3 Carat Diamond^000000,";
170                                mes "^0000FF1 Immortal Heart^000000 and";
171                                mes "^0000FF1 Witherless Rose^000000.";
172                                mes "And try not to make me";
173                                mes "wait too long, alright?";
174                                close;
175                        }
176                        mes "[Kid]";
177                        mes "Huh...?";
178                        mes "Wait, where are";
179                        mes "you going? I'm...";
180                        mes "I'm talking to you!";
181                        close;
182                }
183                else if (SOUL_Q == 1) {
184                        if (Class == Job_Taekwon) {
185                                mes "[Kid]";
186                                mes "You're back, eh?";
187                                mes "So did you bring";
188                                mes "^0000FF1 3 Carat Diamond^000000,";
189                                mes "^0000FF1 Immortal Heart^000000 and";
190                                mes "^0000FF1 Witherless Rose^000000.";
191                                mes "like I asked you to?";
192                                next;
193                                if (select("There you are.:No, not yet...") == 1) {
194                                        if (countitem(732) > 0 && countitem(929) > 0 && countitem(748) > 0) {
195                                                delitem 732,1; //Crystal_Jewel__
196                                                delitem 929,1; //Immortal_Heart
197                                                delitem 748,1; //Witherless_Rose
198                                                set SOUL_Q,2;
199                                                mes "[Kid]";
200                                                mes "Great, I see that you've";
201                                                mes "brought everything. But";
202                                                mes "before we begin, let me";
203                                                mes "introduce myself. My name";
204                                                mes "is Maia, and I've been alive for more than three hundred years.";
205                                                next;
206                                                mes "[Maia]";
207                                                mes "Without giving away too many";
208                                                mes "of the details, I've been divinely charged with the duty of finding";
209                                                mes "and recruiting more Soul Linkers. That's part of the reason why";
210                                                mes "I haven't, you know, passed on.";
211                                                next;
212                                                mes "[Maia]";
213                                                mes "Anyway, I still need to finish";
214                                                mes "preparations with the materials";
215                                                mes "that you just brought, so would";
216                                                mes "you come back in a little bit?";
217                                                mes "Then, we'll talk once again.";
218                                                close;
219                                        }
220                                        mes "[Kid]";
221                                        mes "Mm...?";
222                                        mes "Hey. You forgot";
223                                        mes "a few things. Now";
224                                        mes "go back and bring";
225                                        mes "everything that I ask";
226                                        mes "for this time, okay?";
227                                        emotion e_pif;
228                                        next;
229                                        mes "[Kid]";
230                                        mes "I know I just told you";
231                                        mes "what we need, but I'm";
232                                        mes "going to remind you again:";
233                                        mes "^0000FF1 3 Carat Diamond^000000,";
234                                        mes "^0000FF1 Immortal Heart^000000 and";
235                                        mes "^0000FF1 Witherless Rose^000000.";
236                                        close;
237                                }
238                                mes "[Kid]";
239                                mes "Mm. That's fine.";
240                                mes "Although I have all";
241                                mes "the time to spare in";
242                                mes "the world, I don't like";
243                                mes "to wait for very long.";
244                                close;
245                        }
246                        set SOUL_Q,0;
247                        mes "[Kid]";
248                        mes "You've become a warrior";
249                        mes "of the Sun, the Moon and";
250                        mes "the Stars instead? I had no";
251                        mes "idea you had that potential.";
252                        mes "I suppose I can't blame you...";
253                        close;
254                }
255                else if (SOUL_Q == 2) {
256                        if (SkillPoint) {
257                                mes "[Maia]";
258                                mes "You still have some";
259                                mes "unallocated Skill Points.";
260                                mes "Use them all to learn some";
261                                mes "Taekwon Do skills, and then";
262                                mes "return when you're ready.";
263                                close;
264                        }
265                        if (.SoulLinkerTest == 1) {
266                                mes "[Maia]";
267                                mes "Right now, someone else";
268                                mes "is completing the ceremony";
269                                mes "to become a Soul Linker.";
270                                mes "Would you please wait until";
271                                mes "it's finished? Then, when I'm";
272                                mes "available, I'll attend to you.";
273                                close;
274                        }
275                        donpcevent "Timer#link3::OnEnable";
276                        set .SoulLinkerTest,1;
277                        mes "[Maia]";
278                        mes "Great, I've finished";
279                        mes "the preparations. Now";
280                        mes "we'll proceed with the";
281                        mes "ceremony to change";
282                        mes "you into a Soul Linker.";
283                        mes "Now close your eyes...";
284                        close2;
285                        warp "job_soul",30,30;
286                        end;
287                }
288                else if (SOUL_Q > 2) {
289                        mes "[Maia]";
290                        mes "Are you ready to";
291                        mes "enter the depths";
292                        mes "of your mind again?";
293                        next;
294                        if (select("No:Yes") == 1) {
295                                mes "[Maia]";
296                                mes "Well then, come";
297                                mes "back to me when you";
298                                mes "think you are ready.";
299                                mes "Until then, I'll be";
300                                mes "waiting right here.";
301                                close;
302                        }
303                        if (.SoulLinkerTest == 1) {
304                                mes "[Maia]";
305                                mes "Right now, someone else";
306                                mes "is completing the ceremony";
307                                mes "to become a Soul Linker.";
308                                mes "Would you please wait until";
309                                mes "it's finished? Then, when I'm";
310                                mes "available, I'll attend to you.";
311                                close;
312                        }
313                        donpcevent "Timer#link3::OnEnable";
314                        set .SoulLinkerTest,1;
315                        mes "[Maia]";
316                        mes "Alright then, close";
317                        mes "your eyes and relax.";
318                        mes "We'll go back into the";
319                        mes "depths of your mind.";
320                        close2;
321                        warp "job_soul",30,30;
322                        end;
323                }
324        }
325
326OnInit:
327        set .SoulLinkerTest,0;
328        end;
329}
330
331job_soul,30,31,0        script  Maia#link2::SLTester    -1,3,3,{
332OnTouch:
333        if (Class == Job_Taekwon) {
334                if (JobLevel < 40) {
335                        set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
336                        mes "[Maia]";
337                        mes "Hm? How did you come";
338                        mes "here? You're not qualified";
339                        mes "for this ceremony yet. Come,I will bring you back to Morroc...";
340                        close2;
341                        warp "morocc",157,47;
342                        end;
343                }
344                if (SOUL_Q == 2) {
345                        mes "[Maia]";
346                        mes "Do you recognize this";
347                        mes "place? Right now, we're";
348                        mes "inside your mind. The spirits";
349                        mes "of warriors that have died";
350                        mes "hover here, waiting for you";
351                        mes "to call upon their power.";
352                        next;
353                        mes "[Maia]";
354                        mes "Right now, there are only";
355                        mes "a few of them here, but if";
356                        mes "you continue to train, you";
357                        mes "will be able to call upon";
358                        mes "more spirits as a Soul Linker.";
359                        next;
360                        set SOUL_Q,3;
361                        mes "[Maia]";
362                        mes "We can only remain in";
363                        mes "your mind for 3 minutes.";
364                        mes "I suggest that you speak";
365                        mes "to the spirits while you";
366                        mes "have the opportunity.";
367                        close;
368                }
369                else if (SOUL_Q == 3) {
370                        mes "[Maia]";
371                        mes "Listen to what";
372                        mes "spirits are tending to say.";
373                        mes "There is a reason why";
374                        mes "they cannot move on";
375                        mes "to the next world.";
376                        close;
377                }
378                else if (SOUL_Q == 4) {
379                        mes "[Maia]";
380                        mes "I believe that you are";
381                        mes "now ready to become";
382                        mes "a Soul Linker. However,";
383                        mes "you may continue to";
384                        mes "speak with the spirits";
385                        mes "if that is what you wish.";
386                        next;
387                        if (select("Converse more with the spirits:Become a Soul Linker") == 1) {
388                                mes "[Maia]";
389                                mes "Alright. Try to hurry";
390                                mes "since we can remain in";
391                                mes "your mind for a limited";
392                                mes "time. Although, we can";
393                                mes "go back inside your mind";
394                                mes "if you talk to me later...";
395                                close;
396                        }
397                        mes "[Maia]";
398                        mes "Then let us begin the";
399                        mes "ceremony. These items will";
400                        mes "be used to endow you with";
401                        mes "the ability to borrow the power";
402                        mes "of the fallen warriors and lend";
403                        mes "it to your friends in battle.";
404                        next;
405                        mes "[Maia]";
406                        mes "This Witherless Rose will";
407                        mes "wither away instead of you...";
408                        donpcevent "Maia#link2::Oneff";
409                        next;
410                        mes "[Maia]";
411                        mes "This Witherless Rose will";
412                        mes "wither away instead of you...";
413                        mes "This Immortal Heart will cease";
414                        mes "to pump blood, instead of yours. ";
415                        next;
416                        mes "[Maia]";
417                        mes "This Witherless Rose will";
418                        mes "wither away instead of you...";
419                        mes "This Immortal Heart will cease";
420                        mes "to pump blood, instead of yours. This Diamond will turn to dust,";
421                        mes "in place of your mortal body.";
422                        next;
423                        mes "[Maia]";
424                        mes "The dead who wish";
425                        mes "to continue fighting...";
426                        mes "Will fight for you! Use your";
427                        mes "powers as a Soul Linker";
428                        mes "wisely and for just purposes.";
429                        next;
430                        callfunc "Job_Change",Job_Soul_Linker;
431                        callfunc "F_ClearJobVar";               // clears all job variables for the current player
432                        set SOUL_Q,0;
433                        mes "[Maia]";
434                        mes "I wish the best of luck";
435                        mes "in your new life. Surround";
436                        mes "yourself with allies, and the";
437                        mes "spirits will be able to protect";
438                        mes "you and help you fight in your battles. Farewell for now, friend.";
439                        close2;
440                        set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
441                        donpcevent "Timer#link3::OnDisable";
442                        warp "morocc",157,47;
443                        end;
444                }
445                set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
446                mes "[Maia]";
447                mes "Hmm...?";
448                mes "The time for you";
449                mes "to be here has not";
450                mes "arrived. Let's go";
451                mes "back to Morroc...";
452                close2;
453                warp "morocc",157,47;
454                end;
455        }
456        set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
457        if (Class == Job_Soul_Linker) {
458                mes "[Maia]";
459                mes "The time has come for";
460                mes "you to venture out into the";
461                mes "wide world! More Soul Linkers";
462                mes "will definitely be needed in the ongoing battle against evil...";
463        }
464        else {
465                mes "[Maia]";
466                mes "That's strange...";
467                mes "You're not supposed to";
468                mes "be here. Let me guide";
469                mes "you back to Morroc...";
470        }
471        close2;
472        warp "morocc",157,47;
473        end;
474
475Oneff:
476        specialeffect 247; //"Maia#link2" EF_MAPPILLAR2
477        end;
478}
479
480job_soul,35,30,6        duplicate(SLTester)     Maia#link6      716
481
482job_soul,30,35,6        script  Monk Spirit#link4       827,{
483        if (SOUL_Q == 2) {
484                mes "[Monk Spirit]";
485                mes "Who am I...?";
486                mes "I think... I think";
487                mes "it would be best if";
488                mes "you spoke to Maya first...";
489                mes "Who and what I am requires";
490                mes "a complicated explanation...";
491                close;
492        }
493        else if (SOUL_Q > 2) {
494                mes "[Monk Spirit]";
495                mes "In life, my peers did";
496                mes "their best to assure me";
497                mes "that I accomplish all that";
498                mes "I could as a Monk. Still...";
499                mes "Still I would never be fully";
500                mes "satisfied with my skills.";
501                next;
502                mes "[Monk Spirit]";
503                mes "In death, I had many regrets,";
504                mes "never having the chance to pass";
505                mes "my skills down to future Monks.";
506                mes "Lending my power to others ";
507                mes "is the only chance that I can";
508                mes "possibly have to do this.";
509                next;
510                set SOUL_Q,4;
511                mes "[Monk Spirit]";
512                mes "I beg of you...";
513                mes "I need you to help";
514                mes "me fully realize the";
515                mes "true potential of the";
516                mes "Monks of today.";
517                close;
518        }
519        mes "[Monk Spirit]";
520        mes "...";
521        close;
522}
523
524job_soul,30,25,7        script  Sage Spirit#link5       754,{
525        if (SOUL_Q == 2) {
526                mes "[Sage Spirit]";
527                mes "Speak to Maia.";
528                mes "I'm afraid I may";
529                mes "confuse you if Maia";
530                mes "doesn't first explain";
531                mes "your present situation...";
532                close;
533        }
534        else if (SOUL_Q > 2) {
535                mes "[Sage Spirit]";
536                mes "My pursuit of knowledge";
537                mes "granted me incredible power:";
538                mes "in life, I could have destroyed";
539                mes "anything I wanted. Few Sages";
540                mes "could even reach my level...";
541                next;
542                mes "[Sage Spirit]";
543                mes "I died, but I was never able";
544                mes "to pass on to the next world.";
545                mes "I still want to use my abilities.I want to use my knowledge";
546                mes "to build what pleases me,";
547                mes "and to destroy as I please.";
548                next;
549                mes "[Sage Spirit]";
550                mes "It is enough if I can";
551                mes "lend my power to a Sage";
552                mes "that is worthy of receiving";
553                mes "it. But to do that, I shall";
554                mes "require your help. I beg you,";
555                mes "let me become your spirit ally.";
556                set SOUL_Q,4;
557                next;
558                mes "[Sage Spirit]";
559                mes "I believe that you";
560                mes "are the only one who";
561                mes "has a chance of bringing";
562                mes "rest to my troubled soul...";
563                close;
564        }
565        mes "[Sage Spirit]";
566        mes "...";
567        close;
568}
569
570job_soul,25,30,5        script  Alchemist Spirit#link7  744,{
571        if (SOUL_Q == 2) {
572                mes "[Alchemist Spirit]";
573                mes "Oh! I really want to";
574                mes "speak to you, but what";
575                mes "I have to say won't make";
576                mes "much sense unless you";
577                mes "talk to Maia first. But yes,";
578                mes "I really need your help.";
579                close;
580        }
581        else if (SOUL_Q > 2) {
582                mes "[Alchemist Spirit]";
583                mes "Without exagerrating, I was";
584                mes "the fastest Alchemist in my";
585                mes "time. In fact, I may even be";
586                mes "the fastest Alchemist ever.";
587                mes "But then I grew arrogant, and";
588                mes "killed myself in an accident.";
589                next;
590                mes "[Alchemist Spirit]";
591                mes "But death would not stifle";
592                mes "my skill. In fact, I've even";
593                mes "improved my skill since I've";
594                mes "passed away. I cannot go";
595                mes "on to the next world until I've";
596                mes "passed on my techniques...";
597                set SOUL_Q,4;
598                next;
599                mes "[Alchemist Spirit]";
600                mes "I'm powerless as a spirit,";
601                mes "but with your help, I can";
602                mes "influence the Alchemists of";
603                mes "today and help them refine";
604                mes "their skills. I beseech you,";
605                mes "please give me this chance...";
606                close;
607        }
608        mes "[Alchemist Spirit]";
609        mes "...";
610        close;
611}
612
613job_soul,1,5,0  script  Timer#link3     111,{
614        end;
615
616OnEnable:
617        initnpctimer;
618        end;
619
620OnDisable:
621        stopnpctimer;
622        set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
623        end;
624
625OnTimer60000:
626OnTimer120000:
627        if (getmapusers("job_soul") == 0) {
628                stopnpctimer;
629                set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
630        }
631        end;
632
633OnTimer180000:
634OnTimer181000:
635OnTimer182000:
636        mapwarp "job_soul","morocc",157,47;
637        end;
638
639OnTimer183000:
640        mapwarp "job_soul","morocc",157,47;
641        set getvariableofnpc(.SoulLinkerTest,"Kid#link1"),0;
642        stopnpctimer;
643}
644
645//============================================================
646// Old changelog
647//============================================================
648//= A temp Soul Linker Job Changer based on the kRO quest.
649//= Quest info from RagnaInfo. Sprites from kRO screenshots
650//= 1.0 Optimized and updated [Lupus]
651//= 1.1 Fixed NPC names according to iRO [Lupus]
652//============================================================
Note: See TracBrowser for help on using the browser.