1 | //===== eAthena Script ======================================= |
---|
2 | //= Advance Class jobchanger after kRO Normals. |
---|
3 | //===== By: ================================================== |
---|
4 | //= Nana |
---|
5 | //= finished, optimized and tested by Lupus |
---|
6 | //===== Current Version: ===================================== |
---|
7 | //= 1.3 |
---|
8 | //===== Compatible With: ===================================== |
---|
9 | //= eAthena 1.0 + |
---|
10 | //===== Description: ========================================= |
---|
11 | //= Advance Class jobchanger after kRO Normals. |
---|
12 | //===== Additional Comments: ================================= |
---|
13 | //= v1.1 Made all into functions, additional checks, etc. [Lupus] |
---|
14 | //= v1.2 Made numbers into constants. [Vicious] |
---|
15 | //= 1.3 Now saves/restores all the quest skills [Lupus] |
---|
16 | //============================================================ |
---|
17 | |
---|
18 | valkyrie,53,47,3 script Scholar#Valkyrie 743,{ |
---|
19 | if (ADVJOB == 0 || Upper != 1) { |
---|
20 | set .@karma_d,rand(1,10); |
---|
21 | if (.@karma_d > 4) { |
---|
22 | mes "[Scholar]"; |
---|
23 | mes "Congratulations."; |
---|
24 | mes "Honor to the warriors!"; |
---|
25 | close; |
---|
26 | } |
---|
27 | mes "[Scholar]"; |
---|
28 | mes "It takes a lifetime..."; |
---|
29 | mes "Literally a lifetime"; |
---|
30 | mes "to amass the knowledge"; |
---|
31 | mes "necessary to become"; |
---|
32 | mes "a Scholar..."; |
---|
33 | next; |
---|
34 | mes "[Scholar]"; |
---|
35 | mes "It's overwhelming."; |
---|
36 | mes "The more you learn, the"; |
---|
37 | mes "more you discover what"; |
---|
38 | mes "else you don't know."; |
---|
39 | mes "There's no end to the"; |
---|
40 | mes "process of learning..."; |
---|
41 | close; |
---|
42 | } |
---|
43 | else if (ADVJOB == Job_Professor && Class == Job_Mage_High && JobLevel > 39) { |
---|
44 | mes "[Scholar]"; |
---|
45 | mes "Rune-Midgard doesn't"; |
---|
46 | mes "have enough Scholars to"; |
---|
47 | mes "help usher in a new age"; |
---|
48 | mes "of prosperity. The"; |
---|
49 | mes "world needs you..."; |
---|
50 | next; |
---|
51 | mes "[Scholar]"; |
---|
52 | mes "Will you take this"; |
---|
53 | mes "awesome responsibility?"; |
---|
54 | mes "Will you serve Rune-Midgard"; |
---|
55 | mes "as a Scholar?"; |
---|
56 | next; |
---|
57 | if (select("No.:Yes.") == 1) { |
---|
58 | mes "[Scholar]"; |
---|
59 | mes "When you're ready,"; |
---|
60 | mes "feel free to come back."; |
---|
61 | mes "Honor to the warriors!"; |
---|
62 | close; |
---|
63 | } |
---|
64 | if (SkillPoint) { |
---|
65 | mes "[Scholar]"; |
---|
66 | mes "It is still possible for you to learn more skills. Please use"; |
---|
67 | mes "all of your remaining Skill Points before returning to me."; |
---|
68 | close; |
---|
69 | } |
---|
70 | jobchange Job_Professor; |
---|
71 | set ADVJOB,0; |
---|
72 | mes "[Scholar]"; |
---|
73 | mes "Congratulations!"; |
---|
74 | mes "As a Professor, I hope"; |
---|
75 | mes "that you will take an"; |
---|
76 | mes "active part in bringing"; |
---|
77 | mes "the light of knowledge"; |
---|
78 | mes "where there is darkness."; |
---|
79 | close; |
---|
80 | } |
---|
81 | mes "[Scholar]"; |
---|
82 | mes "Welcome"; |
---|
83 | mes "to Valhalla,"; |
---|
84 | mes "the Hall of Honor."; |
---|
85 | next; |
---|
86 | mes "[Scholar]"; |
---|
87 | mes "Please make"; |
---|
88 | mes "yourself comfortable"; |
---|
89 | mes "while you are here."; |
---|
90 | mes "Honor to the warriors!"; |
---|
91 | close; |
---|
92 | } |
---|
93 | |
---|