root/npc/jobs/2-2/crusader.txt @ 1

Revision 1, 49.6 kB (checked in by jinshiro, 17 years ago)
RevLine 
[1]1//===== eAthena Script =======================================
2//= Crusader Quest
3//===== By: ==================================================
4//= Made by: Black Dragon
5//= Converted by: Shin
6//===== Current Version: =====================================
7//= 3.0
8//===== Compatible With: =====================================
9//= eAthena  SVN
10//===== Description: =========================================
11//= [Aegis Conversion]
12//= Job quest for Crusader classes
13//===== Additional Comments: =================================
14//= 2.2 Updated All NPCs to the officials one [Samuray22]
15//=     -Based on the ASB 4.0 Package.
16//=     -Maybe need be checked the monsters in the test 2 and 4.
17//= 2.3 Fixed some bugs that prevented from going further. [SinSloth]
18//= 2.4 Updated NPC dialogs using Aegis 10.3 files. [L0ne_W0lf]
19//=     - Fixed logic error with job change reward for job 50 swordies.
20//=     - Completely redid the 1st and third tests.
21//=     - Optimized first four NPC scripts slightly.
22//=     - Temporary character variables "@" are now ".@"
23//=     - Fixed some indentation.
24//= 2.5 Fixed some spelling and grammar in crusader quest. [L0ne_W0lf]
25//= 2.6 Fixed bug (about totally blocked baby class), optimized,
26//=     made some NPC more unique names: Monster Summon#cr1 [Lupus]
27//= 2.7 Fixed Some variables like ".@item", and changed to "@item". [Samuray22]
28//= 2.8 Fixed a little minor bug. [Samuray22]
29//= 2.9 Minor fixes, typos, an incorrect answer. Thanks to yyCC. [L0ne_W0lf]
30//= 2.9a Deleted unused variables. [Samuray22]
31//= 3.0 Updated waiting room. (Removes global var) [L0ne_W0lf]
32//============================================================
33
34
35//=============== Senior Crusader: 1st Collect Items Test============================
36prt_castle,45,169,5     script  Senior Crusader 752,{
37        mes "[Michael Halig]";
38        if (Upper == 1) { //the baby classes were totally blocked... due to missing == 1
39                mes "Go and train yourself in preparation for the holy war that is coming. Victory will be in the hands of those who are most ready to receive it.";
40                next;
41                mes "[Michael Halig]";
42                mes "You don't belong here, my friend.";
43                mes "Be advised to continue practicing yourself.";
44                close;
45        }
46        else if(BaseJob != Job_Swordman) {
47                if(BaseJob == Job_Crusader) {
48                        mes "Go and train yourself in preparation for the holy war that is coming. Victory will be in the hands of those who are most ready to receive it.";
49                        next;
50                        mes "[Michael Halig]";
51                        mes "Chaos will one day arise to challenge our principles of peace, justice and order. Until we have eliminated evil and created our ideal world, we must not cease training.";
52                        close;
53                }
54                else if(BaseJob == Job_Novice) {
55                        mes "We are Crusaders,";
56                        mes "warriors preparing";
57                        mes "to fight in the Holy War.";
58                        next;
59                        mes "[Michael Halig]";
60                        mes "If you wish to join us, you must first learn the Swordsman discipline and train yourself thoroughly...";
61                        close;
62                }
63                mes "We are Crusaders,";
64                mes "warriors preparing";
65                mes "to fight in the Holy War.";
66                next;
67                mes "[Michael Halig]";
68                mes "As it happened one thousand years ago, evil forces will one day attack in droves in an attempt to take over the world once again.";
69                close;
70        }
71        else if(CRUS_Q <= 3 && countitem(1004) && countitem(1009)) {
72                mes "Ah...";
73                mes "I see that you have been called to become a Crusader. We are assured of your will, but now we must test your capabilities.";
74                next;
75                mes "[Michael Halig]";
76                mes "Meet with Moorenak Miyol who is training in the underground dungeon of the Prontera Castle. Go, and speak with him first.";
77                next;
78                delitem 1004, 1;
79                delitem 1009, 1;
80                set CRUS_Q,4;
81                mes "[Michael Halig]";
82                mes "Moorenak and others like him will test the limits of your capabilities and help you find your path. Return to me after you have completed their tests...";
83                close;
84        }
85        else if(CRUS_Q == 0) {
86                mes "We are Crusaders, warriors preparing for the Holy War.";
87                mes "What brings you";
88                mes "to this place?";
89                next;
90                if (select("I want to prepare for the Holy War!:Nothing in particular.") == 1) {
91                        mes "[Michael Halig]";
92                        mes "You wish to become";
93                        mes "a Crusader...?";
94                        mes "Joining us is not as";
95                        mes "easy as it sounds.";
96                        next;
97                        mes "[Michael Halig]";
98                        mes "I am Michael Halig. I am one of but many Crusaders preparing for the Holy War. We continuously train ourselves with sincere faith and endless loyalty.";
99                        next;
100                        mes "[Michael Halig]";
101                        mes "We recruit Swordsmen that express exceptional faith, or those who were born as warriors";
102                        mes "by Odin's will.";
103                        next;
104                        mes "[Michael Halig]";
105                        mes "Possessing the ^3355FFChivalry Emblem^000000 and ^3355FFHand of God^000000 is seen as a sign that you have been called to become a Crusader.";
106                        next;
107                        mes "[Michael Halig]";
108                        mes "After obtaining those items and passing our tests, you too, can become a Crusader.";
109                        next;
110                        mes "[Michael Halig]";
111                        mes "I don't know what type of person you are right now though. But";
112                        mes "I shall test you if you desire. Are you willing to endure these tests in preparation for the Holy War?";
113                        next;
114                        if (select("Yes, I do.:I'd like to think about it.") == 1) {
115                                if(JobLevel < 40) {
116                                        mes "[Michael Halig]";
117                                        mes "Wait...";
118                                        mes "You're not ready yet.";
119                                        mes "You need to be at least";
120                                        mes "Job Level 40 to become";
121                                        mes "a Crusader.";
122                                        next;
123                                        mes "[Michael Halig]";
124                                        mes "Train yourself more as a Swordsman and wait for your calling. I understand your intent, but as of now, you cannot join us.";
125                                        close;
126                                }
127                                if (Skillpoint) {
128                                        mes "[Michael Halig]";
129                                        mes "You haven't finished learning everything as a Swordsman. Use all of your remaining skill points, and then return to me.";
130                                        close;
131                                }
132                                mes "[Michael Halig]";
133                                mes "Then...";
134                                mes "I shall test you to see if you are fit to become a Crusader.";
135                                next;
136                                mes "[Michael Halig]";
137                                mes "Your name is";
138                                mes "" + strcharinfo(0) + "...?";
139                                mes "Let's see...";
140                                next;
141                                if (countitem(1004) && countitem(1009)) {
142                                        mes "[Michael Halig]";
143                                        mes "Ah...";
144                                        mes "I see that you have been called to become a Crusader. We are assured of your will, but now we must test your capabilities.";
145                                        next;
146                                        mes "[Michael Halig]";
147                                        mes "Meet with Moorenak Miyol who is training in the underground dungeon of the Prontera Castle. Go, and speak with him first.";
148                                        next;
149                                        delitem 1004, 1;
150                                        delitem 1009, 1;
151                                        set CRUS_Q,4;
152                                        mes "[Michael Halig]";
153                                        mes "Moorenak and others like him will test the limits of your capabilities and help you find your path. Return to me after you have completed their tests...";
154                                        close;
155                                }
156                                mes "[Michael Halig]";
157                                mes "Mmm. I can't discern whether or not you have the heart to become a Crusader. However, if you have the will and put forth the effort, you may have what it takes.";
158                                next;
159                                mes "[Michael Halig]";
160                                mes "Now...";
161                                mes "This is my test for you. Bring me the following items and prove your determination to me.";
162                                next;
163                                mes "[Michael Halig]";
164                                set .@cru_m1,rand(1,3);
165                                if(.@cru_m1 == 1) {
166                                        set CRUS_Q, 1;
167                                        mes "10 ^3355FF"+getitemname(957)+"^000000";
168                                        mes "10 ^3355FF"+getitemname(959)+"^000000";
169                                        mes "10 ^3355FF"+getitemname(1099)+"^000000";
170                                        mes "10 ^3355FF"+getitemname(901)+"^000000";
171                                        next;
172                                }
173                                else if(.@cru_m1 == 2) {
174                                        set CRUS_Q, 2;
175                                        mes "10 ^3355FF"+getitemname(932)+"^000000";
176                                        mes "10 ^3355FF"+getitemname(1043)+"^000000";
177                                        mes "10 ^3355FF"+getitemname(1098)+"^000000";
178                                        mes "10 ^3355FF"+getitemname(1094)+"^000000";
179                                        next;
180                                }
181                                else {
182                                        set CRUS_Q, 3;
183                                        mes "10 ^3355FF"+getitemname(958)+"^000000";
184                                        mes "10 ^3355FF"+getitemname(930)+"^000000";
185                                        mes "10 ^3355FF"+getitemname(1041)+"^000000";
186                                        mes "10 ^3355FF"+getitemname(1062)+"^000000";
187                                        next;
188                                }
189                                mes "[Michael Halig]";
190                                mes "Show me the strength of your will by gathering these items. If you prove successful, you will progress to the next test. May Odin protect you.";
191                                close;
192                        }
193                        mes "[Michael Halig]";
194                        mes "Nobody knows when the Holy War will come. We must prepare in advance and cannot afford to slacken";
195                        mes "our training.";
196                        next;
197                        mes "[Michael Halig]";
198                        mes "If you feel that participating in the Holy War is your calling, please come back right away and take the test to become";
199                        mes "a Crusader.";
200                        close;
201                }
202                mes "[Michael Halig]";
203                if (sex) mes "If you, too, are a man of the sword, constantly train and prepare yourself. No one knows when the Holy War may begin.";
204                else mes "As a woman of the sword, you must train diligently and constantly. Prepare yourself, for no one knows when the Holy War may be coming.";
205                close;
206        }
207        else if(CRUS_Q >= 1 && CRUS_Q <= 3) {
208                mes "Have you proven your determination with the task I have given you, or do you possess the items proving that you have received your calling?";
209                next;
210                switch(CRUS_Q) {
211                case 1:
212                        set @item1, 957;
213                        set @item2, 959;
214                        set @item3, 1099;
215                        set @item4, 901;
216                        break;
217                Case 2:
218                        set @item1, 932;
219                        set @item2, 1043;
220                        set @item3, 1098;
221                        set @item4, 1094;
222                        break;
223                Case 3:
224                        set @item1, 958;
225                        set @item2, 930;
226                        set @item3, 1041;
227                        set @item4, 1062;
228                        break;
229                }
230                if (countitem(@item1) > 9 && countitem(@item2) > 9 && countitem(@item3) > 9 && countitem(@item4) > 9) {
231                        mes "[Michael Halig]";
232                        mes "Ah, well done.";
233                        mes "I must acknowledge your efforts and determination. You may now proceed to take the next test.";
234                        next;
235                        mes "[Michael Halig]";
236                        mes "Meet with Moorenak Miyol who is training in the underground dungeon of the Prontera Castle. Go, and speak with him first.";
237                        next;
238                        delitem @item1, 10;
239                        delitem @item2, 10;
240                        delitem @item3, 10;
241                        delitem @item4, 10;
242                        set CRUS_Q, 4;
243                        mes "[Michael Halig]";
244                        mes "Moorenak and others like him will test the limits of your capabilities and help you find your path. Return to me after you have completed their tests...";
245                        close;
246                }
247                mes "[Michael Halig]";
248                mes "Ah, you still have not completed the task I have given to you. Bring me the following items, and prove your will to become a Crusader to me...";
249                next;
250                mes "[Michael Halig]";
251                mes "10 ^3355FF"+getitemname(@item1)+"^000000";
252                mes "10 ^3355FF"+getitemname(@item2)+"^000000";
253                mes "10 ^3355FF"+getitemname(@item3)+"^000000";
254                mes "10 ^3355FF"+getitemname(@item4)+"^000000";
255                next;
256                mes "[Michael Halig]";
257                mes "If you put forth the effort, you'll be able to accomplish this task. May Odin protect you on your journeys.";
258                close;
259        }
260        else if(CRUS_Q == 10) {
261                if(SkillPoint) {
262                        mes "You haven't finished learning everything as a Swordsman. Use all of your remaining skill points, and then return to me.";
263                        close;
264                }
265                mes "Congratulations on completing all of your tests. You are truly worthy of fighting alongside side us in the Holy War as a Crusader.";
266                next;
267                mes "[Michael Halig]";
268                mes "Together, let us ready ourselves and be victorious over evil and tyranny!";
269                next;
270                set .@Joblevel,JobLevel;
271                callfunc "Job_Change",Job_Crusader;
272                callfunc "F_ClearJobVar";               //clears all job variables for the current player
273                mes "[Michael Halig]";
274                mes "Behold...!";
275                mes "You are now a Crusader!";
276                mes "When the Holy War comes, we shall fight side by side against the forces of evil.";
277                next;
278                mes "[Michael Halig]";
279                mes "Now you are";
280                mes "one of us!";
281                if (sex) mes "...Brother.";
282                else mes "...Comrade.";
283                next;
284                if(.@JobLevel != 50) getitem 504, 6;
285                else getitem 504, 12;
286                mes "[Michael Halig]";
287                mes "And use this in times of dire peril. It will give you strength when your wounds are most grievous.";
288                next;
289                mes "[Michael Halig]";
290                mes "Never forget that the Holy War is approaching. We must be prepare for the inevitable tide of evil that will sweep this world. Now, go forth and fight for the principles of freedom and justice!";
291                close;
292        }
293        mes "It seems that you have not yet completed all of the testing. You will not be ready to become a Crusader until you have completed the tests set before you.";
294        next;
295        mes "[Michael Halig]";
296        mes "Return to me when you have completed all of your tests. When you finally prove eligible, you will join the proud ranks of the mighty Crusaders.";
297        close;
298}
299
300//===================== Suffering Man: 2nd Endurance Test ===============================================
301prt_castle,164,32,1     script  Man in Anguish  733,{
302        mes "[Murnak Mijoul]";
303        if(BaseJob != Job_Swordman) {
304                if (BaseJob == Job_Crusader) {
305                        mes "Don't linger around in a place like this and forge your own path towards discovering your own strengths. The day that we will join hands in battle will come soon.";
306                        close;
307                }
308                else if(BaseJob == Job_Novice) {
309                        mes "A Novice...?";
310                        mes "So green, and yet,";
311                        mes "so much potential.";
312                        next;
313                        mes "[Murnak Mijoul]";
314                        mes "Let me assure you that I'm no criminal. I'm here merely to train myself. Perhaps as you become stronger, you will understand.";
315                        close;
316                }
317                mes "Hm. You have no business in a place like this. Please leave, and do not interrupt my training.";
318                close;
319        }
320        else if(CRUS_Q >= 0 && CRUS_Q <= 3) {
321                mes "What do you want...?";
322                mes "If you have no business here,";
323                mes "then please leave. A tranquil state of mind is essential in self training...";
324                next;
325                mes "[Murnak Mijoul]";
326                mes "I wish to improve the sense of serenity in my heart in preparation for the Holy War that is to come. So please, do not disturb me.";
327                close;
328        }
329        else if(CRUS_Q == 4) {
330                mes "What is it...?";
331                mes "Do you have business";
332                if (sex) mes "with me, man of the sword?";
333                else mes "with me, woman of the sword?";
334                next;
335                if (select("I'd like to take the Crusader test.:Nothing.") == 1) {
336                        mes "[Murnak Mijoul]";
337                        mes "You wish to become a Crusader...? Hm, fighting in the Holy War is an admirable goal we may both share.";
338                        next;
339                        mes "[Murnak Mijoul]";
340                        mes "Your name is";
341                        mes "" + strcharinfo(0) + "...?";
342                        mes "Let me take";
343                        mes "a look at your face.";
344                        next;
345                        if(getequipid(7) != 2608 && getequipid(8) != 2608) {
346                                mes "[Murnak Mijoul]";
347                                mes "Hmm. You wish to become a Crusader, but do not wear a Rosary? I have no business with you if you cannot uphold our customs.";
348                                close;
349                        }
350                        mes "[Murnak Mijoul]";
351                        mes "Hmm...";
352                        mes "You seem so-so, but also young and ambitious. Ambition may work against you if it is not tempered with patience.";
353                        next;
354                        mes "[Murnak Mijoul]";
355                        mes "Don't give me a reason to doubt you, and show me your patience. You must endure my test with your patience if you wish to become a Crusader.";
356                        next;
357                        mes "[Murnak Mijoul]";
358                        mes "You may take my test right away. It's actually quite simple. All you must do is walk to the end of the corridor.";
359                        next;
360                        mes "[Murnak Mijoul]";
361                        mes "But...";
362                        mes "You must keep one thing in mind. Under no condition are you allowed to kill the monsters.";
363                        next;
364                        set CRUS_Q,5;
365                        mes "[Murnak Mijoul]";
366                        mes "Well then...";
367                        mes "Good luck.";
368                        close2;
369                        warp "job_cru",98,40;
370                        end;
371                }
372                mes "[Murnak Mijoul]";
373                mes "You seem to have a lot of time on your hands. Why don't you do something more productive, like pick Jellopy off the streets or something?";
374                close;
375        }
376        else if(CRUS_Q == 5) {
377                mes "What is it...?";
378                mes "You're the Swordman from before. What happened, did you fail?";
379                next;
380                if (select("Let me retake the test.:What kind of test was that?!") == 1) {
381                        mes "[Murnak Mijoul]";
382                        mes "I'll let you retake the test as much as you like. But if you continuously fail, there's an inherent problem with your";
383                        mes "state of mind.";
384                        next;
385                        if(getequipid(7) != 2608 && getequipid(8) != 2608) {
386                                mes "[Murnak Mijoul]";
387                                mes "Wait...";
388                                mes "Where have you left your Rosary? You can't let that lie around just anywhere. We are supposed to be warriors of holiness.";
389                                next;
390                                mes "[Murnak Mijoul]";
391                                mes "Carelessly losing things is an attitude for mere Swordsmen. If you really want to retake the test, you must respect the Crusader traditions.";
392                                close;
393                        }
394                        mes "[Murnak Mijoul]";
395                        mes "Your problem is your habit of hitting monsters the moment you see one. You must develop your patience and endurance.";
396                        next;
397                        mes "[Murnak Mijoul]";
398                        mes "Just focus...";
399                        mes "Your only goal is to walk from one end of the corridor to the other. It's simple when you think";
400                        mes "about it.";
401                        next;
402                        mes "[Murnak Mijoul]";
403                        mes "No matter what you do, do not kill any of the monsters. This time, think carefully before you draw your sword.";
404                        next;
405                        set CRUS_Q,5;
406                        mes "[Murnak Mijoul]";
407                        mes "Well then...";
408                        mes "Good luck.";
409                        close2;
410                        warp "job_cru",98,40;
411                }
412                mes "[Murnak Mijoul]";
413                mes "Who are you to say that you don't like my test? With that kind of attitude, you'll never become a Crusader.";
414                next;
415                mes "[Murnak Mijoul]";
416                mes "I can understand if you are easily frustrated, but you must overcome your frustration to pass this test.";
417                close;
418        }
419        else if(CRUS_Q == 6) {
420                mes "Hmm, seems like you did well. It shouldn't have been too hard. You no longer have any business";
421                mes "with me.";
422                next;
423                mes "[Murnak Mijoul]";
424                mes "For your next test, go look for Gabriel Valentine in the Prontera Sanctuary. Well then, I'll see you around.";
425                close;
426        }
427        mes "Hmmm...";
428        mes "You still have tests to complete if you want to become a Crusader, don't you?";
429        close;
430}
431
432//===================== Gabriel Valentine: 3rd Knowledge Test =================================
433prt_church,95,127,3     script  Crusader        745,{
434        mes "[Gabriel Valentine]";
435        if(BaseJob != Job_Swordman) {
436                if (BaseJob == Job_Crusader) {
437                        mes "Welcome, fellow Crusader.";
438                        mes "How is your training";
439                        mes "coming along?";
440                        next;
441                        mes "[Gabriel Valentine]";
442                        mes "You must not forget to train everyday, and prepare for the day the Holy War will come upon us.";
443                        close;
444                }
445                else if(BaseJob == Job_Novice) {
446                        mes "Welcome, I am a Crusader.";
447                        mes "I am preparing for the";
448                        mes "foretold Holy War";
449                        mes "that is to come.";
450                        next;
451                        mes "[Gabriel Valentine]";
452                        mes "If you are interested in becoming a Crusader, you must train first as a Swordman. Come and visit us again when you believe that you have learned enough as a Swordman...";
453                        next;
454                        mes "[Gabriel Valentine]";
455                        mes "We are located in the Prontera Central Palace, so if you have time, it wouldn't hurt to stop by.";
456                        close;
457                }
458                mes "Welcome, we are Crusaders.";
459                mes "We are preparing for the";
460                mes "foretold Holy War";
461                mes "that is to come.";
462                next;
463                mes "[Gabriel Valentine]";
464                mes "I hope you will train yourself in preparation for the future as well.";
465                close;
466        }
467        else if(CRUS_Q == 0) {
468                mes "Welcome. We are Crusaders.";
469                mes "We are preparing for the";
470                mes "foretold Holy War";
471                mes "that is to come.";
472                next;
473                mes "[Gabriel Valentine]";
474                mes "If you would like to become a Crusader, please speak with our leader in the Prontera Central Palace.";
475                close;
476        }
477        else if(CRUS_Q == 6) {
478                mes "Welcome.";
479                mes "Did you do well";
480                mes "on those painful tests?";
481                mes "I will be conducting your next test.";
482                next;
483                mes "[Gabriel Valentine]";
484                mes "My name is Gabriel Valentine. I, too, am preparing for the Holy War. For the time being, I act as guard for this church.";
485                next;
486                mes "[Gabriel Valentine]";
487                mes "I will test to see if you have acquired the knowledge that is necessary to become a Crusader.";
488                mes "We can't very well win the Holy War just by swinging a sword.";
489                next;
490                mes "[Gabriel Valentine]";
491                mes "I will give";
492                mes "you 10 questions.";
493                mes "Answer them correctly.";
494                next;
495                goto C_Questions;
496        }
497        else if(CRUS_Q == 7) {
498                mes "Welcome back~";
499                mes "Did you prepare";
500                mes "well for this test?";
501                mes "Let's try again,";
502                mes "shall we...?";
503                next;
504                mes "[Gabriel Valentine]";
505                mes "Once again, I'm going";
506                mes "to give you 10 questions";
507                mes "Listen carefully, and";
508                mes "choose the correct answer.";
509                next;
510C_Questions:
511                set .@cru_m,rand(1,3);
512                if (.@cru_m == 1) {
513                        mes "[Gabriel Valentine]";
514                        mes "1. Which attribute is the most effective in atttacking the Undead?";
515                        next;
516                        if (select("Neutral:Earth:Undead:Holy") == 4)
517                                set .@cru_t,.@cru_t+10;
518
519                        mes "[Gabriel Valentine]";
520                        mes "2. If the monster is a Level 2 Undead, how much more damage does a Holy attack do compared to Fire?";
521                        next;
522                        if (select("25 %:50 %:75 %:100 %") == 2)
523                                set .@cru_t,.@cru_t+10;
524
525                        mes "[Gabriel Valentine]";
526                        mes "3. What item can you not get from an Evil Druid?";
527                        next;
528                        if (select("Monk Hat:Yggdrasil leaf:White Herb:Amulet ") == 1)
529                                set .@cru_t,.@cru_t+10;
530
531                        mes "[Gabriel Valentine]";
532                        mes "4. Which Undead monster";
533                        mes "has the highest HP?";
534                        next;
535                        if (select("Ghoul:Skeleton Prisoner:Wraith:Zombie Prisoner") == 4)
536                                set .@cru_t,.@cru_t+10;
537
538                        mes "[Gabriel Valentine]";
539                        mes "5. Which of the following monsters is a different size than the others?";
540                        next;
541                        if (select("Wraith:Khalitzburg:Drake:Evil Druid") == 3)
542                                set .@cru_t,.@cru_t+10;
543
544                        mes "[Gabriel Valentine]";
545                        mes "6. Which card grants you tolerance to Undead property attacks?";
546                        next;
547                        if (select("Orc Skeleton Card:Orc Zombie Card:Ghoul Card:Skel Worker Card") == 2)
548                                set .@cru_t,.@cru_t+10;
549
550                        mes "[Gabriel Valentine]";
551                        mes "7. What was the relationship between Munak and Bongun before they passed away?";
552                        next;
553                        if (select("Big Brother and Little Sister:Childhood friends in the same village:Stepbrother and sister:Complete strangers") == 2)
554                                set .@cru_t,.@cru_t+10;
555
556                        mes "[Gabriel Valentine]";
557                        mes "8. Which of the following monsters is not aggressive?";
558                        next;
559                        if (select("Soldier Skeleton:Orc Skeleton:Skeleton:Skel Worker") == 3)
560                                set .@cru_t,.@cru_t+10;
561
562                        mes "[Gabriel Valentine]";
563                        mes "9. What is the name of the shield in which a Munak Card has been inserted?";
564                        next;
565                        if (select("Atomic Shield:Amulet Shield:Hypnotic Shield:Homeroth Shield") == 2)
566                                set .@cru_t,.@cru_t+10;
567
568                        mes "[Gabriel Valentine]";
569                        mes "10. Which of the following monsters does not drop Memento?";
570                        next;
571                        if (select("Munak:Ghoul:Mummy:Soldier Skeleton") == 1)
572                                set .@cru_t,.@cru_t+10;
573                }
574                else if (.@cru_m == 2) {
575                        mes "[Gabriel Valentine]";
576                        mes "1. Which of the following monsters is a different attribute than the others?";
577                        next;
578                        if (select("Carat:Wind Ghost:Isis:Wanderer") == 3)
579                                set .@cru_t,.@cru_t+10;
580
581                        mes "[Gabriel Valentine]";
582                        mes "2. Which sword is effective in attacking Demon monsters?";
583                        next;
584                        if (select("Decussate Tsurugi:Hollowed Tsurugi:Damned Tsurugi:Drowsy Tsurugi") == 1)
585                                set .@cru_t,.@cru_t+10;
586
587                        mes "[Gabriel Valentine]";
588                        mes "3. Which item is NOT dropped by Dokebi?";
589                        next;
590                        if (select("Rough Elunium:Golden Hammer:Sword Mace:Mighty Staff") == 2)
591                                set .@cru_t,.@cru_t+10;
592
593                        mes "[Gabriel Valentine]";
594                        mes "4. Which Demon monster has the most HP?";
595                        next;
596                        if (select("Giearth:Magnolia:Dokebi:Marionette") == 4)
597                                set .@cru_t,.@cru_t+10;
598
599                        mes "[Gabriel Valentine]";
600                        mes "5. Which Demon monster is a different size than the others?";
601                        next;
602                        if (select("Ghostring:Whisper:Deviruchi:Baphomet Junior") == 1)
603                                set .@cru_t,.@cru_t+10;
604
605                        mes "[Gabriel Valentine]";
606                        mes "6. Which shield reduces damage inflicted by Demon monsters?";
607                        next;
608                        if (select("Satanic Shield:Shield from Hell:Amulet Shield:Excellent Shield") == 2)
609                                set .@cru_t,.@cru_t+10;
610
611                        mes "[Gabriel Valentine]";
612                        mes "7. Which attribute is the most effective on the Wind Ghost?";
613                        next;
614                        if (select("Water:Earth:Fire:Wind") == 2)
615                                set .@cru_t,.@cru_t+10;
616
617                        mes "[Gabriel Valentine]";
618                        mes "8. Which monster is different from the other Demon monsters?";
619                        next;
620                        if (select("Sohee:Isis:Dokebi:Whisper") == 4)
621                                set .@cru_t,.@cru_t+10;
622
623                        mes "[Gabriel Valentine]";
624                        mes "9. What effect does the Marionette Card have?";
625                        next;
626                        if (select("Increase defense against Shadow attacks by 30 %:Increase defense against poison attacks by 30 %:Increase defense against Ghost attacks by 30 %:Increase defense against Neutral attacks by 30 %") == 3)
627                                set .@cru_t,.@cru_t+10;
628
629                        mes "[Gabriel Valentine]";
630                        mes "10. Which of the following is an effective way to react when encountering a demon monster?";
631                        next;
632                        if (select("Scream, 'Evil one, go away!':Offer your soul and get a deal.:Put Holy Water on a weapon and attack.:Put on a Deviruchi hat.") == 3)
633                                set .@cru_t,.@cru_t+10;
634                }
635                else {
636                        mes "[Gabriel Valentine]";
637                        mes "1. What level of 'Divine Protection' do you need to learn 'Demon Bane?'";
638                        next;
639                        if (select("Level 1:Level 2:Level 3:Level 4") == 3)
640                                set .@cru_t,.@cru_t+10;
641
642                        mes "[Gabriel Valentine]";
643                        mes "2. If your INT is 30, including INT bonuses from quipment, at level 55, how much HP does Level 5 Heal recover?";
644                        next;
645                        if (select("396:440:484:528") == 2)
646                                set .@cru_t,.@cru_t+10;
647
648                        mes "[Gabriel Valentine]";
649                        mes "3. With Level 7 Divine Protection, by how much is your defense against the Undead increased?";
650                        next;
651                        if (select("21:22:23:24") == 1)
652                                set .@cru_t,.@cru_t+10;
653
654                        mes "[Gabriel Valentine]";
655                        mes "4. Which of the following spears can attack Nightmare, which is endowed with the Ghost attribute?";
656                        next;
657                        if (select("Lance:Bill Guisarme:Cresent scythe:Zephyrus") == 4)
658                                set .@cru_t,.@cru_t+10;
659
660                        mes "[Gabriel Valentine]";
661                        mes "5. What level of 'Heal' do you need to learn 'Cure?'";
662                        next;
663                        if (select("Level 1:Level 2:Level 3:Level 4") == 2)
664                                set .@cru_t,.@cru_t+10;
665
666                        mes "[Gabriel Valentine]";
667                        mes "6. What is the attack speed when Level 3 Cavalier Mastery is learned?";
668                        next;
669                        if (select("70 % of normal speed:80 % of normal speed:90 % of normal speed:100 % of normal speed") == 2)
670                                set .@cru_t,.@cru_t+10;
671
672                        mes "[Gabriel Valentine]";
673                        mes "7. Which of the following is not correct of the Demon Bane skill?";
674                        next;
675                        if (select("Increase attack on Undead:Only Acolytes can learn the skill:When mastered, + 30 increase:Passive Skill") == 2)
676                                set .@cru_t,.@cru_t+10;
677
678                        mes "[Gabriel Valentine]";
679                        mes "8. How much SP does Level 7 Heal use?";
680                        next;
681                        if (select("30:31:33:35") == 2)
682                                set .@cru_t,.@cru_t+10;
683
684                        mes "[Gabriel Valentine]";
685                        mes "9. What status cannot be";
686                        mes "cured with the Cure skill?";
687                        next;
688                        if (select("Curse:Silence:Chaos:Blind") == 1)
689                                set .@cru_t,.@cru_t+10;
690
691                        mes "[Gabriel Valentine]";
692                        mes "10. What best describes a Crusader?";
693                        next;
694                        if (select("One preparing for matrimony.:One preparing for the Holy War.:One preparing consummation.:One preparing potions.") == 2)
695                                set .@cru_t,.@cru_t+10;
696
697                }
698                mes "[Gabriel Valentine]";
699                mes "Good work~";
700                mes "Well, first let me";
701                mes "look at your results.";
702                next;
703                mes "[Gabriel Valentine]";
704                mes " " + strcharinfo(0) + "'s score";
705                mes "is " + .@cru_t + " points...";
706                if(.@cru_t == 100) {
707                        set CRUS_Q, 8;
708                        mes "Superb! Now, it's time for";
709                        mes "you to take the next test.";
710                        next;
711                        mes "[Gabriel Valentine]";
712                        mes "Go to Prontera Castle";
713                        mes "and meet Bliant Piyord.";
714                        mes "I will inform him that";
715                        mes "he will be testing you next.";
716                        close;
717                }
718                else if(.@cru_t == 90) {
719                        set CRUS_Q, 8;
720                        mes "Well done~ Now, it's time for";
721                        mes "you to take the next test.";
722                        next;
723                        mes "[Gabriel Valentine]";
724                        mes "Go to Prontera Castle";
725                        mes "and meet Bliant Piyord.";
726                        mes "I will inform him that";
727                        mes "he will be testing you next.";
728                        close;
729                }
730                else if (.@cru_t == 80 && CRUS_Q == 7) {
731                        set CRUS_Q,8;
732                        mes "Seems like you prepared a lot so I'll let you pass this time.";
733                        mes "Hurry now and go take the next test.";
734                        next;
735                        mes "[Gabriel Valentine]";
736                        mes "Go to the Prontera Castle and meet Bliant Piyord.";
737                        mes "I will inform him to prepare the next test.";
738                        close;
739                }
740                set CRUS_Q,7;
741                mes "Hmmm... What a pity.";
742                mes "Go study some more and";
743                mes "take this test again, okay?";
744                next;
745                mes "[Gabriel Valentine]";
746                mes "Don't stress, you need to know a lot in order to pass this test. In any case, I'll be waiting right here. When you think you're ready, come back, alright?";
747                close;
748        }
749        else if(CRUS_Q == 8 || CRUS_Q == 9) {
750                mes "Like I mentioned before, you should go to Prontera Castle and meet with Bliant Piyord to take your next test. Good luck, and become a Crusder soon, alright?";
751                close;
752        }
753        else if(CRUS_Q == 10) {
754                mes "What are you still doing here? You've already completed all the tests. Go talk to our leader, you're pretty much ready to become a Crusader now.";
755                next;
756                mes "[Gabriel Valentine]";
757                mes "You will soon join us in our preparations for the Holy War. Continue to live with faith after becoming a Crusader.";
758                close;
759        }
760        mes "Mmm...?";
761        mes "It seems that you're";
762        mes "an aspiring Crusader...";
763        mes "But, it's not my turn";
764        mes "to test you quite yet.";
765        next;
766        mes "[Gabriel Valentine]";
767        mes "Finish those other tests,";
768        mes "and come to me once you're";
769        mes "instructed. Until then,";
770        mes "I'll see you later~";
771        close;
772}
773
774//===================== Crusader: 4th Purification Test =====================================================
775prt_castle,35,151,5     script  Patron Knight   751,{
776        mes "[Bliant Piyord]";
777        mes "Welcome.";
778        if(BaseJob != Job_Swordman) {
779                if(BaseJob == Job_Crusader) {
780                        mes "How goes";
781                        mes "your training?";
782                        next;
783                        mes "[Bliant Piyord]";
784                        mes "Develop your faith. From faith springs strength and discipline. Day after day, train yourself and become a great Crusader.";
785                        close;
786                }
787                else if(BaseJob == Job_Novice) {
788                        mes "We are Crusaders,";
789                        mes "warriors of holiness preparing for the great Holy War that is to come.";
790                        next;
791                        mes "[Bliant Piyord]";
792                        mes "Are you interested";
793                        mes "in becoming a Crusader?";
794                        mes "We are always waiting";
795                        mes "for more capable men and";
796                        mes "women to join our ranks.";
797                        next;
798                        mes "[Bliant Piyord]";
799                        mes "Train as a Swordsman and come to us when you think you are ready. If you have been called by Odin to become a Crusader, that would be even better.";
800                        close;
801                }
802                mes "We are Crusaders,";
803                mes "warriors of holiness preparing for the great Holy War that is to come.";
804                next;
805                mes "[Bliant Piyord]";
806                mes "Even in these relatively peaceful times, our training is ceaseless. We must be ready for the day with the tides of darkness shall rush against mankind...";
807                close;
808        }
809        else if(CRUS_Q == 0) {
810                mes "We are Crusaders,";
811                mes "warriors of holiness preparing for the great Holy War that is to come.";
812                next;
813                mes "[Bliant Piyord]";
814                mes "Are you interested";
815                mes "in becoming a Crusader?";
816                mes "We are always waiting";
817                mes "for more capable men and";
818                mes "women to join our ranks.";
819                next;
820                mes "[Bliant Piyord]";
821                mes "To become a Crusader, you must train until you are Job Level 40. For more details, please speak with our leader inside.";
822                next;
823                mes "[Bliant Piyord]";
824                mes "May Odin";
825                mes "be with you...";
826                close;
827        }
828        else if(CRUS_Q == 8 || CRUS_Q == 9) {
829                if (CRUS_Q == 8) {
830                        mes "It's nice";
831                        mes "to meet you.";
832                        mes "It is now time";
833                        mes "for your final test.";
834                        next;
835                        mes "[Bliant Piyord]";
836                        mes "My name is Bliant Piyord and I too, am preparing for the Holy War. It must've been quite a hassle to come all this way.";
837                        next;
838                        mes "[Bliant Piyord]";
839                        mes "This test will gauge your skills in battle. Only those with great fighting ability can become Crusaders.";
840                        next;
841                        mes "[Bliant Piyord]";
842                        mes "To take the battle test, bring";
843                        mes "1 ^3355FFHoly Water^000000. This will be used to purify you prior to taking the test.";
844                        next;
845                        mes "[Bliant Piyord]";
846                        mes "Well then...";
847                        mes "Shall we";
848                        mes "begin right away?";
849                        mes "Or do you need time";
850                        mes "to prepare yourself?";
851                }
852                else {
853                        mes "Are you prepared";
854                        mes "for the test now?";
855                        next;
856                        mes "[Bliant Piyord]";
857                        mes "Would you like to begin now, or do you still need time to make preparations?";
858                }
859                next;
860                if (select("I would like to begin.:Give me some time to prepare.") == 1) {
861                        if(getequipid(7) != 2608 && getequipid(8) != 2608) {
862                                mes "[Bliant Piyord]";
863                                mes "Just a second, you do not have a Rosary equipped. As a Crusader, you must always have a Rosary on your person.";
864                                next;
865                                mes "[Bliant Piyord]";
866                                mes "Come back and take";
867                                mes "the test after you";
868                                mes "have a Rosary.";
869                                close;
870                        }
871                        else if(countitem(523) < 1) {
872                                mes "[Bliant Piyord]";
873                                mes "For the battle test, please prepare one ^3355FFHoly water^000000.";
874                                mes "I told you just to purify the candidates.";
875                                next;
876                                mes "[Bliant Piyord]";
877                                mes "Get prepares and come back to here.";
878                                mes "I will wait for you.";
879                                close;
880                        }
881                        delitem 523, 1; //Holy Water
882                        mes "[Bliant Piyord]";
883                        mes "Then, I'll start";
884                        mes "the test. You will";
885                        mes "be purified with the";
886                        mes "Holy Water you prepared.";
887                        next;
888                        mes "[Bliant Piyord]";
889                        mes "...............";
890                        next;
891                        mes "[Bliant Piyord]";
892                        mes "Let's begin.";
893                        mes "Go and enter";
894                        mes "the waiting room.";
895                        mes "Defeat the monsters";
896                        mes "that appear in";
897                        mes "the 4 stages.";
898                        close2;
899                        warp "job_cru",24,169;
900                        end;
901                }
902                mes "[Bliant Piyord]";
903                mes "Prepare 1 ^3355FFHoly Water^000000 to take the battle test. As I've said, it will be used to purify you prior to taking the test.";
904                next;
905                mes "[Bliant Piyord]";
906                mes "Come back and take";
907                mes "the test after you";
908                mes "have prepared";
909                mes "1 Holy Water.";
910                mes "I shall be";
911                mes "waiting.";
912                close;
913        }
914        else if(CRUS_Q == 10) {
915                mes "Congratulations.";
916                mes "You have completed";
917                mes "all the tests to";
918                mes "become a Crusader.";
919                next;
920                mes "[Bliant Piyord]";
921                mes "Go talk to our";
922                mes "leader inside.";
923                mes "We welcome you into";
924                mes "the ranks of those";
925                mes "preparing for the";
926                mes "coming Holy War.";
927                close;
928        }
929        mes "Are you not one of the ones in the process of becoming a Crusader?";
930        next;
931        mes "[Bliant Piyord]";
932        mes "It's not your turn";
933        mes "to take my test yet.";
934        mes "Come back after taking";
935        mes "all the other tests.";
936        next;
937        mes "[Bliant Piyord]";
938        mes "I'll see you soon.";
939        mes "May Odin's blessings";
940        mes "be with you.";
941        close;
942}
943
944
945
946//=== Actual tests ========================================
947//=== Endurance Test ======================================
948job_cru,1,1,1   script  Summoner#cr1    -1,{
949OnTimer300000:
950        donpcevent "Summoner#cr1::OnReset";
951        end;
952
953OnTimer300500:
954        donpcevent "Summoner#cr1::OnEnd";
955        end;
956
957OnTimer301000:
958        donpcevent "Summoner#cr1::OnStart";
959        stopnpctimer;
960        end;
961
962OnInit:
963        enablenpc "Summoner#cr1";
964        monster "job_cru",94,45,"Mandragora",1020,1,"Summoner#cr1::OnDead";
965        monster "job_cru",94,55,"Mandragora",1020,1,"Summoner#cr1::OnDead";
966        monster "job_cru",94,65,"Mandragora",1020,1,"Summoner#cr1::OnDead";
967        monster "job_cru",94,75,"Mandragora",1020,1,"Summoner#cr1::OnDead";
968        monster "job_cru",94,85,"Mandragora",1020,1,"Summoner#cr1::OnDead";
969        monster "job_cru",94,95,"Mandragora",1020,1,"Summoner#cr1::OnDead";
970        monster "job_cru",101,45,"Mandragora",1020,1,"Summoner#cr1::OnDead";
971        monster "job_cru",101,55,"Mandragora",1020,1,"Summoner#cr1::OnDead";
972        monster "job_cru",101,65,"Mandragora",1020,1,"Summoner#cr1::OnDead";
973        monster "job_cru",101,75,"Mandragora",1020,1,"Summoner#cr1::OnDead";
974        monster "job_cru",101,85,"Mandragora",1020,1,"Summoner#cr1::OnDead";
975        monster "job_cru",101,95,"Mandragora",1020,1,"Summoner#cr1::OnDead";
976        initnpctimer;
977        end;
978
979OnStart:
980        enablenpc "Summoner#cr1";
981        monster "job_cru",94,45,"Mandragora",1020,1,"Summoner#cr1::OnDead";
982        monster "job_cru",94,55,"Mandragora",1020,1,"Summoner#cr1::OnDead";
983        monster "job_cru",94,65,"Mandragora",1020,1,"Summoner#cr1::OnDead";
984        monster "job_cru",94,75,"Mandragora",1020,1,"Summoner#cr1::OnDead";
985        monster "job_cru",94,85,"Mandragora",1020,1,"Summoner#cr1::OnDead";
986        monster "job_cru",94,95,"Mandragora",1020,1,"Summoner#cr1::OnDead";
987        monster "job_cru",101,45,"Mandragora",1020,1,"Summoner#cr1::OnDead";
988        monster "job_cru",101,55,"Mandragora",1020,1,"Summoner#cr1::OnDead";
989        monster "job_cru",101,65,"Mandragora",1020,1,"Summoner#cr1::OnDead";
990        monster "job_cru",101,75,"Mandragora",1020,1,"Summoner#cr1::OnDead";
991        monster "job_cru",101,85,"Mandragora",1020,1,"Summoner#cr1::OnDead";
992        monster "job_cru",101,95,"Mandragora",1020,1,"Summoner#cr1::OnDead";
993        initnpctimer;
994        end;
995
996OnReset:
997        killmonster "job_cru","Summoner#cr1::OnDead";
998        end;
999
1000OnEnd:
1001        disablenpc "Summoner#cr1";
1002        end;
1003
1004OnDead:
1005        warp "prt_fild05",353,251;
1006        end;
1007}
1008
1009job_cru,1,2,1   script  Summoner#cr2    -1,{
1010OnTimer345000:
1011        donpcevent "Summoner#cr2::OnReset";
1012        end;
1013
1014OnTimer345500:
1015        donpcevent "Summoner#cr2::OnEnd";
1016        end;
1017
1018OnTimer346000:
1019        donpcevent "Summoner#cr2::OnStart";
1020        stopnpctimer;
1021        end;
1022
1023OnInit:
1024        enablenpc "Summoner#cr2";
1025        monster "job_cru",98,50,"Flora",1118,1,"Summoner#cr2::OnDead";
1026        monster "job_cru",92,60,"Flora",1118,1,"Summoner#cr2::OnDead";
1027        monster "job_cru",104,60,"Flora",1118,1,"Summoner#cr2::OnDead";
1028        monster "job_cru",98,70,"Flora",1118,1,"Summoner#cr2::OnDead";
1029        monster "job_cru",92,80,"Flora",1118,1,"Summoner#cr2::OnDead";
1030        monster "job_cru",104,90,"Flora",1118,1,"Summoner#cr2::OnDead";
1031        monster "job_cru",98,90,"Flora",1118,1,"Summoner#cr2::OnDead";
1032        initnpctimer;
1033        end;
1034
1035OnStart:
1036        enablenpc "Summoner#cr2";
1037        monster "job_cru",98,50,"Flora",1118,1,"Summoner#cr2::OnDead";
1038        monster "job_cru",92,60,"Flora",1118,1,"Summoner#cr2::OnDead";
1039        monster "job_cru",104,60,"Flora",1118,1,"Summoner#cr2::OnDead";
1040        monster "job_cru",98,70,"Flora",1118,1,"Summoner#cr2::OnDead";
1041        monster "job_cru",92,80,"Flora",1118,1,"Summoner#cr2::OnDead";
1042        monster "job_cru",104,90,"Flora",1118,1,"Summoner#cr2::OnDead";
1043        monster "job_cru",98,90,"Flora",1118,1,"Summoner#cr2::OnDead";
1044        initnpctimer;
1045        end;
1046
1047OnReset:
1048        killmonster "job_cru","Summoner#cr2::OnDead";
1049        end;
1050
1051OnEnd:
1052        disablenpc "Summoner#cr2";
1053        end;
1054
1055OnDead:
1056        warp "prt_fild05",353,251;
1057        end;
1058}
1059
1060job_cru,1,3,1   script  Summoner#cr3    -1,{
1061OnTimer345000:
1062        donpcevent "Summoner#cr3::OnReset";
1063        end;
1064
1065OnTimer345500:
1066        donpcevent "Summoner#cr3::OnEnd";
1067        end;
1068
1069OnTimer346000:
1070        donpcevent "Summoner#cr3::OnStart";
1071        stopnpctimer;
1072        end;
1073
1074OnInit:
1075        enablenpc "Summoner#cr3";
1076        monster "job_cru",92,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1077        monster "job_cru",104,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1078        monster "job_cru",98,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1079        monster "job_cru",92,70,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1080        monster "job_cru",104,70,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1081        monster "job_cru",98,80,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1082        monster "job_cru",92,90,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1083        monster "job_cru",104,90,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1084        Initnpctimer;
1085        end;
1086
1087OnStart:
1088        enablenpc "Summoner#cr3";
1089        monster "job_cru",92,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1090        monster "job_cru",104,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1091        monster "job_cru",98,50,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1092        monster "job_cru",92,70,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1093        monster "job_cru",104,70,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1094        monster "job_cru",98,80,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1095        monster "job_cru",92,90,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1096        monster "job_cru",104,90,"Greatest General",1277,1,"Summoner#cr3::OnDead";
1097        Initnpctimer;
1098        end;
1099
1100OnReset:
1101        killmonster "job_cru","Summoner#cr3::OnDead";
1102        end;
1103
1104OnEnd:
1105        disablenpc "Summoner#cr3";
1106        end;
1107
1108OnDead:
1109        warp "prt_fild05",353,251;
1110        end;
1111}
1112
1113job_cru,1,4,1   script  Summoner#cr4    -1,{
1114OnTimer345000:
1115        donpcevent "Summoner#cr4::OnReset";
1116        end;
1117
1118OnTimer345500:
1119        donpcevent "Summoner#cr4::OnEnd";
1120        end;
1121
1122OnTimer346000:
1123        donpcevent "Summoner#cr4::OnStart";
1124        stopnpctimer;
1125        end;
1126
1127OnInit:
1128        enablenpc "Summoner#cr4";
1129        monster "job_cru",98,50,"Familiar",1005,1,"Summoner#cr3::OnDead";
1130        monster "job_cru",98,55,"Familiar",1005,1,"Summoner#cr3::OnDead";
1131        monster "job_cru",98,60,"Familiar",1005,1,"Summoner#cr3::OnDead";
1132        monster "job_cru",98,65,"Familiar",1005,1,"Summoner#cr3::OnDead";
1133        monster "job_cru",98,70,"Familiar",1005,1,"Summoner#cr3::OnDead";
1134        monster "job_cru",98,75,"Familiar",1005,1,"Summoner#cr3::OnDead";
1135        monster "job_cru",98,80,"Familiar",1005,1,"Summoner#cr3::OnDead";
1136        monster "job_cru",98,85,"Familiar",1005,1,"Summoner#cr3::OnDead";
1137        monster "job_cru",98,90,"Familiar",1005,1,"Summoner#cr3::OnDead";
1138        monster "job_cru",90,34,"Mushroom",1182,1,"Summoner#cr3::OnDead";
1139        monster "job_cru",105,34,"Mushroom",1182,1,"Summoner#cr3::OnDead";
1140        initnpctimer;
1141        end;
1142
1143OnStart:
1144        enablenpc "Summoner#cr4";
1145        monster "job_cru",98,50,"Familiar",1005,1,"Summoner#cr3::OnDead";
1146        monster "job_cru",98,55,"Familiar",1005,1,"Summoner#cr3::OnDead";
1147        monster "job_cru",98,60,"Familiar",1005,1,"Summoner#cr3::OnDead";
1148        monster "job_cru",98,65,"Familiar",1005,1,"Summoner#cr3::OnDead";
1149        monster "job_cru",98,70,"Familiar",1005,1,"Summoner#cr3::OnDead";
1150        monster "job_cru",98,75,"Familiar",1005,1,"Summoner#cr3::OnDead";
1151        monster "job_cru",98,80,"Familiar",1005,1,"Summoner#cr3::OnDead";
1152        monster "job_cru",98,85,"Familiar",1005,1,"Summoner#cr3::OnDead";
1153        monster "job_cru",98,90,"Familiar",1005,1,"Summoner#cr3::OnDead";
1154        monster "job_cru",90,34,"Mushroom",1182,1,"Summoner#cr3::OnDead";
1155        monster "job_cru",105,34,"Mushroom",1182,1,"Summoner#cr3::OnDead";
1156        initnpctimer;
1157        end;
1158
1159OnReset:
1160        killmonster "job_cru","Summoner#cr4::OnDead";
1161        end;
1162
1163OnEnd:
1164        disablenpc "Summoner#cr4";
1165        end;
1166
1167OnDead:
1168        warp "prt_fild05",353,251;
1169        end;
1170}
1171
1172
1173job_cru,98,105,4        script   Summoner#cr5   45,3,3,{
1174OnTouch:
1175        set CRUS_Q,6;
1176        warp "prt_castle",164,28;
1177        end;
1178}
1179
1180//=== Purification Test ===================================
1181job_cru,24,187,4        script  Patron Knight#2 751,{
1182        mes "[Bliant Piyord]";
1183        mes "Welcome.";
1184        mes "You will take";
1185        mes "the last test here.";
1186        mes "If you are ready for";
1187        mes "the test, enter the";
1188        mes "waiting room.";
1189        next;
1190        mes "[Bliant Piyord]";
1191        mes "Only one person can take the test at a time. If someone else is already testing, please wait until the testing area is made available once again.";
1192        next;
1193        mes "[Bliant Piyord]";
1194        mes "Each person will get 4 minutes to complete the test. If you wish to leave in the middle of the test, please disconnect from the game.";
1195        close;
1196}
1197
1198job_cru,24,187,2        script  Waiting Room#cr1        700,{
1199        end;
1200
1201OnInit:
1202        disablenpc "Waiting Room#cr1";
1203        waitingroom "Waiting Room",20,"Waiting Room#cr1::OnStartArena",1;
1204        enablewaitingroomevent;
1205        end;
1206
1207OnStartArena:
1208        warpwaitingpc "job_cru",168,21;
1209        donpcevent "Monster Summon#cr0::OnStart";
1210        disablewaitingroomevent;
1211        end;
1212
1213OnStart:
1214        enablewaitingroomevent;
1215        end;
1216}
1217
1218job_cru,168,17,0        script  Zombie Guide    -1,2,2,{
1219OnTouch:
1220        mes "[Bliant Piyord]";
1221        mes "Go forth and defeat all";
1222        mes "the monsters that appear.";
1223        mes "You will not pass if any";
1224        mes "are remaining.";
1225        next;
1226        mes "[Bliant Piyord]";
1227        mes "You will be given";
1228        mes "4 minutes. Go forth";
1229        mes "and do your best...";
1230        close;
1231}
1232
1233job_cru,2,1,1   script  Monster Summon#cr0      -1,{
1234OnInit:
1235        disablenpc "Monster Summon#cr0";
1236        end;
1237
1238OnStart:
1239        set .MyMonsterCount,0;
1240        enablenpc "Monster Summon#cr0";
1241        donpcevent "Monster Summon#cr1::OnStart";
1242        donpcevent "Monster Summon#cr2::OnStart";
1243        donpcevent "Monster Summon#cr3::OnStart";
1244        donpcevent "Monster Summon#cr4::OnStart";
1245        donpcevent "Monster Summon#cr6::OnStart";
1246        end;
1247
1248OnMonster1:
1249        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1250        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1251        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1252        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1253        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1254        monster "job_cru",168,45,"Zombie",1015,1,"Monster Summon#cr0::OnDead";
1255        end;
1256
1257OnMonster2:
1258        monster "job_cru",168,80,"Soldier Skeleton",1028,1,"Monster Summon#cr0::OnDead";
1259        monster "job_cru",168,80,"Soldier Skeleton",1028,1,"Monster Summon#cr0::OnDead";
1260        monster "job_cru",168,80,"Soldier Skeleton",1028,1,"Monster Summon#cr0::OnDead";
1261        end;
1262
1263OnMonster3:
1264        monster "job_cru",168,115,"Mummy",1041,1,"Monster Summon#cr0::OnDead";
1265        end;
1266
1267OnDead:
1268        set .MyMonsterCount,.MyMonsterCount+1;
1269        if (.MyMonsterCount >= 10) set CRUS_Q,10;
1270        end;
1271
1272OnEnd:
1273        disablenpc "Monster Summon#cr0";
1274        end;
1275
1276OnReset:
1277        killmonster "job_cru","Monster Summon#cr0::OnDead";
1278        end;
1279}
1280
1281job_cru,168,45,0        script  Monster Summon#cr1      -1,15,1,{
1282OnInit:
1283        disablenpc "Monster Summon#cr1";
1284        end;
1285
1286OnTouch:
1287        donpcevent "Monster Summon#cr0::OnMonster1";
1288        donpcevent "Monster Summon#cr1::OnEnd";
1289        end;
1290
1291OnStart:
1292        enablenpc "Monster Summon#cr1";
1293        end;
1294
1295OnEnd:
1296        disablenpc "Monster Summon#cr1";
1297        end;
1298}
1299
1300job_cru,168,80,0        script  Monster Summon#cr2      -1,15,1,{
1301OnInit:
1302        disablenpc "Monster Summon#cr2";
1303        end;
1304
1305OnTouch:
1306        donpcevent "Monster Summon#cr0::OnMonster2";
1307        donpcevent "Monster Summon#cr2::OnEnd";
1308        end;
1309
1310OnStart:
1311        enablenpc "Monster Summon#cr2";
1312        end;
1313
1314OnEnd:
1315        disablenpc "Monster Summon#cr2";
1316        end;
1317}
1318
1319job_cru,165,115,0       script  Monster Summon#cr3      -1,15,1,{
1320OnInit:
1321        disablenpc "Monster Summon#cr3";
1322        end;
1323
1324OnTouch:
1325        monster "job_cru",168,110,"Archer Skeleton",1016,1;
1326        donpcevent "Monster Summon#cr0::OnMonster3";
1327        donpcevent "Monster Summon#cr3::OnEnd";
1328        end;
1329
1330OnStart:
1331        enablenpc "Monster Summon#cr3";
1332        end;
1333
1334OnEnd:
1335        disablenpc "Monster Summon#cr3";
1336        end;
1337}
1338
1339job_cru,168,150,0       script  Monster Summon#cr4      -1,15,1,{
1340OnInit:
1341        disablenpc "Monster Summon#cr4";
1342        end;
1343
1344OnTouch:
1345        monster "job_cru",168,150,strcharinfo(0),1036,1,"Monster Summon#cr4-a::OnDead";
1346        donpcevent "Monster Summon#cr4::OnEnd";
1347        end;
1348
1349OnDead:
1350        donpcevent "Monster Summon#cr5::OnStart";
1351        end;
1352
1353OnStart:
1354        enablenpc "Monster Summon#cr4";
1355        end;
1356
1357OnReset:
1358        killmonster "job_cru","Monster Summon#cr4-a::OnDead";
1359        end;
1360
1361OnEnd:
1362        disablenpc "Monster Summon#cr4";
1363        end;
1364
1365}
1366
1367job_cru,168,150,0       script  Monster Summon#cr4-a    -1,{
1368OnDead:
1369        donpcevent "Monster Summon#cr5::OnStart";
1370        end;
1371}
1372
1373job_cru,168,180,4       script  Monster Summon#cr5      45,3,3,{
1374OnInit:
1375        disablenpc "Monster Summon#cr5";
1376        end;
1377
1378OnTouch:
1379        warp "prt_castle",35,147;
1380        donpcevent "Monster Summon#cr0::OnReset";
1381        donpcevent "Monster Summon#cr0::OnEnd";
1382        donpcevent "Monster Summon#cr6::OnStop";
1383        donpcevent "Monster Summon#cr6::OnEnd";
1384        donpcevent "Monster Summon#cr5::OnEnd";
1385        donpcevent "Waiting Room#cr1::OnStart";
1386        end;
1387
1388OnStart:
1389        enablenpc "Monster Summon#cr5";
1390        end;
1391
1392OnEnd:
1393        disablenpc "Monster Summon#cr5";
1394        end;
1395}
1396
1397job_cru,2,2,1   script  Monster Summon#cr6      -1,{
1398OnTimer60000:
1399        donpcevent "Monster Summon#cr8::OnStart";
1400        end;
1401
1402OnTimer61000:
1403        donpcevent "Monster Summon#cr8::OnEnd";
1404        end;
1405
1406OnTimer240000:
1407        donpcevent "Monster Summon#cr7::OnStart";
1408        end;
1409
1410OnTimer241000:
1411        donpcevent "Monster Summon#cr0::OnReset";
1412        donpcevent "Monster Summon#cr4::OnReset";
1413        end;
1414
1415OnTimer242000:
1416        donpcevent "Monster Summon#cr0::OnEnd";
1417        donpcevent "Monster Summon#cr4::OnEnd";
1418        donpcevent "Monster Summon#cr7::OnEnd";
1419        end;
1420
1421OnTimer243000:
1422        donpcevent "Monster Summon#cr6::OnEnd";
1423        donpcevent "Waiting Room#cr1::OnStart";
1424        stopnpctimer;
1425        end;
1426
1427OnInit:
1428        disablenpc "Monster Summon#cr6";
1429        end;
1430
1431OnStart:
1432        enablenpc "Monster Summon#cr6";
1433        initnpctimer;
1434        end;
1435
1436OnEnd:
1437        disablenpc "Monster Summon#cr6";
1438        end;
1439
1440OnStop:
1441        stopnpctimer;
1442        end;
1443}
1444
1445job_cru,168,110,0       script  Monster Summon#cr7      -1,14,82,{
1446OnInit:
1447        disablenpc "Monster Summon#cr7";
1448        end;
1449
1450OnTouch:
1451        warp "prontera",234,318;
1452        end;
1453
1454OnStart:
1455        enablenpc "Monster Summon#cr7";
1456        end;
1457
1458OnEnd:
1459        disablenpc "Monster Summon#cr7";
1460        end;
1461}
1462
1463job_cru,168,17,0        script  Monster Summon#cr8      -1,14,5,{
1464OnInit:
1465        disablenpc "Monster Summon#cr8";
1466        end;
1467
1468OnTouch:
1469        warp "prontera",234,318;
1470        end;
1471
1472OnStart:
1473        enablenpc "Monster Summon#cr8";
1474        end;
1475
1476OnEnd:
1477        disablenpc "Monster Summon#cr8";
1478        end;
1479
1480}
1481
1482//============================================================
1483// mapflag
1484//============================================================
1485job_cru mapflag nomemo
1486job_cru mapflag noteleport
1487job_cru mapflag nosave  SavePoint
1488job_cru mapflag nopenalty
1489job_cru mapflag nobranch
1490job_cru mapflag noexp
1491job_cru mapflag noloot
1492
1493//============================================================
1494// Old changelog
1495//============================================================
1496//= Need optimalization and fixing
1497//= thanks to Komurka, KiLLaLeN, Lupus (fixing error)
1498//= just a temp Job Quest
1499//= 1.2 minor fix of announcement by Freya people
1500//= 1.3 Added Baby Class Support, fixed 40/50 lvl item reward
1501//=     also fixed too common script names [Lupus]
1502//= 1.3a fixed "dead lock" bugs [Lupus]
1503//= 1.3b changed monsters ID in patience test [Komurka]
1504//= 1.4 Fixed Job Level parameters mix-up. [massdriller] (Thanks to Komurka)
1505//= 1.5 Fixed possible EXP abuse [Lupus]
1506//= 1.6 Added a func which prevent advanced classes passing
1507//=     2nd Job Quests again. It also guides adv classes where
1508//=     to go. [Lupus]
1509//= 1.7 Updated names and required items, Chivalry Emblem +
1510//=     Hand of God allow to skip item gathering [DracoRPG]
1511//= 2.0 Changed numbers to constants. [Vicious]
1512//= 2.1 Fixed endless loop, wrong condition check [Lupus]
1513//=     also changed all job numbers to constants, fixed logic
Note: See TracBrowser for help on using the browser.