diff options
Diffstat (limited to 'npc/pre-re/jobs/2-1/wizard.txt')
-rw-r--r-- | npc/pre-re/jobs/2-1/wizard.txt | 1942 |
1 files changed, 554 insertions, 1388 deletions
diff --git a/npc/pre-re/jobs/2-1/wizard.txt b/npc/pre-re/jobs/2-1/wizard.txt index d438fbfde..808c884a4 100644 --- a/npc/pre-re/jobs/2-1/wizard.txt +++ b/npc/pre-re/jobs/2-1/wizard.txt @@ -1,17 +1,31 @@ //===== rAthena Script ======================================= -// Wizard Job change Quest +//= Wizard Job Quest //===== By: ================================================== -//= Masao -//= Credits: Muad_Dib +//= (Aegis) Translated by yoshiki, converted by kobra_k88 +//= Further bugfixed and tested by Lupus //===== Current Version: ===================================== -//= 1.0 +//= 3.2 //===== Compatible With: ===================================== -//= Any rAthena SVN +//= rAthena SVN //===== Description: ========================================= -//= [Translated from the Official] -//= Job change Quest from Mage -> Wizard. +//= [Aegis Conversion] +//= Job Change quest for Wizard class. //===== Additional Comments: ================================= -//= 1.0 Updated to latest available official file. [Masao] +//= 2.4 Rescripted to Aegis 10.3 standards. [L0ne_W0lf] +//= 2.5 Several bugfixes with the help of Barron-Monster. [L0ne_W0lf] +//= 2.5a More bugfixes care of Barron-Monster. [L0ne_W0lf] +//= 2.5b Fixed tests calling on a non-existant label in "Room of x#Failed" npcs. [L0ne_W0lf] +//= 2.5c Bug fixes. Cleaned up some NPCs slightly. [L0ne_W0lf] +//= 2.6 Fixed Water Room not warping on time-up. [L0ne_W0lf] +//= 2.7 Now uses enable and disable waitingroomevent. [L0ne_W0lf] +//= Other minor fixes to various NPCs. +//= 2.7a Added end; :D (bugreport:2038) [Yommy] +//= 2.8 Fixed donpcevent to doevent. (bugreport:2311) [SoulBlaker] +//= 2.9 Reverted the change of donpcevent to doevent. [L0ne_W0lf] +//= Was probably cuased by a warp BEFORE a percentheal +//= 3.0 Added Quest Log commands. [Kisuka] +//= 3.1 Removed the need for use of 'goto.' [L0ne_W0lf] +//= 3.2 Modified the quest to renewal. [Vali] (Thanks to Muad_Dib for the necessary info). //============================================================ gef_tower,111,37,4 script Wizard Guildsman 70,{ @@ -25,27 +39,20 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Congratulations and good luck with your life!"; close; } - if ((Class != Job_Baby_Mage) && (Class != Job_Mage)) { - if (Class == Job_Wizard) { - if (Sex == 1) { - mes "[Catherine]"; - mes "Since you're already a Wizard, you don't have any more business with me...?"; - mes "Now, excuse me."; - next; - mes "[Catherine]"; + if (BaseJob != Job_Mage) { + if (BaseJob == Job_Wizard) { + mes "[Catherine]"; + mes "Since you're already a Wizard, you don't have any more business with me...?"; + mes "Now, excuse me."; + next; + mes "[Catherine]"; + if (sex) mes "Well, If you intended to ask me on a date... I appreciate it...hohoho."; - } - else { - mes "[Catherine]"; - mes "Since you're already a Wizard, you don't have any more business with me..."; - mes "Now, excuse me."; - next; - mes "[Catherine]"; + else mes "Well, if you fix me up with a cute guy... I'd appreciate it...hohoho!."; - } close; } - if (Class == Job_Baby || Class == Job_Novice) { + else if (BaseClass == Job_Novice) { mes "[Wizard Guildsman]"; mes "Oh my goodness, it's a novice~ ain't you the cutest little thing."; mes "By the way honey, this place is for Wizards."; @@ -65,13 +72,12 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Ok, then. Farewell."; close; } - if (WZRD_Q == 0) { + if (WIZ_Q == 0) { mes "[Wizard Guildsman]"; mes "Huh? What are you doing way up here...?"; mes "So what brings you here?"; next; - switch (select("I want to become a Wizard.:...nothing.")) { - case 1: + if (select("I want to become a Wizard.:...nothing.") == 1) { mes "[Wizard Guildsman]"; mes "I see... Well, of course you want to become a Wizard, otherwise you wouldn't have walked up all those stairs right?"; mes "Anyways, I would like to welcome you. I will assist you in becoming a Wizard."; @@ -92,8 +98,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Well, I will give you more information when you apply for the job."; mes "So! Do you want to apply now?"; next; - switch (select("Yes, I do.:On second thought, Let me think about it.")) { - case 1: + if (select("Yes, I do.:On second thought, Let me think about it.") == 1) { if (JobLevel < 40) { mes "[Catherine]"; mes "Hey hey, weren't you listening to me?"; @@ -104,7 +109,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "When I deem you're qualified, I will accept your application."; close; } - if (SkillPoint != 0) { + if (SkillPoint) { mes "[Catherine]"; mes "Umm... You're well qualified, but you have some unused skill points left."; mes "You'd better learn more skills before applying again."; @@ -136,7 +141,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "[Catherine]"; mes "Go talk to the man in the corner and he will give you the remaining exams."; mes "Be careful. We have lost many Mages due to the difficulty of the exams."; - set WZRD_Q,3; + set WIZ_Q,3; setquest 9015; close; } @@ -148,23 +153,23 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "The first test is collecting magic items."; mes "The important part is that you must gather these items on your own."; next; - set .@wizard_m1, rand(1,2); + set wizard_m1,rand(1,2); mes "[Catherine]"; mes "The items you must collect are..."; - if (.@wizard_m1 == 1) { - set WZRD_Q,1; + if (rand(1)) { + set WIZ_Q,1; + setquest 9013; mes "^3355FFRed Gemstone^000000 10 each,"; mes "^3355FFBlue Gemstone^000000 10 each,"; mes "^3355FFYellow Gemstone^000000 10 each,"; - setquest 9013; } else { - set WZRD_Q,2; + set WIZ_Q,2; + setquest 9014; mes "^3355FFCrystal Blue^000000 5 each,"; mes "^3355FFGreen Live^000000 5 each,"; mes "^3355FFRed Blood^000000 5 each,"; mes "^3355FFWind of Verdure^000000 5 each,"; - setquest 9014; } mes "...is it too hard? No, any would be Wizard should be able to at least get these items."; next; @@ -172,25 +177,23 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Well, good luck."; mes "I'll be happily waiting. ~Hehe."; close; - case 2: - mes "[Catherine]"; - mes "Oh, ok then, take your time."; - mes "Since I'll always be here, accepting applications...*sigh*...anyways! ~Hehehehe."; - close; } - case 2: - mes "[Wizard Guildsman]"; - mes "Geez, what a lame person."; - mes "You have no business here, hope you don't mind, now off you go!"; + mes "[Catherine]"; + mes "Oh, ok then, take your time."; + mes "Since I'll always be here, accepting applications...*sigh*...anyways! ~Hehehehe."; close; } + mes "[Wizard Guildsman]"; + mes "Geez, what a lame person."; + mes "You have no business here, hope you don't mind, now off you go!"; + close; } - if (WZRD_Q == 1) { + else if (WIZ_Q == 1) { mes "[Catherine]"; mes "Let me see, did you get all the items?"; mes "Then let's check..."; next; - if ((countitem(716) > 9) && (countitem(717) > 9) && (countitem(715) > 9)) { + if (countitem(716) > 9 && countitem(717) > 9 && countitem(715) > 9) { mes "[Catherine]"; mes "Perfect! You got all the items. I like!~"; mes "These items will be put to great use in our guild. ~Hehehee."; @@ -198,9 +201,8 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ delitem 716,10; //Red_Gemstone delitem 717,10; //Blue_Gemstone delitem 715,10; //Yellow_Gemstone - set WZRD_Q,3; + set WIZ_Q,3; changequest 9013,9015; - changequest 9014,9015; mes "[Catherine]"; mes "Good for you! You passed the first test."; mes "But there are still two more left, so don't get too relaxed."; @@ -224,12 +226,12 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Don't forget this time, and bring all the items, ok?..."; close; } - if (WZRD_Q == 2) { + else if (WIZ_Q == 2) { mes "[Catherine]"; mes "Did you get all the items?"; mes "Let's see... Do you have the right ones?..."; next; - if ((countitem(991) > 4) && (countitem(993) > 4) && (countitem(990) > 4) && (countitem(992) > 4)) { + if (countitem(991) > 4 && countitem(993) > 4 && countitem(990) > 4 && countitem(992) > 4) { mes "[Catherine]"; mes "Perfect! Good job...I'm satisfied! ~Hehe"; mes "Our guild greatly appreciates these items and will use them wisely."; @@ -238,8 +240,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ delitem 993,5; //Yellow_Live delitem 990,5; //Boody_Red delitem 992,5; //Wind_Of_Verdure - set WZRD_Q,3; - changequest 9013,9015; + set WIZ_Q,3; changequest 9014,9015; mes "[Catherine]"; mes "Good. You've passed the first test now."; @@ -265,7 +266,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Don't forget them this time and gather the correct ones, ok? See you soon..."; close; } - if (WZRD_Q == 3) { + else if (WIZ_Q == 3) { mes "[Catherine]"; mes "What is it? You didn't go talk to the guy in the corner?"; mes "You can't become a Wizard by just brining the items I requested, no no, that just wont do..."; @@ -275,7 +276,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "I'll be waiting, so go now."; close; } - if (WZRD_Q == 4) { + else if (WIZ_Q == 4) { mes "[Catherine]"; mes "*sigh*...Poor thing, what a pity."; mes "How can you think of trying to become a Wizard when you can't even answer those simple questions?"; @@ -284,7 +285,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Let's see... Should I give you some hints as your senior?"; mes "But I'm a bit thirsty, so give me 1 Apple Juice, and we got a deal. ~Hehehe"; next; - switch (select("Give me some hints, please.:I want to try again on my own!")) { + switch(select("Give me some hints, please.:I want to try again on my own!")) { case 1: if (countitem(531) > 0) { delitem 531,1; //Apple_Juice @@ -346,7 +347,6 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "[Catherine]"; mes "Yeah, you get the most satisfaction when you solve things on your own."; mes "Go finish the rest of the tests with that spirit!"; - break; } next; mes "[Catherine]"; @@ -354,7 +354,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "Hurry, he's waiting for you!"; close; } - if (WZRD_Q == 5) { + else if (WIZ_Q == 5) { mes "[Catherine]"; mes "Tehehehe~ I was listening all along."; mes "Well done in answering all those questions. I want to give something, like a present..."; @@ -368,18 +368,17 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "He's waiting for you!"; close; } - if (WZRD_Q == 6) { + else if (WIZ_Q == 6) { mes "[Catherine]"; mes "Eh, did you leave in the middle of the test?"; mes "You...*sigh*...I didn't think you would do such a dishonorable thing."; next; - if (Sex == 1) { - mes "[Catherine]"; + mes "[Catherine]"; + if (sex) { mes "Granted you're a mage, but how could a guy be so weak?!"; mes "Well, at least your alive still. Go back and try harder this time. ~tehehehe"; } else { - mes "[Catherine]"; mes "Don't pretend to be weak just because you're a girl. Look at me! I did it, and so can you. You can't ask for sympathy."; mes "You came all this way to become a Wizard! Now come on, you can do it!!"; next; @@ -393,9 +392,9 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "He's waiting!"; close; } - if (WZRD_Q == 7) { + else if (WIZ_Q == 7) { if (JobLevel < 40) { - set WZRD_Q,0; + set WIZ_Q,0; mes "[Catherine]"; mes "Hey, what don't you get it?"; mes "I said you must be at least job level 40 to change your job, got it?"; @@ -405,7 +404,7 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "When the time comes, I will welcome you with open arms."; close; } - if (SkillPoint != 0) { + if (SkillPoint) { mes "[Catherine]"; mes "Are you done with all the tests? Oh drats, it seems like you still have some skill points left."; mes "Learn some other skills with your remaining points, and then come talk to me again."; @@ -418,13 +417,9 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ mes "[Catherine]"; mes "Well, no need to wait, I congratulate you. I hearby deem you Wizard."; next; - set WZRD_Q,0; - if(Class == Job_Baby_Mage){ - jobchange Job_Baby_Wizard; - } else { - jobchange Job_Wizard; - } completequest 9018; + callfunc "Job_Change",Job_Wizard; + callfunc "F_ClearJobVar"; // clears all job variables for the current player mes "[Catherine]"; mes "Since you're a Wizard now, act like a Wizard, got it?"; mes "Us wizards have to be careful since we possess the ultimate power of magic."; @@ -453,23 +448,21 @@ gef_tower,111,37,4 script Wizard Guildsman 70,{ } gef_tower,102,24,2 script Gloomy Wizard 735,{ - if ((Class != Job_Baby_Mage) && (Class != Job_Mage)) { - if (Class == Job_Baby_Wizard || Class == Job_Wizard) { + if (BaseJob != Job_Mage) { + if (BaseJob == Job_Wizard) { mes "[Raulel]"; mes "*Cough* *cough* what do you want?"; mes "If you are a person that uses magic, then you need to make sure you are well informed about it."; next; - if (Sex == 1) { - mes "[Raulel]"; - mes "Don't live dishonestly, or impolitely, or else one day you'll be caught in a spell you can't control, and BOOM, your dead!"; + mes "[Raulel]"; + mes "Don't live dishonestly, or impolitely, or else one day you'll be caught in a spell you can't control, and BOOM, your dead!"; + if (sex == 1) { mes "If you don't want that to happen, then learn how to use spells properly!"; next; mes "[Raulel]"; mes "You may live life crippled if you get obsessed with the love of Greater Magic. ~haha"; } else { - mes "[Raulel]"; - mes "Don't live dishonestly, or impolitely, or else one day you'll be caught in a spell you can't control, and BOOM, your dead!"; mes "So learn how to use magic properly, or you would just be better off giving up on using magic."; next; mes "[Raulel]"; @@ -478,7 +471,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ } close; } - if (Class == Job_Baby_Priest || Class == Job_Priest) { + else if (BaseJob == Job_Priest) { mes "[Raulel]"; mes "Go away, one who works for the Church!"; mes "Magic repels Holy power, jeez...your messing up my aura."; @@ -488,7 +481,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "Don't come any closer, just leave!"; close; } - if (Class == Job_Baby || Class == Job_Novice) { + else if (BaseClass == Job_Novice) { mes "[Raulel]"; mes "Why did a little one like you come here?!"; mes "Get lost! ~Hahahahaha"; @@ -503,7 +496,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "What do you want? Jeez...just get lost, won't you?"; close; } - if (WZRD_Q == 0) { + if (WIZ_Q == 0) { mes "[Raulel]"; mes "*cough* *cough* *sneeze* I don't know who you are and what you do, but I don't have any business with you."; next; @@ -511,7 +504,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "Go away! Get lost!"; close; } - if (WZRD_Q == 1) { + else if (WIZ_Q == 1 || WIZ_Q == 2) { mes "[Raulel]"; mes "Hahahaha~ You're the one that wants to become a Wizard?!"; next; @@ -522,492 +515,285 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "*Cough* *cough* Let's see how well you live as a Wizard. ~Hahahahhaha"; close; } - if (WZRD_Q == 2) { - mes "[Raulel]"; - mes "Hahahaha~ You're the one that wants to become a Wizard?!"; - next; - mes "[Raulel]"; - mes "*sneeze* If you just lived as you were, all you'd have to do was hunt a little and live the easy life..."; - next; - mes "[Raulel]"; - mes "*Cough* *cough* Let's see how well you live as a Wizard. ~Hahahahhaha"; - close; - } - if (WZRD_Q == 3) { - mes "[Raulel]"; - mes "*Cough* *cough*...You must've passed the first test."; - mes "Ok, I'm the Wizard in charge of your testing from now on. My name is 'Raulel Asparagus'."; - next; - mes "[Raulel]"; - mes "*sneeze* It's not too late yet, wouldn't you rather just go back to town and enjoy the peaceful life?"; - next; - mes "[Raulel]"; - mes "Hahahaha~ You don't know how dangerous it is...to deal with Greater Magic."; - next; - switch (select("I want to live as a normal Mage.:I would like to continue with the tests.")) { - case 1: + else if ((WIZ_Q == 3) || (WIZ_Q == 4)) { + if (WIZ_Q == 3) { mes "[Raulel]"; - mes "Hahaha~ *sneeze* Good choice...*cough* *cough*~"; - mes "Best not to even dream about life as a Wizard. Graa...Greaa...*sneeze* Greater Magic wasn't meant for humans to use!"; + mes "*Cough* *cough*...You must've passed the first test."; + mes "Ok, I'm the Wizard in charge of your testing from now on. My name is 'Raulel Asparagus'."; next; mes "[Raulel]"; - mes "Leave the top of this tower quietly and don't ever look back."; - mes "Just live peacefully with the powers that you have right now."; - close; - case 2: + mes "*sneeze* It's not too late yet, wouldn't you rather just go back to town and enjoy the peaceful life?"; + next; + mes "[Raulel]"; + mes "Hahahaha~ You don't know how dangerous it is...to deal with Greater Magic."; + next; + if (select("I want to live as a normal Mage.:I would like to continue with the tests.") == 1) { + mes "[Raulel]"; + mes "Hahaha~ *sneeze* Good choice...*cough* *cough*~"; + mes "Best not to even dream about life as a Wizard. Graa...Greaa...*sneeze* Greater Magic wasn't meant for humans to use!"; + next; + mes "[Raulel]"; + mes "Leave the top of this tower quietly and don't ever look back."; + mes "Just live peacefully with the powers that you have right now."; + close; + } mes "[Raulel]"; mes "*sneeze* Hahahaha~ Now there's a foolish one here!"; mes "Well then, let's see how good you are. *cough* I want to see this with my own two eyes!"; next; - break; + mes "[Raulel]"; + mes "*sneeze* Then let's begin the test!"; + mes "If you don't answer them all correctly, you fail. Hahahahahahahahaha~"; + next; + mes "[Raulel]"; + mes "I'll give you 10 questions so give me the right answers."; + mes "If you get something wrong, I won't tell you what it is!"; + if(checkquest(9016) == -1) { + changequest 9015,9016; + } + next; + mes "[Raulel]"; + mes "*Cough* *cough* Then here go the questions!"; + } + else if (WIZ_Q == 4) { + mes "[Raulel]"; + mes "Hahahaha~ Are you that desperate? *sneeze* What a pain in the arse..."; + next; + mes "[Raulel]"; + mes "Since you don't want to settle for a stable and peaceful life, I'll give you another chance..."; + next; + mes "[Raulel]"; + mes "If you miss one single question, then just give up. You wouldn't have any talent in being a Wizard! ~Hahahahaha"; + next; + if (select("Because of you, I want to live as a normal Mage now.:I would like to continue with the tests.") == 1) { + mes "[Raulel]"; + mes "Hahahaha~ Surprising, comming from you, that's a very wise choice...*cough* *cough*"; + mes "If i were you, i would never, ever dream of becoming a Wizard again. Gre...Greaa...*sneeze* Greater Magic wasn't meant for humans to use."; + next; + mes "[Raulel]"; + mes "Just leave the top of this tower quietly and never look back."; + mes "Live peacefully with the powers that you have right now."; + close; + } + mes "[Raulel]"; + mes "Hahahahahahaha~ Now there's a foolish one right here!"; + mes "Well then, let's see just how good you can be! *sneeze* I want to see this with my own two eyes."; + next; + mes "[Raulel]"; + mes "Then let's begin the test!"; } - mes "[Raulel]"; - mes "*sneeze* Then let's begin the test!"; - mes "If you don't answer them all correctly, you fail. Hahahahahahahahaha~"; - changequest 9015,9016; - next; - mes "[Raulel]"; - mes "I'll give you 10 questions so give me the right answers."; - mes "If you get something wrong, I won't tell you what it is!"; - next; - set .@wizard_m2,rand(1,3); - set @wizard_t,0; - mes "[Raulel]"; - mes "*Cough* *cough* Then here go the questions!"; next; - if (.@wizard_m2 == 1) { + switch(rand(1,3)) { + case 1: mes "[Raulel]"; mes "1. Which of the following is not necessary to learn Fire Wall?"; next; - switch (select("Fire Bolt Lv 4:Fire Ball Lv 5:Sight Lv 1:Napalm Beat Lv 4")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Fire Bolt Lv 4:Fire Ball Lv 5:Sight Lv 1:Napalm Beat Lv 4") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "2. Regaurdless of it's previous attribute, What does the monster's attribute change to when you cast Frost Diver on it?"; next; - switch (select("Water:Earth:Fire:Wind")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("Water:Earth:Fire:Wind") == 1) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "3. When you completely master Napalm Beat, what is the ratio of the increased MATK using that spell?"; next; - switch (select("1.6 times:1.7 times:2 times:20 times")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("1.6 times:1.7 times:2 times:20 times") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "4. What item do you need when casting Stone Curse?"; next; - switch (select("Red Blood:Blue Gemstone:Yellow Gemstone:Red Gemstone")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Red Blood:Blue Gemstone:Yellow Gemstone:Red Gemstone") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "5. Which of the following is not required to master Safety Wall?"; next; - switch (select("Napalm Beat Lv 4:Soul Strike Lv 5:Increase SP Recovery Lv 6:Safety Wall Lv 7")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } + if (select("Napalm Beat Lv 4:Soul Strike Lv 5:Increase SP Recovery Lv 6:Safety Wall Lv 7") == 3) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "6. Without the INT bonus, what amount of SP is recovered every 10 seconds when you have learned Increase SP Recovery Lv 7?"; next; - switch (select("14:21:28:35")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("14:21:28:35") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "7. Using Energy Coat, when you have 50% of your SP remaining, how much SP is used when hit, and what percentage is damage reduced by?"; next; - switch (select("Damage 18% SP1.5%:Damage 18% SP2%:Damage 24% SP1.5%:Damage 24% SP2%")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Damage 18% SP1.5%:Damage 18% SP2%:Damage 24% SP1.5%:Damage 24% SP2%") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "8. How much SP is consumed and how many times can you avoid attacks when using Safety Wall Lv 6?"; next; - switch (select("SP 40, 6 times:SP 35, 6 times:SP 40, 7 times:SP 35, 7 times")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } + if (select("SP 40, 6 times:SP 35, 6 times:SP 40, 7 times:SP 35, 7 times") == 3) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "9. How much SP is needed when using Lv 10 Thunderstorm?"; next; - switch (select("84:74:64:54")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("84:74:64:54") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "10. Which skill is most useful training in the Byalan Dungeon?"; next; - switch (select("Lightning Bolt:Fire Bolt:Cold Bolt:Sight")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - } - if (.@wizard_m2 == 2) { + if (select("Lightning Bolt:Fire Bolt:Cold Bolt:Sight") == 1) + set .@wizard_t,.@wizard_t+10; + break; + case 2: mes "[Raulel]"; mes "1. Which monster can you obtain a slotted Guard from?"; next; - switch (select("Thief Bug:Peco Peco:Pupa:Kobold (Hammer)")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } + if (select("Thief Bug:PecoPeco:Pupa:Kobold (Hammer)") == 3) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "2. Which of the following is the easiest monster for a low level Mage to hunt?"; next; - switch (select("Flora:Giearth:Golem:Myst")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("Flora:Giearth:Golem:Myst") == 1) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "3. Which monster will not be affected by Stone Curse?"; next; - switch (select("Elder Willow:Evil Druid:Magnolia:Marc")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Elder Willow:Evil Druid:Magnolia:Marc") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "4. When attacking a Lv 3 water attribute monster with a wind attribute weapon, what is the damage percentage?"; next; - switch (select("125%:150%:175%:200%")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("125%:150%:175%:200%") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "5. If a Baby Desert Wolf and a Familiar fought, which one would win?"; next; - switch (select("Baby Desert Wolf:Familiar:Neither:I don't know")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("Baby Desert Wolf:Familiar:Neither:I don't know") == 1) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "6. Which of the following cannot be a Cute Pet?"; next; - switch (select("Poporing:Roda Frog:Smokie:Poison Spore")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Poporing:Roda Frog:Smokie:Poison Spore") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "7. Choose the monster that is weak against a fire attribute attack."; next; - switch (select("Dagger Goblin:Mace Goblin:Morningstar Goblin:Hammer Goblin")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Dagger Goblin:Mace Goblin:Morningstar Goblin:Hammer Goblin") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "8. Which of the following has the highest defense?"; next; - switch (select("Horn:Chonchon:Andre:Caramel")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Horn:Chonchon:Andre:Caramel") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "9. Choose the monster that's of a different species."; next; - switch (select("Poring:Mastering:Ghostring:Spore")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } + if (select("Poring:Mastering:Ghostring:Spore") == 3) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "10. Which of the following is not an Undead monster?"; next; - switch (select("Drake:Megalodon:Deviace:Khalitzburg")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - } - else { + if (select("Drake:Megalodon:Deviace:Khalitzburg") == 3) + set .@wizard_t,.@wizard_t+10; + break; + case 3: mes "[Raulel]"; mes "1. Which stat is the most important for a Mage?"; next; - switch (select("INT:AGI:DEX:VIT")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("INT:AGI:DEX:VIT") == 1) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "2. Which attribute does not have a 'Bolt' type attack?"; next; - switch (select("Water:Earth:Fire:Wind")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Water:Earth:Fire:Wind") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "3. Choose the one that does not relate to a Mage."; next; - switch (select("Weak physical strength.:Attacks at a distance.:Good at selling stuff.:Magic Defense is high.")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } + if (select("Weak physical strength.:Attacks at a distance.:Good at selling stuff.:Magic Defense is high.") == 3) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "4. Which town is the home of Mages?"; next; - switch (select("Prontera:Morroc:Alberta:Geffen")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Prontera:Morroc:Alberta:Geffen") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "5. Which of the following cards has nothing to do with INT?"; next; - switch (select("Andre Egg Card:Soldier Andre Card:Baby Desert Wolf Card:Elder Willow Card")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Andre Egg Card:Soldier Andre Card:Baby Desert Wolf Card:Elder Willow Card") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "6. What is the Mage good at compared to other job classes?"; next; - switch (select("Exceptional Vocal Ability:Exceptional Acting Ability:Exceptional Dance Skills:Exceptional Magic Skills")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("Exceptional Vocal Ability:Exceptional Acting Ability:Exceptional Dance Skills:Exceptional Magic Skills") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "7. What is the INT bonus at Job Lv 40 for a Mage?"; next; - switch (select("8:7:6:5")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } + if (select("8:7:6:5") == 4) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "8. Which item can a Mage not equip?"; next; - switch (select("Knife:Boys Cap:Sandle:Eye of Dullahan")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Knife:Boys Cap:Sandle:Eye of Dullahan") == 2) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "9. Which of the following is the catalyst when making the Mage test solution 3?"; next; - switch (select("Blue Gemstone:Red Gemstone:Yellow Gemstone:Red Blood")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("Blue Gemstone:Red Gemstone:Yellow Gemstone:Red Blood") == 1) + set .@wizard_t,.@wizard_t+10; mes "[Raulel]"; mes "10. Which card is irrelevant to magic?"; next; - switch (select("Marduk Card:Magnolia Card:Willow Card:Maya Card")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("Marduk Card:Magnolia Card:Willow Card:Maya Card") == 2) + set .@wizard_t,.@wizard_t+10; } mes "[Raulel]"; + if (WIZ_Q == 4) { + mes "Good job, you finished answered all the questions... Go buy yourself some potions or something if you have the Zeny. Haha..."; + next; + mes "[Raulel]"; + mes "Your score is... " + .@wizard_t + "points....."; + if (.@wizard_t == 100) { + set WIZ_Q,5; + changequest 9016,9017; + mes "Hahahahahahah~ Well done, you passed the second test."; + mes "It wasn't done in one try like mine was, but I'll let you slide..."; + next; + mes "[Raulel]"; + mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; + mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; + close; + } + else if (.@wizard_t == 90) { + set WIZ_Q,5; + changequest 9016,9017; + mes "Hahaha~ Since you only missed one problem, you passed the second test."; + mes "It wasn't done in one try like mine was, but I'll let you slide..."; + next; + mes "[Raulel]"; + mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; + mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; + close; + } + else if (.@wizard_t == 80) { + set WIZ_Q,5; + changequest 9016,9017; + mes "Sheez... You didn't do very well, but you passed the second test."; + mes "It wasn't done in one try like mine was, but I'll let you slide..."; + next; + mes "[Raulel]"; + mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; + mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; + close; + } + else { + mes "You failed. Go study some more!"; + next; + mes "[Raulel]"; + mes "*cough* *cough* Did you really think you could become a Wizard with such a mediocre level like yours?"; + mes "Get lost! If you were a Wizard right now, the monsters that I fight, would eat you up in no time!"; + close; + } + } mes "Hmmm...Good job, you finished answering all the questions, go buy yourself some potions or something, thats IF you have the Zeny. Hahahahahahahah~"; next; mes "[Raulel]"; - mes "Your score is... " + @wizard_t + " points!"; - if (@wizard_t == 100) { - set WZRD_Q,5; + mes "Your score is... " + .@wizard_t + " points!"; + if (.@wizard_t == 100) { + set WIZ_Q,5; changequest 9016,9017; mes "*cough* *Cough* Well done, you passed the second test."; next; @@ -1016,8 +802,8 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "*sneeze* I advise you to rest a bit while the final test is prepared...Hahahahah~"; close; } - if (@wizard_t == 90) { - set WZRD_Q,5; + else if (.@wizard_t == 90) { + set WIZ_Q,5; changequest 9016,9017; mes "Hahahaha~ I'll let you slide by since you only missed one problem. You passed the second test."; next; @@ -1026,595 +812,82 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "*sneeze* I advise you to rest a bit while the final test is prepared...Hahahahah~"; close; } - set WZRD_Q,4; - mes "You failed. I will let you come back again...after you've learned more relating to the type of questions I've asked you."; - next; - mes "[Raulel]"; - mes "Tisk...not enough, not enough! Did you really think you could become a Wizard with the little bit of knowledge you have?"; - mes "Get lost! If you were a Wizard right now, the monsters I deal with would eat you up in no time!"; - close; - } - if (WZRD_Q == 4) { - mes "[Raulel]"; - mes "Hahahaha~ Are you that desperate? *sneeze* What a pain in the arse..."; - next; - mes "[Raulel]"; - mes "Since you don't want to settle for a stable and peaceful life, I'll give you another chance..."; - next; - mes "[Raulel]"; - mes "If you miss one single question, then just give up. You wouldn't have any talent in being a Wizard! ~Hahahahaha"; - next; - switch (select("Because of you, I want to live as a normal Mage now.:I would like to continue with the tests.")) { - case 1: - mes "[Raulel]"; - mes "Hahahaha~ Surprising, comming from you, that's a very wise choice...*cough* *cough*"; - mes "If i were you, i would never, ever dream of becoming a Wizard again. Gre...Greaa...*sneeze* Greater Magic wasn't meant for humans to use."; + else { + set WIZ_Q,4; + mes "You failed. I will let you come back again...after you've learned more relating to the type of questions I've asked you."; next; mes "[Raulel]"; - mes "Just leave the top of this tower quietly and never look back."; - mes "Live peacefully with the powers that you have right now."; + mes "Tisk...not enough, not enough! Did you really think you could become a Wizard with the little bit of knowledge you have?"; + mes "Get lost! If you were a Wizard right now, the monsters I deal with would eat you up in no time!"; close; - case 2: - mes "[Raulel]"; - mes "Hahahahahahaha~ Now there's a foolish one right here!"; - mes "Well then, let's see just how good you can be! *sneeze* I want to see this with my own two eyes."; - next; - break; } + } + else if (WIZ_Q == 5) { mes "[Raulel]"; - mes "Then let's begin the test!"; - mes "If you don't answer all of them correctly, you fail... ~Hahahahahha"; - next; - mes "[Raulel]"; - mes "I'll give you 10 questions so give me the correct answers."; - mes "If you get something wrong, I won't tell you what it is!"; + mes "Ok, hope you got plenty of rest. Hahahahahah~"; + mes "Then let's begin the last test."; next; - set .@wizard_m2,rand(1,3); - set @wizard_t,0; mes "[Raulel]"; - mes "*Cough* *cough* Then here go the questions."; + mes "Should I explain a little about this final test? It is difficult, I will not hide that from you..."; next; - if (.@wizard_m2 == 1) { - mes "[Raulel]"; - mes "1. Which of the following is not necessary to learn Fire Wall?"; - next; - switch (select("Fire Bolt Lv 4:Fire Ball Lv 5:Sight Lv 1:Napalm Beat Lv 4")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "2. Regaurdless of the previous attribute, what does the monster's attribute change to when you cast Frost Diver on it?"; - next; - switch (select("Water:Earth:Fire:Wind")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "3. When you master Napalm Beat, what is the ratio of the increase in MATK using the spell?"; - next; - switch (select("1.6 times:1.7 times:2 times:20 times")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "4. What item do you need when casting Stone Curse?"; - next; - switch (select("Red Blood:Blue Gemstone:Yellow Gemstone:Red Gemstone")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "5. Which of the following is not required to master Safety Wall?"; - next; - switch (select("Napalm Beat Lv 4:Soul Strike Lv 5:Increase SP Recovery Lv 6:Safety Wall Lv 7")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - mes "[Raulel]"; - mes "6. Without the INT bonus, what amount of SP is recovered every 10 seconds when you have learned Increase SP Recovery Lv 7?"; - next; - switch (select("14:21:28:35")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "7. Using the skill Energy Coat, when you have 50% of your SP remaining, how much SP is used when hit, and what percentage is damage reduced by?"; - next; - switch (select("Damage 18% SP1.5%:Damage 18% SP2%:Damage 24% SP1.5%:Damage 24% SP2%")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "8. How much SP is consumed, and how many times can you avoid attacks when using Safety Wall Lv 6?"; - next; - switch (select("SP 40, 6 times:SP 35, 6 times:SP 40, 7 times:SP 35, 7 times")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - mes "[Raulel]"; - mes "9. How much SP is needed when using Lv 10 Thunderstorm?"; - next; - switch (select("84:74:64:54")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "10. Which skill is most useful for training in the Byalan Dungeon?"; - next; - switch (select("Lightning Bolt:Fire Bolt:Cold Bolt:Sight")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - } - if (.@wizard_m2 == 2) { - mes "[Raulel]"; - mes "1. Which monster can you obtain a slotted Guard from?"; - next; - switch (select("Thief Bug:Peco Peco:Pupa:Kobold (Hammer)")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - mes "[Raulel]"; - mes "2. Which of the following is the easiest monster for a low level Mage to hunt?"; - next; - switch (select("Flora:Giearth:Golem:Myst")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "3. Which monster will not be affected by Stone Curse?"; - next; - switch (select("Elder Willow:Evil Druid:Magnolia:Marc")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "4. When attacking a Lv 3 water attribute monster with a wind attribute weapon, what is the damage percentage?"; - next; - switch (select("125%:150%:175%:200%")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "5. If a Baby Desert Wolf and a Familiar fought, which one would win?"; - next; - switch (select("Baby Desert Wolf:Familiar:Neither:I don't know")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "6. Which of the following cannot be a Cute Pet?"; - next; - switch (select("Poporing:Roda Frog:Smokie:Poison Spore")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "7. Choose the monster that is weak against a fire attribute attack."; - next; - switch (select("Dagger Goblin:Mace Goblin:Morningstar Goblin:Hammer Goblin")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "8. Which of the following monsters has the highest defense?"; - next; - switch (select("Horn:Chonchon:Andre:Caramel")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "9. Choose the monster that's a different species."; - next; - switch (select("Poring:Mastering:Ghostring:Spore")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - mes "[Raulel]"; - mes "10. Which of the following is not an Undead monster?"; - next; - switch (select("Drake:Megalodon:Deviace:Khalitzburg")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - } - else { - mes "[Raulel]"; - mes "1. Which stat is the most important for a Mage?"; - next; - switch (select("INT:AGI:DEX:VIT")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "2. Which attribute does not have a 'Bolt' type attack?"; - next; - switch (select("Water:Earth:Fire:Wind")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "3. Choose the one that does not relate to a Mage."; - next; - switch (select("Weak physical strength.:Attacks at a distance.:Good at selling stuff.:Magic Defense is high.")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 10; - break; - case 4: - break; - } - mes "[Raulel]"; - mes "4. Which town is the home of the Mages?"; - next; - switch (select("Prontera:Morroc:Alberta:Geffen")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "5. Which of the following cards has nothing to do with INT?"; - next; - switch (select("Andre Egg Card:Soldier Andre Card:Baby Desert Wolf Card:Elder Willow Card")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + if (select("No, it's ok, I'm ready.:I would like to listen.") == 1) { mes "[Raulel]"; - mes "6. What is the Mage good at compared to other job classes?"; - next; - switch (select("Exceptional Vocal Ability:Exceptional Acting Ability:Exceptional Dance Skills:Exceptional Magic Skills")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "7. What is the INT bonus at Job Lv 40 for a Mage?"; - next; - switch (select("8:7:6:5")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 10; - break; - } - mes "[Raulel]"; - mes "8. Which item can a Mage not equip?"; - next; - switch (select("Knife:Boys Cap:Sandle:Eye of Dullahan")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } - mes "[Raulel]"; - mes "9. Which of the following is the catalyst when making the Mage test solution 3?"; + mes "What a rash person. Your the type that rushes into battle without thinking, what in the world are you doing here instead of with the Prontera Chivalry? Heck, go for it! *cough* Not my fault if you end up dying."; + mes "Just consider yourself a glass cannon...because the monsters are going to break you into pieces. Hahahahahahahahaha~"; next; - switch (select("Blue Gemstone:Red Gemstone:Yellow Gemstone:Red Blood")) { - case 1: - set @wizard_t, @wizard_t + 10; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + set WIZ_Q,6; + savepoint "geffen",120,107; mes "[Raulel]"; - mes "10. Which card is irrelevant to magic?"; - next; - switch (select("Marduk Card:Magnolia Card:Willow Card:Maya Card")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 10; - break; - case 3: - break; - case 4: - break; - } + mes "Then, as you wish. I'll send you there right now."; + mes "Oh, if you see a white light at the end of a tunnel, that means your pathetic cause you failed! Hahahahahah~"; + close2; + warp "job_wiz",57,154; + end; } mes "[Raulel]"; - mes "Good job, you finished answered all the questions... Go buy yourself some potions or something if you have the Zeny. Haha..."; + mes "What a devoted person. Very well, I'll explain."; + mes "No matter how hard this last test may seem, if you do as I say, you can finish it quickly and easily."; next; mes "[Raulel]"; - mes "Your score is... " + @wizard_t + "points....."; - if (@wizard_t == 100) { - changequest 9016,9017; - set WZRD_Q,5; - mes "Hahahahahahah~ Well done, you passed the second test."; - mes "It wasn't done in one try like mine was, but I'll let you slide..."; - next; - mes "[Raulel]"; - mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; - mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; - close; - } - if (@wizard_t == 90) { - set WZRD_Q,5; - changequest 9016,9017; - mes "Hahaha~ Since you only missed one problem, you passed the second test."; - mes "It wasn't done in one try like mine was, but I'll let you slide..."; - next; - mes "[Raulel]"; - mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; - mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; - close; - } - if (@wizard_t == 80) { - set WZRD_Q,5; - changequest 9016,9017; - mes "Sheez... You didn't do very well, but you passed the second test."; - mes "It wasn't done in one try like mine was, but I'll let you slide..."; - next; - mes "[Raulel]"; - mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test."; - mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~"; - close; - } - mes "You failed. Go study some more!"; + mes "The final test has a total of 3 parts."; + mes "The order is Water Room, Earth Room, Fire Room. In each room, there are monsters of that particular attribute."; next; mes "[Raulel]"; - mes "*cough* *cough* Did you really think you could become a Wizard with such a mediocre level like yours?"; - mes "Get lost! If you were a Wizard right now, the monsters that I fight, would eat you up in no time!"; - close; - } - if (WZRD_Q == 5) { + mes "You'll find out what monsters will be there once you go in. If you use attacks with the *sneeze*"; + mes "right attribute, it shouldn't be too hard. Hahaha~"; + next; mes "[Raulel]"; - mes "Ok, hope you got plenty of rest. Hahahahahah~"; - mes "Then let's begin the last test."; + mes "Once you defeat all the monsters within the given time in any one room..."; + mes "you'll be moved to the next room."; next; mes "[Raulel]"; - mes "Should I explain a little about this final test? It is difficult, I will not hide that from you..."; + mes "After these three rooms are clear, the testing is over."; + mes "You will become a Wizard which is controlled by Greater Magic Powers! Know this...There is no returning to an easy life."; next; - switch (select("No, it's ok, I'm ready.:I would like to listen.")) { - case 1: - mes "[Raulel]"; - mes "What a rash person. Your the type that rushes into battle without thinking, what in the world are you doing here instead of with the Prontera Chivalry? Heck, go for it! *cough* Not my fault if you end up dying."; - mes "Just consider yourself a glass cannon...because the monsters are going to break you into pieces. Hahahahahahahahaha~"; - next; - set WZRD_Q,6; + mes "[Raulel]"; + mes "Hahaha~ You look frightened. You know, it's not too late to turn back and live an easy life."; + mes "If you want, I can send you back to town right now... What do you want to do?"; + next; + if (select("Continue testing.:I want to go back because I have butterflies in my stomach.") == 1) { + set WIZ_Q,6; savepoint "geffen",120,107; mes "[Raulel]"; - mes "Then, as you wish. I'll send you there right now."; - mes "Oh, if you see a white light at the end of a tunnel, that means your pathetic cause you failed! Hahahahahah~"; + mes "You are indeed, very determined. Ok! Hahahahahaha~"; + mes "*Cough* *cough* As you wish, we shall begin the final test!"; close2; warp "job_wiz",57,154; end; - case 2: - mes "[Raulel]"; - mes "What a devoted person. Very well, I'll explain."; - mes "No matter how hard this last test may seem, if you do as I say, you can finish it quickly and easily."; - next; - mes "[Raulel]"; - mes "The final test has a total of 3 parts."; - mes "The order is Water Room, Earth Room, Fire Room. In each room, there are monsters of that particular attribute."; - next; - mes "[Raulel]"; - mes "You'll find out what monsters will be there once you go in. If you use attacks with the *sneeze*"; - mes "right attribute, it shouldn't be too hard. Hahaha~"; - next; - mes "[Raulel]"; - mes "Once you defeat all the monsters within the given time in any one room..."; - mes "you'll be moved to the next room."; - next; - mes "[Raulel]"; - mes "After these three rooms are clear, the testing is over."; - mes "You will become a Wizard which is controlled by Greater Magic Powers! Know this...There is no returning to an easy life."; - next; - mes "[Raulel]"; - mes "Hahaha~ You look frightened. You know, it's not too late to turn back and live an easy life."; - mes "If you want, I can send you back to town right now... What do you want to do?"; - next; - switch (select("Continue testing.:I want to go back because I have butterflies in my stomach.")) { - case 1: - set WZRD_Q,6; - savepoint "geffen",120,107; - mes "[Raulel]"; - mes "You are indeed, very determined. Ok! Hahahahahaha~"; - mes "*Cough* *cough* As you wish, we shall begin the final test!"; - close2; - warp "job_wiz",57,154; - end; - case 2: - set WZRD_Q,6; - mes "[Raulel]"; - mes "Good thinking. This is a better choice for you. Hahahahah~"; - mes "Go back and live a easy life, Greater Magic is a force that should not be wield by types like yourself."; - close2; - warp "geffen",120,110; - end; - } } + set WIZ_Q,6; + mes "[Raulel]"; + mes "Good thinking. This is a better choice for you. Hahahahah~"; + mes "Go back and live a easy life, Greater Magic is a force that should not be wield by types like yourself."; + close2; + warp "geffen",120,110; + end; } - if (WZRD_Q == 6) { - if (@asn_skill == 6) { + else if (WIZ_Q == 6) { + if (WIZ_Q2 == 6) { mes "[Raulel]"; mes "Hahahahahaha~ I've never seen anyone so...sooo...*sneeze* tenacious as you."; mes "So you want to try again eh? Even though I've ridiculed you for your failures before??"; @@ -1623,7 +896,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "Ok then, here's a proposition. Since you're probably worn out as it is, and I can clearly see the lust for Greater Magic burning in your eyes..."; mes "Hahahahaha~ yeah! Go bring me a ^3355FFWorn Out Scroll^000000."; next; - set @asn_skill,@asn_skill+1; + set WIZ_Q2,WIZ_Q2+1; mes "[Raulel]"; mes "If not, you can take the test again..."; mes "Well, I'll send you to take the test for now. Hahahaha~"; @@ -1631,13 +904,12 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ warp "job_wiz",57,154; end; } - if (@asn_skill > 6) { + else if (WIZ_Q2 > 6) { mes "[Raulel]"; mes "Oh! So you're back? Hahahahaha~"; mes "*Cough* Cough* Do you want to take the test again? Or did you bring the ^3355FFWorn Out Scroll^000000?"; next; - switch (select("Continue the test.:Worn Out Scroll...")) { - case 1: + if (select("Continue the test.:Worn Out Scroll...") == 1) { savepoint "geffen",120,107; mes "[Raulel]"; mes "Hahaha~ Ok, at least you have some spirit."; @@ -1645,24 +917,21 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ close2; warp "job_wiz",57,154; end; - case 2: - if (countitem(618) > 0) { - delitem 618,1; //Worn_Out_Scroll - mes "[Raulel]"; - mes "Hahahahahahahaha~ *Cough* *cough* So you ended up bringing one of these eh? Good job..."; - mes "I think I can continue my research with this..."; - next; - set @asn_skill,0; - set WZRD_Q,7; - changequest 9017,9018; - mes "[Raulel]"; - mes "Even though your not Grade A Wizard material, I can tell your serious about wanting the Greater Magic. I'll tell Catherine that you passed. Hahahahahahahahah~"; - mes "You went through a lot of trouble here, and that is the true purpose for us selecting Wizards. Only those who will devote themselves to the art will ever become Wizards. Good luck to you. Become much Stronger. Hahahahahaha~"; - close; - } + } + if (countitem(618) > 0) { + delitem 618,1; //Worn_Out_Scroll + mes "[Raulel]"; + mes "Hahahahahahahaha~ *Cough* *cough* So you ended up bringing one of these eh? Good job..."; + mes "I think I can continue my research with this..."; + next; + set WIZ_Q2,0; + set WIZ_Q,7; + mes "[Raulel]"; + mes "Even though your not Grade A Wizard material, I can tell your serious about wanting the Greater Magic. I'll tell Catherine that you passed. Hahahahahahahahah~"; + mes "You went through a lot of trouble here, and that is the true purpose for us selecting Wizards. Only those who will devote themselves to the art will ever become Wizards. Good luck to you. Become much Stronger. Hahahahahaha~"; + close; } } - set @wizard_t,0; mes "[Raulel]"; mes "*sneeze* What? You want to take the test again?"; mes "Geez...you already failed the battle test! Hahahahahahahaha~ So you like magic that much, eh?"; @@ -1677,83 +946,38 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "[Raulel]"; mes "1. Choose the monster with a different attribute than the others."; next; - switch (select("Mantis:Cornutus:Giearth:Caramel")) { - case 1: - break; - case 2: - set @wizard_t, @wizard_t + 20; - break; - case 3: - break; - case 4: - break; - } + if (select("Mantis:Cornutus:Giearth:Caramel") == 2) + set .@wizard_t,.@wizard_t+20; mes "[Raulel]"; mes "2. Choose the monster that is not a looting one."; next; - switch (select("Yoyo:Magnolia:Metaller:Zerom")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 20; - break; - } + if (select("Yoyo:Magnolia:Metaller:Zerom") == 4) + set .@wizard_t,.@wizard_t+20; mes "[Raulel]"; mes "3. Which of these monsters does not recognize casting?"; next; - switch (select("Marina:Vitata:Scorpion:Giearth")) { - case 1: - set @wizard_t, @wizard_t + 20; - break; - case 2: - break; - case 3: - break; - case 4: - break; - } + if (select("Marina:Vitata:Scorpion:Giearth") == 1) + set .@wizard_t,.@wizard_t+20; mes "[Raulel]"; mes "4. Choose the spell that would be efficient against a Marine Sphere."; next; - switch (select("Cold Bolt:Fire Bolt:Lightning Bolt:Stone Curse")) { - case 1: - break; - case 2: - break; - case 3: - set @wizard_t, @wizard_t + 20; - break; - case 4: - break; - } + if (select("Cold Bolt:Fire Bolt:Lightning Bolt:Stone Curse") == 3) + set .@wizard_t,.@wizard_t+20; mes "[Raulel]"; mes "5. Choose the monster that can move."; next; - switch (select("Hydra:Madragora:Greatest General:Frilldora")) { - case 1: - break; - case 2: - break; - case 3: - break; - case 4: - set @wizard_t, @wizard_t + 20; - break; - } + if (select("Hydra:Madragora:Greatest General:Frilldora") == 4) + set .@wizard_t,.@wizard_t+20; mes "[Raulel]"; mes "*pfft* Do it right, so I don't have to ask again."; next; mes "[Raulel]"; - mes "You got " + @wizard_t + " points."; - if (@wizard_t == 100) { + mes "You got " + .@wizard_t + " points."; + if (.@wizard_t == 100) { mes "Hahahahahaha~ *Cough* *cough* If you can answer all these questions correctly, how is it you can't do well in battles??"; next; } - else if (@wizard_t == 80) { + else if (.@wizard_t == 80) { mes "Eh, soso..."; mes "I'll let you retake the test."; next; @@ -1765,8 +989,7 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ mes "You lack something...*sneez*...like intelligence. That's why you keep on failing. Hahahahahahahaha~"; close; } - switch (select("Begin the test please.:Can I get another explanation?")) { - case 1: + if (select("Begin the test please.:Can I get another explanation?") == 1) { mes "[Raulel]"; mes "Nobody is going to help you become a Wizard. Hahahahahahahaha~"; mes "*Cough* *cough* No point in crying after dying..."; @@ -1778,51 +1001,48 @@ gef_tower,102,24,2 script Gloomy Wizard 735,{ close2; warp "job_wiz",57,154; end; - case 2: - mes "[Raulel]"; - mes "*Cough* *cough* Then I shall explain."; - mes "The test may be hard, but just do as I tell you and it shouldn't be a problem."; - next; - mes "[Raulel]"; - mes "There are 3 parts to this final test."; - mes "The order is...*sneez*...the Water Room, Earth Room, and then the Fire Room. Each room has monsters of that attribute in it."; - next; - mes "[Raulel]"; - mes "You'll see what monsters they are when you enter."; - mes "If you use the appropriate spells against them, it shouldn't be that difficult. Hahahahahahaha~"; - next; - mes "[Raulel]"; - mes "Within the given time, if you defeat all the monsters..."; - mes "you will be sent to the next room."; - next; - mes "[Raulel]"; - mes "After that, the test is over."; - mes "You will then become a Wizard controlled by Greater Magic powers! There is no coming back to the easy life you have known thus far."; - next; + } + mes "[Raulel]"; + mes "*Cough* *cough* Then I shall explain."; + mes "The test may be hard, but just do as I tell you and it shouldn't be a problem."; + next; + mes "[Raulel]"; + mes "There are 3 parts to this final test."; + mes "The order is...*sneez*...the Water Room, Earth Room, and then the Fire Room. Each room has monsters of that attribute in it."; + next; + mes "[Raulel]"; + mes "You'll see what monsters they are when you enter."; + mes "If you use the appropriate spells against them, it shouldn't be that difficult. Hahahahahahaha~"; + next; + mes "[Raulel]"; + mes "Within the given time, if you defeat all the monsters..."; + mes "you will be sent to the next room."; + next; + mes "[Raulel]"; + mes "After that, the test is over."; + mes "You will then become a Wizard controlled by Greater Magic powers! There is no coming back to the easy life you have known thus far."; + next; + mes "[Raulel]"; + mes "Hahahahaha~ You look frightened. It's not too late you know."; + mes "*Cough* *cough* You can give up and go back to town! Just forget about the Greater Magic and live a normal life. What do yah say?"; + next; + if (select("Continue with the test.:I'm too scared, I would like to quit.") == 1) { + percentheal 100,100; mes "[Raulel]"; - mes "Hahahahaha~ You look frightened. It's not too late you know."; - mes "*Cough* *cough* You can give up and go back to town! Just forget about the Greater Magic and live a normal life. What do yah say?"; - next; - switch (select("Continue with the test.:I'm too scared, I would like to quit.")) { - case 1: - percentheal 100,100; - mes "[Raulel]"; - mes "This time when you die, don't come back crying. Hahahahahahahahah~ *Cough *cough*"; - mes "As you wish, let's begin the final test!"; - close2; - warp "job_wiz",57,154; - end; - case 2: - mes "[Raulel]"; - mes "Comming from you, thats some darn good thinking. That's more a fit for you anyways. Hahahahahahahahaha~"; - mes "Go back and live a quiet and peaceful life!"; - close2; - warp "geffen",120,110; - end; - } + mes "This time when you die, don't come back crying. Hahahahahahahahah~ *Cough *cough*"; + mes "As you wish, let's begin the final test!"; + close2; + warp "job_wiz",57,154; + end; } + mes "[Raulel]"; + mes "Comming from you, thats some darn good thinking. That's more a fit for you anyways. Hahahahahahahahaha~"; + mes "Go back and live a quiet and peaceful life!"; + close2; + warp "geffen",120,110; + end; } - if (WZRD_Q == 7) { + else if (WIZ_Q == 7) { mes "[Raulel]"; mes "You shouldn't have any more business with me as far as I'm concerned."; mes "But, since your so darned persistent, I'll let you take the test again. Hahahahaha~"; @@ -1849,58 +1069,56 @@ job_wiz,50,165,4 script Arena Assistant 700,{ close; } -job_wiz,50,165,2 script Waiting Room#wzrd 111,{ - end; - +job_wiz,50,165,4 script Waiting Room#wiz 700,{ OnInit: waitingroom "Waiting Room",20,"Waiting Room#wiz::OnStartArena",1; enablewaitingroomevent; end; OnStartArena: + killmonsterall "job_wiz"; warpwaitingpc "job_wiz",114,169; donpcevent "Room of Water::OnEnable"; + disablenpc "Waiting Room#wiz"; disablewaitingroomevent; end; -OnEnable: +OnStart: enablewaitingroomevent; end; } +// Water Room (Test 2 part 1) +//========================================================== job_wiz,1,1,1 script Room of Water 66,{ - end; - OnInit: - hideonnpc "Room of Water"; + disablenpc "Room of Water"; end; OnEnable: - hideoffnpc "Room of Water"; + enablenpc "Room of Water"; + set .MyMobs,7; monster "job_wiz",109,174,"Phen",1158,1,"Room of Water::OnMyMobDead"; - monster "job_wiz",118,174,"Clam",1074,1,"Room of Water::OnMyMobDead"; + monster "job_wiz",118,174,"Shellfish",1074,1,"Room of Water::OnMyMobDead"; monster "job_wiz",109,165,"Vadon",1066,1,"Room of Water::OnMyMobDead"; monster "job_wiz",118,165,"Cornutus",1067,1,"Room of Water::OnMyMobDead"; monster "job_wiz",101,157,"Marina",1141,1,"Room of Water::OnMyMobDead"; monster "job_wiz",126,157,"Marin",1242,1,"Room of Water::OnMyMobDead"; monster "job_wiz",98,170,"Magnolia",1138,1,"Room of Water::OnMyMobDead"; - monster "job_wiz",129,170,"Obeaune",1044,1,"Room of Water::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Water::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Water"; + killmonsterall "job_wiz"; + disablenpc "Room of Water"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Water::OnMyMobDead") < 1) { - set @asn_skill,@asn_skill+1; - mapannounce "job_wiz","" + strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; - donpcevent "Room of Water#DK::OnEnable"; + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { + set WIZ_Q2,WIZ_Q2+1; + mapannounce "job_wiz",strcharinfo(0)+" has succeeded in eliminating the monsters.",bc_map; + donpcevent "Room of Water#Door::OnEnable"; stopnpctimer; } end; @@ -1943,11 +1161,11 @@ OnTimer173000: OnTimer183000: mapannounce "job_wiz","Time is up.",bc_map; - donpcevent "Room of Water::OnReset"; + donpcevent "Room of Water::OnDisable"; end; OnTimer184000: - donpcevent "Room of Water#Failed::OnEnable"; + enablenpc "Room of Water#Failed"; end; OnTimer185000: @@ -1955,45 +1173,41 @@ OnTimer185000: end; OnTimer186000: - donpcevent "Room of Water#Failed::OnDisable"; + disablenpc "Room of Water#Failed"; donpcevent "Room of Water::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + donpcevent "Waiting Room#wiz::OnStart"; end; } -job_wiz,1,2,1 script Room of Water#DK 66,{ - end; - +job_wiz,1,2,1 script Room of Water#Door 66,{ OnInit: - hideonnpc "Room of Water#DK"; + disablenpc "Room of Water#Door"; end; OnEnable: - hideoffnpc "Room of Water#DK"; - donpcevent "Room of Water::OnReset"; + enablenpc "Room of Water#Door"; donpcevent "Room of Water::OnDisable"; - monster "job_wiz",114,169,"Marine Sphere",1142,1,"Room of Water#DK::OnMyMobDead"; - monster "job_wiz",112,169,"Hydra",1068,1,"Room of Water#DK::OnMyMobDead"; - monster "job_wiz",116,169,"Hydra",1068,1,"Room of Water#DK::OnMyMobDead"; - monster "job_wiz",114,171,"Hydra",1068,1,"Room of Water#DK::OnMyMobDead"; - monster "job_wiz",114,167,"Hydra",1068,1,"Room of Water#DK::OnMyMobDead"; + set .MyMobs,5; + monster "job_wiz",114,169,"Marine Sphere",1142,1,"Room of Water#Door::OnMyMobDead"; + monster "job_wiz",112,169,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead"; + monster "job_wiz",116,169,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead"; + monster "job_wiz",114,171,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead"; + monster "job_wiz",114,167,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Water#DK::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Water#DK"; + killmonsterall "job_wiz"; + disablenpc "Room of Water#Door"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Water#DK::OnMyMobDead") < 1) { - mapannounce "job_wiz","" + strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { + mapannounce "job_wiz",strcharinfo(0)+" has succeeded in eliminating the monsters.",bc_map; + percentheal 100,100; warp "job_wiz",116,97; - donpcevent "Room of Water#DK::OnReset"; - donpcevent "Room of Water#DK::OnDisable"; + donpcevent "Room of Water#Door::OnDisable"; donpcevent "Room of Earth::OnEnable"; stopnpctimer; } @@ -2013,11 +1227,11 @@ OnTimer50000: OnTimer60000: mapannounce "job_wiz","Time is up.",bc_map; - donpcevent "Room of Water#DK::OnReset"; + donpcevent "Room of Water#Door::OnDisable"; end; OnTimer61000: - donpcevent "Room of Water#Failed::OnEnable"; + enablenpc "Room of Water#Failed"; end; OnTimer62000: @@ -2025,67 +1239,53 @@ OnTimer62000: end; OnTimer63000: - donpcevent "Room of Water#Failed::OnDisable"; - donpcevent "Room of Water#DK::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + disablenpc "Room of Water#Failed"; + donpcevent "Room of Water#Door::OnDisable"; + donpcevent "Waiting Room#wiz::OnStart"; end; } -job_wiz,114,169,0 script Room of Water#Failed 139,16,16,{ - -OnTouch: - mapannounce "job_wiz","" + strcharinfo(0) + " has not succeeded.",bc_map; - warp "geffen",120,110; - end; - +job_wiz,114,169,0 script Room of Water#Failed -1,16,16,{ OnInit: - hideonnpc "Room of Water#Failed"; - end; - -OnEnable: - hideoffnpc "Room of Water#Failed"; + disablenpc "Room of Water#Failed"; end; -OnDisable: - hideonnpc "Room of Water#Failed"; +OnTouch: + mapannounce "job_wiz",strcharinfo(0)+" has not succeeded.",bc_map; + warp "geffen",120,110; end; } -job_wiz,1,3,1 script Room of Earth 66,1,1,{ - end; - +// Earth Room (Test 2 part 2) +//========================================================== +job_wiz,1,3,1 script Room of Earth 66,{ OnInit: - hideonnpc "Room of Earth"; + disablenpc "Room of Earth"; end; OnEnable: - hideoffnpc "Room of Earth"; - percentheal 100,100; + enablenpc "Room of Earth"; + set .MyMobs,7; monster "job_wiz",111,102,"Yoyo",1057,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",120,102,"Deniro",1105,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",111,102,"Caramel",1103,1,"Room of Earth::OnMyMobDead"; - monster "job_wiz",120,102,"Hode",1127,1,"Room of Earth::OnMyMobDead"; - monster "job_wiz",111,93,"Savage",1166,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",120,93,"Giearth",1121,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",107,98,"Bigfoot",1060,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",124,98,"Orc Warrior",1023,1,"Room of Earth::OnMyMobDead"; monster "job_wiz",104,86,"Vitata",1176,1,"Room of Earth::OnMyMobDead"; - monster "job_wiz",127,86,"Mantis",1139,1,"Room of Earth::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Earth::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Earth"; + killmonsterall "job_wiz"; + disablenpc "Room of Earth"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Earth::OnMyMobDead") < 1) { - mapannounce "job_wiz","" + strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; - donpcevent "Room of Earth#DK::OnEnable"; + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { + mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; + donpcevent "Room of Earth#Door::OnEnable"; stopnpctimer; } end; @@ -2128,11 +1328,11 @@ OnTimer173000: OnTimer183000: mapannounce "job_wiz","Time is up.",bc_map; - donpcevent "Room of Earth::OnReset"; + donpcevent "Room of Earth::OnDisable"; end; OnTimer184000: - donpcevent "Room of Earth#Failed::OnEnable"; + enablenpc "Room of Earth#Failed"; end; OnTimer185000: @@ -2140,48 +1340,42 @@ OnTimer185000: end; OnTimer186000: - donpcevent "Room of Earth#Failed::OnDisable"; + disablenpc "Room of Earth#Failed"; donpcevent "Room of Earth::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + donpcevent "Waiting Room#wiz::OnStart"; end; } -job_wiz,1,4,1 script Room of Earth#DK 66,{ - end; - +job_wiz,1,4,1 script Room of Earth#Door 66,{ OnInit: - hideonnpc "Room of Earth#DK"; + disablenpc "Room of Earth#Door"; end; OnEnable: - hideoffnpc "Room of Earth#DK"; - donpcevent "Room of Earth::OnReset"; + enablenpc "Room of Earth#Door"; donpcevent "Room of Earth::OnDisable"; - monster "job_wiz",116,97,"Flora",1118,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",114,95,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",118,95,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",114,99,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",118,99,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",116,94,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; - monster "job_wiz",116,100,"Mandragora",1020,1,"Room of Earth#DK::OnMyMobDead"; + set .MyMobs,6; + monster "job_wiz",114,95,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; + monster "job_wiz",118,95,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; + monster "job_wiz",114,99,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; + monster "job_wiz",118,99,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; + monster "job_wiz",116,94,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; + monster "job_wiz",116,100,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Earth#DK::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Earth#DK"; + killmonsterall "job_wiz"; + disablenpc "Room of Earth#Door"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Earth#DK::OnMyMobDead") < 1) { - mapannounce "job_wiz","" + strcharinfo(0) + " has succeeded in eliminating the monster.",bc_map; + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { + mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monster.",bc_map; percentheal 100,100; warp "job_wiz",46,99; - donpcevent "Room of Earth#DK::OnReset"; - donpcevent "Room of Earth#DK::OnDisable"; + donpcevent "Room of Earth#Door::OnDisable"; donpcevent "Room of Fire::OnEnable"; stopnpctimer; } @@ -2201,7 +1395,7 @@ OnTimer50000: OnTimer60000: mapannounce "job_wiz","End time.",bc_map; - donpcevent "Room of Earth#DK::OnReset"; + donpcevent "Room of Earth#Door::OnDisable"; end; OnTimer61000: @@ -2213,65 +1407,52 @@ OnTimer62000: end; OnTimer63000: - donpcevent "Room of Earth#Failed::OnDisable"; - donpcevent "Room of Earth#DK::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + disablenpc "Room of Earth#Failed"; + donpcevent "Room of Earth#Door::OnDisable"; + donpcevent "Waiting Room#wiz::OnStart"; end; } -job_wiz,116,97,0 script Room of Earth#Failed 139,16,16,{ - -OnTouch: - mapannounce "job_wiz","" + strcharinfo(0) + " has not succeeded.",bc_map; - warp "geffen",120,110; - end; - +job_wiz,116,97,0 script Room of Earth#Failed -1,16,16,{ OnInit: - hideonnpc "Room of Earth#Failed"; - end; - -OnEnable: - hideoffnpc "Room of Earth#Failed"; + disablenpc "Room of Earth#Failed"; end; -OnDisable: - hideonnpc "Room of Earth#Failed"; +OnTouch: + mapannounce "job_wiz",strcharinfo(0) + " has not succeeded.",bc_map; + warp "geffen",120,110; end; } +// Fire Room (Test 2 part 3) +//========================================================== job_wiz,1,5,1 script Room of Fire 66,{ - end; - OnInit: - hideonnpc "Room of Fire"; + disablenpc "Room of Fire"; end; OnEnable: - hideoffnpc "Room of Fire"; - percentheal 100,100; - monster "job_wiz",58,110,"Zerom",1178,1,"Room of Fire::OnMyMobDead"; + enablenpc "Room of Fire"; + set .MyMobs,6; monster "job_wiz",33,110,"Goblin",1123,1,"Room of Fire::OnMyMobDead"; monster "job_wiz",40,103,"Scorpion",1001,1,"Room of Fire::OnMyMobDead"; monster "job_wiz",51,103,"Frilldora",1119,1,"Room of Fire::OnMyMobDead"; - monster "job_wiz",40,92,"Peco Peco",1019,1,"Room of Fire::OnMyMobDead"; + monster "job_wiz",40,92,"PecoPeco",1019,1,"Room of Fire::OnMyMobDead"; monster "job_wiz",51,92,"Elder Willow",1033,1,"Room of Fire::OnMyMobDead"; monster "job_wiz",37,89,"Metaller",1058,1,"Room of Fire::OnMyMobDead"; - monster "job_wiz",54,89,"Desert Wolf",1106,1,"Room of Fire::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Fire::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Fire"; + killmonsterall "job_wiz"; + disablenpc "Room of Fire"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Fire::OnMyMobDead") < 1) { - mapannounce "job_wiz","" + strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; - donpcevent "Room of Fire#Door Keeper::OnEnable"; + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { + mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map; + donpcevent "Room of Fire#Door::OnEnable"; stopnpctimer; } end; @@ -2314,7 +1495,7 @@ OnTimer173000: OnTimer183000: mapannounce "job_wiz","Time is up.",bc_map; - donpcevent "Room of Fire::OnReset"; + donpcevent "Room of Fire::OnDisable"; end; OnTimer184000: @@ -2326,45 +1507,40 @@ OnTimer185000: end; OnTimer186000: - donpcevent "Room of Fire#Failed::OnDisable"; + disablenpc "Room of Fire#Failed"; donpcevent "Room of Fire::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + donpcevent "Waiting Room#wiz::OnStart"; end; } -job_wiz,1,6,1 script Room of Fire#Door Keeper 66,{ - end; - +job_wiz,1,6,1 script Room of Fire#Door 66,{ OnInit: - hideonnpc "Room of Fire#Door Keeper"; + disablenpc "Room of Fire#Door"; end; OnEnable: - hideoffnpc "Room of Fire#Door Keeper"; - donpcevent "Room of Fire::OnReset"; + enablenpc "Room of Fire#Door"; donpcevent "Room of Fire::OnDisable"; - monster "job_wiz",44,99,"Greatest General",1277,1,"Room of Fire#Door Keeper::OnMyMobDead"; - monster "job_wiz",43,99,"Horong",1129,1,"Room of Fire#Door Keeper::OnMyMobDead"; - monster "job_wiz",45,99,"Horong",1129,1,"Room of Fire#Door Keeper::OnMyMobDead"; + set .MyMobs,3; + monster "job_wiz",44,99,"Greatest General",1277,1,"Room of Fire#Door::OnMyMobDead"; + monster "job_wiz",43,99,"Greatest General",1277,1,"Room of Fire#Door::OnMyMobDead"; + monster "job_wiz",45,99,"Greatest General",1277,1,"Room of Fire#Door::OnMyMobDead"; initnpctimer; end; -OnReset: - killmonster "job_wiz","Room of Fire#Door Keeper::OnMyMobDead"; - end; - OnDisable: - hideonnpc "Room of Fire#Door Keeper"; + killmonsterall "job_wiz"; + disablenpc "Room of Fire#Door"; end; OnMyMobDead: - if (mobcount ("job_wiz","Room of Fire#Door Keeper::OnMyMobDead") < 1) { + set .MyMobs,.MyMobs-1; + if (.MyMobs < 1) { mapannounce "job_wiz","Congratulations, " + strcharinfo(0) + ". You have passed the job change test.",bc_map; - set WZRD_Q,7; + set WIZ_Q,7; changequest 9017,9018; - donpcevent "Room of Fire#Door Keeper::OnReset"; - donpcevent "Room of Fire#Door Keeper::OnDisable"; - donpcevent "Test Helper::OnEnable"; + donpcevent "Room of Fire#Door::OnDisable"; + donpcevent "Test Helper#wiz::OnEnable"; stopnpctimer; } end; @@ -2391,11 +1567,11 @@ OnTimer110000: OnTimer120000: mapannounce "job_wiz","Time is up.",bc_map; - donpcevent "Room of Fire#Door Keeper::OnReset"; + donpcevent "Room of Fire#Door::OnDisable"; end; OnTimer121000: - donpcevent "Room of Fire#Failed::OnEnable"; + enablenpc "Room of Fire#Failed"; end; OnTimer122000: @@ -2403,57 +1579,26 @@ OnTimer122000: end; OnTimer123000: - donpcevent "Room of Fire#Failed::OnDisable"; - donpcevent "Room of Fire#Door Keeper::OnDisable"; - donpcevent "Waiting Room::OnEnable"; - end; + disablenpc "Room of Fire#Failed"; + donpcevent "Room of Fire#Door::OnDisable"; + donpcevent "Waiting Room#wiz::OnStart"; } -job_wiz,46,99,0 script Room of Fire#Failed 139,16,16,{ - end; - +job_wiz,46,99,0 script Room of Fire#Failed -1,16,16,{ OnInit: - hideonnpc "Room of Fire#Failed"; + disablenpc "Room of Fire#Failed"; end; OnTouch: warp "geffen",120,110; end; - -OnEnable: - hideoffnpc "Room of Fire#Failed"; - end; - -OnDisable: - hideonnpc "Room of Fire#Failed"; - end; -} - -job_wiz,46,99,0 script Succeed 139,16,16,{ - end; - -OnInit: - hideonnpc "Succeed"; - end; - -OnTouch: - warp "gef_tower",110,30; - end; - -OnEnable: - hideoffnpc "Succeed"; - end; - -OnDisable: - hideonnpc "Succeed"; - end; } -job_wiz,1,7,1 script Test Helper 66,1,1,{ +job_wiz,1,7,1 script Test Helper#wiz 66,{ end; OnInit: - hideonnpc "Test Helper"; + disablenpc "Test Helper#wiz"; end; OnEnable: @@ -2461,7 +1606,7 @@ OnEnable: end; OnDisable: - hideonnpc "Test Helper"; + disablenpc "Test Helper#wiz"; end; OnTimer2000: @@ -2473,11 +1618,7 @@ OnTimer4000: end; OnTimer5000: - donpcevent "Succeed::OnEnable"; - end; - -OnTimer6000: - donpcevent "Succeed::OnDisable"; + areawarp "job_wiz",33,82,57,113,"gef_tower",110,30; end; OnTimer7000: @@ -2485,25 +1626,25 @@ OnTimer7000: end; OnTimer9000: - donpcevent "Test Helper::OnDisable"; - donpcevent "Waiting Room::OnEnable"; + donpcevent "Test Helper#wiz::OnDisable"; + donpcevent "Waiting Room#wiz::OnStart"; stopnpctimer; end; } -gef_tower,107,36,4 script White Dog 81,{ - if ((Class != Job_Baby_Mage) && (Class != Job_Mage)) { - if (Class == Job_Baby_Wizard || Class == Job_Wizard) { +gef_tower,107,36,4 script White Dog#wiz 81,{ + if (BaseJob != Job_Mage) { + if (BaseJob == Job_Wizard) { mes "[Maria]"; mes "Instead of sticking around here, wouldn't it be better to go out and test how strong you've become?"; next; mes "[Maria]"; mes "Don't forget that Wizards grow and improve in power each and every day."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (Class == Job_Baby || Class == Job_Novice) { + else if (BaseClass == Job_Novice) { mes "[Dog]"; mes "What? Kiddo!"; mes "Is a Dog talking so amusing to you?"; @@ -2519,10 +1660,10 @@ gef_tower,107,36,4 script White Dog 81,{ mes "*Bark* Get lost!"; mes "I don't have time for people like you!"; close2; - cutin "",255; + cutin "job_wizard_maria02",255; end; } - if (WZRD_Q == 0) { + if (WIZ_Q == 0) { cutin "job_wizard_maria01",2; mes "[Dog]"; mes "Ah...I know what you're about to say. You want to change jobs to a Wizard, right?"; @@ -2533,7 +1674,7 @@ gef_tower,107,36,4 script White Dog 81,{ mes "[Dog]"; mes "Also, if you would like to know anything about the job change process, I can explain."; next; - switch (select(".......:A Dog is talking to me...")) { + switch(select(".......:A Dog is talking to me...")) { case 1: mes "[Dog]"; mes "...*bark*...? What is it?? Why are you looking at me like that?!"; @@ -2594,7 +1735,7 @@ gef_tower,107,36,4 script White Dog 81,{ mes "I can tell you more about the job change process, but I can't hold back a busy person now can I?"; mes "What do you think? Should I explain some about whats in store for Mages that wish to become Wizards?"; next; - switch (select("Yes, please! I would like that.:No, it's ok.:A talking dog...")) { + switch(select("Yes, please! I would like that.:No, it's ok.:A talking dog...")) { case 1: cutin "job_wizard_maria01",2; mes "[Maria]"; @@ -2629,11 +1770,16 @@ gef_tower,107,36,4 script White Dog 81,{ next; mes "[Maria]"; mes "It's better to just try it yourself than to listen to my descriptions."; - close; + close2; + cutin "job_wizard_maria01",255; + warp "gef_dun00",116,102; + end; case 2: mes "[Maria]"; mes "Really? Ok, then go apply and do your best."; - close; + close2; + cutin "job_wizard_maria01",255; + end; case 3: cutin "job_wizard_maria02",2; mes "[Maria]"; @@ -2642,12 +1788,12 @@ gef_tower,107,36,4 script White Dog 81,{ mes "[Maria]"; mes "Dang it! I hope you FAIL!! Go get lost!!"; close2; - cutin "",255; + cutin "job_wizard_maria01",255; warp "gef_dun00",116,102; end; } } - if (WZRD_Q == 1) { + else if (WIZ_Q == 1) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "You seem lost..."; @@ -2667,7 +1813,7 @@ gef_tower,107,36,4 script White Dog 81,{ next; mes "[Maria]"; mes "Yellow Gemstones are easy to find in the desert."; - mes "Condors, Pickies, and sometimes monsters like Golems drop them."; + mes "Condors, Picky's, and sometimes monsters like Golem's drop them."; next; mes "[Maria]"; mes "And...*woof* to get Blue Gemstones. Try going to the Byalan Dungeons."; @@ -2681,10 +1827,10 @@ gef_tower,107,36,4 script White Dog 81,{ mes "Anyways, try your best."; mes "This is the basics of being a Wizard."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (WZRD_Q == 2) { + else if (WIZ_Q == 2) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "You seem lost..."; @@ -2718,19 +1864,19 @@ gef_tower,107,36,4 script White Dog 81,{ mes "But anyways, always try your best."; mes "It's the basics of being a Wizard."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (WZRD_Q == 3) { + else if (WIZ_Q == 3) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "Don't be too relieved just after the first test."; mes "Try your best, as you still have two more tests to go."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (WZRD_Q == 4) { + else if (WIZ_Q == 4) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "ZzzzZzzzZzzz..."; @@ -2739,10 +1885,10 @@ gef_tower,107,36,4 script White Dog 81,{ mes "[Maria]"; mes "*wimper*...Blizadris...you suck...Zzz..."; close2; - cutin "",255; + cutin "job_wizard_maria02",255; end; } - if (WZRD_Q == 5) { + else if (WIZ_Q == 5) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "Oh, you're doing well aren't you?"; @@ -2751,10 +1897,10 @@ gef_tower,107,36,4 script White Dog 81,{ mes "Well, try your best to the very end."; mes "Laurel is waiting."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (WZRD_Q == 6) { + else if (WIZ_Q == 6) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "*BARK*...you gave up?"; @@ -2772,10 +1918,10 @@ gef_tower,107,36,4 script White Dog 81,{ mes "*Grrr* Anyways, continue the test."; mes "Don't have a weak mind, *woof* and go back! *Bark* *Bark* Right this moment! *BARK*"; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } - if (WZRD_Q == 7) { + else if (WIZ_Q == 7) { cutin "job_wizard_maria01",2; mes "[Maria]"; mes "As I thought, I knew you'd be able to do it, I could smell it in yah! *Woof*"; @@ -2784,7 +1930,27 @@ gef_tower,107,36,4 script White Dog 81,{ mes "[Maria]"; mes "Congratulations. Always give your best at everything, no matter what."; close2; - cutin "",255; + cutin "job_wizard_maria01",255; end; } -}
\ No newline at end of file +} + +//============================================================ +// Old changelog +//============================================================ +//= 1.1 Now using the initnpctimer command, donpcevent, +//= and new waitingroom event commands. No more addtimer spamming. +//= No longer have to talk to the npc to take the test. Just enter the chat room. +//= 1.2 Changed global variable names to unique ones. +//= 1.2a Rollback from the wrong Kashy's fix +//= 1.2b Fixed issue with duplicating monsters thx to Bison.[kobra_k88] +//= 1.2c changed one Horong to Frilldora (now 3rd room contains 1 agressive mob.) +//= 1.2d more simplified fire room - removed agressive Desert Wolf [Lupus] +//= 1.3 Added Baby Class support. 1.5 Fixed possible EXP abuse [Lupus] +//= 1.6 Added a func which prevent advanced classes passing +//= 2nd Job Quests again. It also guides adv classes where to go. [Lupus] +//= 1.7 Replaced 2 Hodes with 2 Horong's (according to the official guide) [Lupus] +//= 1.8 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon] +//= 2.1 Changed numbers to constants. [Vicious] +//= 2.2 Merged back JFunc [Lupus] 2.2a Removed extra MES, added missing NEXT +//= 2.3 Bigfoot monster summon corrected [Zairik] |