1 | //===== eAthena Script ======================================= |
---|
2 | //= Priest Skills Quests |
---|
3 | //===== By: ================================================== |
---|
4 | //= Lupus, Reddozen |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.4 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena SVN |
---|
9 | //===== Description: ========================================= |
---|
10 | //= [Aegis Conversion] |
---|
11 | //= Quests for skills: Redempito |
---|
12 | //===== Additional Comments: ================================= |
---|
13 | //= 1.4 Rescripted to Aegis 10.3 stadards. [L0ne_W0lf] |
---|
14 | //============================================================ |
---|
15 | |
---|
16 | prt_church,111,112,1 script Sister Linus 79,{ |
---|
17 | if (BaseJob == Job_Priest) { |
---|
18 | if (PRIEST_SK == 100) { |
---|
19 | if (getskilllv("PR_REDEMPTIO") == 0) { |
---|
20 | mes "[Sister Linus]"; |
---|
21 | mes "Hm? We've met before,"; |
---|
22 | mes "haven't we? Then again,"; |
---|
23 | mes "all Priests begin to look"; |
---|
24 | mes "the same after a while. Ah,"; |
---|
25 | mes "were you one of the ones"; |
---|
26 | mes "to whom I taught Redemptio?"; |
---|
27 | next; |
---|
28 | mes "[Sister Linus]"; |
---|
29 | mes "Ah, you've forgotten, have"; |
---|
30 | mes "you? Well, it's no problem for"; |
---|
31 | mes "me to teach you again. This skill enables you to revive your fallen"; |
---|
32 | mes "Party Members by sacrificing"; |
---|
33 | mes "your own life for them."; |
---|
34 | next; |
---|
35 | mes "[Sister Linus]"; |
---|
36 | mes "^3131FFOh holy and venerable one,"; |
---|
37 | mes "we pray to you. Please show"; |
---|
38 | mes "us your mercy and guide us"; |
---|
39 | mes "with your light. Give us the"; |
---|
40 | mes "strength to walk the path of"; |
---|
41 | mes "love and sacrifice. Redemptio!^000000"; |
---|
42 | skill "PR_REDEMPTIO",1,0; |
---|
43 | next; |
---|
44 | mes "[Sister Linus]"; |
---|
45 | mes "There..."; |
---|
46 | mes "You should be able"; |
---|
47 | mes "to perform Redemptio"; |
---|
48 | mes "now. I hope you use it"; |
---|
49 | mes "well on your adventures~"; |
---|
50 | close; |
---|
51 | } |
---|
52 | else { |
---|
53 | mes "[Sister Linus]"; |
---|
54 | mes "I'll always be praying"; |
---|
55 | mes "for your safety. Be careful,"; |
---|
56 | mes "and I hope that you can bring"; |
---|
57 | mes "love and compassion to all"; |
---|
58 | mes "whom you meet in your travels."; |
---|
59 | close; |
---|
60 | } |
---|
61 | } |
---|
62 | else if (PRIEST_SK == 0) { |
---|
63 | set redemp,1014; |
---|
64 | if (getskilllv("PR_REDEMPTIO")) { |
---|
65 | mes "[Sister Linus]"; |
---|
66 | mes "I'll always be praying"; |
---|
67 | mes "for your safety. Be careful,"; |
---|
68 | mes "and I hope that you can bring"; |
---|
69 | mes "love and compassion to all"; |
---|
70 | mes "whom you meet in your travels."; |
---|
71 | set PRIEST_SK,100; |
---|
72 | close; |
---|
73 | } |
---|
74 | mes "[Sister Linus]"; |
---|
75 | mes "Please have mercy and"; |
---|
76 | mes "spread your light through"; |
---|
77 | mes "the world. Guide her with"; |
---|
78 | mes "your benevolent wisdom..."; |
---|
79 | mes "Bless her, and may she"; |
---|
80 | mes "be protected by your grace."; |
---|
81 | next; |
---|
82 | select("Whom are you praying for, sister?"); |
---|
83 | mes "[Sister Linus]"; |
---|
84 | mes "Oh! You startled me!"; |
---|
85 | mes "Whom am I praying for?"; |
---|
86 | mes "Well, I once knew a young,"; |
---|
87 | mes "playful and merry nun who was"; |
---|
88 | mes "also a bit brazen. But I have"; |
---|
89 | mes "many joyful memories of her."; |
---|
90 | next; |
---|
91 | mes "[Sister Linus]"; |
---|
92 | mes "One day, a group of adventurers"; |
---|
93 | mes "came to Prontera Church in hopes^FFFFFF ^000000 of hiring a Priest to accompany"; |
---|
94 | mes "them to ^3131DDGlast Heim^000000. It must have been fate that she was the only"; |
---|
95 | mes "Priest that was available."; |
---|
96 | next; |
---|
97 | mes "[Sister Linus]"; |
---|
98 | mes "I remember that she was"; |
---|
99 | mes "so determined to join those"; |
---|
100 | mes "adventurers, and we had no"; |
---|
101 | mes "choice but to let her go."; |
---|
102 | mes "Still, many of us believed"; |
---|
103 | mes "that it was too dangerous..."; |
---|
104 | next; |
---|
105 | mes "[Sister Linus]"; |
---|
106 | mes "I hear that, at first, their"; |
---|
107 | mes "ragtag team was able to"; |
---|
108 | mes "successfully exterminate"; |
---|
109 | mes "a great number of monsters."; |
---|
110 | mes "But supporting them as a Priest"; |
---|
111 | mes "must have been tough for her..."; |
---|
112 | next; |
---|
113 | mes "[Sister Linus]"; |
---|
114 | mes "Then, tragedy struck."; |
---|
115 | mes "Surrounded by Wanderers,"; |
---|
116 | mes "the adventurers quickly fell"; |
---|
117 | mes "in defeat, one by one. Soon,"; |
---|
118 | mes "the young nun was the only^FFFFFF ^000000 one of the group still standing."; |
---|
119 | next; |
---|
120 | mes "[Sister Linus]"; |
---|
121 | mes "Alone against impossible"; |
---|
122 | mes "odds, that poor girl had no"; |
---|
123 | mes "choice but to try a desperate"; |
---|
124 | mes "gamble. She began to chant"; |
---|
125 | mes "the ancient holy spell..."; |
---|
126 | next; |
---|
127 | select("Ancient spell...?"); |
---|
128 | mes "[Sister Linus]"; |
---|
129 | mes "Yes! ^FF0000Redemptio^000000!"; |
---|
130 | mes "A skill that only the"; |
---|
131 | mes "most talented Priests"; |
---|
132 | mes "can perform! And here she"; |
---|
133 | mes "was, a young nun with very"; |
---|
134 | mes "little experience, trying it!"; |
---|
135 | next; |
---|
136 | mes "[Sister Linus]"; |
---|
137 | mes "Redemptio is the last"; |
---|
138 | mes "resort skill that can be"; |
---|
139 | mes "used to nobly save the"; |
---|
140 | mes "lives of others at the cost"; |
---|
141 | mes "of ^3131FFsacrificing your own life^000000."; |
---|
142 | next; |
---|
143 | mes "[Sister Linus]"; |
---|
144 | mes "Yes, I remember the days"; |
---|
145 | mes "she wasn't very interested"; |
---|
146 | mes "in studying the Priest and"; |
---|
147 | mes "Acolyte skills. Surprisingly,"; |
---|
148 | mes "she had learned enough to"; |
---|
149 | mes "attempt to cast Redemptio..."; |
---|
150 | next; |
---|
151 | mes "[Sister Linus]"; |
---|
152 | mes "Miraculously, she succeeded"; |
---|
153 | mes "in reviving her party members."; |
---|
154 | mes "They quickly used a Yggdrasil"; |
---|
155 | mes "Leaf to restore her life, and they defeated the Wanderers and"; |
---|
156 | mes "returned home safely."; |
---|
157 | next; |
---|
158 | mes "[Sister Linus]"; |
---|
159 | mes "Because of this success, she"; |
---|
160 | mes "was promoted to High Priest"; |
---|
161 | mes "despite the many mistakes she"; |
---|
162 | mes "made in the past. Now she travels the world, helping adventurers"; |
---|
163 | mes "in any way that she can."; |
---|
164 | next; |
---|
165 | mes "[Sister Linus]"; |
---|
166 | mes "But, well, she'll"; |
---|
167 | mes "always be that spunky"; |
---|
168 | mes "and joyful girl to me."; |
---|
169 | next; |
---|
170 | mes "["+ strcharinfo(0) +"]"; |
---|
171 | mes "Wait, you still haven't"; |
---|
172 | mes "answered my question."; |
---|
173 | mes "Are you praying for this"; |
---|
174 | mes "nun? And if so, is she"; |
---|
175 | mes "in some kind of danger?"; |
---|
176 | next; |
---|
177 | mes "[Sister Linus]"; |
---|
178 | mes "Well, a few months ago,"; |
---|
179 | mes "she went on a mission to"; |
---|
180 | mes "^3131FFLighthalzen^000000, a city in the"; |
---|
181 | mes "Schwaltzvalt Republic. I was"; |
---|
182 | mes "just worried since I haven't"; |
---|
183 | mes "heard from her in a while."; |
---|
184 | next; |
---|
185 | mes "[Sister Linus]"; |
---|
186 | mes "I come here to pray for"; |
---|
187 | mes "her everyday, and hope that"; |
---|
188 | mes "she'll come back safely and"; |
---|
189 | mes "share stories of her adventures"; |
---|
190 | mes "with me. Ooh, we'll talk all night long! It'll be so much fun!"; |
---|
191 | next; |
---|
192 | mes "[Sister Linus]"; |
---|
193 | mes "Goodness, I've been"; |
---|
194 | mes "running my mouth! I'm"; |
---|
195 | mes "sorry to keep you, did you"; |
---|
196 | mes "have somewhere to go? Well,"; |
---|
197 | mes "I'll be praying for your safety~ ^FFFFFF ^000000"; |
---|
198 | next; |
---|
199 | mes "["+ strcharinfo(0) +"]"; |
---|
200 | mes "Before I go, would you"; |
---|
201 | mes "please tell me the name"; |
---|
202 | mes "of that High Priest you were"; |
---|
203 | mes "talking about? If I see her,"; |
---|
204 | mes "I'll ask her to contact you."; |
---|
205 | next; |
---|
206 | mes "[Sister Linus]"; |
---|
207 | mes "Oh, thank you! Her name"; |
---|
208 | mes "is High Priest Sorin. Um,"; |
---|
209 | mes "^3131FFMargaretha Sorin^000000. If you"; |
---|
210 | mes "happen to find her, please"; |
---|
211 | mes "let her know that I am"; |
---|
212 | mes "praying for her safety."; |
---|
213 | set PRIEST_SK,1; |
---|
214 | close; |
---|
215 | } |
---|
216 | else if (PRIEST_SK == 1) { |
---|
217 | mes "[Sister Linus]"; |
---|
218 | mes "Oh, hello~"; |
---|
219 | mes "How are you"; |
---|
220 | mes "doing today?"; |
---|
221 | next; |
---|
222 | if (select("Please teach me ^3131FFRedemptio^000000.:Cancel") == 1) { |
---|
223 | mes "[Sister Linus]"; |
---|
224 | mes "Ooh, Redemptio would be"; |
---|
225 | mes "a good skill for you to learn~"; |
---|
226 | mes "It's difficult to cast, but when you succeed, you can revive all"; |
---|
227 | mes "of your defeated Party Members."; |
---|
228 | next; |
---|
229 | mes "[Sister Linus]"; |
---|
230 | mes "Of course, the drawback"; |
---|
231 | mes "is that you must ^3131FFsacrifice"; |
---|
232 | mes "your own life^000000 in order to"; |
---|
233 | mes "use the skill. Now, to learn"; |
---|
234 | mes "Redemptio, you must first"; |
---|
235 | mes "learn ^3131FFLevel 1 Resurrection^000000."; |
---|
236 | next; |
---|
237 | mes "[Sister Linus]"; |
---|
238 | mes "Ah, you must"; |
---|
239 | mes "also bring me"; |
---|
240 | mes "^3131FF30 Holy Waters and"; |
---|
241 | mes "20 Blue Gemstones^000000"; |
---|
242 | mes "so you can attempt"; |
---|
243 | mes "to learn the skill."; |
---|
244 | set PRIEST_SK,2; |
---|
245 | next; |
---|
246 | mes "[Sister Linus]"; |
---|
247 | mes "Um, but if you fail to"; |
---|
248 | mes "learn Redemptio, you'll"; |
---|
249 | mes "lose 1 Holy Water and"; |
---|
250 | mes "1 Blue Gemstone and"; |
---|
251 | mes "you'll have to try it again..."; |
---|
252 | close; |
---|
253 | } |
---|
254 | mes "[Sister Linus]"; |
---|
255 | mes "Praying gives me a"; |
---|
256 | mes "sense of peace and"; |
---|
257 | mes "comfort. Perhaps that"; |
---|
258 | mes "is one of the reasons"; |
---|
259 | mes "why I chose this job..."; |
---|
260 | close; |
---|
261 | } |
---|
262 | else if (PRIEST_SK == 2) { |
---|
263 | if (getskilllv("ALL_RESURRECTION") > 0) { |
---|
264 | if (countitem(523) > 29 && countitem(717) > 19) { |
---|
265 | mes "[Sister Linus]"; |
---|
266 | mes "Ooh, it seems like you've"; |
---|
267 | mes "brought everything that you"; |
---|
268 | mes "need to learn Redemptio."; |
---|
269 | mes "Are you ready to try it? If you"; |
---|
270 | mes "fail, you'll lose 1 Holy Water"; |
---|
271 | mes "and 1 Blue Gemstone, okay?"; |
---|
272 | next; |
---|
273 | mes "[Sister Linus]"; |
---|
274 | mes "Now, please"; |
---|
275 | mes "concentrate and"; |
---|
276 | mes "repeat this special"; |
---|
277 | mes "prayer after me."; |
---|
278 | next; |
---|
279 | mes "[Sister Linus]"; |
---|
280 | mes "^3131FFOh holy and venerable one,"; |
---|
281 | mes "we pray to you. Please show"; |
---|
282 | mes "us your mercy and guide us"; |
---|
283 | mes "with your light. Give us the"; |
---|
284 | mes "strength to walk the path of"; |
---|
285 | mes "love and sacrifice. Redemptio!^000000"; |
---|
286 | next; |
---|
287 | set .@redem_s,JobLevel+getskilllv("ALL_RESURRECTION"); |
---|
288 | set .@red_suc,rand(1,100); |
---|
289 | if( .@redem_s < 31 ) { |
---|
290 | if( .@red_suc > 20 && .@red_suc < 41 ) |
---|
291 | set .@success,1; |
---|
292 | } else if( .@redem_s < 41 ) { |
---|
293 | if( .@red_suc > 10 && .@red_suc < 41 ) |
---|
294 | set .@success,1; |
---|
295 | } else { |
---|
296 | if( .@red_suc > 10 && .@red_suc < 51 ) |
---|
297 | set .@success,1; |
---|
298 | } |
---|
299 | |
---|
300 | if (.@success) { |
---|
301 | specialeffect2 14; // EF_HEALSP |
---|
302 | mes "[Sister Linus]"; |
---|
303 | mes "Congratulations!"; |
---|
304 | mes "You successfully"; |
---|
305 | mes "learned Redemptio!"; |
---|
306 | mes "Please remember to only"; |
---|
307 | mes "use this skill in the most"; |
---|
308 | mes "critical situations."; |
---|
309 | delitem 717,20; //Blue_Gemstone |
---|
310 | delitem 523,30; //Holy_Water |
---|
311 | set PRIEST_SK,100; |
---|
312 | skill "PR_REDEMPTIO",1,0; |
---|
313 | close; |
---|
314 | } |
---|
315 | else { |
---|
316 | specialeffect2 53; // EF_POISONHIT |
---|
317 | mes "[Sister Linus]"; |
---|
318 | mes "Oh no! I'm sorry,"; |
---|
319 | mes "but you failed to"; |
---|
320 | mes "learn Redemptio. Well,"; |
---|
321 | mes "I'll be waiting right here,"; |
---|
322 | mes "so we can try again when"; |
---|
323 | mes "you're ready, okay?"; |
---|
324 | delitem 717,1; //Blue_Gemstone |
---|
325 | delitem 523,1; //Holy_Water |
---|
326 | close; |
---|
327 | } |
---|
328 | |
---|
329 | } |
---|
330 | else { |
---|
331 | mes "[Sister Linus]"; |
---|
332 | mes "If you want to try to learn"; |
---|
333 | mes "Redemptio, please bring"; |
---|
334 | mes "^3131FF20 Blue Gemstones^000000 and"; |
---|
335 | mes "^3131FF30 Holy Waters^000000. Ah, and"; |
---|
336 | mes "you need to learn ^3131FFLevel 1"; |
---|
337 | mes "Resurrection^000000 beforehand."; |
---|
338 | close; |
---|
339 | } |
---|
340 | } |
---|
341 | else { |
---|
342 | mes "[Sister Linus]"; |
---|
343 | mes "If you want to try to learn"; |
---|
344 | mes "Redemptio, please bring"; |
---|
345 | mes "^3131FF20 Blue Gemstones^000000 and"; |
---|
346 | mes "^3131FF30 Holy Waters^000000. Ah, and"; |
---|
347 | mes "you need to learn ^3131FFLevel 1"; |
---|
348 | mes "Resurrection^000000 beforehand."; |
---|
349 | close; |
---|
350 | } |
---|
351 | } |
---|
352 | } |
---|
353 | else { |
---|
354 | mes "[Sister Linus]"; |
---|
355 | mes "Please have mercy and"; |
---|
356 | mes "spread your light through"; |
---|
357 | mes "the world. Guide her with"; |
---|
358 | mes "your benevolent wisdom..."; |
---|
359 | mes "Bless her, and may she"; |
---|
360 | mes "be protected by your grace."; |
---|
361 | close; |
---|
362 | } |
---|
363 | } |
---|
364 | |
---|
365 | //============================================================ |
---|
366 | // Old changelog |
---|
367 | //============================================================ |
---|
368 | //= 1.0 for fully working skills only [Lupus] |
---|
369 | //= 1.1 Added more new skill quests for more classes [Lupus] |
---|
370 | //= Somehow eA engine doesn't let you keep learn't skill V_V' |
---|
371 | //= 1.2 Added to correct locations, correct NPC's, fixed |
---|
372 | //= some of the items required and made them into real |
---|
373 | //= quests. [Reddozen] |
---|
374 | //= 1.3 Fixed bugs and minor typos. Optimized [Lupus] |
---|
375 | //= 1.3a fixed an item ID typo, thx 2Spiritual Kid |
---|
376 | //= 1.3b Splitted into different files [DracoRPG] |
---|
377 | //============================================================ |
---|