root/npc/jobs/valkyrie.txt @ 1

Revision 1, 13.2 kB (checked in by jinshiro, 17 years ago)
RevLine 
[1]1//===== eAthena Script =======================================
2//= Valkyrie Realm
3//===== By: ==================================================
4//= Nana, fixes by Poki
5//= finished, optimized and tested by Lupus
6//= L0ne_W0lf
7//===== Current Version: =====================================
8//= 2.9b
9//===== Compatible With: =====================================
10//= eAthena SVN
11//===== Description: =========================================
12//= [Aegis Conversion]
13//= Quest to become a Tranceded Class. (Advanced/Rebirthed)
14//===== Additional Comments: =================================
15//= 1.1 Made all into functions,additional checks,quest skills,now Valhallana can return you back. She also makes reborn process only when you got no Zeny/items (as in kRO) [Lupus]
16//= 1.2 now alternative classes can use their 1-1 job NPC to become Advanced 1st Class [Lupus]
17//= 1.4 added Baby Class support [Lupus]
18//= 1.5 Fixed loads of gramatical errors. [Mass Zero]
19//= 1.6 Added a func which prevent advanced classes passing 2nd Job Quests again. It also guides adv classes where to go. [Lupus]
20//= 1.7 On reborn reset some Job Quest Vars and Reset Girls Counter [Lupus]
21//= 1.8 Added Taekwondo classes check [Lupus]
22//= 1.9 Added support for Job NPC Fase pics, sorrected one dialogue stuff [Lupus]
23//= 2.0 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
24//= 2.1 Changed all numbers into constants. [Vicious]
25//= 2.2 Now ALL quests skills are saved/restored [Lupus]
26//= 2.3 Removed Duplicates [Silent]
27//= 2.4 Fixed typos, optimized [Lupus]
28//= 2.5 Fixed a stuck bug [Lupus]
29//= 2.6a Adding proper dialogues [Lupus]
30//= 2.7 Rescripted to Aegis 10.3 standards. [L0ne_W0;f]
31//=     Removed all functions as they are no longer required.
32//=     Correct job level requirements for 1-1 -> 2-x.
33//= 2.7a Added Function "F_BlockHigh" back in until rewriteing of the 2-x [L0ne_W0lf]
34//=     scripts are comepleted.
35//= 2.7b Removed function "F_BlockHigh" as it's no longer used. [L0ne_W0lf]
36//= 2.8 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
37//= 2.9 Corrected Valkyrie case spicifying where to warp after rebirthing. [L0ne_W0lf]
38//= 2.9b Fixed Verdandi typo, fixed resetting vars [Lupus]
39//============================================================
40
41valkyrie,48,86,4        script  Valkyrie#       811,{
42        if (ADVJOB != 0 || Upper == 1) {
43                mes "[Valkyrie]";
44                mes "Welcome";
45                mes "to Valhalla,";
46                mes "the Hall of Honor.";
47                next;
48                mes "[Valkyrie]";
49                mes "Please make";
50                mes "yourself comfortable";
51                mes "while you are here.";
52                mes "Honor to the warriors!";
53                close;
54        }
55        else if (Baselevel > 98 && JobLevel > 49 && Class >= Job_Knight && Class <= Job_Crusader2) {
56                mes "[Valkyrie]";
57                mes "Welcome";
58                mes "to Valhalla,";
59                mes "the Hall of Honor.";
60                next;
61                mes "[Valkyrie]";
62                mes "You will now end";
63                mes "your present life and";
64                mes "begin an entirely new life.";
65                mes "Honor to the warriors!";
66                next;
67                if (Weight > 0 || Zeny > 0 || checkcart() != 0 || checkfalcon() != 0 || checkriding() != 0) {
68                        mes "[Valkyrie]";
69                        mes "There are a few things you must";
70                        mes "do before we start. You must";
71                        mes "first empty your mind and body.";
72                        mes "Honor comes when you abandon";
73                        mes "all your selfish desires...";
74                        next;
75                        mes "[Valkyrie]";
76                        mes "You cannot take anything with you to the next life. Your items, zeny, pets and Pushcart all have to be left behind.";
77                        next;
78                        mes "[Valkyrie]";
79                        mes "When you are ready";
80                        mes "please return to me,";
81                        mes "brave adventurer.";
82                        close2;
83                        warp "yuno_in02",93,205;
84                        end;
85                }
86                else {
87                        mes "[Valkyrie]";
88                        mes "I see you've already";
89                        mes "released yourself from";
90                        mes "all worldy attachments,";
91                        mes ""+ strcharinfo(0) +".";
92                        next;
93                        mes "[Valkyrie]";
94                        mes "That's an admirable attitude for an adventurer such as yourself. Honor comes when you abandon all personal desires for the sake of mankind.";
95                        next;
96                        if (SkillPoint) {
97                                mes "[Valkyrie]";
98                                mes "Hmm... I sense that you have";
99                                mes "some lingering attachment or";
100                                mes "unfinished business in your";
101                                mes "current life. Take care of that,";
102                                mes "and bring closure to your present life.";
103                                close2;
104                                warp "yuno_in02",93,205;
105                                end;
106                        }
107                        mes "[Valkyrie]";
108                        mes "Now, let me remove all";
109                        mes "of your present memories...";
110                        mes "However, you will be able to";
111                        mes "remember the most honorable";
112                        mes "moments of this life.";
113                        next;
114                        mes "[Valkyrie]";
115                        mes "With one,";
116                        mes "I will ask the";
117                        mes "goddess Urd to remove";
118                        mes "all of your present";
119                        mes "memories.";
120                        next;
121                        mes "[Valkyrie]";
122                        mes "With two,";
123                        mes "I will ask the";
124                        mes "goddess Verdandi to keep";
125                        mes "and record the most honorable moments of your present life.";
126                        next;
127                        mes "[Valkyrie]";
128                        mes "With three,";
129                        mes "I will ask the";
130                        mes "goddess Skuld to";
131                        mes "guide you to your";
132                        mes "next life.";
133                        next;
134                        mes "[Valkyrie]";
135                        mes "One...";
136                        callfunc "F_ClearJobVar";
137                        next;
138                        mes "[Valkyrie]";
139                        mes "One...";
140                        mes "Two......";
141                        //callfunc("F_SaveQuestSkills"); //now not used
142                        next;
143                        mes "[Valkyrie]";
144                        mes "One...";
145                        mes "Two......";
146                        mes "And Three.";
147                        set ADVJOB, Class+Job_Novice_High; //memo the target 3rd Job ID
148                        if(ADVJOB == Job_Lord_Knight2) set ADVJOB,Job_Lord_Knight;
149                        if(ADVJOB == Job_Paladin2) set ADVJOB,Job_Paladin;
150                        jobchange Job_Novice_High;
151                        resetlvl(1);
152                        set MISC_QUEST,MISC_QUEST | 1024; //<-reset Skill Reset Event
153                        skill 142,1,0;
154                        skill 143,1,0;
155                        next;
156                        mes "[Valkyrie]";
157                        mes "Congratulations.";
158                        mes "You are now reborn";
159                        mes "into a brand new life.";
160                        mes "Please take these small gifts";
161                        mes "in preparation for your new adventures.";
162                        getitem 1202,1; //Knife_
163                        getitem 2302,1; //Cotton_Shirt_
164                        next;
165                        mes "[Valkyrie]";
166                        mes "I wish that the release the goddess Urd has granted you proves to be a blessing. I hope that the memories Verdandi has recorded will always honor you.";
167                        next;
168                        mes "[Valkyrie]";
169                        mes "And I pray that the new life to which the goddess Skuld will guide you will be even more honorable than your last.";
170                        close2;
171                        switch (ADVJOB) {
172                        case 4008:
173                        case 4015:
174                                warp "izlude",94,103; break;
175                        case 4009:
176                        case 4016:
177                                warp "prontera",273,354; break;
178                        case 4010:
179                        case 4017:
180                                warp "geffen",120,60; break;
181                        case 4011:
182                        case 4019:
183                                warp "alberta",116,57; break;
184                        case 4012:
185                        case 4020:
186                        case 4021:
187                                warp "payon",69,100; break;
188                        case 4013:
189                        case 4018:
190                                warp "morocc",154,50; break;
191                        default:
192                                warp "yuno_in02",93,205; break;
193                        }
194                        end;
195                }
196        }
197        else {
198                mes "[Valkyrie]";
199                mes "Welcome";
200                mes "to Valhalla,";
201                mes "the Hall of Honor.";
202                next;
203                mes "[Valkyrie]";
204                mes "Unfortunately, you have not yet been invited here. I ask you to leave immediately. Honor to the warriors!";
205                close2;
206                warp "yuno_in02",93,205;
207                end;
208        }
209}
210
211yuno_in02,88,164,5      script  Metheus Sylphe#Library  742,{
212        if (Baselevel > 98 && JobLevel > 49 && Class >= Job_Knight && Class <= Job_Crusader2) {
213                if (valkyrie_Q == 0) {
214                        mes "[Metheus Sylphe]";
215                        mes "Welcome to the Library of the Schweicherbil Magic Academy.";
216                        mes "I assume you have come here";
217                        mes "to read the 'Book of Ymir.'";
218                        next;
219                        mes "[Metheus Sylphe]";
220                        mes "Unfortunately, the original copy of the book has been damaged over time. We currently only allow the public to view a copy of the book.";
221                        next;
222                        mes "[Metheus Sylphe]";
223                        mes "Also, in order to preserve the original 'Book of Ymir,' we have decided to accept donations from people who wish to read the copy we have provided.";
224                        next;
225                        mes "[Metheus Sylphe]";
226                        mes "The suggested";
227                        mes "donation amount is";
228                        mes "1,285,000 zeny.";
229                        next;
230                        if (select("Donate.:Cancel.") == 1) {
231                                if (Zeny > 1284449) {
232                                        set zeny,zeny-1285000;
233                                        set valkyrie_Q,1;
234                                        mes "[Metheus Sylphe]";
235                                        mes "Thank you, your donation will be used for a good cause. You may";
236                                        mes "now go in and read the book.";
237                                        close;
238                                }
239                                mes "[Metheus Sylphe]";
240                                mes "Unfortunately, you don't seem to possess enough zeny at the moment. Please check your funds and come back again.";
241                                close;
242                        }
243                        mes "[Metheus Sylphe]";
244                        mes "Take your time, and";
245                        mes "enjoy your travels.";
246                        close;
247                }
248                mes "[Metheus Sylphe]";
249                mes "Once again, thank you for your generous donation. Feel free to read a carbon copy of the 'Book of Ymir' at your leisure.";
250                close;
251        }
252        mes "[Metheus Sylphe]";
253        mes "Welcome to the Library of the Schweicherbil Magic Academy.";
254        mes "Here, we have a countless number of books. Please take your time and look around.";
255        close;
256}
257
258yuno_in02,93,207,1      script  Book of Ymir    111,{
259        if (ADVJOB != 0 || Upper == 1) {
260                mes "[The Book of Ymir]";
261                mes "...The entrance to the Hall of Honor is open to anyone who has moved forward into their next life. It is there to help heroes decide what they want to do, and can lead them to anywhere in this world.";
262                next;
263                mes "[The Book of Ymir]";
264                mes "In the Hall of Honor, everything is prepared for heroes. It is rumored that any wish that cannot be fulfilled in our reality can be realized in the Hall of Honor.";
265                next;
266                if (select("Stop reading.:Continue reading.") == 1) {
267                        mes "[The Book of Ymir]";
268                        mes ".....";
269                        close;
270                }
271                mes "[The Book of Ymir]";
272                mes "There is a forgotten path which leads to the Hall of Honor, the closest place to the heavens. The ordinary will never discover this place...";
273                close2;
274                warp "valkyrie",48,8;
275                end;
276        }
277        else if (Baselevel > 98 && JobLevel > 49 && Class >= Job_Knight && Class <= Job_Crusader2) {
278                if (valkyrie_Q != 0) {
279                        mes "[The Book of Ymir]";
280                        mes "...Therefore, ancient heroes were";
281                        mes "always in anguish, knowing that";
282                        mes "eventually, they were mortal and";
283                        mes "would pass from this realm...";
284                        next;
285                        mes "[The Book of Ymir]";
286                        mes "There were no documents,";
287                        mes "songs, or remaining folklore that had any information on life after death. However, I recently uncovered an old scroll";
288                        mes "about Valkyrie...";
289                        next;
290                        mes "[The Book of Ymir]";
291                        mes "Valkyrie...";
292                        mes "The legendary";
293                        mes "guardian angel.";
294                        mes "Angel of Ragnarok.";
295                        next;
296                        mes "[The Book of Ymir]";
297                        mes "Adventurers of great strength";
298                        mes "and bravery will be lead by";
299                        mes "Valkyrie to Valhalla, the Hall";
300                        mes "of Honor. There, they will be";
301                        mes "given a new life.";
302                        next;
303                        mes "[The Book of Ymir]";
304                        mes "Reborn, they will live again as";
305                        mes "even greater heroes that will";
306                        mes "brighten the world. Bodies that";
307                        mes "were exhausted will be filled";
308                        mes "with energy...";
309                        next;
310                        mes "[The Book of Ymir]";
311                        mes "And their souls will be given abilities with the heart of Ymir. However, the heart of Ymir was totally destroyed and scattered all over the world after the battle for Rune-Midgarts.";
312                        next;
313                        mes "[The Book of Ymir]";
314                        mes "I have found a small amount of";
315                        mes "Ymir heart pieces over a long";
316                        mes "long period of time. But I can't";
317                        mes "confirm if the story of Valkyrie";
318                        mes "and Valhalla is true just";
319                        mes "through scientific tests.";
320                        next;
321                        mes "[The Book of Ymir]";
322                        mes "So, I am leaving this record in hope that someone in the future";
323                        mes "can confirm that Valkyrie and Valhalla actually exist...";
324                        next;
325                        set valkyrie_Q,2;
326                        mes "[The Book of Ymir]";
327                        mes "Let the heroes live new lives";
328                        mes "so they can protect the world";
329                        mes "from danger. And then...";
330                        close;
331                }
332                mes "[The Book of Ymir]";
333                mes "...";
334                close;
335        }
336        mes "[The Book of Ymir]";
337        mes "...";
338        close;
339}
340
341yuno_in05,49,43,1       script  Heart of Ymir   111,{
342        if (Baselevel > 98 && JobLevel > 49 && Class >= Job_Knight && Class <= Job_Crusader2) {
343                if (valkyrie_Q == 2) warp "valkyrie",48,8;
344        }
345        end;
346}
347
348valkyrie,44,33,5        script  Teleporter      124,{
349        if (Upper != 1) {
350                set .@karma_d,rand(1,10);
351                if (.@karma_d > 4) {
352                        mes "[Teleporter]";
353                        mes "Congratulations.";
354                        mes "Honor to the warriors!";
355                        close;
356                }
357                mes "[Teleporter]";
358                mes "Please refrain";
359                mes "from touching any";
360                mes "of the exhibitions.";
361                mes "..........";
362                close;
363        }
364        else {
365                mes "[Teleporter]";
366                mes "Honorable one,";
367                mes "which place do you wish to go?";
368                next;
369                switch(select("Prontera:Morroc:Payon:Geffen:Alberta:Izlude:Al De Baran:Comodo:Juno")) {
370                case 1: callsub S_Warpchar,"prontera",116,72;
371                case 2: callsub S_Warpchar,"morocc",156,46;
372                case 3: callsub S_Warpchar,"payon",69,100;
373                case 4: callsub S_Warpchar,"geffen",120,39;
374                case 5: callsub S_Warpchar,"alberta",117,56;
375                case 6: callsub S_Warpchar,"izlude",94,103;
376                case 7: callsub S_Warpchar,"aldebaran",91,105;
377                case 8: callsub S_Warpchar,"comodo",209,143;
378                case 9: callsub S_Warpchar,"yuno",328,101;
379                }
380        }
381S_WarpChar:
382        mes "[Teleporter]";
383        mes "Have a nice trip.";
384        close2;
385        savepoint getarg(0),getarg(1),getarg(2);
386        warp getarg(0),getarg(1),getarg(2);
387        end;
388}
389
390// Warps
391//============================================================
392valkyrie,48,73,0        warp    valk01#1        1,1,valkyrie,48,64
393valkyrie,48,66,0        warp    valk01#2        1,1,valkyrie,48,75
394
Note: See TracBrowser for help on using the browser.