OSDN Git Service

First version
[st-ro/stro.git] / npc / pre-re / jobs / 1-1 / acolyte.txt
1 //===== rAthena Script ======================================= 
2 //= Acolyte Job Quest
3 //===== By: ================================================== 
4 //= kobra_k88; L0ne_W0lf
5 //===== Current Version: ===================================== 
6 //= 2.2
7 //===== Compatible With: ===================================== 
8 //= rAthena Project
9 //===== Description: ========================================= 
10 //= [Official Conversion]
11 //= Job quest for Acolyte classes
12 //===== Additional Comments: ================================= 
13 //= 1.0 Fully working.
14 //= 1.1 Added function calls for Priest Quest.
15 //= 1.2 Fixed Marthilda, Yosuke bugs. [Lupus]
16 //= 1.2a Added instant job change for High Novice [Lupus]
17 //= 1.3 Added Baby Class support [Lupus]
18 //= 1.4 Optimised and moved first checker to Jfunc1-1 [massdriller]
19 //= 1.5 Now saves/restores all quest skills [Lupus]
20 //= 1.6 Merged back JFunc [Lupus]
21 //= 1.7 Rescripted to Aegis 10.3 stadards. [L0ne_W0lf]
22 //=     No longer uses function "F_ToHigh"
23 //=     Proper dialog for Priest job quest is unused (for now.)
24 //= 1.7a Functions now make use of proper priest quest dialog [L0ne_W0lf]
25 //= 1.8 Removed an Unnecessary "set job_acolyte_q,0;" [Samuray22]
26 //= 1.8a More bug fixes care of Crashy. [L0ne_W0lf]
27 //= 1.9 Changed Marthilda to Mathilda. [L0ne_W0llf]
28 //= 2.0 Fixed High Acolytesnot being given holy light. [L0ne_W0lf]
29 //= 2.1 Added Quest Log commands. [L0ne_W0lf]
30 //= 2.2 Fixed an issue with completequest by adding checkquest. [Kisuka]
31 //============================================================ 
32
33 prt_church,184,41,4     script  Cleric#aco      60,{
34         if (Upper == 1) {
35                 if (ADVJOB == Job_High_Priest || ADVJOB == Job_Champion) {
36                         if (Class == Job_Novice_High) {
37                                 mes "[Father Mareusis]";
38                                 mes "Ah, I sense you have endured";
39                                 mes "a past life experience. You must have learned many things before entering Valhalla.";
40                                 next;
41                                 if (!callfunc("F_CanChangeJob")) {
42                                         mes "[Father Mareusis]";
43                                         mes "Unfortunately, I don't think you're ready to become an Acolyte yet. Please finish learning all of the Basic Skills first.";
44                                         next;
45                                         mes "[Father Mareusis]";
46                                         mes "In the meantime,";
47                                         mes "I will wait until";
48                                         mes "you are ready.";
49                                         mes "May God be";
50                                         mes "with you.";
51                                         close;
52                                 }
53                                 mes "[Father Mareusis]";
54                                 mes "Well, I welcome you";
55                                 mes "back from Valhalla and";
56                                 mes "wish you luck on your";
57                                 mes "new life's journey.";
58                                 next;
59                                 skill "NV_TRICKDEAD",0,SKILL_PERM;
60                                 jobchange Job_Acolyte_High;
61                                 skill "AL_HOLYLIGHT",1,SKILL_PERM;
62                                 mes "[Father Mareusis]";
63                                 mes "Now, venture forth and seek those who need your help. May God light your path.";
64                                 close;
65                         }
66                         else {
67                                 mes "[Father Mareusis]";
68                                 mes "Now, venture forth to seek people who need your help. May God enlighten your way.";
69                                 close;
70                         }
71                 }
72                 else {
73                         mes "[Father Mareusis]";
74                         mes "I sense that you have endured a past life experience. You must have learned many things before entering Valhalla.";
75                         next;
76                         mes "[Father Mareusis]";
77                         mes "However, I can tell that you are not suited to be an Acolyte. Please remember who you were in your past life and find your path.";
78                         close;
79                 }
80         }
81         mes "[Father Mareusis]";
82         mes "What is it that you seek?";
83         next;
84         switch(select("Father, I want to be a Acolyte.:Acolyte Requirements.:Just looking around.")) {
85         case 1:
86                 mes "[Father Mareusis]";
87                 if (BaseJob == Job_Acolyte) {
88                         mes "Are you feeling okay today? I can tell by your attire that you are already an Acolyte. You're not joking around, are you?";
89                         close;
90                 }
91                 else if (BaseJob != Job_Novice) {
92                         mes "I'm sorry, but we can only accept Novices as applicants for the job change to Acolyte.";
93                         close;
94                 }
95                 if (job_acolyte_q == 0) {
96                         mes "Do you truly";
97                         mes "wish to become";
98                         mes "a servant of God?";
99                         next;
100                         if (select("Yes Father, I do.:Nope, I lied.") == 1) {
101                                 mes "[Father Mareusis]";
102                                 mes "Good. I accept " + strcharinfo(0) + "'s will to become an Acolyte. You understand that you must do penance before you can become a servant of God, right?";
103                                 next;
104                                 mes "[Father Mareusis]";
105                                 mes "Well, I will";
106                                 mes "give you a mission...";
107                                 switch(rand(3)) {
108                                 default:
109                                         set job_acolyte_q,2;
110                                         mes "Please visit ^000077Father Rubalkabara^000000, a member of the Prontera Parish, and return here. He has been practicing asceticism in the ^000077Relics NorthEast of Prontera City^000000.";
111                                         setquest 1001;
112                                         break;
113                                 case 1:
114                                         set job_acolyte_q,3;
115                                         mes "Please visit ^000077Mother Mathilda^000000 and then return to me. She has been practicing asceticism near ^000077Morroc Town, SouthWest of Prontera City^000000.";
116                                         setquest 1002;
117                                         break;
118                                 case 2:
119                                         set job_acolyte_q,4;
120                                         mes "Please visit ^000077Father Yosuke^000000 and return here. He has been practicing asceticism around ^000077a bridge somewhere NorthWest of Prontera^000000.";
121                                         setquest 1003;
122                                         break;
123                                 }
124                                 next;
125                                 mes "[Father Mareusis]";
126                                 mes "May the grace of God light your path and guide you during your journey of penance.";
127                                 close;
128                         }
129                         mes "[Father Mareusis]";
130                         mes "You lied?";
131                         mes "It is good that you";
132                         mes "have confessed your";
133                         mes "wrongdoing. Go in";
134                         mes "peace, my son.";
135                         close;
136                 }
137                 mes "Oh, you've come back. Let me check and see if you are ready to serve God. Let's see...";
138                 next;
139                 mes "[Father Mareusis]";
140                 if (!callfunc("F_CanChangeJob")) {
141                         mes "Good Lord! Haven't you accomplished the Basic Training yet?! It's important that you finish that!";
142                         next;
143                         mes "[Father Mareusis]";
144                         mes "You should have trained more! Go back and make sure you reach Novice Job Level 9 and learn all of the Basic Skills!";
145                         close;
146                 }
147                 if (job_acolyte_q < 5) {
148                         mes "Oh? I can't find your name on the Registration List.";
149                         next;
150                         switch(job_acolyte_q) {
151                         case 2:
152                                 mes "[Father Mareusis]";
153                                 mes "Please visit ^000077Father Rubalkabara^000000, a member of the Prontera Parish, and return here.";
154                                 next;
155                                 mes "[Father Mareusis]";
156                                 mes "He has been practicing asceticism in the ^000077Relics at the NorthEast of Prontera City^000000.";
157                                 break;
158                         case 3:
159                                 mes "[Father Mareusis]";
160                                 mes "Please Visit ^000077Mother Mathilda^000000 and return here to me.";
161                                 next;
162                                 mes "[Father Mareusis]";
163                                 mes "She has been practicing asceticism near ^000077Morroc Town, located SouthWest of Prontera City^000000.";
164                                 break;
165                         case 4:
166                                 mes "[Father Mareusis]";
167                                 mes "Please visit ^000077 Father Yosuke ^000000 and return here to me.";
168                                 next;
169                                 mes "[Father Mareusis]";
170                                 mes "He has been practicing asceticism near a ^000077bridge somewhere to the NorthWest of Prontera^000000.";
171                                 break;
172                         }
173                         next;
174                         mes "[Father Mareusis]";
175                         mes "May the grace of God brighten your path and guide you on your journey of penance.";
176                         close;
177                 }
178                 mes "Hmm...";
179                 mes "Your name is on the list and you've proven your qualification.";
180                 next;
181                 mes "[Father Mareusis]";
182                 mes "I am proud to say that you are now ready to become an Acolyte!";
183                 next;
184                 skill "NV_TRICKDEAD",0,SKILL_PERM;
185                 callfunc "Job_Change",Job_Acolyte;
186                 callfunc "F_ClearJobVar";
187                 if(checkquest(1001) != -1) {
188                         completequest 1001;
189                 }
190                 else if(checkquest(1002) != -1) {
191                         completequest 1002;
192                 }
193                 else {
194                         completequest 1003;
195                 }
196                 mes "[Father Mareusis]";
197                 mes "Always remember to be thankful to God, who is taking care of us all the time.";
198                 next;
199                 mes "[Father Mareusis]";
200                 mes "Always use your gifts to serve Him by helping others. In chaos and times of difficulty, face your hardships with unwavering faith.";
201                 next;
202                 mes "[Father Mareusis]";
203                 mes "Lastly, I want to sincerely congratulate you on persevering through your trial of penance.";
204                 close;
205         case 2:
206                 mes "[Father Mareusis]";
207                 mes "Do you wish to become an Acolyte? You must fulfill two requirements.";
208                 next;
209                 mes "[Father Mareusis]";
210                 mes "First, you have to reach at least Novice Job Level 9 and learn all of the Basic Skills. Second, you will be given a trial of penance to overcome.";
211                 next;
212                 mes "[Father Mareusis]";
213                 if (job_acolyte_q != 0) {
214                         switch(job_acolyte_q) {
215                         case 2:
216                                 mes "For your trial, please visit ^000077Father Rubalkabara ^000000 and then return here to me.";
217                                 next;
218                                 mes "[Father Mareusis]";
219                                 mes "He is practicing asceticism in the ^000077Relics at the NorthEast of Prontera City^000000.";
220                                 break;
221                         case 3:
222                                 mes "For your trial, please visit ^000077Mother Mathilda^000000 and return here to me.";
223                                 next;
224                                 mes "[Father Mareusis]";
225                                 mes "She has been practicing asceticism near ^000077Morroc, located to the SouthWest of Prontera City^000000.";
226                                 break;
227                         default:
228                                 mes "For your trial, please visit ^000077Father Yosuke^000000 and return here to me.";
229                                 next;
230                                 mes "[Father Mareusis]";
231                                 mes "He has been practicing asceticism around a bridge somewhere ^000077NorthWest of Prontera^000000.";
232                                 break;
233                         }
234                         next;
235                         mes "[Father Mareusis]";
236                         mes "May the grace of God light your path and guide you on your journey of penance.";
237                 }
238                 else {
239                         mes "The destination for this trial will be decided once you fill the application form.";
240                 }
241                 next;
242                 mes "[Father Mareusis]";
243                 mes "Please come back after fulfilling the two requirements I've asked of you. As long as your desire to serve God and others is sincere, you will be able to make it.";
244                 close;
245         case 3:
246                 close;
247         }
248 }
249
250 prt_fild03,365,255,2    script  Ascetic#aco     89,{
251         mes "[Father Rubalkabara]";
252         if (BaseJob == Job_Novice) {
253                 if (job_acolyte_q == 6) {
254                         mes "Please take care. They should know that you've met me by the time you arrive at the Prontera Sanctuary.";
255                         next;
256                         mes "[Father Rubalkabara]";
257                         mes "I've sent a carrier pigeon with a message. I hope it will arrive there safely...";
258                         close;
259                 }
260                 if (job_acolyte_q != 0) {
261                         if (job_acolyte_q == 2) {
262                                 mes "Oh...? You must be the one who aspires to become an Acolyte. I've already received news from the Sanctuary that you might be coming.";
263                                 next;
264                                 mes "[Father Rubalkabara]";
265                                 mes "Now, your name was " + strcharinfo(0) + ", right? Excellent, thank you for visiting me.";
266                                 next;
267                                 mes "[Father Rubalkabara]";
268                                 mes "I believe you've been told much about Acolytes from Friar Mareusis. Plus, there's plenty of helpful people in the Prontera Sanctuary.";
269                                 next;
270                                 mes "[Father Rubalkabara]";
271                                 mes "I guess there's really no need for me to teach you much. Besides, I'm sure your someone from your generation may have trouble listening to an old man like me. Hahaha~";
272                                 next;
273                                 mes "[Father Rubalkabara]";
274                                 mes "Still, lessons may come from the places you'd least expect. God loves to teach his children in strange ways. You'll see.";
275                                 next;
276                                 mes "[Father Rubalkabara]";
277                                 mes "Well, I'll send the message telling them that you've come to visit me. So, you may now return to the Prontera Sanctuary.";
278                                 next;
279                                 mes "[Father Rubalkabara]";
280                                 mes "Farewell.";
281                                 close2;
282                                 savepoint "prt_fild03",361,255,1,1;
283                                 set job_acolyte_q,6;
284                                 end;
285                         }
286                         else {
287                                 mes "Oh...";
288                                 mes "Are you one of the";
289                                 mes "Acolyte applicants...?";
290                                 mes "Let's see...";
291                                 next;
292                                 mes "[Father Rubalkabara]";
293                                 mes "Your name is " + strcharinfo(0) + "?";
294                                 mes "I don't think your name";
295                                 mes "is on my list. Hmmm...";
296                                 next;
297                                 mes "[Father Rubalkabara]";
298                                 mes "Why don't you go back to the Prontera Sanctuary and check again?";
299                                 close;
300                         }
301                 }
302                 else {
303                         mes "Huh? What brings you here? This is a very dangerous place for a Novice like yourself!";
304                         close;
305                 }
306         }
307         else if (BaseJob == Job_Acolyte) callfunc "F_FatherRub";
308         else {
309                 if (BaseJob == Job_Priest) {
310                         mes "Greetings.";
311                         next;
312                         mes "[Father Rubalkabara]";
313                         mes "Welcome to the Deep. Feel free to sit and contemplate God's message with me. This place is beautiful, even if danger accompanies its sense of serenity...";
314                         close;
315                 }
316                 else {
317                         mes "Oh ho...";
318                         mes "Have you come into the Deep here for training? Or are you just a Wanderer?";
319                         next;
320                         mes "[Father Rubalkabara]";
321                         mes "Whoever you are, please take care of yourself. The monsters in here are shockingly strong, contrary to their cute appearance.";
322                         close;
323                 }
324         }
325 }
326
327 moc_fild07,41,355,4     script  Ascetic#2aco    95,{
328         mes "[Mother Mathilda]";
329         if (BaseJob == Job_Novice) {
330                 if (job_acolyte_q == 7) {
331                         mes "I will send a carrier pigeon to the Prontera Sanctuary. When you return, the Priest there should already have received my message.";
332                         next;
333                         mes "[Mother Mathilda]";
334                         mes "I will pray to God, and hope that you become an Acolyte soon.";
335                         close;
336                 }
337                 if (job_acolyte_q != 0) {
338                         if (job_acolyte_q == 3) {
339                                 mes "Ah, you must be one of the Acolyte applicants. I sincerely welcome you.";
340                                 next;
341                                 mes "[Mother Mathilda]";
342                                 mes "What is your name? " + strcharinfo(0) + "? Let's see... Ah, you're on my list.";
343                                 next;
344                                 mes "[Mother Mathilda]";
345                                 mes "I will send a message to the Sanctuary confirming that you, " + strcharinfo(0) + " visited me and completed your penance.";
346                                 next;
347                                 mes "[Mother Mathilda]";
348                                 mes "Please return to the Prontera Sanctuary and speak to the Priest in charge.";
349                                 close2;
350                                 savepoint "moc_fild07",35,355,1,1;
351                                 set job_acolyte_q,7;
352                                 end;
353                         }
354                         else {
355                                 mes "Ah...!";
356                                 mes "You must be one";
357                                 mes "of the Acolyte applicants.";
358                                 mes "I sincerely welcome you.";
359                                 next;
360                                 mes "[Mother Mathilda]";
361                                 mes "Now, what is your name?";
362                                 mes "" + strcharinfo(0) + "? Let's see...";
363                                 next;
364                                 mes "[Mother Mathilda]";
365                                 mes "Hmm...";
366                                 mes "It seems your name";
367                                 mes "is not on my list...";
368                                 next;
369                                 mes "[Mother Mathilda]";
370                                 mes "Perhaps you should return to the Prontera Sanctuary and check the destination for your penance trial once again.";
371                                 close;
372                         }
373                 }
374                 else {
375                         mes "...";
376                         close;
377                 }
378         }
379         else if (BaseJob == Job_Acolyte) callfunc "F_MotherMart";
380         else {
381                 if (BaseJob == Job_Priest) {
382                         mes "Hello there~";
383                         next;
384                         mes "[Mother Mathilda]";
385                         mes "How is your practice coming along? I certainly hope you're enjoying living in the grace of God.";
386                         close;
387                 }
388                 else {
389                         mes "May God";
390                         mes "be with you...";
391                         close;
392                 }
393         }
394 }
395
396 prt_fild00,208,218,6    script  Ascetic#3aco    98,{
397         mes "[Father Yosuke]";
398         if (BaseJob == Job_Novice) {
399                 if (job_acolyte_q == 8) {
400                         mes "What?";
401                         next;
402                         mes "[Father Yosuke]";
403                         mes "Have you any more business with me?! You don't! Go back to the Sanctuary now!";
404                         close;
405                 }
406                 if (job_acolyte_q != 0) {
407                         if (job_acolyte_q == 4) {
408                                 mes "Hey.";
409                                 mes "Whatever you are,";
410                                 mes "you look like an";
411                                 mes "Acolyte applicant.";
412                                 mes "Right?";
413                                 next;
414                                 mes "[Father Yosuke]";
415                                 mes "Not bad, not bad. You withstood the penance trial pretty well.";
416                                 mes "So what's your name?";
417                                 next;
418                                 mes "[Father Yosuke]";
419                                 mes "" + strcharinfo(0) + ", huh?";
420                                 next;
421                                 mes "[Father Yosuke]";
422                                 mes "Okay. I'll send a message to the Sanctuary that you, " + strcharinfo(0) + ", came to visit me.";
423                                 next;
424                                 mes "[Father Yosuke]";
425                                 mes "Now go back to the Santuary and finish becoming an Acolyte, kid.";
426                                 close2;
427                                 savepoint "prt_fild00",206,230,1,1;
428                                 set job_acolyte_q,8;
429                                 end;
430                         }
431                         else {
432                                 mes "Hey.";
433                                 mes "You look like an Acolyte Applicant. Am I right?";
434                                 next;
435                                 mes "[Father Yosuke]";
436                                 mes "Not bad at all, you've made it all the way here from Prontera. So what's your name, kid?";
437                                 next;
438                                 mes "[Father Yosuke]";
439                                 mes "" + strcharinfo(0) + ", huh? Why isn't your name on my list?";
440                                 next;
441                                 mes "[Father Yosuke]";
442                                 mes "You probably made a mistake. Go back to the Santuary, and check with the Bishop.";
443                                 close;
444                         }
445                 }
446                 else {
447                         mes "You...";
448                         mes "Novice.";
449                         mes "There something";
450                         mes "you wanna tell me?";
451                         close;
452                 }
453         }
454         else if (BaseJob == Job_Acolyte) callfunc "F_FatherYos";
455         else {
456                 if (BaseJob == Job_Priest) {
457                         mes "Hey...";
458                         next;
459                         mes "[Father Yosuke]";
460                         mes "If you like, come sit here with me and meditate the great truths. God's majesty is truly inspiring...";
461                         close;
462                 }
463                 else {
464                         mes "Do you have anything to say? Because unfortunately for you,";
465                         mes "I don't any replies.";
466                         close;
467                 }
468         }
469 }
470