From 3f43fe82d094f3a4e6c158f1209b433f92990d57 Mon Sep 17 00:00:00 2001 From: P0nk Date: Thu, 9 Sep 2021 23:36:54 +0200 Subject: [PATCH] Reformat and clean up quest scripts --- scripts/quest/1021.js | 56 ++++++----- scripts/quest/10940.js | 7 +- scripts/quest/20000.js | 13 +-- scripts/quest/20001.js | 32 ++++--- scripts/quest/20002.js | 13 +-- scripts/quest/20008.js | 8 +- scripts/quest/2001.js | 91 +++++++++--------- scripts/quest/20010.js | 13 +-- scripts/quest/20011.js | 42 ++++----- scripts/quest/20012.js | 38 ++++---- scripts/quest/20013.js | 38 ++++---- scripts/quest/20016.js | 40 ++++---- scripts/quest/20017.js | 34 +++---- scripts/quest/20020.js | 11 ++- scripts/quest/20100.js | 10 +- scripts/quest/20101.js | 26 ++--- scripts/quest/20102.js | 26 ++--- scripts/quest/20103.js | 26 ++--- scripts/quest/20104.js | 26 ++--- scripts/quest/20105.js | 26 ++--- scripts/quest/20200.js | 7 +- scripts/quest/20201.js | 15 +-- scripts/quest/20202.js | 15 +-- scripts/quest/20203.js | 15 +-- scripts/quest/20204.js | 15 +-- scripts/quest/20205.js | 15 +-- scripts/quest/20311.js | 5 +- scripts/quest/20312.js | 5 +- scripts/quest/20313.js | 5 +- scripts/quest/20314.js | 5 +- scripts/quest/20315.js | 5 +- scripts/quest/2034.js | 61 ++++++------ scripts/quest/20400.js | 11 ++- scripts/quest/20401.js | 11 ++- scripts/quest/20405.js | 11 ++- scripts/quest/20406.js | 11 ++- scripts/quest/20408.js | 17 ++-- scripts/quest/20514.js | 4 +- scripts/quest/20520.js | 36 +++---- scripts/quest/20522.js | 51 +++++----- scripts/quest/20526.js | 53 ++++++----- scripts/quest/20527.js | 15 +-- scripts/quest/20600.js | 10 +- scripts/quest/20610.js | 12 +-- scripts/quest/20700.js | 4 +- scripts/quest/20710.js | 42 ++++----- scripts/quest/20720.js | 33 ++++--- scripts/quest/21000.js | 50 +++++----- scripts/quest/21001.js | 100 ++++++++++---------- scripts/quest/21010.js | 66 ++++++------- scripts/quest/21011.js | 89 ++++++++--------- scripts/quest/21012.js | 66 ++++++------- scripts/quest/21013.js | 76 +++++++-------- scripts/quest/21015.js | 38 ++++---- scripts/quest/21016.js | 38 ++++---- scripts/quest/21017.js | 66 ++++++------- scripts/quest/21018.js | 42 ++++----- scripts/quest/21100.js | 60 ++++++------ scripts/quest/21101.js | 19 ++-- scripts/quest/21200.js | 47 ++++----- scripts/quest/21201.js | 38 ++++---- scripts/quest/21202.js | 32 ++++--- scripts/quest/2124.js | 16 ++-- scripts/quest/2126.js | 16 ++-- scripts/quest/2127.js | 11 ++- scripts/quest/21300.js | 20 ++-- scripts/quest/21301.js | 42 ++++----- scripts/quest/21302.js | 19 ++-- scripts/quest/21303.js | 11 ++- scripts/quest/21400.js | 18 ++-- scripts/quest/21401.js | 115 +++++++++++----------- scripts/quest/2148.js | 14 +-- scripts/quest/2149.js | 13 +-- scripts/quest/2150.js | 17 ++-- scripts/quest/2151.js | 13 +-- scripts/quest/2152.js | 13 +-- scripts/quest/21600.js | 11 ++- scripts/quest/21604.js | 11 ++- scripts/quest/21613.js | 16 ++-- scripts/quest/21618.js | 30 +++--- scripts/quest/21700.js | 42 ++++----- scripts/quest/21703.js | 64 ++++++------- scripts/quest/21704.js | 20 ++-- scripts/quest/21712.js | 28 +++--- scripts/quest/21716.js | 32 +++---- scripts/quest/21719.js | 22 ++--- scripts/quest/21720.js | 48 +++++----- scripts/quest/21729.js | 11 ++- scripts/quest/21733.js | 32 ++++--- scripts/quest/21734.js | 36 +++---- scripts/quest/21735.js | 34 ++++--- scripts/quest/21736.js | 21 +++-- scripts/quest/21738.js | 11 ++- scripts/quest/21739.js | 13 +-- scripts/quest/21740.js | 30 +++--- scripts/quest/21741.js | 11 ++- scripts/quest/21742.js | 32 ++++--- scripts/quest/21746.js | 33 +++---- scripts/quest/21747.js | 24 ++--- scripts/quest/21748.js | 15 +-- scripts/quest/21749.js | 11 ++- scripts/quest/21750.js | 11 ++- scripts/quest/21753.js | 11 ++- scripts/quest/21754.js | 17 ++-- scripts/quest/21757.js | 11 ++- scripts/quest/21766.js | 32 +++---- scripts/quest/21767.js | 46 ++++----- scripts/quest/2186.js | 34 +++---- scripts/quest/2197.js | 23 +++-- scripts/quest/22000.js | 108 ++++++++++----------- scripts/quest/22001.js | 54 +++++------ scripts/quest/22002.js | 88 ++++++++--------- scripts/quest/22003.js | 58 ++++++------ scripts/quest/22004.js | 90 +++++++++--------- scripts/quest/22007.js | 46 ++++----- scripts/quest/22008.js | 134 +++++++++++++------------- scripts/quest/2214.js | 21 +++-- scripts/quest/2215.js | 25 ++--- scripts/quest/2216.js | 23 ++--- scripts/quest/2217.js | 23 ++--- scripts/quest/2218.js | 23 ++--- scripts/quest/2219.js | 23 ++--- scripts/quest/2228.js | 11 ++- scripts/quest/2230.js | 28 +++--- scripts/quest/2238.js | 11 ++- scripts/quest/2245.js | 13 +-- scripts/quest/22500.js | 100 ++++++++++---------- scripts/quest/22501.js | 50 +++++----- scripts/quest/22502.js | 36 +++---- scripts/quest/22503.js | 46 ++++----- scripts/quest/22504.js | 46 ++++----- scripts/quest/22507.js | 108 ++++++++++----------- scripts/quest/2251.js | 16 ++-- scripts/quest/2257.js | 11 ++- scripts/quest/2258.js | 22 +++-- scripts/quest/2259.js | 26 ++--- scripts/quest/2260.js | 26 ++--- scripts/quest/2291.js | 17 ++-- scripts/quest/2293.js | 85 ++++++----------- scripts/quest/2300.js | 32 ++++--- scripts/quest/2301.js | 32 ++++--- scripts/quest/23011.js | 56 +++++------ scripts/quest/2302.js | 32 ++++--- scripts/quest/2303.js | 32 ++++--- scripts/quest/2304.js | 32 ++++--- scripts/quest/2305.js | 32 ++++--- scripts/quest/2306.js | 32 ++++--- scripts/quest/2307.js | 32 ++++--- scripts/quest/2308.js | 32 ++++--- scripts/quest/2309.js | 32 ++++--- scripts/quest/2310.js | 32 ++++--- scripts/quest/2312.js | 66 ++++++------- scripts/quest/2313.js | 58 ++++++------ scripts/quest/2314.js | 74 +++++++-------- scripts/quest/2315.js | 64 ++++++------- scripts/quest/2316.js | 68 ++++++------- scripts/quest/2317.js | 68 ++++++------- scripts/quest/2318.js | 86 ++++++++--------- scripts/quest/2319.js | 70 +++++++------- scripts/quest/2320.js | 70 +++++++------- scripts/quest/2321.js | 66 ++++++------- scripts/quest/2322.js | 76 +++++++-------- scripts/quest/2325.js | 42 ++++----- scripts/quest/2327.js | 43 ++++----- scripts/quest/2332.js | 14 +-- scripts/quest/2333.js | 69 +++++++------- scripts/quest/2334.js | 64 ++++++------- scripts/quest/2335.js | 56 +++++------ scripts/quest/2338.js | 17 ++-- scripts/quest/2342.js | 25 +++-- scripts/quest/2560.js | 46 ++++----- scripts/quest/2561.js | 74 +++++++-------- scripts/quest/2568.js | 60 ++++++------ scripts/quest/2570.js | 102 ++++++++++---------- scripts/quest/2573.js | 44 ++++----- scripts/quest/28004.js | 17 ++-- scripts/quest/29900.js | 16 ++-- scripts/quest/29901.js | 32 ++++--- scripts/quest/29902.js | 32 ++++--- scripts/quest/29903.js | 30 +++--- scripts/quest/29906.js | 20 ++-- scripts/quest/29907.js | 21 ++--- scripts/quest/29908.js | 21 ++--- scripts/quest/29909.js | 21 ++--- scripts/quest/29924.js | 77 ++++++++------- scripts/quest/29925.js | 25 +++-- scripts/quest/29926.js | 25 +++-- scripts/quest/29927.js | 25 +++-- scripts/quest/29928.js | 25 +++-- scripts/quest/3108.js | 11 ++- scripts/quest/3239.js | 4 +- scripts/quest/3301.js | 55 +++++------ scripts/quest/3303.js | 47 ++++----- scripts/quest/3314.js | 17 ++-- scripts/quest/3320.js | 11 ++- scripts/quest/3321.js | 11 ++- scripts/quest/3353.js | 13 +-- scripts/quest/3354.js | 11 ++- scripts/quest/3360.js | 42 ++++----- scripts/quest/3382.js | 19 ++-- scripts/quest/3414.js | 87 ++++++++--------- scripts/quest/3414_free10rate.js | 71 +++++++------- scripts/quest/3437.js | 75 ++++++++------- scripts/quest/3452.js | 31 +++--- scripts/quest/3454.js | 20 ++-- scripts/quest/3507.js | 14 +-- scripts/quest/3514.js | 84 ++++++++--------- scripts/quest/3523.js | 11 ++- scripts/quest/3524.js | 11 ++- scripts/quest/3525.js | 11 ++- scripts/quest/3526.js | 11 ++- scripts/quest/3527.js | 11 ++- scripts/quest/3529.js | 11 ++- scripts/quest/3539.js | 11 ++- scripts/quest/3714.js | 19 ++-- scripts/quest/3833.js | 75 ++++++++------- scripts/quest/3933.js | 13 +-- scripts/quest/3941.js | 33 ++++--- scripts/quest/3953.js | 11 ++- scripts/quest/4647.js | 43 ++++----- scripts/quest/4659.js | 49 +++++----- scripts/quest/6030.js | 13 +-- scripts/quest/6031.js | 13 +-- scripts/quest/6032.js | 13 +-- scripts/quest/6033.js | 17 ++-- scripts/quest/6036.js | 19 ++-- scripts/quest/7103.js | 15 +-- scripts/quest/8185.js | 147 +++++++++++++++-------------- scripts/quest/8189.js | 141 +++++++++++++-------------- scripts/quest/8219.js | 79 ++++++++-------- scripts/quest/8221.js | 33 ++++--- scripts/quest/8223.js | 32 +++---- scripts/quest/8224.js | 28 +++--- scripts/quest/8225.js | 32 +++---- scripts/quest/8226.js | 32 +++---- scripts/quest/8227.js | 26 ++--- scripts/quest/8228.js | 52 +++++----- scripts/quest/8229.js | 58 ++++++------ scripts/quest/8230.js | 48 +++++----- scripts/quest/8231.js | 27 +++--- scripts/quest/8232.js | 27 +++--- scripts/quest/8233.js | 27 +++--- scripts/quest/8234.js | 27 +++--- scripts/quest/8235.js | 27 +++--- scripts/quest/8236.js | 27 +++--- scripts/quest/8237.js | 27 +++--- scripts/quest/8238.js | 27 +++--- scripts/quest/8255.js | 9 +- scripts/quest/unidentifiedQuest.js | 4 +- 249 files changed, 4361 insertions(+), 4247 deletions(-) diff --git a/scripts/quest/1021.js b/scripts/quest/1021.js index afe6becca9..3f1f7b7c8f 100644 --- a/scripts/quest/1021.js +++ b/scripts/quest/1021.js @@ -32,31 +32,32 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if (status == 0) + } + + if (status == 0) { qm.sendNext("Hey, " + (qm.getPlayer().getGender() == 0 ? "Man" : "Miss") + "~ What's up? Haha! I am Roger who can teach you adorable new Maplers lots of information."); - else if (status == 1) + } else if (status == 1) { qm.sendNextPrev("You are asking who made me do this? Ahahahaha!\r\nMyself! I wanted to do this and just be kind to you new travellers."); - else if (status == 2) + } else if (status == 2) { qm.sendAcceptDecline("So..... Let me just do this for fun! Abaracadabra~!"); - else if (status == 3) { + } else if (status == 3) { if (qm.getPlayer().getHp() >= 50) { qm.getPlayer().updateHp(25); } - + if (!qm.haveItem(2010007)) { qm.gainItem(2010007, 1); } - + qm.forceStartQuest(); qm.sendNext("Surprised? If HP becomes 0, then you are in trouble. Now, I will give you #rRoger's Apple#k. Please take it. You will feel stronger. Open the Item window and double click to consume. Hey, it's very simple to open the Item window. Just press #bI#k on your keyboard."); } else if (status == 4) { @@ -72,36 +73,39 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if (status == 0) + } + + if (status == 0) { if (qm.c.getPlayer().getHp() < 50) { qm.sendNext("Hey, your HP is not fully recovered yet. Did you take all the Roger's Apple that I gave you? Are you sure?"); qm.dispose(); - } else + } else { qm.sendNext("How easy is it to consume the item? Simple, right? You can set a #bhotkey#k on the right bottom slot. Haha you didn't know that! right? Oh, and if you are a beginner, HP will automatically recover itself as time goes by. Well it takes time but this is one of the strategies for the beginners."); - else if (status == 1) + } + } else if (status == 1) { qm.sendNextPrev("Alright! Now that you have learned alot, I will give you a present. This is a must for your travel in Maple World, so thank me! Please use this under emergency cases!"); - else if (status == 2) + } else if (status == 2) { qm.sendPrev("Okay, this is all I can teach you. I know it's sad but it is time to say good bye. Well take care if yourself and Good luck my friend!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2010000# 3 #t2010000#\r\n#v2010009# 3 #t2010009#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 10 exp"); - else if (status == 3) { - if(qm.isQuestCompleted(1021)) - qm.dropMessage(1,"Unknown Error"); - else if(qm.canHold(2010000) && qm.canHold(2010009)){ + } else if (status == 3) { + if (qm.isQuestCompleted(1021)) { + qm.dropMessage(1, "Unknown Error"); + } else if (qm.canHold(2010000) && qm.canHold(2010009)) { qm.gainExp(10); qm.gainItem(2010000, 3); qm.gainItem(2010009, 3); qm.forceCompleteQuest(); - }else - qm.dropMessage(1,"Your inventory is full"); + } else { + qm.dropMessage(1, "Your inventory is full"); + } qm.dispose(); } } diff --git a/scripts/quest/10940.js b/scripts/quest/10940.js index 6590a761e0..d05ad4f37a 100644 --- a/scripts/quest/10940.js +++ b/scripts/quest/10940.js @@ -6,16 +6,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if (mode > 0) + if (mode > 0) { status++; - else + } else { qm.dispose(); + } if (status == 0) { qm.sendAcceptDecline("Hello, #h0#. Welcome to Maple World. It's currently event season, and we're welcome new characters with a gift. Would you like your gift now?"); } else if (status == 1) { qm.sendOk("Open your inventory and double-click on it! These gifts will make you look stylish. Oh, one more thing! You'll get another gift at level 30. Good luck!"); qm.forceStartQuest(); - qm.forceCompleteQuest(); + qm.forceCompleteQuest(); qm.gainItem(2430191, 1, true); } else if (status == 2) { qm.dispose(); diff --git a/scripts/quest/20000.js b/scripts/quest/20000.js index 04ff4c6183..d75e020c55 100644 --- a/scripts/quest/20000.js +++ b/scripts/quest/20000.js @@ -33,17 +33,18 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if (mode > 0) + if (mode > 0) { status++; - else + } else { status--; - if (status == 0) + } + if (status == 0) { qm.sendNext("Ah, you've come... this is exhilarating. I am grateful for your decision to become a Cygnus Knight. I have been waiting a long time for someone like you. Someone that is courageous enough to face the Black Mage and not flinch..."); - else if (status == 1) + } else if (status == 1) { qm.sendNext("The battle against the evil nature of the Black Mage who wants to swallow up Maple World as a whole, the cunning nature of his disciples, and the physical battle against the crazy monsters will await you. There will also come a time where even you may turn against yourself into an enemy and torment you ..."); - else if (status == 2) + } else if (status == 2) { qm.sendOk("But I won't worry about that. I am confident that you will be able to fight through all that and protect Maple World from the Black Mage. Of course, you'll have to become a bit stronger than you are right now, right?"); - else if (status == 3) { + } else if (status == 3) { qm.gainItem(1142065, 1); // Noblesse Medal * 1 qm.gainExp(20); //gain 20 exp!! qm.forceStartQuest(); diff --git a/scripts/quest/20001.js b/scripts/quest/20001.js index ea56d76153..a28da3316d 100644 --- a/scripts/quest/20001.js +++ b/scripts/quest/20001.js @@ -33,29 +33,30 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; - if (status == 0) + } + if (status == 0) { qm.sendNext("Hello, #h #. I formally welcome you to the Cygnus Knights. My name is Neinheart Von Rubistein, the Head Tactician for the young Empress. I will be seeing you often from here on out, so I suggest you remember my name. Haha..."); - else if (status == 1) + } else if (status == 1) { qm.sendNextPrev("I understand that you didn't have enough time and exposure to figure out what you really need to do as a Cygnus Knight. I will eplain it to you in detail, one by one. I will explain where you are, who the young Empress is, and what our duties are..."); - else if (status == 2) + } else if (status == 2) { qm.sendNextPrev("You're standing on an island called Ereve, the only land that's governed by the young Empress that also happens to float in the air. Yes, we're floating in the air as we speak. We stay here out of necessity, but it usually works as a ship that floats all over Maple World, for the sake of the young Empress..."); - else if (status == 3) + } else if (status == 3) { qm.sendNextPrev("The young Empress is indeed the ruler of Maple World, the one and only governer of this world. What? You've never heard of such a thing? Ahhh, that's understandable. The young Empress may govern this world, but she's not a dictator that looms over everyone. She uses Ereve as a way for her to oversee the world as an observer without having to be too hands-on. That's how it usually is, anyway..."); - else if (status == 4) + } else if (status == 4) { qm.sendNextPrev("But situations arise every now and then where she'll have to take control. The evil Black Mage has been showing signs of resurrection all over the world. The very king of destruction that threatened to destroy the world as we know it is trying to reappear into our lives."); - else if (status == 5) + } else if (status == 5) { qm.sendNextPrev("The problem is, no one is aware of it. It's been so long since the Black Mage disappeared, that people have become used to peace in the world, not necessarily knowing what to do if a crisis like this reaches. If this keeps up, our world will be in grave danger in no time."); - else if (status == 6) + } else if (status == 6) { qm.sendNextPrev("That's when the young Empress decided to step forward and take control of this potential crisis before it revealed itself. She decided to create a group of Knights that will prevent the Black Mage from being fully resurrected. I'm sure you know of what happens afterwards since you volunteered to become a Knight yourself."); - else if (status == 7) + } else if (status == 7) { qm.sendNextPrev("Our duties are simple. We need to make ourselves more powerful; much more powerful than the state we're in right now, so that when the Black Mage returns, we'll battle him and eliminate him once and for all before he puts the whole world in grave danger. That is our goal, our mission, and therefore yours as well"); - else if (status == 8) + } else if (status == 8) { qm.sendAcceptDecline("This is the basic overview of this situation. Understood?"); - else if (status == 9) { + } else if (status == 9) { if (qm.isQuestCompleted(20001)) { qm.gainExp(40); qm.gainItem(1052177, 1); // fancy noblesse robe @@ -63,11 +64,12 @@ function start(mode, type, selection) { qm.forceStartQuest(); qm.forceCompleteQuest(); qm.sendNext("I'm glad you understand what I've told you but... did you know? Based on your current level, you won't be able to face the Black Mage. Heck you won't be able to face off his disciple's slave's monster's pet's dummy! Are you sure you are ready to protect Maple World like that?"); - } else if (status == 10) + } else if (status == 10) { qm.sendNextPrev("You may be a member of the Cygnus Knights, but that doesn't mean you're a knight. Forget being the official knight. You're not even a Knight-in-Training, yet. A lot of time will pass where you will just sit around here, doing paperwork for the Cygnus Knights, but..."); - else if (status == 11) + } else if (status == 11) { qm.sendNextPrev("But then again, no one is born strong, anyway. The Empress also prefers that she creates an enviroment where a string of powerful knights can be nurtured and created, as opposed to finding a supernaturally-gifted knight. For now, you'll have to become a Knight-in-Training, and make yourself much more powerful so you'll become useful later on. We'll talk about the duties of being a Cygnus Knight once you reach that level of competency."); - else if (status == 12) + } else if (status == 12) { qm.sendPrev("Take the portal on the left side and go straight, and you'll head towards #b Training Forest I # . There, you'll find the training instructor for the Knights, Kiku. The next time I see you, I'd like for you to be atleast at level 10."); + } } } \ No newline at end of file diff --git a/scripts/quest/20002.js b/scripts/quest/20002.js index 8284cc250d..c7975b739d 100644 --- a/scripts/quest/20002.js +++ b/scripts/quest/20002.js @@ -33,17 +33,18 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if (mode > 0) + if (mode > 0) { status++; - else + } else { status--; - if (status == 0) + } + if (status == 0) { qm.sendNext("What? Neinheart sent you here? Ahh, you must be a rookie. Welcome, welcome. My name is Kiku, and my job is to train and mold kids like you into bonafide knights. Hmmm.. Why are you looking at me like that... Ahh, you must have never seen Piyos before."); - else if (status == 1) + } else if (status == 1) { qm.sendNext("We belong to a race called Piyos. You've talked to Shinsoo before, right? The one that stands next to the Empress. Yeah, Shinsoo is a Piyo, too. He may be of a different class, but... oh well. Piyos are only found in Ereve, so you may find us a bit odd at first, but you'll get used to us."); - else if (status == 2) + } else if (status == 2) { qm.sendAcceptDecline("Ah, I don't know if you are aware of this, but you won't find any monsters here in Ereve. Any form of evil will not be able to set foot on this island. Don't worry, you'll still have your opportunity to train here. Shinsoo created a fantasy creature called Mimi, which will be used as your training partners. Shall we begin?"); - else if (status == 3) { + } else if (status == 3) { qm.forceStartQuest(); qm.forceCompleteQuest(); diff --git a/scripts/quest/20008.js b/scripts/quest/20008.js index e5d7d9d617..bd4cddeca7 100644 --- a/scripts/quest/20008.js +++ b/scripts/quest/20008.js @@ -33,12 +33,12 @@ var choice1; function start(mode, type, selection) { if (mode < 1) { qm.dispose(); - } - else if (mode > 0) + } else if (mode > 0) { status++; - if (status == 0) + } + if (status == 0) { qm.sendSimple("Are you ready to take on a mission? If you can't pass this test, then you won't be able to call yourself a real Knight. Are you sure you can do this? If you are afraid to do this, let me know. I won't tell Neinheart. \r\n #L0#I'll try this later.#l \r\n #L1#I'm not afraid. Let's do this.#l"); - else if (status == 1) { + } else if (status == 1) { if (selection == 0) { qm.sendNext("If you call yourself a Knight, then do not hesitate. Show everyone how much courage you have in you."); qm.dispose(); diff --git a/scripts/quest/2001.js b/scripts/quest/2001.js index a4551592ab..fd89db402f 100644 --- a/scripts/quest/2001.js +++ b/scripts/quest/2001.js @@ -4,51 +4,54 @@ var status = -1; var vecItem; function end(mode, type, selection) { - if(mode == 0) { - qm.dispose(); - return; - } - status++; + if (mode == 0) { + qm.dispose(); + return; + } + status++; - if(status == 0) { - qm.sendNext("THIS is the deed to the land that my son lost! And you even brought all the necessary materials to build the house! Thank you so much ... my relatives can all move in and live in #m102000000#! As a sign of appreciation ..."); - } - - else if(status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) { - qm.getPlayer().dropMessage(1, "USE inventory full."); - qm.dispose(); - return; - } - - var talkStr = "Okay, now choose the scroll of your liking ... The odds of winning are 10% each. \r\n\r\n#rSELECT A ITEM\r\n#b"; - stance = qm.getPlayer().getJobStyle(); - - const Job = Java.type('client.Job'); - if(stance == Job.WARRIOR || stance == Job.BEGINNER) vecItem = new Array(2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302); - else if(stance == Job.MAGICIAN) vecItem = new Array(2043702, 2043802); - else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) vecItem = new Array(2044502, 2044602); - else if(stance == Job.THIEF) vecItem = new Array(2043302, 2044702); - else vecItem = new Array(2044802, 2044902); - - for (var i = 0; i < vecItem.length; i++) - talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; - qm.sendSimple(talkStr); - } - - else if(status == 2) { - item = vecItem[selection]; - qm.gainItem(item, 1); - qm.gainItem(4000022, -100); - qm.gainItem(4003000, -30); - qm.gainItem(4003001, -30); - qm.gainItem(4001004, -1); - qm.gainExp(20000); - qm.gainMeso(15000); - qm.gainFame(2); - qm.completeQuest(); - + if (status == 0) { + qm.sendNext("THIS is the deed to the land that my son lost! And you even brought all the necessary materials to build the house! Thank you so much ... my relatives can all move in and live in #m102000000#! As a sign of appreciation ..."); + } else if (status == 1) { + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) { + qm.getPlayer().dropMessage(1, "USE inventory full."); qm.dispose(); + return; } + + var talkStr = "Okay, now choose the scroll of your liking ... The odds of winning are 10% each. \r\n\r\n#rSELECT A ITEM\r\n#b"; + stance = qm.getPlayer().getJobStyle(); + + const Job = Java.type('client.Job'); + if (stance == Job.WARRIOR || stance == Job.BEGINNER) { + vecItem = [2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302]; + } else if (stance == Job.MAGICIAN) { + vecItem = [2043702, 2043802]; + } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) { + vecItem = [2044502, 2044602]; + } else if (stance == Job.THIEF) { + vecItem = [2043302, 2044702]; + } else { + vecItem = [2044802, 2044902]; + } + + for (var i = 0; i < vecItem.length; i++) { + talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; + } + qm.sendSimple(talkStr); + } else if (status == 2) { + item = vecItem[selection]; + qm.gainItem(item, 1); + qm.gainItem(4000022, -100); + qm.gainItem(4003000, -30); + qm.gainItem(4003001, -30); + qm.gainItem(4001004, -1); + qm.gainExp(20000); + qm.gainMeso(15000); + qm.gainFame(2); + qm.completeQuest(); + + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/20010.js b/scripts/quest/20010.js index e68d48f35f..2969a3cec3 100644 --- a/scripts/quest/20010.js +++ b/scripts/quest/20010.js @@ -5,16 +5,17 @@ function start(mode, type, selection) { qm.sendNext("Whoa, whoa! Are you really declining my offer? Well, you'll be able to #blevel-up quicker #kwith our help, so let me know if you change your mind. Even if you've declined a Quest, you can receive the Quest again if you just come and talk to me."); qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.sendNext("Whoa, whoa! Are you really declining my offer? Well, you'll be able to #blevel-up quicker #kwith our help, so let me know if you change your mind. Even if you've declined a Quest, you can receive the Quest again if you just come and talk to me."); qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("Welcome to Ereve! And you are? Oh, you're #b#h ##k! \r\nGood to meet you. I've been waiting. You've come to become a Cygnus Knight, right? My name is Kimu, and I'm currently guiding Noblesses like you at the request of Empress Cygnus."); } else if (status == 1) { @@ -39,8 +40,8 @@ function end(mode, type, selection) { if (status == 0) { qm.sendOk("Are you the Noblesse my brother Kimu sent? Nice to meet you! I'm Kizan. I'll give you the reward Kimu asked me to give you. Remember, you can check your Inventory by pressing the #bI key#k. Red potions help you recover HP, and blue ones help recover MP. It's a good idea to learn how to use them beforehand so you'll be ready with them when you're in danger. \r\n\r\n#fUI/UIWindow.img/Quest/reward# \r\n\r\n#v2000020# #z2000020# \r\n#v2000021# #z2000021# \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0#15 exp"); } else if (status == 1) { - if(qm.canHold(2000022) && qm.canHold(2000023)){ - if(!qm.isQuestCompleted(21010)) { + if (qm.canHold(2000022) && qm.canHold(2000023)) { + if (!qm.isQuestCompleted(21010)) { qm.gainItem(2000020, 5); qm.gainItem(2000021, 5); qm.gainExp(15); @@ -51,7 +52,7 @@ function end(mode, type, selection) { qm.dropMessage(1, "Your inventory is full"); } - qm.dispose(); + qm.dispose(); } } } \ No newline at end of file diff --git a/scripts/quest/20011.js b/scripts/quest/20011.js index be08d1c3fa..d85c42dfa8 100644 --- a/scripts/quest/20011.js +++ b/scripts/quest/20011.js @@ -6,49 +6,49 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("You don't want to? It's not even that hard, and you'll receive special equipment as a reward! Well, give it some thought and let me know if you change your mind."); - qm.dispose(); - return; - } - status--; + if (status == 2) { + qm.sendNext("You don't want to? It's not even that hard, and you'll receive special equipment as a reward! Well, give it some thought and let me know if you change your mind."); + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("There are a number of ways to hunt, but the most basic way is with your #bRegular Attack#k. All you need is a weapon in your hand, since it's a simple matter of just swinging your weapon at monsters."); + qm.sendNext("There are a number of ways to hunt, but the most basic way is with your #bRegular Attack#k. All you need is a weapon in your hand, since it's a simple matter of just swinging your weapon at monsters."); } else if (status == 1) { - qm.sendNextPrev("Press the #bC#k to use your Regular Attack. Usually the C is located #bat the bottom left of the keyboard#k, but you don't need me to tell you that, right? Find the C and try it out!"); + qm.sendNextPrev("Press the #bC#k to use your Regular Attack. Usually the C is located #bat the bottom left of the keyboard#k, but you don't need me to tell you that, right? Find the C and try it out!"); } else if (status == 2) { - qm.sendAcceptDecline("Now that you've tried it, we've got to test it out. In this area, you can find the weakest #r#o100120##ks in Ereve, which is perfect for you. Try hunting #r1#k. I'll give you a reward when you get back."); + qm.sendAcceptDecline("Now that you've tried it, we've got to test it out. In this area, you can find the weakest #r#o100120##ks in Ereve, which is perfect for you. Try hunting #r1#k. I'll give you a reward when you get back."); } else if (status == 3) { - qm.forceStartQuest(); - qm.guideHint(4); - qm.dispose(); + qm.forceStartQuest(); + qm.guideHint(4); + qm.dispose(); } } function end(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - status--; + status--; } if (status == 0) { - qm.sendNext("Ah, it seems like you've successfully hunted a #o100120#. Pretty simple, right? Regular Attacks may be easy to use, but they are pretty weak. Don't worry, though. #p1102006# will teach you how to use more powerful skills. Wait, let me give you a well-deserved quest reward before you go."); + qm.sendNext("Ah, it seems like you've successfully hunted a #o100120#. Pretty simple, right? Regular Attacks may be easy to use, but they are pretty weak. Don't worry, though. #p1102006# will teach you how to use more powerful skills. Wait, let me give you a well-deserved quest reward before you go."); } else if (status == 1) { - qm.sendPrev("This equipment is for Noblesses. It's much cooler than what you're wearing right now, isn't it? Follow the arrows to your left to meet my younger brother #b#p1102006##k. How about you change into your new Noblesse outfit before you go? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1002869# #t1002869# - 1 \r\n#i1052177# #t1052177# - 1 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 30 exp"); + qm.sendPrev("This equipment is for Noblesses. It's much cooler than what you're wearing right now, isn't it? Follow the arrows to your left to meet my younger brother #b#p1102006##k. How about you change into your new Noblesse outfit before you go? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1002869# #t1002869# - 1 \r\n#i1052177# #t1052177# - 1 \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 30 exp"); } else if (status == 2) { qm.gainItem(1002869, 1); qm.gainItem(1052177, 1); diff --git a/scripts/quest/20012.js b/scripts/quest/20012.js index 4fd2db2067..f7528694f8 100644 --- a/scripts/quest/20012.js +++ b/scripts/quest/20012.js @@ -6,47 +6,47 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("Regular Attacks are basic skills that are easy to use. It is important to remember that real hunting is done using your Skills. I suggest you reconsider."); - qm.dispose(); - return; - } + if (status == 2) { + qm.sendNext("Regular Attacks are basic skills that are easy to use. It is important to remember that real hunting is done using your Skills. I suggest you reconsider."); + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("I've been waiting for you, #h0#. My name is #p1102006# and I'm the third brother you are going to meet. So, you've learned about using Regular Attacks, correct? Well, next you'll be learning about your #bSkills#k, which you will find very helpful in Maple World."); + qm.sendNext("I've been waiting for you, #h0#. My name is #p1102006# and I'm the third brother you are going to meet. So, you've learned about using Regular Attacks, correct? Well, next you'll be learning about your #bSkills#k, which you will find very helpful in Maple World."); } else if (status == 1) { - qm.sendNextPrev("You earn Skill Points every time you level up, which means you probably have a few saved up already. Press the #bK key#k to see your skills. Invest your Skill Points in the skill you wish to strengthen and don't forget to #bplace the skill in a Quick Slot for easy use#k."); + qm.sendNextPrev("You earn Skill Points every time you level up, which means you probably have a few saved up already. Press the #bK key#k to see your skills. Invest your Skill Points in the skill you wish to strengthen and don't forget to #bplace the skill in a Quick Slot for easy use#k."); } else if (status == 2) { - qm.sendAcceptDecline("Time to practice before you forget. You will find a lot of #o100121#s in this area. Why don't you hunt #r3 #o100121#s#k using your #bThree Snails#b skill and bring me 1 #b#t4000483##k as proof? I'll wait for you here."); + qm.sendAcceptDecline("Time to practice before you forget. You will find a lot of #o100121#s in this area. Why don't you hunt #r3 #o100121#s#k using your #bThree Snails#b skill and bring me 1 #b#t4000483##k as proof? I'll wait for you here."); } else if (status == 3) { - qm.forceStartQuest(); - qm.guideHint(8); - qm.dispose(); + qm.forceStartQuest(); + qm.guideHint(8); + qm.dispose(); } } function end(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - status--; + status--; } if (status == 0) { - qm.sendNext("You've successfully defeated the #o100121#s and brought me a #t4000483#. That's very impressive! #bYou earn 3 Skill Points every time you level up, after you officially become a knight, that is. Keep following the arrow to the left, and you'll meet #b#p1102007##k, who will guide you through the next step.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 40 exp"); + qm.sendNext("You've successfully defeated the #o100121#s and brought me a #t4000483#. That's very impressive! #bYou earn 3 Skill Points every time you level up, after you officially become a knight, that is. Keep following the arrow to the left, and you'll meet #b#p1102007##k, who will guide you through the next step.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 40 exp"); } else if (status == 1) { qm.gainItem(4000483, -1); qm.forceCompleteQuest(); diff --git a/scripts/quest/20013.js b/scripts/quest/20013.js index 6742172b5e..73e08a728c 100644 --- a/scripts/quest/20013.js +++ b/scripts/quest/20013.js @@ -6,31 +6,31 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("Hmm, was that too much to ask? Is it because you don't know how to break Boxes? I'll tell you how if you accept my Quest. Let me know if you change your mind."); - qm.dispose(); - return; - } + if (status == 2) { + qm.sendNext("Hmm, was that too much to ask? Is it because you don't know how to break Boxes? I'll tell you how if you accept my Quest. Let me know if you change your mind."); + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("#b(*clang clang*)#k"); + qm.sendNext("#b(*clang clang*)#k"); } else if (status == 1) { - qm.sendNextPrev("Whoa! Hey! You scared me. I didn't know I had a visitor. You must be the Noblesse #p1102006# was talking about. Welcome! I'm #p1102007#, and my hobby is making #bChairs#k. I'm thinking about making you one as a welcome present."); + qm.sendNextPrev("Whoa! Hey! You scared me. I didn't know I had a visitor. You must be the Noblesse #p1102006# was talking about. Welcome! I'm #p1102007#, and my hobby is making #bChairs#k. I'm thinking about making you one as a welcome present."); } else if (status == 2) { - qm.sendNextPrev("But wait, I can't make you one because I don't have enough materials. Could you find me the materials I need? Around this area, you will find a lot of Boxes with items inside. Could you bring me back a #t4032267# and a #t4032268# found inside those Boxes?"); + qm.sendNextPrev("But wait, I can't make you one because I don't have enough materials. Could you find me the materials I need? Around this area, you will find a lot of Boxes with items inside. Could you bring me back a #t4032267# and a #t4032268# found inside those Boxes?"); } else if (status == 3) { - qm.sendNextPrev("Do you know how to get items from boxes? All you have to do is break the Boxes like you're attacking a monster. The difference is that you can attack monsters using your Skills, but you can #bonly use Regular Attacks to break Boxes#k."); + qm.sendNextPrev("Do you know how to get items from boxes? All you have to do is break the Boxes like you're attacking a monster. The difference is that you can attack monsters using your Skills, but you can #bonly use Regular Attacks to break Boxes#k."); } else if (status == 4) { - qm.sendAcceptDecline("Please bring me 1 #b#t4032267##k and 1 #b#t4032268##k found inside those Boxes. I'll make you an awesome Chair as soon as I have what I need. I'll wait here!"); + qm.sendAcceptDecline("Please bring me 1 #b#t4032267##k and 1 #b#t4032268##k found inside those Boxes. I'll make you an awesome Chair as soon as I have what I need. I'll wait here!"); } else if (status == 5) { qm.forceStartQuest(); qm.guideHint(9); @@ -39,20 +39,20 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - status--; + status--; } if (status == 0) { - qm.sendNext("Did you bring me a Building Stone and a Drape? Let's see. Ah, these are just what I need! They indeed are a #t4032267# and a #t4032268#! I'll make you a Chair right away."); + qm.sendNext("Did you bring me a Building Stone and a Drape? Let's see. Ah, these are just what I need! They indeed are a #t4032267# and a #t4032268#! I'll make you a Chair right away."); } else if (status == 1) { - qm.sendPrev("Here it is, a #t3010060#. What do you think? Nifty, huh? You can #bquickly recover your HP by sitting in this Chair#k. It will be stored in the #bSet-up#k window in your Inventory, so confirm that you've received the chair and head over to #b#p1102008##k. You'll see him if you keep following the arrow to the left. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3010060# 1 #t3010060# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 95 exp"); + qm.sendPrev("Here it is, a #t3010060#. What do you think? Nifty, huh? You can #bquickly recover your HP by sitting in this Chair#k. It will be stored in the #bSet-up#k window in your Inventory, so confirm that you've received the chair and head over to #b#p1102008##k. You'll see him if you keep following the arrow to the left. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3010060# 1 #t3010060# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 95 exp"); } else if (status == 2) { qm.gainItem(4032267, -1); qm.gainItem(4032268, -1); diff --git a/scripts/quest/20016.js b/scripts/quest/20016.js index 9d6e0f1903..d18a3c7f27 100644 --- a/scripts/quest/20016.js +++ b/scripts/quest/20016.js @@ -6,39 +6,39 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 8) { - qm.sendNext("Oh, do you still have some questions? Talk to me again and I'll explain it to you from the very beginning."); - qm.dispose(); - return; - } + if (status == 8) { + qm.sendNext("Oh, do you still have some questions? Talk to me again and I'll explain it to you from the very beginning."); + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("Hello, #h0#. Welcome to #p1101000# Knights. My name is #p1101002# and I am currently serving as the young Empress's Tactician. We'd better get acquainted since we'll be seeing a lot of each other. Haha!"); + qm.sendNext("Hello, #h0#. Welcome to #p1101000# Knights. My name is #p1101002# and I am currently serving as the young Empress's Tactician. We'd better get acquainted since we'll be seeing a lot of each other. Haha!"); } else if (status == 1) { - qm.sendNextPrev("I'm sure you have a lot of questions since everything happened so quickly. I'll explain it all, one by one, from where you are to what you're here to do."); + qm.sendNextPrev("I'm sure you have a lot of questions since everything happened so quickly. I'll explain it all, one by one, from where you are to what you're here to do."); } else if (status == 2) { - qm.sendNextPrev("This island is called Ereve. Thanks to the Empress's magic, this island usually floats around like a boat in the sky and patrols around Maple World. Right now, however, we've stopped here for a reason."); + qm.sendNextPrev("This island is called Ereve. Thanks to the Empress's magic, this island usually floats around like a boat in the sky and patrols around Maple World. Right now, however, we've stopped here for a reason."); } else if (status == 3) { - qm.sendNextPrev("The young Empress is the ruler of Maple World. What? This is the first time you've heard of her? Ah, yes. Well, she's the ruler of Maple World but she doesn't like to control it. She watches from afar to make sure that all is well. Well, at least that's her usual role."); + qm.sendNextPrev("The young Empress is the ruler of Maple World. What? This is the first time you've heard of her? Ah, yes. Well, she's the ruler of Maple World but she doesn't like to control it. She watches from afar to make sure that all is well. Well, at least that's her usual role."); } else if (status == 4) { - qm.sendNextPrev("But that's not the case right now. We've been finding signs all over Maple World that foreshadow the revival of the Black Mage. We can't have the Black Mage come back to terrorize Maple World as he has in the past!"); + qm.sendNextPrev("But that's not the case right now. We've been finding signs all over Maple World that foreshadow the revival of the Black Mage. We can't have the Black Mage come back to terrorize Maple World as he has in the past!"); } else if (status == 5) { - qm.sendNextPrev("But that was ages ago and people today don't realize how scary the Black Mage is. We've all become spoiled by the peaceful Maple World we enjoy today and forgotten how chaotic and frightening Maple World once was. If we don't do something, the Black Mage will once again rule Maple World!"); + qm.sendNextPrev("But that was ages ago and people today don't realize how scary the Black Mage is. We've all become spoiled by the peaceful Maple World we enjoy today and forgotten how chaotic and frightening Maple World once was. If we don't do something, the Black Mage will once again rule Maple World!"); } else if (status == 6) { - qm.sendNextPrev("This is why the young Empress has decided to take matters into her own hands. She's forming a knighthood of brave Maplers to defeat the Black Mage once and for all. You know what you need to do, right? I'm sure you have an idea since you, yourself, signed up to be a Knight."); + qm.sendNextPrev("This is why the young Empress has decided to take matters into her own hands. She's forming a knighthood of brave Maplers to defeat the Black Mage once and for all. You know what you need to do, right? I'm sure you have an idea since you, yourself, signed up to be a Knight."); } else if (status == 7) { - qm.sendNextPrev("We have to get stronger so we can defeat the Black Mage if he revives. Our primary goal is to prevent him from destroying Maple World, and you will play a prominent role in that."); + qm.sendNextPrev("We have to get stronger so we can defeat the Black Mage if he revives. Our primary goal is to prevent him from destroying Maple World, and you will play a prominent role in that."); } else if (status == 8) { - qm.sendAcceptDecline("That concludes my explanation. Have I answered all your questions? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 380 exp"); + qm.sendAcceptDecline("That concludes my explanation. Have I answered all your questions? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 380 exp"); } else if (status == 9) { if (!qm.isQuestStarted(20016)) { qm.forceStartQuest(); @@ -46,11 +46,11 @@ function start(mode, type, selection) { } qm.sendNext("I'm glad you're clear about our current situation, but you know, at your current level, you're not even strong enough to face the Black Mage's minions, let alone the Black Mage himself. Not even his minions' minions, as a matter of fact. How will you protect Maple World at your current level?"); } else if (status == 10) { - qm.sendNextPrev("Although you've been accepted into the knighthood, you cannot be recognized as a knight yet. You are not an Official Knight because you're not even a Knight-in-Training. If you remain at your current level, you'll be nothing more than the handyman of #p1101000# Knights."); + qm.sendNextPrev("Although you've been accepted into the knighthood, you cannot be recognized as a knight yet. You are not an Official Knight because you're not even a Knight-in-Training. If you remain at your current level, you'll be nothing more than the handyman of #p1101000# Knights."); } else if (status == 11) { - qm.sendNextPrev("But no one starts as a strong Knight on day one. The Empress didn't want someone strong. She wanted someone with courage whom she could develop into a strong Knight through rigorous training. So, you should first become a Knight-in-Training. We'll talk about your missions when you get to that point."); + qm.sendNextPrev("But no one starts as a strong Knight on day one. The Empress didn't want someone strong. She wanted someone with courage whom she could develop into a strong Knight through rigorous training. So, you should first become a Knight-in-Training. We'll talk about your missions when you get to that point."); } else if (status == 12) { - qm.forceCompleteQuest(); + qm.forceCompleteQuest(); qm.sendPrev("Take the portal on the left to reach the Training Forest. There, you will find #p1102000#, the Training Instructor, who will teach you how to become stronger. I don't want to find you wandering around aimlessly until you reach Lv. 10, you hear?"); } else if (status == 13) { qm.dispose(); diff --git a/scripts/quest/20017.js b/scripts/quest/20017.js index 5edd3a7b3e..271e443dce 100644 --- a/scripts/quest/20017.js +++ b/scripts/quest/20017.js @@ -6,35 +6,35 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("Hmm, there is nothing to worry about. This will be a breeze for someone your level. Muster your courage and let me know when you're ready."); - qm.dispose(); - return; - } + if (status == 2) { + qm.sendNext("Hmm, there is nothing to worry about. This will be a breeze for someone your level. Muster your courage and let me know when you're ready."); + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("Hmm? #p1101002# sent you, huh? You must be the newbie that recently joined Cygnus Knights. Welcome, and nice to meet you! My name is #p1102000#. I'm the Training Instructor who trains all Noblesses like yourself. Of course, I'm not a human as you can tell."); + qm.sendNext("Hmm? #p1101002# sent you, huh? You must be the newbie that recently joined Cygnus Knights. Welcome, and nice to meet you! My name is #p1102000#. I'm the Training Instructor who trains all Noblesses like yourself. Of course, I'm not a human as you can tell."); } else if (status == 1) { - qm.sendNextPrev("We are called Piyos. You've seen #p1101001# who is at the Empress's side all the time, haven't you? Piyos are of the same family as #p1101001#, but we belong to different types. Of course, you haven't seen any of us since we only live in Ereve. You'll get used to Piyos in no time."); + qm.sendNextPrev("We are called Piyos. You've seen #p1101001# who is at the Empress's side all the time, haven't you? Piyos are of the same family as #p1101001#, but we belong to different types. Of course, you haven't seen any of us since we only live in Ereve. You'll get used to Piyos in no time."); } else if (status == 2) { - qm.sendNextPrev("Oh, and did you know that there are no monsters in Ereve? Not even a smidgeon of evil dare enter Ereve. But don't you worry. You'll be able to train with illusory monsters created by #p1101001# called Mimis."); + qm.sendNextPrev("Oh, and did you know that there are no monsters in Ereve? Not even a smidgeon of evil dare enter Ereve. But don't you worry. You'll be able to train with illusory monsters created by #p1101001# called Mimis."); } else if (status == 3) { - qm.sendAcceptDecline("You seem prepared! Looking at what you've accomplished, I think you should jump right into hunting more advanced Mimis. How about you hunt #b15 #r#o100122#s in #m130010100##k#k? Use the portal on the left to reach the #bTraining Forest II#k."); + qm.sendAcceptDecline("You seem prepared! Looking at what you've accomplished, I think you should jump right into hunting more advanced Mimis. How about you hunt #b15 #r#o100122#s in #m130010100##k#k? Use the portal on the left to reach the #bTraining Forest II#k."); } else if (status == 4) { - qm.guideHint(12); - qm.forceStartQuest(20020); - qm.forceCompleteQuest(20100); - qm.forceStartQuest(); - qm.dispose(); + qm.guideHint(12); + qm.forceStartQuest(20020); + qm.forceCompleteQuest(20100); + qm.forceStartQuest(); + qm.dispose(); } } diff --git a/scripts/quest/20020.js b/scripts/quest/20020.js index 91b02cc2f1..67f9ccf64a 100644 --- a/scripts/quest/20020.js +++ b/scripts/quest/20020.js @@ -9,17 +9,18 @@ function start(mode, type, selection) { qm.sendOk("Talk to me after you have decided what you really want to do. Whatever you choose, you will not miss out or lose privileges, so don't take this too seriously..."); qm.dispose(); } else { - if(mode == 0 && type > 0 || selection == 1) { + if (mode == 0 && type > 0 || selection == 1) { qm.sendOk("Talk to me after you have decided what you really want to do. Whatever you choose, you will not miss out or lose privileges, so don't take this too seriously..."); qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I can tell you've worked really hard by seeing that you're already at Level 10. I think it's time now for you to break out as a Nobless and officially become the Knight-in-Training. Before doing that, however, I want to ask you one thing. Have you decided which Knight you'd want to beome?"); } else if (status == 1) { diff --git a/scripts/quest/20100.js b/scripts/quest/20100.js index 697eba843d..cf5ef74d0c 100644 --- a/scripts/quest/20100.js +++ b/scripts/quest/20100.js @@ -30,18 +30,18 @@ var status = -1; function start(mode, type, selection) { - if (mode > 0) + if (mode > 0) { status++; - else { + } else { qm.dispose(); return; } - if (status == 0) + if (status == 0) { qm.sendAcceptDecline("Ahhh, you're back. I can see that you're at level 10 now. It looks like you're flashing a glimmer of hope towards becoming a Knight. The basic training has now ended, and it's time for you to make the decision."); - else if (status == 1) { + } else if (status == 1) { qm.forceStartQuest(); qm.forceCompleteQuest(); - + qm.sendOk("Now look to the left. The leaders of the Knights will be waiting for you. There will be 5 paths for you to choose from. All you need to do is choose one of them. All 5 of them will lead you to the path of a Knight, so... I suggest you pay attention to what each path offers, and select the one you'd most like to take."); } else if (status == 2) { qm.dispose(); diff --git a/scripts/quest/20101.js b/scripts/quest/20101.js index 7c4f02cf44..96d35b582d 100644 --- a/scripts/quest/20101.js +++ b/scripts/quest/20101.js @@ -8,22 +8,22 @@ var canTryFirstJob = true; function end(mode, type, selection) { if (mode == 0) { - if (status == 0) { - qm.sendNext("This is an important decision to make."); - qm.dispose(); - return; - } - status--; + if (status == 0) { + qm.sendNext("This is an important decision to make."); + qm.dispose(); + return; + } + status--; } else { - status++; + status++; } if (status == 0) { - qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Dawn Warrior?"); + qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Dawn Warrior?"); } else if (status == 1) { if (canTryFirstJob) { canTryFirstJob = false; if (qm.getPlayer().getJob().getId() != 1100) { - if(!qm.canGetFirstJob(jobType)) { + if (!qm.canGetFirstJob(jobType)) { qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rDawn Warrior#k."); qm.dispose(); return; @@ -45,13 +45,13 @@ function end(mode, type, selection) { } qm.sendNext("I have just molded your body to make it perfect for a Dawn Warrior. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k."); } else if (status == 2) { - qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); + qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); } else if (status == 3) { - qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); + qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); } else if (status == 4) { - qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Dawn Warrior, you will lost a portion of your EXP when you run out of HP, okay?"); + qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Dawn Warrior, you will lost a portion of your EXP when you run out of HP, okay?"); } else if (status == 5) { - qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); + qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); } else if (status == 6) { qm.dispose(); } diff --git a/scripts/quest/20102.js b/scripts/quest/20102.js index ad28095c09..7df4e898cc 100644 --- a/scripts/quest/20102.js +++ b/scripts/quest/20102.js @@ -8,22 +8,22 @@ var canTryFirstJob = true; function end(mode, type, selection) { if (mode == 0) { - if (status == 0) { - qm.sendNext("This is an important decision to make."); - qm.dispose(); - return; - } - status--; + if (status == 0) { + qm.sendNext("This is an important decision to make."); + qm.dispose(); + return; + } + status--; } else { - status++; + status++; } if (status == 0) { - qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Blaze Wizard?"); + qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Blaze Wizard?"); } else if (status == 1) { if (canTryFirstJob) { canTryFirstJob = false; if (qm.getPlayer().getJob().getId() != 1200) { - if(!qm.canGetFirstJob(jobType)) { + if (!qm.canGetFirstJob(jobType)) { qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rBlaze Wizard#k."); qm.dispose(); return; @@ -45,13 +45,13 @@ function end(mode, type, selection) { } qm.sendNext("I have just molded your body to make it perfect for a Blaze Wizard. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k."); } else if (status == 2) { - qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); + qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); } else if (status == 3) { - qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); + qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); } else if (status == 4) { - qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Blaze Wizard, you will lost a portion of your EXP when you run out of HP, okay?"); + qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Blaze Wizard, you will lost a portion of your EXP when you run out of HP, okay?"); } else if (status == 5) { - qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); + qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); } else if (status == 6) { qm.dispose(); } diff --git a/scripts/quest/20103.js b/scripts/quest/20103.js index 6e7971dd96..467c937966 100644 --- a/scripts/quest/20103.js +++ b/scripts/quest/20103.js @@ -8,22 +8,22 @@ var canTryFirstJob = true; function end(mode, type, selection) { if (mode == 0) { - if (status == 0) { - qm.sendNext("This is an important decision to make."); - qm.dispose(); - return; - } - status--; + if (status == 0) { + qm.sendNext("This is an important decision to make."); + qm.dispose(); + return; + } + status--; } else { - status++; + status++; } if (status == 0) { - qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Wind Archer?"); + qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Wind Archer?"); } else if (status == 1) { if (canTryFirstJob) { canTryFirstJob = false; if (qm.getPlayer().getJob().getId() != 1300) { - if(!qm.canGetFirstJob(jobType)) { + if (!qm.canGetFirstJob(jobType)) { qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rWind Archer#k."); qm.dispose(); return; @@ -46,13 +46,13 @@ function end(mode, type, selection) { } qm.sendNext("I have just molded your body to make it perfect for a Wind Archer. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k."); } else if (status == 2) { - qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); + qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); } else if (status == 3) { - qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); + qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); } else if (status == 4) { - qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Wind Archer, you will lost a portion of your EXP when you run out of HP, okay?"); + qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Wind Archer, you will lost a portion of your EXP when you run out of HP, okay?"); } else if (status == 5) { - qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); + qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); } else if (status == 6) { qm.dispose(); } diff --git a/scripts/quest/20104.js b/scripts/quest/20104.js index 453d8eba51..d43d8a76b6 100644 --- a/scripts/quest/20104.js +++ b/scripts/quest/20104.js @@ -8,22 +8,22 @@ var canTryFirstJob = true; function end(mode, type, selection) { if (mode == 0) { - if (status == 0) { - qm.sendNext("This is an important decision to make."); - qm.dispose(); - return; - } - status--; + if (status == 0) { + qm.sendNext("This is an important decision to make."); + qm.dispose(); + return; + } + status--; } else { - status++; + status++; } if (status == 0) { - qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Night Walker?"); + qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Night Walker?"); } else if (status == 1) { if (canTryFirstJob) { canTryFirstJob = false; if (qm.getPlayer().getJob().getId() != 1400) { - if(!qm.canGetFirstJob(jobType)) { + if (!qm.canGetFirstJob(jobType)) { qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rNight Walker#k."); qm.dispose(); return; @@ -46,13 +46,13 @@ function end(mode, type, selection) { } qm.sendNext("I have just molded your body to make it perfect for a Night Walker. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k."); } else if (status == 2) { - qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); + qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); } else if (status == 3) { - qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); + qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); } else if (status == 4) { - qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Night Walker, you will lost a portion of your EXP when you run out of HP, okay?"); + qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Night Walker, you will lost a portion of your EXP when you run out of HP, okay?"); } else if (status == 5) { - qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); + qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); } else if (status == 6) { qm.dispose(); } diff --git a/scripts/quest/20105.js b/scripts/quest/20105.js index 1b761cd52d..cdb3019d37 100644 --- a/scripts/quest/20105.js +++ b/scripts/quest/20105.js @@ -8,22 +8,22 @@ var canTryFirstJob = true; function end(mode, type, selection) { if (mode == 0) { - if (status == 0) { - qm.sendNext("This is an important decision to make."); - qm.dispose(); - return; - } - status--; + if (status == 0) { + qm.sendNext("This is an important decision to make."); + qm.dispose(); + return; + } + status--; } else { - status++; + status++; } if (status == 0) { - qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Thunder Breaker?"); + qm.sendYesNo("Have you made your decision? The decision will be final, so think carefully before deciding what to do. Are you sure you want to become a Thunder Breaker?"); } else if (status == 1) { if (canTryFirstJob) { canTryFirstJob = false; if (qm.getPlayer().getJob().getId() != 1500) { - if(!qm.canGetFirstJob(jobType)) { + if (!qm.canGetFirstJob(jobType)) { qm.sendOk("Train a bit more until you reach #blevel 10, " + qm.getFirstJobStatRequirement(jobType) + "#k and I can show you the way of the #rThunder Breaker#k."); qm.dispose(); return; @@ -45,13 +45,13 @@ function end(mode, type, selection) { } qm.sendNext("I have just molded your body to make it perfect for a Thunder Breaker. If you wish to become more powerful, use Stat Window (S) to raise the appropriate stats. If you aren't sure what to raise, just click on #bAuto#k."); } else if (status == 2) { - qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); + qm.sendNextPrev("I have also expanded your inventory slot counts for your equipment and etc. inventory. Use those slots wisely and fill them up with items required for Knights to carry."); } else if (status == 3) { - qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); + qm.sendNextPrev("I have also given you a hint of #bSP#k, so open the #bSkill Menu#k to acquire new skills. Of course, you can't raise them at all once, and there are some skills out there where you won't be able to acquire them unless you master the basic skills first."); } else if (status == 4) { - qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Thunder Breaker, you will lost a portion of your EXP when you run out of HP, okay?"); + qm.sendNextPrev("Unlike your time as a Noblesse, once you become the Thunder Breaker, you will lost a portion of your EXP when you run out of HP, okay?"); } else if (status == 5) { - qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); + qm.sendNextPrev("Now... I want you to go out there and show the world how the Knights of Cygnus operate."); } else if (status == 6) { qm.dispose(); } diff --git a/scripts/quest/20200.js b/scripts/quest/20200.js index a1a0752699..9f633fc420 100644 --- a/scripts/quest/20200.js +++ b/scripts/quest/20200.js @@ -35,16 +35,17 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("#h0#? Wow, your level has sky-rocketed since the last time I saw you. You also look like you've taken care of a number of missions as well... You seem much more ready to move on now than the last time I saw you. What do you think? Are you interested in taking the #bKnighthood Exam#k? It's time for you to grow out of the Knight-in-Training and become a bonafide Knight, right?"); } else if (status == 1) { qm.startQuest(); qm.completeQuest(); - + qm.sendOk("If you wish to take the Knighthood Exam, please come to Ereve. Each Chief Knight will test your abilities, and if you meet their standards, then you will officially become a Knight."); } else if (status == 2) { qm.dispose(); diff --git a/scripts/quest/20201.js b/scripts/quest/20201.js index 1a8899550f..d98f18cad9 100644 --- a/scripts/quest/20201.js +++ b/scripts/quest/20201.js @@ -35,10 +35,11 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendYesNo("So you brought all of #t4032096#... Okay, I believe that your are now qualified to become an official knight. Do you want to become one?"); } else if (status == 1) { @@ -47,11 +48,11 @@ function end(mode, type, selection) { qm.dispose(); } else { if (qm.getPlayer().getJob().getId() != 1110) { - if (!qm.canHold(1142067)) { - qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); - qm.dispose(); - return; - } + if (!qm.canHold(1142067)) { + qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); + qm.dispose(); + return; + } qm.gainItem(4032096, -30); qm.gainItem(1142067, 1); const Job = Java.type('client.Job'); diff --git a/scripts/quest/20202.js b/scripts/quest/20202.js index 0a10d40e41..efe66e556e 100644 --- a/scripts/quest/20202.js +++ b/scripts/quest/20202.js @@ -35,10 +35,11 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendYesNo("You managed to bring all of #t4032097#!!! Okay, I believe that your are now qualified to become an official knight! Do you want to become one?"); } else if (status == 1) { @@ -47,11 +48,11 @@ function end(mode, type, selection) { qm.dispose(); } else { if (qm.getPlayer().getJob().getId() != 1210) { - if (!qm.canHold(1142067)) { - qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); - qm.dispose(); - return; - } + if (!qm.canHold(1142067)) { + qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); + qm.dispose(); + return; + } qm.gainItem(4032097, -30); qm.gainItem(1142067, 1); const Job = Java.type('client.Job'); diff --git a/scripts/quest/20203.js b/scripts/quest/20203.js index 228b7d2d21..b3420fcc51 100644 --- a/scripts/quest/20203.js +++ b/scripts/quest/20203.js @@ -35,10 +35,11 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendYesNo("#t4032098#... I checked them all. I can tell you are now ready to make the leap as an official knight. Do you want to become one?"); } else if (status == 1) { @@ -47,11 +48,11 @@ function end(mode, type, selection) { qm.dispose(); } else { if (qm.getPlayer().getJob().getId() != 1310) { - if (!qm.canHold(1142067)) { - qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); - qm.dispose(); - return; - } + if (!qm.canHold(1142067)) { + qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); + qm.dispose(); + return; + } qm.gainItem(4032098, -30); qm.gainItem(1142067, 1); const Job = Java.type('client.Job'); diff --git a/scripts/quest/20204.js b/scripts/quest/20204.js index 9813d9e9a4..e6776f6732 100644 --- a/scripts/quest/20204.js +++ b/scripts/quest/20204.js @@ -35,10 +35,11 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendYesNo("So you brought all the #t4032099#s with you. This is much b... way, I shouldn't congratulate you for doing something that you should be doing. At least, I can tell that you are now qualified to become an official knight. Do you want to become one right now?"); } else if (status == 1) { @@ -47,11 +48,11 @@ function end(mode, type, selection) { qm.dispose(); } else { if (qm.getPlayer().getJob().getId() != 1410) { - if (!qm.canHold(1142067)) { - qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); - qm.dispose(); - return; - } + if (!qm.canHold(1142067)) { + qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); + qm.dispose(); + return; + } qm.gainItem(4032099, -30); qm.gainItem(1142067, 1); const Job = Java.type('client.Job'); diff --git a/scripts/quest/20205.js b/scripts/quest/20205.js index 6920a99641..e1f6c0a02a 100644 --- a/scripts/quest/20205.js +++ b/scripts/quest/20205.js @@ -35,10 +35,11 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendYesNo("Oh, you brought all #t4032100#s! Ahaha, I knew you'd be good at it. Tell you what, I now commend that you're now ready to become an official knight. Do you want to become one right now?"); } else if (status == 1) { @@ -47,11 +48,11 @@ function end(mode, type, selection) { qm.dispose(); } else { if (qm.getPlayer().getJob().getId() != 1510) { - if (!qm.canHold(1142067)) { - qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); - qm.dispose(); - return; - } + if (!qm.canHold(1142067)) { + qm.sendNext("If you wish to receive the medal befitting the title, you may want to make some room in your equipment inventory."); + qm.dispose(); + return; + } qm.gainItem(4032100, -30); qm.gainItem(1142067, 1); const Job = Java.type('client.Job'); diff --git a/scripts/quest/20311.js b/scripts/quest/20311.js index 8a7b53ed22..e411b9c1c7 100644 --- a/scripts/quest/20311.js +++ b/scripts/quest/20311.js @@ -36,10 +36,11 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("The jewel you brought back from the Master of Disguise is Shinsoo's Teardrop. It is the crystalization of Shinsoo's powers. If the Black Mage gets his hands on this, then this spells doom for all of us."); } else if (status == 1) { diff --git a/scripts/quest/20312.js b/scripts/quest/20312.js index 1391a51685..1397cd57db 100644 --- a/scripts/quest/20312.js +++ b/scripts/quest/20312.js @@ -36,10 +36,11 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("The jewel you brought back from the Master of Disguise is Shinsoo's Teardrop. It is the crystalization of Shinsoo's powers. If the Black Mage gets his hands on this, then this spells doom for all of us."); } else if (status == 1) { diff --git a/scripts/quest/20313.js b/scripts/quest/20313.js index 156bcc527a..ff51a35219 100644 --- a/scripts/quest/20313.js +++ b/scripts/quest/20313.js @@ -36,10 +36,11 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("The jewel you brought back from the Master of Disguise is Shinsoo's Teardrop. It is the crystalization of Shinsoo's powers. If the Black Mage gets his hands on this, then this spells doom for all of us."); } else if (status == 1) { diff --git a/scripts/quest/20314.js b/scripts/quest/20314.js index c0f9b50d5b..1f436c4f95 100644 --- a/scripts/quest/20314.js +++ b/scripts/quest/20314.js @@ -36,10 +36,11 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("The jewel you brought back from the Master of Disguise is Shinsoo's Teardrop. It is the crystalization of Shinsoo's powers. If the Black Mage gets his hands on this, then this spells doom for all of us."); } else if (status == 1) { diff --git a/scripts/quest/20315.js b/scripts/quest/20315.js index ea3d066580..1358ea4fe6 100644 --- a/scripts/quest/20315.js +++ b/scripts/quest/20315.js @@ -36,10 +36,11 @@ function start(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendNext("The jewel you brought back from the Master of Disguise is Shinsoo's Teardrop. It is the crystalization of Shinsoo's powers. If the Black Mage gets his hands on this, then this spells doom for all of us."); } else if (status == 1) { diff --git a/scripts/quest/2034.js b/scripts/quest/2034.js index 2f12e04233..e3e756e0dc 100644 --- a/scripts/quest/2034.js +++ b/scripts/quest/2034.js @@ -3,33 +3,38 @@ var status = -1; var item; function end(mode, type, selection) { - if(mode == 0) { - qm.dispose(); - return; - } - status++; + if (mode == 0) { + qm.dispose(); + return; + } + status++; - if(status == 0) { - qm.sendNext("I knew it ... I knew you could get it done with, quickly! You did your job well last time, and here you are again, taking care of business!! Alright, since you have done it so well, I should reward you well. #b#p1051000##k is giving you a pair of shoes in hopes of helping you out on your future traveling."); - } + if (status == 0) { + qm.sendNext("I knew it ... I knew you could get it done with, quickly! You did your job well last time, and here you are again, taking care of business!! Alright, since you have done it so well, I should reward you well. #b#p1051000##k is giving you a pair of shoes in hopes of helping you out on your future traveling."); + } else if (status == 1) { + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) { + qm.sendOk("Please free a EQUIP inventory slot to receive the reward."); + qm.dispose(); + return; + } - else if(status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) { - qm.sendOk("Please free a EQUIP inventory slot to receive the reward."); - qm.dispose(); - return; - } + var stance = qm.getPlayer().getJobStyle(); - var stance = qm.getPlayer().getJobStyle(); - - const Job = Java.type('client.Job'); - if(stance == Job.WARRIOR) item = 1072003; - else if(stance == Job.MAGICIAN) item = 1072077; - else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) item = 1072081; - else if(stance == Job.THIEF) item = 1072035; - else if(stance == Job.BRAWLER || stance == Job.GUNSLINGER) item = 1072294; - else item = 1072018; + const Job = Java.type('client.Job'); + if (stance == Job.WARRIOR) { + item = 1072003; + } else if (stance == Job.MAGICIAN) { + item = 1072077; + } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) { + item = 1072081; + } else if (stance == Job.THIEF) { + item = 1072035; + } else if (stance == Job.BRAWLER || stance == Job.GUNSLINGER) { + item = 1072294; + } else { + item = 1072018; + } qm.gainItem(item, 1); qm.gainItem(4000007, -150); @@ -37,9 +42,7 @@ function end(mode, type, selection) { qm.completeQuest(); qm.sendOk("Alright, if you need work sometime down the road, feel free to come back and see me. This town sure can use a person like you for help~"); - } - - else if (status == 2) { - qm.dispose(); - } + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/20400.js b/scripts/quest/20400.js index e4d664ef40..287033a5d4 100644 --- a/scripts/quest/20400.js +++ b/scripts/quest/20400.js @@ -28,16 +28,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Not long ago, we received a distress signal of #bAdvanced Knight #p1103000##k, currently stationed somewhere in #rEl Nath#k. His Your job is to find him, first go talk to #b#p1101002##k and receive further instructions on your mission."); } else if (status == 1) { diff --git a/scripts/quest/20401.js b/scripts/quest/20401.js index 5834f0f2b1..0658fa120a 100644 --- a/scripts/quest/20401.js +++ b/scripts/quest/20401.js @@ -28,16 +28,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Last time #bAdvanced Knight #p1103000##k was seen, he was investigating the surging increase on #rzombies#k lately on the #rhigh-grounds of El Nath#k. You should get yourself there to see if you can find any clue of what could have happened."); } else if (status == 1) { diff --git a/scripts/quest/20405.js b/scripts/quest/20405.js index 6bb95a4f27..92ddc8c20e 100644 --- a/scripts/quest/20405.js +++ b/scripts/quest/20405.js @@ -28,16 +28,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("There's a note on the wall: 'The source of the curse still goes missing, but a strange device, that I suppose has been used by #rthem#k was found here.'", 3); } else if (status == 1) { diff --git a/scripts/quest/20406.js b/scripts/quest/20406.js index 3975ac055d..0abe6afa9f 100644 --- a/scripts/quest/20406.js +++ b/scripts/quest/20406.js @@ -28,16 +28,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Is that so? All there was was a saying that #p1103000# set out to continue his journey? That can't be, there were further instructions for him to detail the progress of his mission until then. #rReturn to the cave#k and report again if it really has nothing more there."); } else if (status == 1) { diff --git a/scripts/quest/20408.js b/scripts/quest/20408.js index b95efc5805..1f8ee09f08 100644 --- a/scripts/quest/20408.js +++ b/scripts/quest/20408.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { // missing script for questid found than if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("#h0#... First of all, thank you for your great work. If it weren't you, I... I wouldn't be safe from the curse of Black Witch. Thank you so much."); } else if (status == 1) { @@ -46,15 +47,15 @@ function start(mode, type, selection) { // missing script for questid found than qm.dispose(); return; } - + qm.gainItem(1142069, 1); if (qm.getJobId() % 10 == 1) { qm.changeJobById(qm.getJobId() + 1); } - + qm.forceStartQuest(); qm.forceCompleteQuest(); - + qm.sendOk("#h0#. For courageously battling the Black Mage, I will appoint you as the new Chief Knight of Cygnus Knights from this moment onwards. Please use your power and authority wisely to help protect the citizens of Maple World."); } else if (status == 4) { qm.dispose(); diff --git a/scripts/quest/20514.js b/scripts/quest/20514.js index 2584f4c9ac..7d0bc0fe5c 100644 --- a/scripts/quest/20514.js +++ b/scripts/quest/20514.js @@ -35,13 +35,13 @@ function raiseOpen() { for (var i = initLevel; i < chr.getLevel(); i++) { diffExp += ExpTable.getExpNeededForLevel(i); } - + if (diffExp > 0) { // thanks IxianMace for noticing Mimiana egg not following progress by EXP const ItemInformationProvider = Java.type('server.ItemInformationProvider'); var consItem = ItemInformationProvider.getInstance().getQuestConsumablesInfo(4220137); var exp = consItem.exp; var grade = consItem.grade; - + qm.setQuestProgress(20514, 0, Math.min(diffExp, exp * grade)); } } diff --git a/scripts/quest/20520.js b/scripts/quest/20520.js index 6f1c5e193d..c52fab3a74 100644 --- a/scripts/quest/20520.js +++ b/scripts/quest/20520.js @@ -27,24 +27,24 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { - qm.dispose(); - return; - }else{ - qm.dispose(); - return; - } - } - - if (status == 0) { - qm.sendNext("Wow, you have already reach Level 50, yet why are you still walking around like that? I mean, you've reached Level 50, but you are still walking around with your own feet. That's unusual behavior for a Knight like you."); - } else if (status == 1) { - qm.sendAcceptDecline("Well, I suppose it's up to you, but by doing that, you also risk marring the pride and honor of the Empress. This is why I am here to give you a helpful pointer. It's called #bMonster Riding#k. Of course you're interested in this, right?"); - } else if (status == 2) { - qm.forceStartQuest(); - qm.forceCompleteQuest(); - qm.sendOk("There's a special mount that only the Cygnus Knights can enjoy. If you are interested, visit #bEreve#k. I will give you more information on it."); - } else if (status == 3) { + if (type == 1 && mode == 0) { qm.dispose(); + return; + } else { + qm.dispose(); + return; } + } + + if (status == 0) { + qm.sendNext("Wow, you have already reach Level 50, yet why are you still walking around like that? I mean, you've reached Level 50, but you are still walking around with your own feet. That's unusual behavior for a Knight like you."); + } else if (status == 1) { + qm.sendAcceptDecline("Well, I suppose it's up to you, but by doing that, you also risk marring the pride and honor of the Empress. This is why I am here to give you a helpful pointer. It's called #bMonster Riding#k. Of course you're interested in this, right?"); + } else if (status == 2) { + qm.forceStartQuest(); + qm.forceCompleteQuest(); + qm.sendOk("There's a special mount that only the Cygnus Knights can enjoy. If you are interested, visit #bEreve#k. I will give you more information on it."); + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/20522.js b/scripts/quest/20522.js index 862c2bf98f..04f564cf58 100644 --- a/scripts/quest/20522.js +++ b/scripts/quest/20522.js @@ -26,55 +26,58 @@ var status = -1; function start(mode, type, selection) { if (mode == -1) { - qm.dispose(); - return; - } - - else if (status >= 2 && mode == 0) { + qm.dispose(); + return; + } else if (status >= 2 && mode == 0) { qm.dispose(); return; } - - if(mode == 1) status++; - else status--; - + + if (mode == 1) { + status++; + } else { + status--; + } + if (status == 0) { - qm.sendNext("The riding for Knights are a bit different from the rides available for regular folks. The takes place through a creature that is of the Mimi race that can be found on this island; they are called #bMimianas#k. Instead of riding monsters, the Knights ride Mimiana. There's one thing that you should never, ever forget."); + qm.sendNext("The riding for Knights are a bit different from the rides available for regular folks. The takes place through a creature that is of the Mimi race that can be found on this island; they are called #bMimianas#k. Instead of riding monsters, the Knights ride Mimiana. There's one thing that you should never, ever forget."); } else if (status == 1) { - qm.sendNextPrev("Dont't think of this as just a form of mount or transportation. These mounts can be your friend, your comrade, your colleague... all of the above. Even a friend close enough to entrust your life! That's why the Knights of Ereve actually grow their own mounts."); + qm.sendNextPrev("Dont't think of this as just a form of mount or transportation. These mounts can be your friend, your comrade, your colleague... all of the above. Even a friend close enough to entrust your life! That's why the Knights of Ereve actually grow their own mounts."); } else if (status == 2) { - qm.sendAcceptDecline("Now, here's a Mimiana egg. Are you ready to raise a Mimiana and have it as your traveling companion for the rest of its life?"); + qm.sendAcceptDecline("Now, here's a Mimiana egg. Are you ready to raise a Mimiana and have it as your traveling companion for the rest of its life?"); } else if (status == 3) { - if(!qm.haveItem(4220137) && !qm.canHold(4220137)) { + if (!qm.haveItem(4220137) && !qm.canHold(4220137)) { qm.sendOk("Make up a room on your ETC tab so I can give you the Mimiana egg."); qm.dispose(); return; } - + qm.forceStartQuest(); - if(!qm.haveItem(4220137)) qm.gainItem(4220137); - qm.sendOk("Mimiana's egg can be raised by #bsharing your daily experiences with it#k. Once Mimiana fully grows up, please come see me."); + if (!qm.haveItem(4220137)) { + qm.gainItem(4220137); + } + qm.sendOk("Mimiana's egg can be raised by #bsharing your daily experiences with it#k. Once Mimiana fully grows up, please come see me."); } else if (status == 4) { - qm.dispose(); + qm.dispose(); } } function end(mode, type, selection) { if (mode != 1) { - qm.dispose(); - return; + qm.dispose(); + return; } - + status++; if (status == 0) { - qm.sendNext("Hey there! How's Mimiana's egg?"); + qm.sendNext("Hey there! How's Mimiana's egg?"); } else if (status == 1) { //pretty sure there would need to have an egg EXP condition... Whatever. - if(!qm.haveItem(4220137)) { + if (!qm.haveItem(4220137)) { qm.sendOk("I see, you lost your egg... You need to be more careful when raising a baby Mimiana!"); return; } - - qm.forceCompleteQuest(); + + qm.forceCompleteQuest(); qm.gainItem(4220137, -1); qm.gainExp(37600); qm.sendOk("Oh, were you able to awaken Mimiana Egg? That's amazing... Most knights can't even dream of awakening it in such a short amount of time."); diff --git a/scripts/quest/20526.js b/scripts/quest/20526.js index 440581b89a..c336e4e416 100644 --- a/scripts/quest/20526.js +++ b/scripts/quest/20526.js @@ -26,61 +26,64 @@ var status = -1; function start(mode, type, selection) { if (mode == -1) { - qm.dispose(); - return; - } - - else if (status >= 2 && mode == 0) { + qm.dispose(); + return; + } else if (status >= 2 && mode == 0) { qm.dispose(); return; } - - if(mode == 1) status++; - else status--; - + + if (mode == 1) { + status++; + } else { + status--; + } + if (status == 0) { - qm.sendNext("You lost your Mimiana?! Geez, you have to be zealous for them, as they are a gift of the Empress to us! You have to be teached once again: The riding for Knights are a bit different from the rides available for regular folks. The takes place through a creature that is of the Mimi race that can be found on this island; they are called #bMimianas#k. Instead of riding monsters, the Knights ride Mimiana. There's one thing that you should never, ever forget."); + qm.sendNext("You lost your Mimiana?! Geez, you have to be zealous for them, as they are a gift of the Empress to us! You have to be teached once again: The riding for Knights are a bit different from the rides available for regular folks. The takes place through a creature that is of the Mimi race that can be found on this island; they are called #bMimianas#k. Instead of riding monsters, the Knights ride Mimiana. There's one thing that you should never, ever forget."); } else if (status == 1) { - qm.sendNextPrev("Dont't think of this as just a form of mount or transportation. These mounts can be your friend, your comrade, your colleague... all of the above. Even a friend close enough to entrust your life! That's why the Knights of Ereve actually grow their own mounts."); + qm.sendNextPrev("Dont't think of this as just a form of mount or transportation. These mounts can be your friend, your comrade, your colleague... all of the above. Even a friend close enough to entrust your life! That's why the Knights of Ereve actually grow their own mounts."); } else if (status == 2) { - qm.sendAcceptDecline("Now, here's a Mimiana egg. Are you ready to raise a Mimiana and have it as your traveling companion for the rest of its life?"); + qm.sendAcceptDecline("Now, here's a Mimiana egg. Are you ready to raise a Mimiana and have it as your traveling companion for the rest of its life?"); } else if (status == 3) { - if(!qm.haveItem(4220137) && !qm.canHold(4220137)) { + if (!qm.haveItem(4220137) && !qm.canHold(4220137)) { qm.sendOk("Make up a room on your ETC tab so I can give you the Mimiana egg."); qm.dispose(); return; } - + qm.forceStartQuest(); - - if(!qm.haveItem(4220137)) qm.gainItem(4220137); - qm.sendOk("Mimiana's egg can be raised by #bsharing your daily experiences with it#k. Once Mimiana fully grows up, please come see me. One more thing, I talked with #p2060005# beforehand and retrieved the #b#t4032117##k for you. The price to charge remains the same: #r10,000,000 mesos#k."); + + if (!qm.haveItem(4220137)) { + qm.gainItem(4220137); + } + qm.sendOk("Mimiana's egg can be raised by #bsharing your daily experiences with it#k. Once Mimiana fully grows up, please come see me. One more thing, I talked with #p2060005# beforehand and retrieved the #b#t4032117##k for you. The price to charge remains the same: #r10,000,000 mesos#k."); } else if (status == 4) { - qm.dispose(); + qm.dispose(); } } function end(mode, type, selection) { if (mode != 1) { - qm.dispose(); - return; + qm.dispose(); + return; } - + status++; if (status == 0) { - qm.sendNext("Hey there! How's Mimiana's egg?"); + qm.sendNext("Hey there! How's Mimiana's egg?"); } else if (status == 1) { //pretty sure there would need to have an egg EXP condition... Whatever. - if(!qm.haveItem(4220137)) { + if (!qm.haveItem(4220137)) { qm.sendOk("I see, you lost your egg... You need to be more careful when raising a baby Mimiana!"); qm.dispose(); return; } - if(!qm.canHold(1902005)) { + if (!qm.canHold(1902005)) { qm.sendOk("Please, make a space on your EQUIP tab for your Mimiana!"); qm.dispose(); return; } - + qm.forceCompleteQuest(); qm.gainItem(1902005, 1); qm.gainItem(4220137, -1); diff --git a/scripts/quest/20527.js b/scripts/quest/20527.js index 07cb063c4a..cdc2509895 100644 --- a/scripts/quest/20527.js +++ b/scripts/quest/20527.js @@ -24,20 +24,21 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { var mount = qm.getPlayer().getMount(); - - if(mount != null && mount.getLevel() >= 3) { + + if (mount != null && mount.getLevel() >= 3) { qm.forceCompleteQuest(); qm.sendNext("Alright, I'll get you started in how to train Mimio, the next step for Mimianas. When you're ready, talk to me again."); } else { diff --git a/scripts/quest/20600.js b/scripts/quest/20600.js index cee458fe5e..15b7b1d775 100644 --- a/scripts/quest/20600.js +++ b/scripts/quest/20600.js @@ -8,12 +8,12 @@ function start(mode, type, selection) { status++; if (status == 0) { - qm.sendAcceptDecline("#h0#. Have you been slacking off on training since reaching Level 100? We all know how powerful you are, but the training is not complete. Take a look at these Knight Commanders. They train day and night, preparing themselves for the possible encounter with the Black Mage."); + qm.sendAcceptDecline("#h0#. Have you been slacking off on training since reaching Level 100? We all know how powerful you are, but the training is not complete. Take a look at these Knight Commanders. They train day and night, preparing themselves for the possible encounter with the Black Mage."); } else if (status == 1) { - if (mode == 1) { - qm.forceStartQuest(); - } - qm.dispose(); + if (mode == 1) { + qm.forceStartQuest(); + } + qm.dispose(); } } diff --git a/scripts/quest/20610.js b/scripts/quest/20610.js index 3f15cbab65..fc3ca5652b 100644 --- a/scripts/quest/20610.js +++ b/scripts/quest/20610.js @@ -8,14 +8,14 @@ function start(mode, type, selection) { status++; if (status == 0) { - qm.sendAcceptDecline("Have you been mastering your skills? I am sure you've mastered all your skills, which means... it's time for you to learn a #bnew skill#k, right?"); + qm.sendAcceptDecline("Have you been mastering your skills? I am sure you've mastered all your skills, which means... it's time for you to learn a #bnew skill#k, right?"); } else if (status == 1) { - if (mode == 0) { - qm.sendOk("Well, what you're doing right now doesn't make you look like someone that's humble. You just look complacent by doing that, and that's never a good thing."); - } else { - qm.forceStartQuest(); + if (mode == 0) { + qm.sendOk("Well, what you're doing right now doesn't make you look like someone that's humble. You just look complacent by doing that, and that's never a good thing."); + } else { + qm.forceStartQuest(); qm.dispose(); - } + } } else if (status == 2) { qm.dispose(); } diff --git a/scripts/quest/20700.js b/scripts/quest/20700.js index cc8c4a9a42..ad64accbcd 100644 --- a/scripts/quest/20700.js +++ b/scripts/quest/20700.js @@ -6,11 +6,11 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { status++; } else { diff --git a/scripts/quest/20710.js b/scripts/quest/20710.js index 059c4b8279..4516c204be 100644 --- a/scripts/quest/20710.js +++ b/scripts/quest/20710.js @@ -7,29 +7,25 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1){ - qm.dispose(); - return; - } - else if(mode == 0 && status == 0){ - qm.sendOk("What? Are you declining the mission? Fine, do it like that. I'll just report it straight to #p1101002#."); - qm.dispose(); - return; - } - else if(mode == 0){ - status--; - } - else{ - status++; - } +function start(mode, type, selection) { + if (mode == -1) { + qm.dispose(); + return; + } else if (mode == 0 && status == 0) { + qm.sendOk("What? Are you declining the mission? Fine, do it like that. I'll just report it straight to #p1101002#."); + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendAcceptDecline("You don't really instill confidence in me, but since you're a Cygnus Knight and all... and since no one else can go on a search right now... Okay, let me explain to you what this mission is about."); - } - else if(status == 1){ - qm.forceStartQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendAcceptDecline("You don't really instill confidence in me, but since you're a Cygnus Knight and all... and since no one else can go on a search right now... Okay, let me explain to you what this mission is about."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/20720.js b/scripts/quest/20720.js index 32de2f42a4..57aabde88e 100644 --- a/scripts/quest/20720.js +++ b/scripts/quest/20720.js @@ -5,23 +5,22 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function start(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendAcceptDecline("How's the leveling up so far? By this time, you might be able to participate in the Party Quest at #m103000000#. Leveling up is important, yes, but we need you now to take on a mission as a Cygnus Knight. We just received a new information that may help us."); - } - else if(status == 1){ - qm.forceStartQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendAcceptDecline("How's the leveling up so far? By this time, you might be able to participate in the Party Quest at #m103000000#. Leveling up is important, yes, but we need you now to take on a mission as a Cygnus Knight. We just received a new information that may help us."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.dispose(); + } } -function end(mode, type, selection){} \ No newline at end of file +function end(mode, type, selection) {} \ No newline at end of file diff --git a/scripts/quest/21000.js b/scripts/quest/21000.js index 7977b5c09d..3881da5e06 100644 --- a/scripts/quest/21000.js +++ b/scripts/quest/21000.js @@ -30,32 +30,32 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendNext("No, Aran... We can't leave a kid behind. I know it's a lot to ask, but please reconsider. Please!"); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Oh, no! I think there's still a child in the forest! Aran, I'm very sorry, but could you rescue the child? I know you're injured, but I don't have anyone else to ask!"); - else if (status == 1) { - qm.forceStartQuest(); - qm.sendNext("#bThe child is probably lost deep inside the forest!#k We have to escape before the Black Mage finds us. You must rush into the forest and bring the child back with you!"); - } else if (status == 2) { - qm.sendNextPrev("Don't panic, Aran. If you wish to check the status of the \r\nquest, press #bQ#k and view the Quest window."); - } else if (status == 3) { - qm.sendNextPrev("Please, Aran! I'm begging you. I can't bear to lose another person to the Black Mage!"); - } else if (status == 4) { - qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1"); - qm.dispose(); - } - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendNext("No, Aran... We can't leave a kid behind. I know it's a lot to ask, but please reconsider. Please!"); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Oh, no! I think there's still a child in the forest! Aran, I'm very sorry, but could you rescue the child? I know you're injured, but I don't have anyone else to ask!"); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendNext("#bThe child is probably lost deep inside the forest!#k We have to escape before the Black Mage finds us. You must rush into the forest and bring the child back with you!"); + } else if (status == 2) { + qm.sendNextPrev("Don't panic, Aran. If you wish to check the status of the \r\nquest, press #bQ#k and view the Quest window."); + } else if (status == 3) { + qm.sendNextPrev("Please, Aran! I'm begging you. I can't bear to lose another person to the Black Mage!"); + } else if (status == 4) { + qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1"); + qm.dispose(); + } +} function end(mode, type, selection) { - qm.forceCompleteQuest(); - qm.dispose(); + qm.forceCompleteQuest(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/21001.js b/scripts/quest/21001.js index 42b90b1dc5..98fdd3ff6b 100644 --- a/scripts/quest/21001.js +++ b/scripts/quest/21001.js @@ -27,59 +27,59 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 15 && mode == 0) { - qm.sendNext("*Sob* Aran has declined my request!"); - qm.dispose(); - return; - }else{ - qm.dispose(); - return; - } - } - if (status == 0) { - qm.sendAcceptDecline("*Sniff sniff* I was so scared... Please take me to Athena Pierce."); - } else if (status == 1) { - qm.gainItem(4001271, 1); - qm.forceStartQuest(); - qm.warp(914000300, 0); - qm.dispose(); - } + if (mode != 1) { + if (type == 15 && mode == 0) { + qm.sendNext("*Sob* Aran has declined my request!"); + qm.dispose(); + return; + } else { + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("*Sniff sniff* I was so scared... Please take me to Athena Pierce."); + } else if (status == 1) { + qm.gainItem(4001271, 1); + qm.forceStartQuest(); + qm.warp(914000300, 0); + qm.dispose(); + } } function end(mode, type, selection) { - status++; - if (mode != 1) { - if (type == 1 && mode == 0) { - qm.sendNext("What about the child? Please give me the child!"); - } - - qm.dispose(); - return; + status++; + if (mode != 1) { + if (type == 1 && mode == 0) { + qm.sendNext("What about the child? Please give me the child!"); } - - if (status == 0) - qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!"); - else if (status == 1) { - qm.sendNext("Oh, what a relief. I'm so glad...", 9); - } else if (status == 2) - qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3); - else if (status == 3) - qm.sendNextPrev("We don't have any time to waste. The Black Mage's forces are getting closer and closer! We're doomed if we don't leave right right this moment!", 9); - else if (status == 4) - qm.sendNextPrev("Leave, now!", 3); - else if (status == 5) - qm.sendNextPrev("Aran, please! I know you want to stay and fight the Black Mage, but it's too late! Leave it to the others and come to Victoria Island with us!", 9); - else if (status == 6) - qm.sendNextPrev("No, I can't!", 3); - else if (status == 7) { - qm.sendNextPrev("Athena Pierce, why don't you leave for Victoria Island first? I promise I'll come for you later. I'll be alright. I must fight the Black Mage with the other heroes!", 3); - } else if (status == 8) { - qm.gainItem(4001271, -1); - qm.removeEquipFromSlot(-11); - qm.forceCompleteQuest(); - qm.warp(914090010, 0); // Initialize Aran Tutorial Scenes - qm.dispose(); - } + qm.dispose(); + return; + } + + if (status == 0) { + qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!"); + } else if (status == 1) { + qm.sendNext("Oh, what a relief. I'm so glad...", 9); + } else if (status == 2) { + qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3); + } else if (status == 3) { + qm.sendNextPrev("We don't have any time to waste. The Black Mage's forces are getting closer and closer! We're doomed if we don't leave right right this moment!", 9); + } else if (status == 4) { + qm.sendNextPrev("Leave, now!", 3); + } else if (status == 5) { + qm.sendNextPrev("Aran, please! I know you want to stay and fight the Black Mage, but it's too late! Leave it to the others and come to Victoria Island with us!", 9); + } else if (status == 6) { + qm.sendNextPrev("No, I can't!", 3); + } else if (status == 7) { + qm.sendNextPrev("Athena Pierce, why don't you leave for Victoria Island first? I promise I'll come for you later. I'll be alright. I must fight the Black Mage with the other heroes!", 3); + } else if (status == 8) { + qm.gainItem(4001271, -1); + qm.removeEquipFromSlot(-11); + qm.forceCompleteQuest(); + + qm.warp(914090010, 0); // Initialize Aran Tutorial Scenes + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/21010.js b/scripts/quest/21010.js index 3367c3a85b..58ce932f4e 100644 --- a/scripts/quest/21010.js +++ b/scripts/quest/21010.js @@ -26,47 +26,47 @@ var status = -1; function start(mode, type, selection) { - status++; + status++; if (mode != 1) { - if(type == 15 && mode == 0) { - qm.sendNext("Oh, no need to decline my offer. It's no big deal. It's just a potion. Well, let me know if you change your mind."); - qm.dispose(); - return; - } - //status -= 2; - } + if (type == 15 && mode == 0) { + qm.sendNext("Oh, no need to decline my offer. It's no big deal. It's just a potion. Well, let me know if you change your mind."); + qm.dispose(); + return; + } + //status -= 2; + } if (status == 0) { - qm.sendNext("Hm, what's a human doing on this island? Wait, it's #p1201000#. What are you doing here, #p1201000#? And who's that beside you? Is it someone you know, #p1201000#? What? The hero, you say?"); + qm.sendNext("Hm, what's a human doing on this island? Wait, it's #p1201000#. What are you doing here, #p1201000#? And who's that beside you? Is it someone you know, #p1201000#? What? The hero, you say?"); } else if (status == 1) { - qm.sendNextPrev(" #i4001170#");//gms like + qm.sendNextPrev(" #i4001170#");//gms like } else if (status == 2) { - qm.sendNextPrev("Ah, this must be the hero you and your clan have been waiting for. Am I right, #p1201000#? Ah, I knew you weren't just accompanying an average passerby..."); - } else if (status == 3) { - qm.sendAcceptDecline("Oh, but it seems our hero has become very weak since the Black Mage's curse. It's only makes sense, considering that the hero has been asleep for hundreds of years. #bHere, I'll give you a HP Recovery Potion.#k");//nexon probably forgot to remove the '.' before '#k', lol + qm.sendNextPrev("Ah, this must be the hero you and your clan have been waiting for. Am I right, #p1201000#? Ah, I knew you weren't just accompanying an average passerby..."); + } else if (status == 3) { + qm.sendAcceptDecline("Oh, but it seems our hero has become very weak since the Black Mage's curse. It's only makes sense, considering that the hero has been asleep for hundreds of years. #bHere, I'll give you a HP Recovery Potion.#k");//nexon probably forgot to remove the '.' before '#k', lol } else if (status == 4) { - if (qm.getPlayer().getHp() >= 50) { - qm.getPlayer().updateHp(25); - } - if (!qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) { - qm.gainItem(2000022, 1); - qm.forceStartQuest(); - } - qm.sendNext("Drink it first. Then we'll talk.", 9); + if (qm.getPlayer().getHp() >= 50) { + qm.getPlayer().updateHp(25); + } + if (!qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) { + qm.gainItem(2000022, 1); + qm.forceStartQuest(); + } + qm.sendNext("Drink it first. Then we'll talk.", 9); } else if (status == 5) { - qm.sendNextPrev("#b(How do I drink the potion? I don't remember..)", 3); - } else if (status == 6) { - qm.guideHint(14); + qm.sendNextPrev("#b(How do I drink the potion? I don't remember..)", 3); + } else if (status == 6) { + qm.guideHint(14); qm.dispose(); - } + } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) + if (type == 1 && mode == 0) { qm.dispose(); - else{ + } else { qm.dispose(); return; } @@ -77,23 +77,23 @@ function end(mode, type, selection) { qm.dispose(); } else { qm.sendNext("We've been digging and digging inside the Ice Cave in the hope of finding a hero, but I never thought I'd actually see the day... The prophecy was true! You were right, #p1201000#! Now that one of the legendary heroes has returned, we have no reason to fear the Black Mage!"); - } + } } else if (status == 1) { qm.sendOk("Oh, I've kept you too long. I'm sorry, I got a little carried away. I'm sure the other Penguins feel the same way. I know you're busy, but could you #bstop and talk to the other Penguins#k on your way to town? They would be so honored.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i2000022# 5 #t2000022#\r\n#i2000023# 5 #t2000023#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 16 exp"); } else if (status == 2) { - if(qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) { + if (qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) { qm.gainExp(16); qm.gainItem(2000022, 3); qm.gainItem(2000023, 3); qm.forceCompleteQuest(); } - + qm.sendNext("Oh, you've leveled up! You may have even received some skill points. In Maple World, you can acquire 3 skill points every time you level up. Press the #bK key #kto view the Skill window.", 9); } else if (status == 3) { - qm.sendNextPrev("#b(Everyone's been so nice to me, but I just can't remember anything. Am I really a hero? I should check my skills and see. But how do I check them?)", 3); + qm.sendNextPrev("#b(Everyone's been so nice to me, but I just can't remember anything. Am I really a hero? I should check my skills and see. But how do I check them?)", 3); } else if (status == 4) { - qm.guideHint(15); - qm.dispose(); + qm.guideHint(15); + qm.dispose(); } } diff --git a/scripts/quest/21011.js b/scripts/quest/21011.js index 736aea9078..8fe9e2b0b4 100644 --- a/scripts/quest/21011.js +++ b/scripts/quest/21011.js @@ -27,65 +27,66 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { - qm.sendOk("Ah, okay. I understand. Heroes are very busy. *Sniff...* If you ever get any free time, though..."); - qm.dispose(); - return; - }else{ - qm.dispose(); - return; - } + if (type == 1 && mode == 0) { + qm.sendOk("Ah, okay. I understand. Heroes are very busy. *Sniff...* If you ever get any free time, though..."); + qm.dispose(); + return; + } else { + qm.dispose(); + return; + } } - if (status == 0) - qm.sendNext("Wait, are you... No way.... Are you the hero that #p1201000# has been talking about all this time?! #p1201000#! Don't just nod... Tell me! Is this the hero you've been waiting for?! ") - else if (status == 1) { - qm.sendNextPrev(" #i4001171#"); + if (status == 0) { + qm.sendNext("Wait, are you... No way.... Are you the hero that #p1201000# has been talking about all this time?! #p1201000#! Don't just nod... Tell me! Is this the hero you've been waiting for?! ") + } else if (status == 1) { + qm.sendNextPrev(" #i4001171#"); } else if (status == 2) { - qm.sendNextPrev("I'm sorry. I'm just so overcome with emotions... *Sniff sniff* My goodness, I'm starting to tear up. You must be so happy, #p1201000#."); + qm.sendNextPrev("I'm sorry. I'm just so overcome with emotions... *Sniff sniff* My goodness, I'm starting to tear up. You must be so happy, #p1201000#."); } else if (status == 3) { - qm.sendAcceptDecline("Wait a minute... You're not carrying any weapons. From what I've heard, each of the heroes had a special weapon. Oh, you must have lost it during the battle against the Black Mage."); + qm.sendAcceptDecline("Wait a minute... You're not carrying any weapons. From what I've heard, each of the heroes had a special weapon. Oh, you must have lost it during the battle against the Black Mage."); } else if (status == 4) { - qm.forceStartQuest(); - qm.sendOk("My brother #bPuir #kis just down the street, and he's been dying to meet you! I know you're busy, but could you please stop by and say hello to Puir? Please..."); + qm.forceStartQuest(); + qm.sendOk("My brother #bPuir #kis just down the street, and he's been dying to meet you! I know you're busy, but could you please stop by and say hello to Puir? Please..."); } else if (status == 5) { - qm.dispose(); + qm.dispose(); } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { - qm.sendNext("*sniff sniff* Isn't this sword good enough for you, just for now? I'd be so honored..."); - qm.dispose(); - }else{ + if (type == 1 && mode == 0) { + qm.sendNext("*sniff sniff* Isn't this sword good enough for you, just for now? I'd be so honored..."); + qm.dispose(); + } else { qm.dispose(); return; - } - } - if (status == 0) - qm.sendNext("Wait, are you... No way... Are you the hero that Lilin has been talking about all this time?! Lilin! Don't just nod... Tell me! Is this the hero you've been waiting for?!"); - else if (status == 1) { - qm.sendNextPrev("#i4001171#"); - } else if (status == 2) { - qm.sendNextPrev("I'm sorry. I'm just so overcome with emotions... *Sniff sniff* My goodness, I'm starting to tear up. You must be so happy, Lilin."); - } else if (status == 3) { - qm.sendNextPrev("Wait a minute... You're not carrying any weapons. From what I've hear, each of the heroes had a special weapon. Oh, you must have lost it during the battle against the Black Mage."); - } else if (status == 4) { - qm.sendYesNo("This isn't good enough to replace your weapon, but #bcarry this sword with you for now#k. It's my gift to you. A hero can't be walking around empty-handed.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v1302000# 1 #t1302000#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 35 exp"); + } + } + if (status == 0) { + qm.sendNext("Wait, are you... No way... Are you the hero that Lilin has been talking about all this time?! Lilin! Don't just nod... Tell me! Is this the hero you've been waiting for?!"); + } else if (status == 1) { + qm.sendNextPrev("#i4001171#"); + } else if (status == 2) { + qm.sendNextPrev("I'm sorry. I'm just so overcome with emotions... *Sniff sniff* My goodness, I'm starting to tear up. You must be so happy, Lilin."); + } else if (status == 3) { + qm.sendNextPrev("Wait a minute... You're not carrying any weapons. From what I've hear, each of the heroes had a special weapon. Oh, you must have lost it during the battle against the Black Mage."); + } else if (status == 4) { + qm.sendYesNo("This isn't good enough to replace your weapon, but #bcarry this sword with you for now#k. It's my gift to you. A hero can't be walking around empty-handed.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v1302000# 1 #t1302000#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 35 exp"); } else if (status == 5) { - if(qm.isQuestCompleted(21011)) - qm.dropMessage(1,"Unknown Error"); - else if(qm.canHold(1302000)){ - qm.gainItem(1302000, 1); - qm.gainExp(35); - qm.forceCompleteQuest(); - qm.sendNext("#b(Your skills are nowhere close to being hero-like... But a sword? Have you ever even held a sword in your lifetime? You can't remember... How do you even equip it?)", 3); - }else - qm.dropMessage(1,"Your inventory is full"); + if (qm.isQuestCompleted(21011)) { + qm.dropMessage(1, "Unknown Error"); + } else if (qm.canHold(1302000)) { + qm.gainItem(1302000, 1); + qm.gainExp(35); + qm.forceCompleteQuest(); + qm.sendNext("#b(Your skills are nowhere close to being hero-like... But a sword? Have you ever even held a sword in your lifetime? You can't remember... How do you even equip it?)", 3); + } else { + qm.dropMessage(1, "Your inventory is full"); + } } else if (status == 6) { - qm.guideHint(16); - qm.dispose(); + qm.guideHint(16); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21012.js b/scripts/quest/21012.js index 6b1e391063..0095c54263 100644 --- a/scripts/quest/21012.js +++ b/scripts/quest/21012.js @@ -27,58 +27,58 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 2 && mode == 0) { - qm.sendOk("Hm... You don't think that would help? Think about it. It could help, you know..."); - qm.dispose(); - return; - }else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendNext("Welcome, hero! What's that? You want to know how I knew who you were? That's easy. I eavesdropped on some people talking loudly next to me. I'm sure the rumor has spread through the entire island already. Everyone knows that you've returned!") - else if (status == 1) { - qm.sendNextPrev("Hm, how about trying out that sword? Wouldn't that bring back some memories? How about #bfighthing some monsters#k?"); + if (type == 2 && mode == 0) { + qm.sendOk("Hm... You don't think that would help? Think about it. It could help, you know..."); + qm.dispose(); + return; + } else { + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendNext("Welcome, hero! What's that? You want to know how I knew who you were? That's easy. I eavesdropped on some people talking loudly next to me. I'm sure the rumor has spread through the entire island already. Everyone knows that you've returned!") + } else if (status == 1) { + qm.sendNextPrev("Hm, how about trying out that sword? Wouldn't that bring back some memories? How about #bfighthing some monsters#k?"); } else if (status == 2) { - qm.sendAcceptDecline("Ah, I'm so sorry. I was so happy to have finally met you that I guess I got a little carried away. Whew, deep breaths. Deep breaths. Okay, I feel better now. But um...can I ask you a favor? Please?"); + qm.sendAcceptDecline("Ah, I'm so sorry. I was so happy to have finally met you that I guess I got a little carried away. Whew, deep breaths. Deep breaths. Okay, I feel better now. But um...can I ask you a favor? Please?"); } else if (status == 3) { - qm.forceStartQuest(); - qm.sendNext("It just so happens that there are a lot of #rTutorial Murus #knear here. How about defeating just #r3 #kof them? It could help you remember a thing or two."); - } else if (status == 4) { - qm.sendNextPrev("Ah, you've also forgotten how to use your skills? #bPlace skills in the quick slots for easy access. #kYou can also place consumable items in the slots, so use the slots to your advantage.") ; - } else if (status == 5) { - qm.guideHint(17); - qm.dispose(); + qm.forceStartQuest(); + qm.sendNext("It just so happens that there are a lot of #rTutorial Murus #knear here. How about defeating just #r3 #kof them? It could help you remember a thing or two."); + } else if (status == 4) { + qm.sendNextPrev("Ah, you've also forgotten how to use your skills? #bPlace skills in the quick slots for easy access. #kYou can also place consumable items in the slots, so use the slots to your advantage."); + } else if (status == 5) { + qm.guideHint(17); + qm.dispose(); } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { + if (type == 1 && mode == 0) { qm.sendNext("What? You don't want the potion?"); qm.dispose(); return; } else { qm.dispose(); return; - } + } } - if (status == 0) - qm.sendOk("Hm... Your expression tells me that the exercise didn't jog any memories. But don't you worry. They'll come back, eventually. Here, drink this potion and power up!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2000022# 10 #t2000022#\r\n#v2000023# 10 #t2000023#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 57 exp"); - else if (status == 1) { - if(qm.isQuestCompleted(21012)) - qm.dropMessage(1,"Unknown Error"); - else if(qm.canHold(2000022) && qm.canHold(2000023)){ + if (status == 0) { + qm.sendOk("Hm... Your expression tells me that the exercise didn't jog any memories. But don't you worry. They'll come back, eventually. Here, drink this potion and power up!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2000022# 10 #t2000022#\r\n#v2000023# 10 #t2000023#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 57 exp"); + } else if (status == 1) { + if (qm.isQuestCompleted(21012)) { + qm.dropMessage(1, "Unknown Error"); + } else if (qm.canHold(2000022) && qm.canHold(2000023)) { qm.forceCompleteQuest(); qm.gainExp(57); qm.gainItem(2000022, 10); qm.gainItem(2000023, 10); - qm.sendOk("#b(Even if you're really the hero everyone says you are... What good are you without any skills?)", 3); - } else { - qm.dropMessage(1,"Your inventory is full"); - qm.dispose(); + qm.sendOk("#b(Even if you're really the hero everyone says you are... What good are you without any skills?)", 3); + } else { + qm.dropMessage(1, "Your inventory is full"); + qm.dispose(); } } else if (status == 2) { qm.dispose(); diff --git a/scripts/quest/21013.js b/scripts/quest/21013.js index ae758bccc5..cede344470 100644 --- a/scripts/quest/21013.js +++ b/scripts/quest/21013.js @@ -27,57 +27,57 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { - qm.sendNext("I'm sure it will come in handy during your journey. Please, don't decline my offer."); - qm.dispose(); - return; - }else{ - qm.dispose(); - return; - } + if (type == 1 && mode == 0) { + qm.sendNext("I'm sure it will come in handy during your journey. Please, don't decline my offer."); + qm.dispose(); + return; + } else { + qm.dispose(); + return; + } } - if (status == 0) - qm.sendSimple("Ah, you're the hero. I've been dying to meet you. \r\n#b#L0#(Seems a bit shy...)#l"); - else if (status == 1) { - qm.sendAcceptDecline("I have something I've been wanting to give you as a gift for a very long time... I know you're busy, especially since you're on your way to town, but will you accept my gift?"); - } else if (status == 2) { - qm.forceStartQuest(); - qm.sendNext("The parts of the gift have been packed inside a box nearby. Sorry to trouble you, but could you break the box and bring me a #b#t4032309##k and some #b#t4032310##k? I'll assemble them for you right away.", 9); - } else if (status == 3) { - qm.guideHint(18); - qm.dispose(); + if (status == 0) { + qm.sendSimple("Ah, you're the hero. I've been dying to meet you. \r\n#b#L0#(Seems a bit shy...)#l"); + } else if (status == 1) { + qm.sendAcceptDecline("I have something I've been wanting to give you as a gift for a very long time... I know you're busy, especially since you're on your way to town, but will you accept my gift?"); + } else if (status == 2) { + qm.forceStartQuest(); + qm.sendNext("The parts of the gift have been packed inside a box nearby. Sorry to trouble you, but could you break the box and bring me a #b#t4032309##k and some #b#t4032310##k? I'll assemble them for you right away.", 9); + } else if (status == 3) { + qm.guideHint(18); + qm.dispose(); } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) { - qm.sendNext("What? You don't want the potion?"); + if (type == 1 && mode == 0) { + qm.sendNext("What? You don't want the potion?"); qm.dispose(); return; - }else{ + } else { qm.dispose(); return; } } - if (status == 0) - qm.sendYesNo("Ah, you've brought all the components. Give me a few seconds to assemble them.. Like this.. And like that.. and...\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v3010062# 1 #t3010062#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 95 exp"); - else if (status == 1) { - if(qm.isQuestCompleted(21013)) { - qm.dropMessage(1,"Unknown Error"); - } - qm.forceCompleteQuest(); - qm.gainExp(95); - qm.gainItem(4032309, -1); - qm.gainItem(4032310, -1); - qm.gainItem(3010062, 1); - qm.sendNext("Here, a fully-assembled chair, just for you! I've always wanted to give you a chair as a gift, because I know a hero can occasionally use some good rest. Tee hee.", 9); - } else if (status == 2) { - qm.sendNext("A hero is not invincible. A hero is human. I'm sure you will face challenges and even falter at times. But you are a hero because you have what it takes to overcome any obstacles you may encounter.", 9); - } else if (status == 3) { - qm.guideHint(19); - qm.dispose(); + if (status == 0) { + qm.sendYesNo("Ah, you've brought all the components. Give me a few seconds to assemble them.. Like this.. And like that.. and...\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v3010062# 1 #t3010062#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 95 exp"); + } else if (status == 1) { + if (qm.isQuestCompleted(21013)) { + qm.dropMessage(1, "Unknown Error"); + } + qm.forceCompleteQuest(); + qm.gainExp(95); + qm.gainItem(4032309, -1); + qm.gainItem(4032310, -1); + qm.gainItem(3010062, 1); + qm.sendNext("Here, a fully-assembled chair, just for you! I've always wanted to give you a chair as a gift, because I know a hero can occasionally use some good rest. Tee hee.", 9); + } else if (status == 2) { + qm.sendNext("A hero is not invincible. A hero is human. I'm sure you will face challenges and even falter at times. But you are a hero because you have what it takes to overcome any obstacles you may encounter.", 9); + } else if (status == 3) { + qm.guideHint(19); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21015.js b/scripts/quest/21015.js index 4734f8d890..f53313421a 100644 --- a/scripts/quest/21015.js +++ b/scripts/quest/21015.js @@ -1,30 +1,30 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { qm.sendNext("Alright, I've done enough explaining for now. Let's move on to the next stage. What's the next stage, you ask? I just told you. Train as hard as you can until you become strong enough to defeat the Black Mage with a single blow."); } else if (status == 1) { qm.sendNextPrev("You may have been a hero in the past, but that was hundreds of years ago. Even if it weren't for the curse of the Black Mage, all those years you spent frozen in time have stiffened your body. You must loosen up a bit and slowly regain your agility. How do you do that, you ask?"); } else if (status == 2) { qm.sendAcceptDecline("Don't you know that you must first master the fundamentals? So the wise thing to do is to begin with #bBasic Training#k. Oh, of course, I forgot that you lost your memory. Well, that's why I'm here. You'll just have to experience it yourself. Shall we begin?"); } else if (status == 3) { - if (mode == 0) { - qm.sendNext("What are you so hesitant about? You're a hero! You gotta strike while the iron is hot! Come on, let's do this!"); - qm.dispose(); - } else { - qm.forceStartQuest(); - qm.sendNext("The population of Rien may be mostly Penguins, but even this island has monsters. You'll find #o0100131#s if you go to #b#m140020000##k, located on the right side of the town. Please defeat #r10 of those #o0100131#s#k. I'm sure you'll have no trouble defeating the #o0100131#s that even the slowest penguins here can defeat.", 1); - } - } else if (status == 4) { - qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); - qm.dispose(); + if (mode == 0) { + qm.sendNext("What are you so hesitant about? You're a hero! You gotta strike while the iron is hot! Come on, let's do this!"); + qm.dispose(); + } else { + qm.forceStartQuest(); + qm.sendNext("The population of Rien may be mostly Penguins, but even this island has monsters. You'll find #o0100131#s if you go to #b#m140020000##k, located on the right side of the town. Please defeat #r10 of those #o0100131#s#k. I'm sure you'll have no trouble defeating the #o0100131#s that even the slowest penguins here can defeat.", 1); + } + } else if (status == 4) { + qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21016.js b/scripts/quest/21016.js index 73dafa4cdd..a0e567d97a 100644 --- a/scripts/quest/21016.js +++ b/scripts/quest/21016.js @@ -1,26 +1,26 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { qm.sendAcceptDecline("Shall we continue with your Basic Training? Before accepting, please make sure you have properly equipped your sword and your skills and potions are readily accessible."); } else if (status == 1) { - if (mode == 0) { - qm.sendNext("Are you not ready to hunt the #o0100132#s yet? Always proceed if and only if you are fully ready. There's nothing worse than engaging in battles without sufficient preparation."); - qm.dispose(); - } else { - qm.forceStartQuest(); - qm.sendNext("Alright. This time, let's have you defeat #r#o0100132#s#k, which are slightly more powerful than #o0100131#s. Head over to #b#m140020100##k and defeat #r15#k of them. That should help you build your strength. Alright! Let's do this!", 1); - } - } else if (status == 2) { - qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); - qm.dispose(); + if (mode == 0) { + qm.sendNext("Are you not ready to hunt the #o0100132#s yet? Always proceed if and only if you are fully ready. There's nothing worse than engaging in battles without sufficient preparation."); + qm.dispose(); + } else { + qm.forceStartQuest(); + qm.sendNext("Alright. This time, let's have you defeat #r#o0100132#s#k, which are slightly more powerful than #o0100131#s. Head over to #b#m140020100##k and defeat #r15#k of them. That should help you build your strength. Alright! Let's do this!", 1); + } + } else if (status == 2) { + qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21017.js b/scripts/quest/21017.js index 7de05461fe..cf538c8946 100644 --- a/scripts/quest/21017.js +++ b/scripts/quest/21017.js @@ -1,40 +1,40 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { qm.sendNext("It seems like you're warmed up now. This is when rigorous training can really help you build a strong foundation. Let's proceed with the Basic Training, shall we?", 8); } else if (status == 1) { - qm.sendNextPrev("Go defeat some #r#o0100133#s#k in #b#m140020200##k this time. I think about #r20#k should do it. Go on ahead and... Hm? Do you have something you'd like to say?", 8); - } else if (status == 2) { - qm.sendNextPrev("Isn't the number getting bigger and bigger?", 2); - } else if (status == 3) { - qm.sendNextPrev("Of course it is. What, are you not happy with 20? Would you like to defeat 100 of them instead? Oh, how about 999 of them? Someone in Sleepywood would be able to do it easily. After all, we are training...", 8); - } else if (status == 4) { - qm.sendNextPrev("Oh no, no, no. Twenty is plenty.", 2); - } else if (status == 5) { - qm.sendAcceptDecline("You don't have to be so modest. I understand your desire to quickly become the hero you once were. This sort of attitude is what makes you a hero."); - } else if (status == 6) { - if (mode == 0 && type == 15) { - qm.sendNext("#b(You declined out of fear, but it's not like you can run away like this. Take a big breath, calm down, and try again.)#k", 2); - qm.dispose(); - } else { - if (!qm.isQuestStarted(21017)) { - qm.forceStartQuest(); - } - qm.sendNext("#b(You accepted, thinking you might end up having to 999 of them if you let her keep talking.)#k", 2); - } - } else if (status == 7) { - qm.sendNextPrev("Please go ahead and slay 20 #o0100133#s.", 8); - } else if (status == 8) { - qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); - qm.dispose(); + qm.sendNextPrev("Go defeat some #r#o0100133#s#k in #b#m140020200##k this time. I think about #r20#k should do it. Go on ahead and... Hm? Do you have something you'd like to say?", 8); + } else if (status == 2) { + qm.sendNextPrev("Isn't the number getting bigger and bigger?", 2); + } else if (status == 3) { + qm.sendNextPrev("Of course it is. What, are you not happy with 20? Would you like to defeat 100 of them instead? Oh, how about 999 of them? Someone in Sleepywood would be able to do it easily. After all, we are training...", 8); + } else if (status == 4) { + qm.sendNextPrev("Oh no, no, no. Twenty is plenty.", 2); + } else if (status == 5) { + qm.sendAcceptDecline("You don't have to be so modest. I understand your desire to quickly become the hero you once were. This sort of attitude is what makes you a hero."); + } else if (status == 6) { + if (mode == 0 && type == 15) { + qm.sendNext("#b(You declined out of fear, but it's not like you can run away like this. Take a big breath, calm down, and try again.)#k", 2); + qm.dispose(); + } else { + if (!qm.isQuestStarted(21017)) { + qm.forceStartQuest(); + } + qm.sendNext("#b(You accepted, thinking you might end up having to 999 of them if you let her keep talking.)#k", 2); + } + } else if (status == 7) { + qm.sendNextPrev("Please go ahead and slay 20 #o0100133#s.", 8); + } else if (status == 8) { + qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow3"); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21018.js b/scripts/quest/21018.js index 6497efa92d..7988b3dfa5 100644 --- a/scripts/quest/21018.js +++ b/scripts/quest/21018.js @@ -1,28 +1,28 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { qm.sendNext("Now, you will undergo a test that will determine whether you're fit or not. All you have to do is take on the most powerful monster on this island, #o0100134#s. About #r50#k of them would suffice, but..."); } else if (status == 1) { - qm.sendAcceptDecline("We can't have you wipe out the entire population of #o0100134#s, since they aren't many of them out there. How about 5 of them? You're here to train, not to destroy the ecosystem."); - } else if (status == 2) { - if (mode == 0 && type == 15) { - qm.sendNext("Oh, is 5 not enough? If you feel the need to train further, please feel free to slay more than that. If you slay all of them, I'll just have to look the other way even if it breaks my heart, since they will have been sacrificed for a good cause..."); - qm.dispose(); - } else { - qm.forceStartQuest(); - qm.sendNext("#o0100134#s can be found in deeper parts of the island. Continue going left until you reach #b#m140010200##k, and defeat #r5 #o0100134#s#k."); - } - } else if (status == 3) { - qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1"); - qm.dispose(); + qm.sendAcceptDecline("We can't have you wipe out the entire population of #o0100134#s, since they aren't many of them out there. How about 5 of them? You're here to train, not to destroy the ecosystem."); + } else if (status == 2) { + if (mode == 0 && type == 15) { + qm.sendNext("Oh, is 5 not enough? If you feel the need to train further, please feel free to slay more than that. If you slay all of them, I'll just have to look the other way even if it breaks my heart, since they will have been sacrificed for a good cause..."); + qm.dispose(); + } else { + qm.forceStartQuest(); + qm.sendNext("#o0100134#s can be found in deeper parts of the island. Continue going left until you reach #b#m140010200##k, and defeat #r5 #o0100134#s#k."); + } + } else if (status == 3) { + qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1"); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21100.js b/scripts/quest/21100.js index 475a81af99..bf9d80b6d0 100644 --- a/scripts/quest/21100.js +++ b/scripts/quest/21100.js @@ -1,37 +1,37 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { qm.sendNext("There isn't much record left of the heroes that fought against the Black Mage. Even in the Book of Prophecy, the only information available is that there were five of them. There is nothing about who they were or what they looked like. Is there anything you remember? Anything at all?", 8); } else if (status == 1) { - qm.sendNextPrev("I don't remember a thing...", 2); - } else if (status == 2) { - qm.sendNextPrev("As I expected. Of course, the curse of the Black Mage was strong enough to wipe out all of your memory. But even if that's the case, there has got to be a point where the past will uncover, especially now that we are certain you are one of the heroes. I know you've lost your armor and weapon during the battle but... Oh, yes, yes. I almost forgot! Your #bweapon#k!", 8); - } else if (status == 3) { - qm.sendNextPrev("My weapon?", 2); - } else if (status == 4) { - qm.sendNextPrev("I found an incredible weapon while digging through blocks of ice a while back. I figured the weapon belonged to a hero, so I brought it to town and placed it somewhere in the center of the town. Haven't you seen it? #bThe #p1201001##k... \r\r#i4032372#\r\rIt looks like this...", 8); - } else if (status == 5) { - qm.sendNextPrev("Come to think of it, I did see a #p1201001# in town.", 2); - } else if (status == 6) { - qm.sendAcceptDecline("Yes, that's it. According to what's been recorded, the weapon of a hero will recognize its rightful owner, and if you're the hero that used the #p1201001#, the #p1201001# will react when you grab the #p1201001#. Please go find the #b#p1201001# and click on it.#k"); - } else if (status == 7) { - if (mode == 0 && type == 15) { - qm.sendNext("What's stopping you? I promise, I won't be disappointed even if the #p1201001# shows no reaction to you. Please, rush over there and grab the #p1201001#. Just #bclick#k on it.", 8); - } else { - qm.forceCompleteQuest(); - qm.sendOk("If the #p1201001# reacts to you, then we'll know that you're #bAran#k, the hero that wielded a #p1201001#.", 8); - qm.showIntro("Effect/Direction1.img/aranTutorial/ClickPoleArm"); - } - } else if (status == 8) { - qm.dispose(); + qm.sendNextPrev("I don't remember a thing...", 2); + } else if (status == 2) { + qm.sendNextPrev("As I expected. Of course, the curse of the Black Mage was strong enough to wipe out all of your memory. But even if that's the case, there has got to be a point where the past will uncover, especially now that we are certain you are one of the heroes. I know you've lost your armor and weapon during the battle but... Oh, yes, yes. I almost forgot! Your #bweapon#k!", 8); + } else if (status == 3) { + qm.sendNextPrev("My weapon?", 2); + } else if (status == 4) { + qm.sendNextPrev("I found an incredible weapon while digging through blocks of ice a while back. I figured the weapon belonged to a hero, so I brought it to town and placed it somewhere in the center of the town. Haven't you seen it? #bThe #p1201001##k... \r\r#i4032372#\r\rIt looks like this...", 8); + } else if (status == 5) { + qm.sendNextPrev("Come to think of it, I did see a #p1201001# in town.", 2); + } else if (status == 6) { + qm.sendAcceptDecline("Yes, that's it. According to what's been recorded, the weapon of a hero will recognize its rightful owner, and if you're the hero that used the #p1201001#, the #p1201001# will react when you grab the #p1201001#. Please go find the #b#p1201001# and click on it.#k"); + } else if (status == 7) { + if (mode == 0 && type == 15) { + qm.sendNext("What's stopping you? I promise, I won't be disappointed even if the #p1201001# shows no reaction to you. Please, rush over there and grab the #p1201001#. Just #bclick#k on it.", 8); + } else { + qm.forceCompleteQuest(); + qm.sendOk("If the #p1201001# reacts to you, then we'll know that you're #bAran#k, the hero that wielded a #p1201001#.", 8); + qm.showIntro("Effect/Direction1.img/aranTutorial/ClickPoleArm"); } + } else if (status == 8) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/21101.js b/scripts/quest/21101.js index ba9e53e5a0..b29246739f 100644 --- a/scripts/quest/21101.js +++ b/scripts/quest/21101.js @@ -24,11 +24,12 @@ status = -1; function start(mode, type, selection) { status++; - if(mode == 0 && type == 0) + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { - if (mode == 0) + } else if (mode != 1) { + if (mode == 0) { qm.sendNext("#b(You need to think about this for a second...)#k"); + } qm.dispose(); return; } @@ -36,13 +37,13 @@ function start(mode, type, selection) { qm.sendYesNo("#b(Are you certain that you were the hero that wielded the #p1201001#? Yes, you're sure. You better grab the #p1201001# really tightly. Surely it will react to you.)#k"); } else if (status == 1) { if (qm.getPlayer().getJob().getId() == 2000) { - if(!qm.canHold(1142129)) { - qm.sendOk("Wow, your #bequip#k inventory is full. You need to make at least 1 empty slot to complete this quest."); - qm.dispose(); - return; + if (!qm.canHold(1142129)) { + qm.sendOk("Wow, your #bequip#k inventory is full. You need to make at least 1 empty slot to complete this quest."); + qm.dispose(); + return; } qm.gainItem(1142129, true); - + qm.changeJobById(2100); qm.resetStats(); @@ -51,7 +52,7 @@ function start(mode, type, selection) { qm.teachSkill(21000000, 0, 10, -1); //combo ability qm.teachSkill(21001003, 0, 20, -1); //polearm booster } - + qm.completeQuest(); //qm.getPlayer().changeSkillLevel(SkillFactory.getSkill(20009000), 0, -1); diff --git a/scripts/quest/21200.js b/scripts/quest/21200.js index 2659dc0c14..84d4a58f67 100644 --- a/scripts/quest/21200.js +++ b/scripts/quest/21200.js @@ -24,17 +24,18 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1){ - if (mode == 0 && type == 12) + if (mode != 1) { + if (mode == 0 && type == 12) { qm.sendNext("Come back again when you have took your desition wisely."); + } qm.dispose(); return; } - if(status == 0) + if (status == 0) { qm.sendAcceptDecline("How is the training going? Wow, you've reached such a high level! That's amazing. I knew you would do just fine on Victoria Island... Oh, look at me. I'm wasting your time. I know you're busy, but you'll have to return to the island for a bit."); - else if(status == 1){ + } else if (status == 1) { qm.sendOk("Your #b#p1201001##k in #b#m140000000##k is acting strange all of a sudden. According to the records, the Polearm acts this way when it is calling for its master. #bPerhaps it's calling for you#k. Please return to the island and check things out."); - } else if(status == 2){ + } else if (status == 2) { qm.startQuest(); qm.dispose(); } @@ -42,41 +43,43 @@ function start(mode, type, selection) { function end(mode, type, selection) { status++; - if (mode != 1){ - if (mode == 0 && type == 1) + if (mode != 1) { + if (mode == 0 && type == 1) { qm.sendNext("Hey! At least say you tried!"); + } qm.dispose(); return; } - if (status == 0) - qm.sendNext("Voom voom voom voom voom...."); //Giant Polearm - else if (status == 1) + if (status == 0) { + qm.sendNext("Voom voom voom voom voom...."); + }//Giant Polearm + else if (status == 1) { qm.sendNextPrev("#b(The #p1201001# is producing an undulating echo. But who is that boy standing over there?)", 2); - else if (status == 2) + } else if (status == 2) { qm.sendNextPrev("#b(You've never seen him before. He doesn't look human.)", 2); - else if (status == 3) + } else if (status == 3) { qm.sendNextPrev("Yo, Aran! Do you not hear me? I said, do you not hear me! Ugh, how frustating!"); - else if (status == 4) + } else if (status == 4) { qm.sendNextPrev("#b(Hm? Who's voice was that? It sounds like an angry boy...)", 2); - else if (status == 5) + } else if (status == 5) { qm.sendNextPrev("Ugh, my only master had to end up trapped in ice for hundreds of years, abandoning me completely, and is now completely ignoring me."); - else if (status == 6) + } else if (status == 6) { qm.sendNextPrev("Who...are you?", 2); - else if (status == 7) + } else if (status == 7) { qm.sendNextPrev("Aran? Do you hear me now? It's me! Don't you recognize me? I'm your weapon, #b#p1201002# the Polearm#k!"); - else if (status == 8) + } else if (status == 8) { qm.sendNextPrev("#b(...#p1201002#? A #p1201001# can talk?)", 2); - else if (status == 9) + } else if (status == 9) { qm.sendNextPrev("What's with that suspicious look on your face? I know you've lost your memory, but did you forgot about me, too? How could you?!"); - else if (status == 10) + } else if (status == 10) { qm.sendNextPrev("I'm so sorry, but I can't remember a thing.", 2); - else if (status == 11) + } else if (status == 11) { qm.sendYesNo("Sorry doesn't cut it! Do you know how lonely and bored I was for hundreds of years? I don't care what it takes! Remember me! Remember me now!"); - else if (status == 12){ + } else if (status == 12) { qm.completeQuest(); qm.sendNext("#b(The voice that claims to be #p1201002# the #p1201001# is yelling in frustration. You don't think this conversation is going anywhere. You better go talk to #p1201000# first.)", 2); //qm.sendNoExit("#b(The voice that claims to be #p1201002# the #p1201001# is yelling in frustration. You don't think this conversation is going anywhere. You better go talk to #p1201000# first.)", true); - }else if (status == 13){ + } else if (status == 13) { //qm.showVideo("Maha"); qm.dispose(); } diff --git a/scripts/quest/21201.js b/scripts/quest/21201.js index 8af9601a89..fc46838771 100644 --- a/scripts/quest/21201.js +++ b/scripts/quest/21201.js @@ -27,36 +27,38 @@ function end(mode, type, selection) { qm.sendNext("Hey! At least say you tried!"); qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.sendNext("Hey! At least say you tried!"); qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if (status == 0) - qm.sendNext("First you promise to defeat the Black Mage and make me a famous weapon, then you abandon me for hundreds of years, and now you're telling me you don't remember who I am? What the...?! Do you think I will let you get away with that? You're the one who begged and pined for me!"); //Giant Polearm - else if (status == 1) + } + + if (status == 0) { + qm.sendNext("First you promise to defeat the Black Mage and make me a famous weapon, then you abandon me for hundreds of years, and now you're telling me you don't remember who I am? What the...?! Do you think I will let you get away with that? You're the one who begged and pined for me!"); + }//Giant Polearm + else if (status == 1) { qm.sendNextPrev("I did tell #p1203000# to make a pole arm for me if I could prove my worth.", 2); - else if (status == 2) + } else if (status == 2) { qm.sendNextPrev("After all that begging, shouldn't you treat me with a little more love and respect? Ya know, a weapon like me's a rare and wonderful thing. I am the ultimate #p1201001# that can help you defeat the Black Mage. How could you ditch me for hundreds of years?"); - else if (status == 3) + } else if (status == 3) { qm.sendNextPrev("Hey, I never begged for you.", 2); - else if (status == 4) + } else if (status == 4) { qm.sendNextPrev("What? You never begged for me? Ha! #p1203000# told me you got on your knees, begged for me in tears, and... Wait a sec. Aran! Did you just remember who I am?"); - else if (status == 5) + } else if (status == 5) { qm.sendNextPrev("Maybe a little bit...", 2); - else if (status == 6) + } else if (status == 6) { qm.sendNextPrev("Aran, it is you! *Sniff sniff* Wait, *ahem* I didn't get emotional, it's just allergies. I know the Black Mage has stripped you of your abilities so you probably don't even have the strength to lift me... but at least you remember me! I'm glad that your memory's starting to return."); - else if (status == 7) + } else if (status == 7) { qm.sendAcceptDecline("Even though you've lost your memory, you're still my master. You endured some very tough training in the past, and I'm sure your body still remembers the skills you got through those hard times. Alright, I'll restore your abilities!"); - else if (status == 8) { - if(!qm.isQuestCompleted(21201)) { - if(!qm.canHold(1142130)) { + } else if (status == 8) { + if (!qm.isQuestCompleted(21201)) { + if (!qm.canHold(1142130)) { qm.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); // thanks MedicOP for finding an issue here return; } @@ -75,7 +77,7 @@ function end(mode, type, selection) { qm.completeQuest(); } - qm.sendNext("Your level isn't what it used to be back in your glory days, so I can't restore all of your old abilities. But the few I can restore should help you level up faster. Now hurry up and train so you can return to the old you."); + qm.sendNext("Your level isn't what it used to be back in your glory days, so I can't restore all of your old abilities. But the few I can restore should help you level up faster. Now hurry up and train so you can return to the old you."); } else if (status == 9) { qm.dispose(); } diff --git a/scripts/quest/21202.js b/scripts/quest/21202.js index 4d0591fb01..2f2f4203f9 100644 --- a/scripts/quest/21202.js +++ b/scripts/quest/21202.js @@ -24,25 +24,26 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1){ - if (mode == 0 && type == 1) + if (mode != 1) { + if (mode == 0 && type == 1) { qm.sendNext("Do you not want to put in the work to get the ultimate weapon?"); + } qm.dispose(); return; } if (status == 0) { qm.sendNext("Hmm.. What's a young person like you doing in this secluded place?"); - } else if(status == 1) { + } else if (status == 1) { qm.sendNextPrev("I've come to get the best Polearm there is!", 2); - } else if(status == 2) { + } else if (status == 2) { qm.sendNextPrev("The best Polearm? You should be able to purchase it in some town or other place.."); - } else if(status == 3) { + } else if (status == 3) { qm.sendNextPrev("I hear you are the best blacksmith in all of Maple World! I want nothing less than a weapon made by you!", 2); - } else if(status == 4) { + } else if (status == 4) { qm.sendAcceptDecline("I'm too old to make weapons now, but.. I do have a Polearm that I made way back when. It's still in excellent shape. But I can't give it to you because that Polearm is extremely sharp, so sharp it could hurt its master. Do you still want it?"); - } else if(status == 5) { + } else if (status == 5) { qm.sendOk("Well, if you say so.. I can't object to that. I'll tell you what. I'll give you a quick test, and if you pass it, the Giant Polearm is yours. Head over to the #bTraining Center#k and take on the #rScarred Bears#k that are there. Your job is to bring back #b30 Sign of Acceptances#k."); - } else if(status == 6) { + } else if (status == 6) { qm.startQuest(); qm.dispose(); } @@ -50,24 +51,25 @@ function start(mode, type, selection) { function end(mode, type, selection) { status++; - if (mode != 1){ - if (mode == 0 && type == 1) + if (mode != 1) { + if (mode == 0 && type == 1) { qm.sendNext("Hm? Are you hesitant to take it now after all that? Well, give it more thought if you'd like. It'll be yours in the end anyways."); + } qm.dispose(); return; } if (status == 0) { - if(qm.haveItem(4032311, 30)) + if (qm.haveItem(4032311, 30)) { qm.sendNext("Oh, have you brought me the #t4032311#? You're stronger than I thought! But more importantly, I am impressed with the amount of courage you displayed when you agreed to take this dangerous weapon without any hesitation. You deserve it. The #p1201001# is yours."); - else{ + } else { qm.sendNext("Go for the 30 #t4032311#."); qm.dispose(); } - }else if (status == 1) + } else if (status == 1) { qm.sendNextPrev("#b(After a long time passed, #p1203000# handed you the #p1201001#, which was carefully wrapped in cloth.)"); - else if (status == 2) + } else if (status == 2) { qm.sendYesNo("Here, this is #p1201002#, the Polearm you've asked for. Please take good care of it."); - else if (status == 3){ + } else if (status == 3) { //qm.showVideo("Polearm"); qm.completeQuest(); qm.removeAll(4032311); diff --git a/scripts/quest/2124.js b/scripts/quest/2124.js index a13e40968a..5d0c8c1ff1 100644 --- a/scripts/quest/2124.js +++ b/scripts/quest/2124.js @@ -29,21 +29,21 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItem(4031619, 1)) { + if (!qm.haveItem(4031619, 1)) { qm.sendOk("Please bring me the box with the supplies that lies with #b#p2012019##k..."); - } - else { + } else { qm.gainItem(4031619, -1); qm.sendOk("Oh, you brought #p2012019#'s box! Thank you."); qm.forceCompleteQuest(); diff --git a/scripts/quest/2126.js b/scripts/quest/2126.js index a13e40968a..5d0c8c1ff1 100644 --- a/scripts/quest/2126.js +++ b/scripts/quest/2126.js @@ -29,21 +29,21 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItem(4031619, 1)) { + if (!qm.haveItem(4031619, 1)) { qm.sendOk("Please bring me the box with the supplies that lies with #b#p2012019##k..."); - } - else { + } else { qm.gainItem(4031619, -1); qm.sendOk("Oh, you brought #p2012019#'s box! Thank you."); qm.forceCompleteQuest(); diff --git a/scripts/quest/2127.js b/scripts/quest/2127.js index ced26e74c3..94c58dab01 100644 --- a/scripts/quest/2127.js +++ b/scripts/quest/2127.js @@ -29,16 +29,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendOk("I see you're ready for the task. Now, pay heed to the details of your mission..."); qm.forceCompleteQuest(); diff --git a/scripts/quest/21300.js b/scripts/quest/21300.js index e0c454d612..3a698ed9d3 100644 --- a/scripts/quest/21300.js +++ b/scripts/quest/21300.js @@ -1,24 +1,24 @@ var status = -1; function start(mode, type, selection) { - status++; - if(mode == 0 && type == 0) + status++; + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { + } else if (mode != 1) { //if (mode == 0) - qm.sendNext("#b(You need to think about this for a second...)#k"); + qm.sendNext("#b(You need to think about this for a second...)#k"); qm.dispose(); return; } - + if (status == 0) { - qm.sendNext("How's the training going? Hmmm... Level 70... That's still not much, but you have really made some strides since the first time I met you fresh out of ice. Keep training, and I am sure one day you'll be able to regain your pre-battle form."); + qm.sendNext("How's the training going? Hmmm... Level 70... That's still not much, but you have really made some strides since the first time I met you fresh out of ice. Keep training, and I am sure one day you'll be able to regain your pre-battle form."); } else if (status == 1) { - qm.sendAcceptDecline("But before doing that, I'll need you back in Rein for a bit. #bYour pole arm is reacting strange once again. It looks like it has something it wants to tell you. #kIt might be able to awaken your hidden powers, so please come immediately."); + qm.sendAcceptDecline("But before doing that, I'll need you back in Rein for a bit. #bYour pole arm is reacting strange once again. It looks like it has something it wants to tell you. #kIt might be able to awaken your hidden powers, so please come immediately."); } else if (status == 2) { - qm.forceStartQuest(); - qm.sendOk("Anyway, I thought it was really something that a weapon has its own identity, but seriously... this weapon does not stop talking. It first kept on crying because I wasn't really paying attention to its needs, and... ahh, please keep this a secret from the pole arm. I don't think it's a good idea to upset the weapon any further."); + qm.forceStartQuest(); + qm.sendOk("Anyway, I thought it was really something that a weapon has its own identity, but seriously... this weapon does not stop talking. It first kept on crying because I wasn't really paying attention to its needs, and... ahh, please keep this a secret from the pole arm. I don't think it's a good idea to upset the weapon any further."); } else if (status == 3) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21301.js b/scripts/quest/21301.js index e9077098d6..6c2cfc5021 100644 --- a/scripts/quest/21301.js +++ b/scripts/quest/21301.js @@ -1,32 +1,32 @@ var status = -1; function end(mode, type, selection) { - status++; - if(mode == 0 && type == 0) + status++; + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { + } else if (mode != 1) { //if (mode == 0) - qm.sendNext("#b(You need to think about this for a second...)#k"); + qm.sendNext("#b(You need to think about this for a second...)#k"); qm.dispose(); return; } - - if (status == 0) { + + if (status == 0) { qm.sendNext("Did you manage to slay #o9001013#? Hahaha... you're my master, indeed. Okay, now give me the Red Jade that you found there. I'll have to put it back on the body, and... wait, why aren't you saying a word? Don't tell me... that you didn't bring that back!"); } else if (status == 1) { - qm.sendNextPrev("What?! You really didn't bring back the Red Jade? Why? Did you just completely forget it? Ahh... even with the curse of the Black Mage, and the amount of time that has passed and all, never did I think my master would turn out to be stupid..."); - } else if (status == 2) { - qm.sendNextPrev("No, no, I can't let this put me in despair. This is when I should remain calm and in control, unlike my master...\r\noosah..." ); - } else if (status == 3) { - qm.sendNextPrev("Even if you go back there now, the thief probably made its way out of there. This means you'll have to make the Red Jade anew. You've made one before, so you do remember the materials required to make one, right? Now go..."); - } else if (status == 4) { - qm.sendNextPrev("\r\n\r\n\r\nTHIS GUY HAS DEFINITELY LOST ALL MEMORIES!"); - } else if (status == 5) { - qm.sendNextPrev("...No hope, no dreams... Nooooo!!"); - } else if (status == 6) { - qm.completeQuest(); - qm.sendNextPrev("#b(Maha is beginning to really get hysterical. I better leave right this minute. Maybe Lilin can do something about it.)", 2); - } else if (status == 7) { - qm.dispose(); - } + qm.sendNextPrev("What?! You really didn't bring back the Red Jade? Why? Did you just completely forget it? Ahh... even with the curse of the Black Mage, and the amount of time that has passed and all, never did I think my master would turn out to be stupid..."); + } else if (status == 2) { + qm.sendNextPrev("No, no, I can't let this put me in despair. This is when I should remain calm and in control, unlike my master...\r\noosah..."); + } else if (status == 3) { + qm.sendNextPrev("Even if you go back there now, the thief probably made its way out of there. This means you'll have to make the Red Jade anew. You've made one before, so you do remember the materials required to make one, right? Now go..."); + } else if (status == 4) { + qm.sendNextPrev("\r\n\r\n\r\nTHIS GUY HAS DEFINITELY LOST ALL MEMORIES!"); + } else if (status == 5) { + qm.sendNextPrev("...No hope, no dreams... Nooooo!!"); + } else if (status == 6) { + qm.completeQuest(); + qm.sendNextPrev("#b(Maha is beginning to really get hysterical. I better leave right this minute. Maybe Lilin can do something about it.)", 2); + } else if (status == 7) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/21302.js b/scripts/quest/21302.js index cfb2f4ffe1..f3eccb83eb 100644 --- a/scripts/quest/21302.js +++ b/scripts/quest/21302.js @@ -24,9 +24,10 @@ var status = -1; function end(mode, type, selection) { status++; - if (mode != 1){ - if (mode == 0 && type == 1) + if (mode != 1) { + if (mode == 0 && type == 1) { qm.sendNext("Hey! At least say you tried!"); + } qm.dispose(); return; } @@ -35,17 +36,17 @@ function end(mode, type, selection) { } else if (status == 1) { qm.sendNextPrev("Okay, now that I have the Red Jade back on, let me work on reawakening more of your abilities. I mean, your level's gone much higher since the last time we met, so I am sure I can work my magic a bit more this time!"); } else if (status == 2) { - if(!qm.isQuestCompleted(21302)) { - if(!qm.canHold(1142131)) { + if (!qm.isQuestCompleted(21302)) { + if (!qm.canHold(1142131)) { qm.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); qm.dispose(); return; } - - if(qm.haveItem(4032312, 1)) { + + if (qm.haveItem(4032312, 1)) { qm.gainItem(4032312, -1); } - + qm.gainItem(1142131, true); qm.changeJobById(2111); @@ -56,8 +57,8 @@ function end(mode, type, selection) { qm.completeQuest(); } - - qm.sendNext("Come on, keep training so you can get all your abilities back, and that way we can explore together once more!"); + + qm.sendNext("Come on, keep training so you can get all your abilities back, and that way we can explore together once more!"); } else if (status == 3) { qm.dispose(); } diff --git a/scripts/quest/21303.js b/scripts/quest/21303.js index c8f5f9f502..482a3e4b34 100644 --- a/scripts/quest/21303.js +++ b/scripts/quest/21303.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Aaaargh... Yeti's #b#t4032339##k has just been stolen! How frustrating, Yeti worked hard to get it, just to have it stolen by that #rThief Crow#k...", 9); } else if (status == 1) { diff --git a/scripts/quest/21400.js b/scripts/quest/21400.js index 2caeb2de21..fb480c7d47 100644 --- a/scripts/quest/21400.js +++ b/scripts/quest/21400.js @@ -1,22 +1,22 @@ var status = -1; function start(mode, type, selection) { - status++; - if(mode == 0 && type == 0) + status++; + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { + } else if (mode != 1) { //if (mode == 0) - qm.sendNext("#b(You need to think about this for a second...)#k"); + qm.sendNext("#b(You need to think about this for a second...)#k"); qm.dispose(); return; } - - if (status == 0) { + + if (status == 0) { qm.sendAcceptDecline("How is the training going? I know you're busy, but please come to #bRien#k immediately. The #bMaha#k has started to act weird again... But its even weirder now. It's different from before. It's... darker than usual."); } else if (status == 1) { - qm.startQuest(); - qm.sendOk("I have a bad feeling about this. Please come back here. I've never seen or herd Maha like this, but I can sense the suffering its going through. #bOnly you, the master of Maha, can do something about it!"); + qm.startQuest(); + qm.sendOk("I have a bad feeling about this. Please come back here. I've never seen or herd Maha like this, but I can sense the suffering its going through. #bOnly you, the master of Maha, can do something about it!"); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21401.js b/scripts/quest/21401.js index f939cfd9d5..3c0f5befbd 100644 --- a/scripts/quest/21401.js +++ b/scripts/quest/21401.js @@ -1,82 +1,83 @@ var status = -1; function start(mode, type, selection) { - status++; - if(mode == 0 && type == 0) + status++; + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { + } else if (mode != 1) { //if (mode == 0) - qm.sendNext("#b(You need to think about this for a second...)#k"); + qm.sendNext("#b(You need to think about this for a second...)#k"); qm.dispose(); return; } - - if (status == 0) { + + if (status == 0) { qm.sendNext("Why do I look like this, you ask? I don't want to talk about it, but I suppose I can't hide from you since you're my master."); } else if (status == 1) { - qm.sendNextPrev("While you were trapped inside ice for hundreds of years, I, too, was frozen. It was a long time to be away from you. That's when the seed of darkness was planted in my heart."); - } else if (status == 2) { - qm.sendNextPrev("But since you awoke, I thought the darkness had gone away. I thought things would return to the way they were. But I was mistaken..."); - } else if (status == 3) { - qm.sendAcceptDecline("Please, Aran. Please stop me from becoming enraged. Only you can control me. It's getting out of my hands now. Please do whatever it takes to #rstop me from going berserk#k!"); - } else if (status == 4) { - var em = qm.getEventManager("MahaBattle"); - if (!em.startInstance(qm.getPlayer())) { - qm.sendOk("There is currently someone in this map, come back later."); - } else { - qm.startQuest(); - } - - qm.dispose(); - } + qm.sendNextPrev("While you were trapped inside ice for hundreds of years, I, too, was frozen. It was a long time to be away from you. That's when the seed of darkness was planted in my heart."); + } else if (status == 2) { + qm.sendNextPrev("But since you awoke, I thought the darkness had gone away. I thought things would return to the way they were. But I was mistaken..."); + } else if (status == 3) { + qm.sendAcceptDecline("Please, Aran. Please stop me from becoming enraged. Only you can control me. It's getting out of my hands now. Please do whatever it takes to #rstop me from going berserk#k!"); + } else if (status == 4) { + var em = qm.getEventManager("MahaBattle"); + if (!em.startInstance(qm.getPlayer())) { + qm.sendOk("There is currently someone in this map, come back later."); + } else { + qm.startQuest(); + } + + qm.dispose(); + } } function end(mode, type, selection) { - status++; - if(mode == 0 && type == 0) + status++; + if (mode == 0 && type == 0) { status -= 2; - else if (mode != 1) { + } else if (mode != 1) { //if (mode == 0) - qm.sendNext("#b(You need to think about this for a second...)#k"); + qm.sendNext("#b(You need to think about this for a second...)#k"); qm.dispose(); return; } - - if (status == 0) { - qm.sendNext("Thank you, Aran. If it weren't for you, I would have become enraged and who knows what could have happened. Thank you, NOT! It's only your duty as my master..."); - } else if(status == 1) { - qm.sendYesNo("Anyway, I just noticed how high of a level you've reached. If you were able to control me in my state of rage, I think you're ready to handle more abilities."); - } else if(status == 2) { - if(!qm.isQuestCompleted(21401)) { - if(!qm.canHold(1142132)) { - qm.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); - qm.dispose(); - return; - } - if (!qm.canHold(2280003, 1)) { - qm.sendOk("Hey, your #buse#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); - qm.dispose(); - return; - } - - qm.gainItem(1142132, true); - qm.gainItem(2280003, 1); - qm.changeJobById(2112); - - qm.completeQuest(); - } - qm.sendNext("Your skills have been restored. Those skills have been dormant for so long that you'll have to re-train yourself, but you'll be as good as new once you complete your training."); - } else if(status == 3) { + + if (status == 0) { + qm.sendNext("Thank you, Aran. If it weren't for you, I would have become enraged and who knows what could have happened. Thank you, NOT! It's only your duty as my master..."); + } else if (status == 1) { + qm.sendYesNo("Anyway, I just noticed how high of a level you've reached. If you were able to control me in my state of rage, I think you're ready to handle more abilities."); + } else if (status == 2) { + if (!qm.isQuestCompleted(21401)) { + if (!qm.canHold(1142132)) { + qm.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); qm.dispose(); + return; + } + if (!qm.canHold(2280003, 1)) { + qm.sendOk("Hey, your #buse#k inventory is full. I need you to make at least 1 empty slot to complete this quest."); + qm.dispose(); + return; + } + + qm.gainItem(1142132, true); + qm.gainItem(2280003, 1); + qm.changeJobById(2112); + + qm.completeQuest(); } + qm.sendNext("Your skills have been restored. Those skills have been dormant for so long that you'll have to re-train yourself, but you'll be as good as new once you complete your training."); + } else if (status == 3) { + qm.dispose(); + } } function spawnMob(x, y, id, map) { - if(map.getMonsterById(id) != null) - return; + if (map.getMonsterById(id) != null) { + return; + } - const LifeFactory = Java.type('server.life.LifeFactory'); - const Point = Java.type('java.awt.Point'); - var mob = LifeFactory.getMonster(id); - map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); + const LifeFactory = Java.type('server.life.LifeFactory'); + const Point = Java.type('java.awt.Point'); + var mob = LifeFactory.getMonster(id); + map.spawnMonsterOnGroundBelow(mob, new Point(x, y)); } \ No newline at end of file diff --git a/scripts/quest/2148.js b/scripts/quest/2148.js index 58c7a3512e..c81e296965 100644 --- a/scripts/quest/2148.js +++ b/scripts/quest/2148.js @@ -4,16 +4,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Some bats seems to accompany this tree wherever it goes. Creepy..."); qm.forceCompleteQuest(); @@ -22,6 +23,7 @@ function start(mode, type, selection) { } } } + function end(mode, type, selection) { - qm.dispose(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/2149.js b/scripts/quest/2149.js index 3e10046fd8..b843df5eb0 100644 --- a/scripts/quest/2149.js +++ b/scripts/quest/2149.js @@ -4,16 +4,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("It is said that a old tree gets alive whenever something sinister disturbs this land... We need a hero that fends our village of that creature!"); qm.forceCompleteQuest(); @@ -24,5 +25,5 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - qm.dispose(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/2150.js b/scripts/quest/2150.js index 38cb1538d0..86718d796e 100644 --- a/scripts/quest/2150.js +++ b/scripts/quest/2150.js @@ -4,25 +4,26 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("The tree has a scarf upon its branches, I tell you."); - qm.forceCompleteQuest(); + qm.forceCompleteQuest(); } else if (status == 1) { qm.dispose(); } - } + } } function end(mode, type, selection) { - qm.dispose(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/2151.js b/scripts/quest/2151.js index 56facb7ee7..a1f666de7d 100644 --- a/scripts/quest/2151.js +++ b/scripts/quest/2151.js @@ -4,16 +4,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("The tree has a strange carving that resembles a scary face."); qm.forceCompleteQuest(); @@ -24,5 +25,5 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - qm.dispose(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/2152.js b/scripts/quest/2152.js index a8453cbc3c..b7e196e3ab 100644 --- a/scripts/quest/2152.js +++ b/scripts/quest/2152.js @@ -4,16 +4,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("That tree... I've heard of it before, I even studied its behavior! If I recall correctly, the #bStumpy#k comes alive when the soil deems infertile by some sort of magic, and those stumps who evolves under these conditions starts to drain these suspicious magical sources instead of water and minerals for living, which makes them very threathening to people and villages nearby."); qm.forceCompleteQuest(); @@ -24,5 +25,5 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - qm.dispose(); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/21600.js b/scripts/quest/21600.js index 756d8157ad..cb39a6c653 100644 --- a/scripts/quest/21600.js +++ b/scripts/quest/21600.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Hey, Aran. You seem pretty strong, since that time from when you got freed from the glacier. Suitable enough to #bride a wolf#k, if you ask me."); } else if (status == 1) { diff --git a/scripts/quest/21604.js b/scripts/quest/21604.js index 3d5d4165c0..52a241eded 100644 --- a/scripts/quest/21604.js +++ b/scripts/quest/21604.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("You want to use a Wolf as a mount, but you don't have a #bWolf saddle#k? Why, I have just the fine solution for you! Come here in #bEl Nath#k first, I shall teach you how to mount a wolf as an extra."); } else if (status == 1) { diff --git a/scripts/quest/21613.js b/scripts/quest/21613.js index d7648c72cf..31391afef4 100644 --- a/scripts/quest/21613.js +++ b/scripts/quest/21613.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("We're a pack of wolves looking for our lost child. I hear you are taking care of our baby. We appreciate your kindness, but it's time to return our baby to us.", 9); } else if (status == 1) { @@ -44,9 +45,8 @@ function start(mode, type, selection) { var em = qm.getEventManager("Aran_3rdmount"); if (em == null) { qm.sendOk("Sorry, but the 3rd mount quest (Wolves) is closed."); - return; - } - else { + + } else { var em = qm.getEventManager("Aran_3rdmount"); if (!em.startInstance(qm.getPlayer())) { qm.sendOk("There is currently someone in this map, come back later."); diff --git a/scripts/quest/21618.js b/scripts/quest/21618.js index 2d8119b21e..09c22e2554 100644 --- a/scripts/quest/21618.js +++ b/scripts/quest/21618.js @@ -26,16 +26,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, this befriended wolf of yours... I sense some hidden powers hidden behind his furs, you see. Wat'cha say, master, if I awaken it's hidden power?", 9); } else if (status == 1) { @@ -53,30 +54,31 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItemWithId(1902017, false)) { + if (!qm.haveItemWithId(1902017, false)) { qm.sendNext("You will have to unequip the wolf first before going for the evolution."); qm.dispose(); return; } - + qm.sendNext("Step aside, behold the mighty prowess of Maha!!"); } else if (status == 1) { qm.forceCompleteQuest(); - + qm.gainItem(1902017, -1); qm.gainItem(1902018, 1); - + qm.dispose(); } } diff --git a/scripts/quest/21700.js b/scripts/quest/21700.js index 7157a1567e..faace51575 100644 --- a/scripts/quest/21700.js +++ b/scripts/quest/21700.js @@ -1,41 +1,41 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 4) { - qm.sendNext("No? Are you saying you can train on your own? I'm just letting you know that you'll get better results if you train with an instructor. You can't live in this world alone. You must learn to get along with other people."); - qm.dispose(); - return; - } - status--; + if (status == 4) { + qm.sendNext("No? Are you saying you can train on your own? I'm just letting you know that you'll get better results if you train with an instructor. You can't live in this world alone. You must learn to get along with other people."); + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("It seems like you've started to remember things. Your Polearm must have recognized you. This means you are surely #bAran, the wielder of Polearms#k. Is there anything else you remember? Skills you used with the Polearm perhaps? Anything?"); + qm.sendNext("It seems like you've started to remember things. Your Polearm must have recognized you. This means you are surely #bAran, the wielder of Polearms#k. Is there anything else you remember? Skills you used with the Polearm perhaps? Anything?"); } else if (status == 1) { - qm.sendNextPrev("#b(You tell her that you remember a few skills.)#k", 2); + qm.sendNextPrev("#b(You tell her that you remember a few skills.)#k", 2); } else if (status == 2) { - qm.sendNextPrev("That's not a lot, but it's progress. Our focus, then, should be to get you back to the state before you were frozen. You may have lost your memory, but I'm sure it won't take long for you to recover the abilities that your body remembers."); + qm.sendNextPrev("That's not a lot, but it's progress. Our focus, then, should be to get you back to the state before you were frozen. You may have lost your memory, but I'm sure it won't take long for you to recover the abilities that your body remembers."); } else if (status == 3) { - qm.sendNextPrev('How do I recover my abilities?', 2); + qm.sendNextPrev('How do I recover my abilities?', 2); } else if (status == 4) { - qm.sendAcceptDecline("There is only one way to do that. Train! Train! Train! Train! If you continue to train, your body will instinctively remember its abilities. To help you through the process, I'll introduce you to an instructor."); + qm.sendAcceptDecline("There is only one way to do that. Train! Train! Train! Train! If you continue to train, your body will instinctively remember its abilities. To help you through the process, I'll introduce you to an instructor."); } else if (status == 5) { - qm.sendNext("I gave you a #bPolearm#k because I figured it would be best for you to use a weapon you're familiar with. It will be useful in your training."); - if (!qm.isQuestStarted(21700) && !qm.isQuestCompleted(21700)) { - qm.gainItem(1442000,1); - qm.forceStartQuest(); - } + qm.sendNext("I gave you a #bPolearm#k because I figured it would be best for you to use a weapon you're familiar with. It will be useful in your training."); + if (!qm.isQuestStarted(21700) && !qm.isQuestCompleted(21700)) { + qm.gainItem(1442000, 1); + qm.forceStartQuest(); + } } else if (status == 6) { - qm.sendPrev("You'll find a Training Center if you exit to the #bleft#k. There, you'll meet #b#p1202006##k. I'm a bit worried because I think he may be struggling with bouts of Alzheimer's, but he spent a long time researching skills to help you. I'm sure you'll learn a thing or two from him."); + qm.sendPrev("You'll find a Training Center if you exit to the #bleft#k. There, you'll meet #b#p1202006##k. I'm a bit worried because I think he may be struggling with bouts of Alzheimer's, but he spent a long time researching skills to help you. I'm sure you'll learn a thing or two from him."); } else if (status == 7) { - qm.dispose(); + qm.dispose(); } } diff --git a/scripts/quest/21703.js b/scripts/quest/21703.js index 7e8333bf90..896c36fe70 100644 --- a/scripts/quest/21703.js +++ b/scripts/quest/21703.js @@ -1,35 +1,35 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 6) { - qm.sendNext("I know it takes an incredible amount of strength and will to outdo your instructor, but you weren't meant to let yourself wither away. You must move on to bigger and better things! You must do everything you can to embrace your heroic nature!"); - qm.dispose(); - return; - } - status--; + if (status == 6) { + qm.sendNext("I know it takes an incredible amount of strength and will to outdo your instructor, but you weren't meant to let yourself wither away. You must move on to bigger and better things! You must do everything you can to embrace your heroic nature!"); + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("Your abilities are really beginning to take shape. I am surprised that an old man like me was able to help you. I'm tearing up just thinking about how happy it makes me to have been of assistance to you. *Sniff sniff*"); + qm.sendNext("Your abilities are really beginning to take shape. I am surprised that an old man like me was able to help you. I'm tearing up just thinking about how happy it makes me to have been of assistance to you. *Sniff sniff*"); } else if (status == 1) { - qm.sendNextPrev("#b(You didn't even train that long with him... Why is he crying?)#k", 2); + qm.sendNextPrev("#b(You didn't even train that long with him... Why is he crying?)#k", 2); } else if (status == 2) { - qm.sendNextPrev("Alright, here's the third and the final stage of training. Your last opponent is... #r#o9300343#s#k! Do you know anything about #o1210100#s?"); + qm.sendNextPrev("Alright, here's the third and the final stage of training. Your last opponent is... #r#o9300343#s#k! Do you know anything about #o1210100#s?"); } else if (status == 3) { - qm.sendNextPrev('Well, a little bit...', 2); + qm.sendNextPrev('Well, a little bit...', 2); } else if (status == 4) { - qm.sendNextPrev("They are natural warriors! They're born with a voracious appetite for food. They devour any food that's visible the moment they sweep by. Terrifying, isn't it?"); + qm.sendNextPrev("They are natural warriors! They're born with a voracious appetite for food. They devour any food that's visible the moment they sweep by. Terrifying, isn't it?"); } else if (status == 5) { - qm.sendNextPrev("#b(Is that really true?)#k", 2); + qm.sendNextPrev("#b(Is that really true?)#k", 2); } else if (status == 6) { - qm.sendAcceptDecline("Okay, now... #bEnter the Training Center again#k, defeat #r30#k #o9300343#s, and show me what you're made of! You'll have to exert all your energy to defeat them! Go, go, go! Rise above me!"); + qm.sendAcceptDecline("Okay, now... #bEnter the Training Center again#k, defeat #r30#k #o9300343#s, and show me what you're made of! You'll have to exert all your energy to defeat them! Go, go, go! Rise above me!"); } else if (status == 7) { qm.forceStartQuest(); qm.sendOk("Now go and take on those monstrous #o9300343#s!"); @@ -39,33 +39,33 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("Are you reluctant to leave your instructor? *Sniff sniff* I'm so moved, but you can't stop here. You are destined for bigger and better things!"); - qm.dispose(); - return; - } + if (status == 2) { + qm.sendNext("Are you reluctant to leave your instructor? *Sniff sniff* I'm so moved, but you can't stop here. You are destined for bigger and better things!"); + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("Ah, you've come back after defeating all 30 #o9300343#s. I knew you had it in you... Even though you have no memories and few abilities, I could see that you were different! How? Because you're carrying around a Polearm, obviously!"); + qm.sendNext("Ah, you've come back after defeating all 30 #o9300343#s. I knew you had it in you... Even though you have no memories and few abilities, I could see that you were different! How? Because you're carrying around a Polearm, obviously!"); } else if (status == 1) { - qm.sendNextPrev("#b(Is he pulling your leg?)#k'", 2); + qm.sendNextPrev("#b(Is he pulling your leg?)#k'", 2); } else if (status == 2) { - qm.sendYesNo("I have nothing more to teach you, as you've surpassed my level of skill. Go now! Don't look back! This old man is happy to have served as your instructor."); + qm.sendYesNo("I have nothing more to teach you, as you've surpassed my level of skill. Go now! Don't look back! This old man is happy to have served as your instructor."); } else if (status == 3) { - if (qm.isQuestStarted(21703)) { - qm.forceCompleteQuest(); - qm.teachSkill(21000000, qm.getPlayer().getSkillLevel(21000000), 10, -1); // Combo Ability Skill - qm.gainExp(2800); - } + if (qm.isQuestStarted(21703)) { + qm.forceCompleteQuest(); + qm.teachSkill(21000000, qm.getPlayer().getSkillLevel(21000000), 10, -1); // Combo Ability Skill + qm.gainExp(2800); + } qm.sendNext("(You remembered the #bCombo Ability#k skill! You were skeptical of the training at first, since the old man suffers from Alzheimer's and all, but boy, was it effective!)", 2); } else if (status == 4) { qm.sendPrev("Now report back to #p1201000#. I know she'll be ecstatic when she sees the progress you've made!"); diff --git a/scripts/quest/21704.js b/scripts/quest/21704.js index 69d745c5a3..bda80b4ee9 100644 --- a/scripts/quest/21704.js +++ b/scripts/quest/21704.js @@ -1,26 +1,26 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.dispose(); - return; - } + if (status == 2) { + qm.dispose(); + return; + } status--; } if (status == 0) { - qm.sendNext("How did the training go? The Penguin Teacher #p1202006# likes to exaggerate and it worried me knowing that he has bouts of Alzheimer's, but I'm sure he helped you. He's been studying the skills of heroes for a very long time."); + qm.sendNext("How did the training go? The Penguin Teacher #p1202006# likes to exaggerate and it worried me knowing that he has bouts of Alzheimer's, but I'm sure he helped you. He's been studying the skills of heroes for a very long time."); } else if (status == 1) { - qm.sendNextPrev("#b(You tell her that you were able to remember the Combo Ability skill.)#k", 2); + qm.sendNextPrev("#b(You tell her that you were able to remember the Combo Ability skill.)#k", 2); } else if (status == 2) { - qm.sendNextPrev("That's great! Honestly, though, I think it has less to do with the method of #p1202006#'s training and more to do with your body remembering its old abilities. #bI'm sure your body will remember more skills as you continue to train#k! \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 500 exp"); + qm.sendNextPrev("That's great! Honestly, though, I think it has less to do with the method of #p1202006#'s training and more to do with your body remembering its old abilities. #bI'm sure your body will remember more skills as you continue to train#k! \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 500 exp"); } else if (status == 3) { qm.forceCompleteQuest(); qm.gainExp(500); diff --git a/scripts/quest/21712.js b/scripts/quest/21712.js index 8d4eb2b5a0..e24e9498f9 100644 --- a/scripts/quest/21712.js +++ b/scripts/quest/21712.js @@ -1,30 +1,30 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("You still don't understand what's going on? I'll explain it to you again if you talk to me one more time."); - qm.dispose(); - return; - } - status--; + if (status == 2) { + qm.sendNext("You still don't understand what's going on? I'll explain it to you again if you talk to me one more time."); + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("#t4032315#... #rThis puppet is making a strange noise#k. You can't hear it with your ears, of course, since it can only be heard by the #o1210102#s. I believe it's this noise that changed the personality of the #o1210102#s."); + qm.sendNext("#t4032315#... #rThis puppet is making a strange noise#k. You can't hear it with your ears, of course, since it can only be heard by the #o1210102#s. I believe it's this noise that changed the personality of the #o1210102#s."); } else if (status == 1) { - qm.sendAcceptDecline("The #o1210102#s that have been affected by the noise have turned cynical. They've started fighting the non-affected #o1210102#s, which has made all #o1210102#s prepare for combat. #bThe reason for all these changes in the #o1210102#s is this puppet#k! Do you understand?"); + qm.sendAcceptDecline("The #o1210102#s that have been affected by the noise have turned cynical. They've started fighting the non-affected #o1210102#s, which has made all #o1210102#s prepare for combat. #bThe reason for all these changes in the #o1210102#s is this puppet#k! Do you understand?"); } else if (status == 2) { - qm.forceStartQuest(); - qm.sendNext("I wonder what triggered this in the first place. There is no way this puppet was naturally created, which means someone planned this. I should keep an eye on the #o1210102#s.", 9); + qm.forceStartQuest(); + qm.sendNext("I wonder what triggered this in the first place. There is no way this puppet was naturally created, which means someone planned this. I should keep an eye on the #o1210102#s.", 9); } else if (status == 3) { - qm.sendPrev("#b(You were able to find out what caused the changes in the #o1210102#s. You should report to #p1002104# and deliver the information you've gathered.)#k", 2); + qm.sendPrev("#b(You were able to find out what caused the changes in the #o1210102#s. You should report to #p1002104# and deliver the information you've gathered.)#k", 2); } else if (status == 4) { qm.dispose(); } diff --git a/scripts/quest/21716.js b/scripts/quest/21716.js index c0b01f605e..3a1fe4d5f6 100644 --- a/scripts/quest/21716.js +++ b/scripts/quest/21716.js @@ -1,34 +1,34 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.sendNext("What? I don't think there are any suspects besides that kid. Please think again."); - qm.dispose(); - return; - } - status--; + if (status == 2) { + qm.sendNext("What? I don't think there are any suspects besides that kid. Please think again."); + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("What did #p1032112# say?", 8); + qm.sendNext("What did #p1032112# say?", 8); } else if (status == 1) { - qm.sendNextPrev("#b(You tell her what #p1032112# observed.)#k", 2); + qm.sendNextPrev("#b(You tell her what #p1032112# observed.)#k", 2); } else if (status == 2) { - qm.sendAcceptDecline("A kid with a puppet? That seems very suspicious. I am sure that kid is the reason the Green Mushrooms have suddenly turned violent."); + qm.sendAcceptDecline("A kid with a puppet? That seems very suspicious. I am sure that kid is the reason the Green Mushrooms have suddenly turned violent."); } else if (status == 3) { - qm.forceStartQuest(); - qm.sendNext("How dare this kid wreak havoc in the South Forest. Who knows how long it will take to restore the forest... I'll have to devote most of my time cleaning up the mess.", 2); + qm.forceStartQuest(); + qm.sendNext("How dare this kid wreak havoc in the South Forest. Who knows how long it will take to restore the forest... I'll have to devote most of my time cleaning up the mess.", 2); } else if (status == 4) { - qm.sendPrev("#b(You were able to find out what caused the changes in the Green Mushrooms. You should report #p1002104# and deliver the information you've collected.)#k", 2); + qm.sendPrev("#b(You were able to find out what caused the changes in the Green Mushrooms. You should report #p1002104# and deliver the information you've collected.)#k", 2); } else if (status == 5) { - qm.dispose(); + qm.dispose(); } } diff --git a/scripts/quest/21719.js b/scripts/quest/21719.js index ae21781a97..8ea077a2b1 100644 --- a/scripts/quest/21719.js +++ b/scripts/quest/21719.js @@ -1,26 +1,26 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 2) { - qm.dispose(); - return; - } - status--; + if (status == 2) { + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("Aren't you the one that used to be in #m101000000# until not too long ago? I finally found you! Do you know how long it took for me to finally find you?", 8); + qm.sendNext("Aren't you the one that used to be in #m101000000# until not too long ago? I finally found you! Do you know how long it took for me to finally find you?", 8); } else if (status == 1) { - qm.sendNextPrev("Who are you?", 2); + qm.sendNextPrev("Who are you?", 2); } else if (status == 2) { - qm.sendAcceptDecline("Me? If you want to know, stop by my cave. I'll even send you an invitation. You'll be directly sent to my cave as soon as you accept. Look forward to seeing you there."); + qm.sendAcceptDecline("Me? If you want to know, stop by my cave. I'll even send you an invitation. You'll be directly sent to my cave as soon as you accept. Look forward to seeing you there."); } else if (status == 3) { qm.forceCompleteQuest(); qm.warp(910510200, 0); diff --git a/scripts/quest/21720.js b/scripts/quest/21720.js index e054020f21..d0b1a4ed93 100644 --- a/scripts/quest/21720.js +++ b/scripts/quest/21720.js @@ -5,48 +5,48 @@ function start(mode, type, selection) { } function end(mode, type, selection) { - if(mode == -1 || mode == 0 && type > 0) { + if (mode == -1 || mode == 0 && type > 0) { qm.dispose(); return; } - + if (mode == 1) { - status++; + status++; } else { - if (status == 6) { - qm.dispose(); - return; - } - status--; + if (status == 6) { + qm.dispose(); + return; + } + status--; } if (status == 0) { - qm.sendNext("What can I do for you? Tru sent me a message saying that you've been training diligently in Victoria Island while helping him with his work. What is it? What? The Black Wings?", 8); + qm.sendNext("What can I do for you? Tru sent me a message saying that you've been training diligently in Victoria Island while helping him with his work. What is it? What? The Black Wings?", 8); } else if (status == 1) { - qm.sendNextPrev("#b(You tell her about the Puppeteer and the Black Wings, and about their mission.)#k", 2); + qm.sendNextPrev("#b(You tell her about the Puppeteer and the Black Wings, and about their mission.)#k", 2); } else if (status == 2) { - qm.sendNextPrev("I see... I didn't know there was a group called the Black Wings... They must be fools if they're trying to revive the Black Mage, knowing how dangerous he is.", 8); + qm.sendNextPrev("I see... I didn't know there was a group called the Black Wings... They must be fools if they're trying to revive the Black Mage, knowing how dangerous he is.", 8); } else if (status == 3) { - qm.sendNextPrev("That...that's true...\r\r#b(She's definitely not afraid to speak her mind.)#k", 2); + qm.sendNextPrev("That...that's true...\r\r#b(She's definitely not afraid to speak her mind.)#k", 2); } else if (status == 4) { - qm.sendNextPrev("The Book of Prophecy states that the hero will revive and fight against the Black Mage. I wasn't sure if that was true, but this confirms that the Black Mage is still around.", 8); + qm.sendNextPrev("The Book of Prophecy states that the hero will revive and fight against the Black Mage. I wasn't sure if that was true, but this confirms that the Black Mage is still around.", 8); } else if (status == 5) { - qm.sendNextPrev("Aren't you scared?", 2); + qm.sendNextPrev("Aren't you scared?", 2); } else if (status == 6) { - qm.sendYesNo("Scared? Pfft. Who cares if the Black Mage appears. You'll be here to protect us. If anything, this makes me want to prepare you for the big battle. Ah, that reminds me, I found a #bskill#k. Would you like to see it?"); + qm.sendYesNo("Scared? Pfft. Who cares if the Black Mage appears. You'll be here to protect us. If anything, this makes me want to prepare you for the big battle. Ah, that reminds me, I found a #bskill#k. Would you like to see it?"); } else if (status == 7) { - if (qm.getQuestStatus(21720) == 1) { - qm.forceCompleteQuest(); - qm.teachSkill(21001003, qm.getPlayer().getSkillLevel(21001003), 20, -1); - qm.gainExp(3900); - } + if (qm.getQuestStatus(21720) == 1) { + qm.forceCompleteQuest(); + qm.teachSkill(21001003, qm.getPlayer().getSkillLevel(21001003), 20, -1); + qm.gainExp(3900); + } qm.sendNext('#b(You remembered the Polearm Booster skill!)#k', 2); } else if (status == 8) { - qm.sendNextPrev("This skill was found in an ancient incomprehensible script. I had a hunch it might be a skill you used in the past, and I think I was right. You're not as strong as you used to be, but you'll get there, in time.", 8); + qm.sendNextPrev("This skill was found in an ancient incomprehensible script. I had a hunch it might be a skill you used in the past, and I think I was right. You're not as strong as you used to be, but you'll get there, in time.", 8); } else if (status == 9) { - qm.sendNextPrev("You are steadily becoming more powerful, and I'll be here to keep motivating you. You have nothing to be afraid of. You will not lose the battle. You didn't emerge from ice only to lose to the Black Mage, did you? This time, you'll finish him, once and for all!", 8); + qm.sendNextPrev("You are steadily becoming more powerful, and I'll be here to keep motivating you. You have nothing to be afraid of. You will not lose the battle. You didn't emerge from ice only to lose to the Black Mage, did you? This time, you'll finish him, once and for all!", 8); } else if (status == 10) { - qm.sendPrev("To do so, there's only one thing you can do. Train, train, train. Head to Victoria Island and continue training. Let's make sure you become so powerful that the Black Mage doesn't stand a chance!", 8); + qm.sendPrev("To do so, there's only one thing you can do. Train, train, train. Head to Victoria Island and continue training. Let's make sure you become so powerful that the Black Mage doesn't stand a chance!", 8); } else if (status == 11) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/21729.js b/scripts/quest/21729.js index dc0605940c..9334104005 100644 --- a/scripts/quest/21729.js +++ b/scripts/quest/21729.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Okay, you should not return to #bTru#k for further details on your next steps. ... Oh wait!! I remembered something. See the #rMysterious Statue#k over there? That statue has it's origins unknwown, and there's something scribbled onto it that resembles something big, it probably is the password for the cave? #rGet the password there#k, it may help you on your journey."); } else if (status == 1) { diff --git a/scripts/quest/21733.js b/scripts/quest/21733.js index 95bf1964a2..a10912b9c4 100644 --- a/scripts/quest/21733.js +++ b/scripts/quest/21733.js @@ -24,17 +24,18 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("Aran, Lith have been caught off guard. We are under attack! Get here ASAP."); } else { qm.forceStartQuest(); @@ -47,24 +48,25 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("Aran, thank you very much! Somehow the Puppeteer managed to bypass the security of Lith Harbor. He was trying to seek revenge because of the other day. Luckily, you came by. Nicely done!"); - } else if(status == 1) { + } else if (status == 1) { qm.sendNext("I will teach you the #rPolearm Mastery#k skill, to reward your actions here. You will be able to improve your accuracy and the overall mastery of your polearm arts."); - } else if(status == 2) { + } else if (status == 2) { qm.gainExp(8000); qm.teachSkill(21100000, 0, 20, -1); // polearm mastery - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/21734.js b/scripts/quest/21734.js index fee87ea085..b35f46a0af 100644 --- a/scripts/quest/21734.js +++ b/scripts/quest/21734.js @@ -24,17 +24,18 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("Hello there, Aran. We received a report that the Puppeteer, one of the members of the Black Wing, is currently based #bsomewhere on the deep forest of Sleepywood#k. Your mission is to enter the place and defeat him there, once for all."); } else { qm.forceStartQuest(); @@ -47,28 +48,29 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("You made it, Aran! The Puppeteer now will not disturb the peace at Victoria Island any longer. Furthermore, now we could clearly investigate the doings of the Black Wing here, at Victoria."); - } else if(status == 1) { + } else if (status == 1) { qm.sendNext("They were after the #bcrystal seal of Victoria#k. These seals are what repels the Black Mage to further taking the continents into his grasp at once. Each continent has one, Victoria's now is safe and sound."); - } else if(status == 2) { + } else if (status == 2) { qm.sendNext("For your bravery inputted on these series of missions, I will now reward you properly. Behold, the #rCombo Drain#k Skill: that let's you heal back a portion of damage dealt to the monsters."); - } else if(status == 3) { + } else if (status == 3) { qm.forceCompleteQuest(); - + qm.gainExp(12500); qm.teachSkill(21100005, 0, 20, -1); // combo drain - + qm.dispose(); } } diff --git a/scripts/quest/21735.js b/scripts/quest/21735.js index ce4e9ffd77..90baeb3cac 100644 --- a/scripts/quest/21735.js +++ b/scripts/quest/21735.js @@ -24,26 +24,29 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Aran, ever since the Puppeteer's ambush on me, I've been thinking it is dangerous to have the #b#t4032323##k around here by myself. So, I need you to deliver the gem to #r#p1201000##k, in Rien, she will know what to do with it."); } else if (status == 1) { - if(!qm.canHold(4032323, 1)) { + if (!qm.canHold(4032323, 1)) { qm.sendNext("Please free a slot on your ETC inventory before receiving the item."); qm.dispose(); return; } - - if(!qm.haveItem(4032323, 1)) qm.gainItem(4032323, 1); + + if (!qm.haveItem(4032323, 1)) { + qm.gainItem(4032323, 1); + } qm.forceStartQuest(); qm.dispose(); } @@ -54,18 +57,19 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.haveItem(4032323, 1)) { + if (qm.haveItem(4032323, 1)) { qm.sendNext("#r#p1002104##k sent the #b#t4032323##k here for safety? Thank goodness, indeed here the gem will be safer than anywhere on Victoria Island. Thank you, #b#h0##k."); } else { qm.dispose(); @@ -74,7 +78,7 @@ function end(mode, type, selection) { qm.gainItem(4032323, -1); qm.gainExp(6037); qm.forceCompleteQuest(); - + qm.dispose(); } } diff --git a/scripts/quest/21736.js b/scripts/quest/21736.js index fdc12d5624..01382f6556 100644 --- a/scripts/quest/21736.js +++ b/scripts/quest/21736.js @@ -24,25 +24,26 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("Long time no see! You've leveled up a lot since the last time we met. You must be training really hard. Always hard-working. I'm not surprised. It's exactly what a hero like you would do. I'm sure Lilin will be happy to hear about your progress."); - } else if(status == 1) { + } else if (status == 1) { qm.sendNextPrev("Anyway, enough small talk. I realized that it might be more effective to search for information in places outside Victoria Island as well, so I've begun investigating in Ossyria. I began with #bOrbis#k and immediately hit the jackpot."); - } else if(status == 2) { + } else if (status == 2) { qm.sendNextPrev("It seems like something strange is happening in Orbis in Ossyria. It's a bit different from when we were dealing with the puppeteer, but my instincts tell me it has to do with the Black Wings. Please head over to Orbis."); - } else if(status == 3) { + } else if (status == 3) { qm.sendAcceptDecline("#bLisa the Fairy#k in Orbis should know a thing or two. Go see Lisa first, she knows someone that knows the whereabouts of the sealing stone. That person #rwill require a password from you#k, when requested use the #bThere's something strange going on in Orbis....#k keyword to talk to her. Understood?"); - } else if(status == 4) { + } else if (status == 4) { qm.forceStartQuest(); qm.dispose(); } diff --git a/scripts/quest/21738.js b/scripts/quest/21738.js index c1345fbb11..f2cbcc8f0d 100644 --- a/scripts/quest/21738.js +++ b/scripts/quest/21738.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { // thanks ZEROå‚‘æ´› for noticing this quest shouldn't need a pw -- GMS-like string data thanks to skycombat qm.sendNext("What is it? I usually don't welcome uninvited guests, but you have a mysterious aura that makes me curious about what you have to say.", 9); } else if (status == 1) { diff --git a/scripts/quest/21739.js b/scripts/quest/21739.js index e711d50f6e..b592915278 100644 --- a/scripts/quest/21739.js +++ b/scripts/quest/21739.js @@ -24,17 +24,18 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("So, have you defeated the giant? Oh, a Black Wing agent undercover? And he GOT THE SEAL STONE OF ORBIS?! Oh, no. That's horrible! We need to develop countermeasures as soon as possible! Tell the informant on Lith about the situation."); } else if (status == 1) { qm.forceCompleteQuest(); diff --git a/scripts/quest/21740.js b/scripts/quest/21740.js index c4a4b8d64a..772b15d200 100644 --- a/scripts/quest/21740.js +++ b/scripts/quest/21740.js @@ -24,17 +24,18 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("The Orbis seal has been stolen by the Black Wings? Hmm, that has gone awry. Go tell #bLilin#k about this, she must have something in mind on this situation."); } else { qm.forceStartQuest(); @@ -47,21 +48,22 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if(status == 0) { + } + + if (status == 0) { qm.sendNext("Oh, hi #h0#! You won't believe what I just uncovered. It's one of your lost skills... What, the seal of Orbis got stolen by the Black Wings? Oh my..."); - } else if(status == 1) { + } else if (status == 1) { qm.sendNext("For now, let me teach you the #bCombo Smash#k, with it you will be able to deal massive amount of damage to many monsters at once. We will need to use it if we want to stand a chance against the Black Wings now, so don't forget it!"); - } else if(status == 2) { + } else if (status == 2) { qm.forceCompleteQuest(); qm.teachSkill(21100004, 0, 20, -1); // combo smash qm.dispose(); diff --git a/scripts/quest/21741.js b/scripts/quest/21741.js index b2ed795614..27fc75703c 100644 --- a/scripts/quest/21741.js +++ b/scripts/quest/21741.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Have you been advancing your levels? I found an interesting piece of information about the Black Wings. This time, you'll have to travel quite a bit. Do you know a town called #bMu Lung#k? You'll have to head there."); } else if (status == 1) { diff --git a/scripts/quest/21742.js b/scripts/quest/21742.js index 26fb246773..9f19260050 100644 --- a/scripts/quest/21742.js +++ b/scripts/quest/21742.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Well, I'm not really busy of anything, bit I don't feel like concocting medicine. Can you come back later? If you don't mind, move.", 9); } else if (status == 1) { @@ -53,16 +54,16 @@ function start(mode, type, selection) { } else if (status == 8) { qm.sendNextPrev("So then I thought, well what's the point of delivering it to Mu Gong? I must first restore the writing on Hanging Scroll. That's why I need you to do something for me. The guy down there writing on Hanging Scroll... is #bJin Jin#k, the greatest artist on all of Mu Lung. I'm sure he'd be able to restore the writing on Hanging Scroll.", 9); } else { - if(!qm.haveItem(4220151, 1)) { - if(!qm.canHold(4220151, 1)) { + if (!qm.haveItem(4220151, 1)) { + if (!qm.canHold(4220151, 1)) { qm.sendOk("Please free a room on your ETC inventory.", 9); qm.dispose(); return; } - + qm.gainItem(4220151, 1); } - + qm.forceStartQuest(); qm.dispose(); } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, you brought the ink. Now let me pour it, cautiously.... Almost there, almost. ... ..... Kyaaa! Th-the letter. It says: 'I'll be there to take your Seal Rock of Mu Lung.'"); } else if (status == 1) { qm.gainItem(4032342, -8); qm.gainItem(4220151, -1); qm.gainExp(10000); - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/21746.js b/scripts/quest/21746.js index 2c6100cd43..2a123b2c75 100644 --- a/scripts/quest/21746.js +++ b/scripts/quest/21746.js @@ -24,31 +24,31 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("If you want to know more about the Seal Rock of Mu Lung, you will need to pass my test. Prove your valor overpowering me in melee combat, only then I shall recognize you as a worthy knight."); } else { var mapobj = qm.getWarpMap(925040001); - if(mapobj.countPlayers() == 0) { + if (mapobj.countPlayers() == 0) { mapobj.resetPQ(1); - + qm.warp(925040001, 0); qm.forceStartQuest(); - } - else { + } else { qm.sendOk("Someone is already attempting a challenge. Wait for them to finish before you enter."); } - + qm.dispose(); } } @@ -58,23 +58,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, you brought the ink. Now let me pour it, cautiously.... Almost there, almost. ... ..... Kyaaa! Th-the letter. It says: 'I'll be there to take your Seal Rock of Mu Lung.'"); } else if (status == 1) { qm.gainItem(4032342, -8); qm.gainItem(4220151, -1); qm.gainExp(10000); - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/21747.js b/scripts/quest/21747.js index 848ec5b90a..a604035f1e 100644 --- a/scripts/quest/21747.js +++ b/scripts/quest/21747.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendAcceptDecline("Who would have thought that the hero's successor would reappear after hundred of years...? Will you bring prosperity to Maple World or will you end its existence? I suppose it really doesn't matter. Alright, I'll tell you what I know about the Seal Stone of Mu Lung."); } else if (status == 1) { @@ -49,16 +50,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("So you have defeated the Shadow Knight. I have never doubted of your handiwork, and you handled the task well."); } else if (status == 1) { @@ -66,7 +68,7 @@ function end(mode, type, selection) { } else if (status == 2) { qm.gainExp(16000); qm.forceCompleteQuest(); - + qm.dispose(); } } diff --git a/scripts/quest/21748.js b/scripts/quest/21748.js index f244269c66..dbf1bd5b36 100644 --- a/scripts/quest/21748.js +++ b/scripts/quest/21748.js @@ -24,16 +24,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Aran, you came back home safe! So, how fared the mission in Mu Lung? #rGentleman#k ambushed and stole the seal rock again? That's unfortunate. At least you are unharmed, I'm glad."); } else if (status == 1) { @@ -41,9 +42,9 @@ function end(mode, type, selection) { } else if (status == 2) { qm.gainExp(20000); qm.teachSkill(21100002, 0, 30, -1); // final charge - + qm.forceCompleteQuest(); - + qm.dispose(); } } diff --git a/scripts/quest/21749.js b/scripts/quest/21749.js index 9e4d69dfaf..abb9034224 100644 --- a/scripts/quest/21749.js +++ b/scripts/quest/21749.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("So we have lost #btwo seal stones#k so far, from the neighboring areas of #rOrbis#k and #rMu Lung#k... Things are starting to get out of control, it seems."); } else if (status == 1) { diff --git a/scripts/quest/21750.js b/scripts/quest/21750.js index 04961a9a0c..d672bcf51b 100644 --- a/scripts/quest/21750.js +++ b/scripts/quest/21750.js @@ -24,16 +24,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Aran, you're finally back!!! How you've been doing? Where did you go for so long? We have so much to catch up..."); } else if (status == 1) { diff --git a/scripts/quest/21753.js b/scripts/quest/21753.js index 6812c3c79f..84cc402110 100644 --- a/scripts/quest/21753.js +++ b/scripts/quest/21753.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Aran, I've discovered some disturbing news... You said you've come from the eastern forest section, right? We traced and studied the magic being used to support the portal over there. It turns out that's of a #rtemporal#k-type. The garments you're using... They were never seen around before. That must mean, #ryou must have come from the future#k."); } else if (status == 1) { diff --git a/scripts/quest/21754.js b/scripts/quest/21754.js index 6646219116..53296be632 100644 --- a/scripts/quest/21754.js +++ b/scripts/quest/21754.js @@ -24,27 +24,28 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.canHold(4032328, 1)) { + if (!qm.canHold(4032328, 1)) { qm.sendNext("Hm, I will need you to prepare a ETC slot for a letter I need to give you."); qm.dispose(); return; } - + qm.sendNext("Here, take this. Send it to #r#p1002104##k, it contains a relevant matter for protecting this world. Please comply to this request."); } else if (status == 1) { qm.forceStartQuest(); - + qm.gainItem(4032328, 1); qm.dispose(); } diff --git a/scripts/quest/21757.js b/scripts/quest/21757.js index 4b37da7621..9c4f71ba93 100644 --- a/scripts/quest/21757.js +++ b/scripts/quest/21757.js @@ -24,16 +24,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, a letter for the #rempress#k? From the #bheroes#k?!"); } else if (status == 1) { diff --git a/scripts/quest/21766.js b/scripts/quest/21766.js index dbcbb141bc..5e9553440a 100644 --- a/scripts/quest/21766.js +++ b/scripts/quest/21766.js @@ -1,23 +1,23 @@ var status = -1; function start(mode, type, selection) { - status++; - if (status == 0) { - qm.sendNext("Hey! Can you do me a favor? #p20000# seems a bit strange these days..."); - } else if (status == 1) { - qm.sendNext("He used to scowl and whine about his arthritis until just recently, but he''s suddenly become all happy and smiley!!"); - } else if (status == 2) { - qm.sendNext("I have a feeling there is a secret behind that wooden box. Could you stealthily look into the wooden box next to #p20000#?"); - } else if (status == 3) { - qm.sendNext("You know where #p20000# is, right? He's to the right. Just keep going until you see where Vikin is, then head down past the hanging shark and octopus, and you''ll see John. The box should be right next to him."); - } else if (status == 4) { - qm.forceStartQuest(); - qm.dispose(); - } + status++; + if (status == 0) { + qm.sendNext("Hey! Can you do me a favor? #p20000# seems a bit strange these days..."); + } else if (status == 1) { + qm.sendNext("He used to scowl and whine about his arthritis until just recently, but he''s suddenly become all happy and smiley!!"); + } else if (status == 2) { + qm.sendNext("I have a feeling there is a secret behind that wooden box. Could you stealthily look into the wooden box next to #p20000#?"); + } else if (status == 3) { + qm.sendNext("You know where #p20000# is, right? He's to the right. Just keep going until you see where Vikin is, then head down past the hanging shark and octopus, and you''ll see John. The box should be right next to him."); + } else if (status == 4) { + qm.forceStartQuest(); + qm.dispose(); + } } function end(mode, type, selection) { - qm.forceCompleteQuest(); - qm.gainExp(200); - qm.dispose(); + qm.forceCompleteQuest(); + qm.gainExp(200); + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/21767.js b/scripts/quest/21767.js index de63158d03..78d1d6efb0 100644 --- a/scripts/quest/21767.js +++ b/scripts/quest/21767.js @@ -2,27 +2,27 @@ var status = -1; var canStart; function start(mode, type, selection) { - status++; - if (status == 0) { - if(qm.haveItem(4032423, 1)) { - qm.forceStartQuest(); - qm.dispose(); - return; - } - - canStart = qm.canHold(4032423, 1); - if(!canStart) { - qm.sendNext("Please open a slot in your ETC inventory first."); - return; - } - - qm.sendNext("#bHm, there's a medicinal substance in the box. What could this be? You better take this to John and ask him what it is.#k"); - } else if (status == 1) { - if(canStart) { - qm.gainItem(4032423,1); - qm.forceStartQuest(); - } - - qm.dispose(); - } + status++; + if (status == 0) { + if (qm.haveItem(4032423, 1)) { + qm.forceStartQuest(); + qm.dispose(); + return; + } + + canStart = qm.canHold(4032423, 1); + if (!canStart) { + qm.sendNext("Please open a slot in your ETC inventory first."); + return; + } + + qm.sendNext("#bHm, there's a medicinal substance in the box. What could this be? You better take this to John and ask him what it is.#k"); + } else if (status == 1) { + if (canStart) { + qm.gainItem(4032423, 1); + qm.forceStartQuest(); + } + + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2186.js b/scripts/quest/2186.js index 9595e7b98e..d44e7169ea 100644 --- a/scripts/quest/2186.js +++ b/scripts/quest/2186.js @@ -5,48 +5,48 @@ var status = -1; // thanks IxianMace for noticing missing status declaration -function end(mode, type, selection){ +function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.isQuestCompleted(2186)) { - if(qm.haveItem(4031853)){ - if(qm.canHold(2030019)) { + if (!qm.isQuestCompleted(2186)) { + if (qm.haveItem(4031853)) { + if (qm.canHold(2030019)) { qm.gainItem(4031853, -1); qm.gainExp(1700); qm.gainItem(2030019, 10); qm.sendOk("Geez, you found my glasses! Thank you, thank you so much. Now I'm able to see everything again!"); qm.forceCompleteQuest(); - } - else { + } else { qm.sendOk("I need you to have an USE slot available to reward you properly!"); } - }else if(qm.haveItem(4031854) || qm.haveItem(4031855)){ //When I figure out how to make a completance with just a pickup xD - if(qm.canHold(2030019)) { - if(qm.haveItem(4031854)) + } else if (qm.haveItem(4031854) || qm.haveItem(4031855)) { //When I figure out how to make a completance with just a pickup xD + if (qm.canHold(2030019)) { + if (qm.haveItem(4031854)) { qm.gainItem(4031854, -1); - else + } else { qm.gainItem(4031855, -1); + } qm.gainExp(1000); qm.gainItem(2030019, 5); qm.sendOk("Hm, those aren't my glasses... But alas, I'll take it anyway. Thanks."); qm.forceCompleteQuest(); - } - else { + } else { qm.sendOk("I need you to have an USE slot available to reward you properly!"); } } diff --git a/scripts/quest/2197.js b/scripts/quest/2197.js index d2fa18169c..05cff6d4c7 100644 --- a/scripts/quest/2197.js +++ b/scripts/quest/2197.js @@ -4,16 +4,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, you already have monster book. Good luck on your journey~!"); } else if (status == 1) { @@ -22,20 +23,22 @@ function start(mode, type, selection) { } } } + function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Oh, you already have monster book. Good luck on your journey~!"); } else if (status == 1) { diff --git a/scripts/quest/22000.js b/scripts/quest/22000.js index 814ac72d33..40d4910cc5 100644 --- a/scripts/quest/22000.js +++ b/scripts/quest/22000.js @@ -1,62 +1,62 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Did you sleep well, Evan?"); - } else if (status == 1) { - qm.sendNextPrev("#bYes, what about you, Mom?", 2); - } else if (status == 2) { - qm.sendNextPrev("I did as well, but you seem so tired. Are you sure you slept okay? Did the thunder and lightning last night keep you up?"); - } else if (status == 3) { - qm.sendNextPrev("#bOh, no. It's not that, Mom. I just had a strange dream last night.", 2); - } else if (status == 4) { - qm.sendNextPrev("A strange dream? What kind of strange dream?"); - } else if (status == 5) { - qm.sendNextPrev("#bWell...", 2); - } else if (status == 6) { - qm.sendNextPrev("#b(You explain that you met a dragon in your dream.)", 2); - } else if (status == 7) { - qm.sendAcceptDecline("Hahaha, a dragon? That's incredible. I'm glad he didn't swallow you whole! You should tell #p1013101# about your dream. I'm sure he'll enjoy it."); - } else if (status == 8) { - if (mode == 0) {//decline - qm.sendNext("Hm? Don't you want to tell #p1013101#? You have to be nice to your brother, dear.");//guess - qm.dispose();//get the message xd - } else {//accept - qm.forceStartQuest(); - qm.sendNext("#b#p1013101##k went to the #b#m100030102##k to feed the Bull Dog. You'll see him right outside."); - } - } else if (status == 9) { - qm.sendImage("UI/tutorial/evan/1/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Did you sleep well, Evan?"); + } else if (status == 1) { + qm.sendNextPrev("#bYes, what about you, Mom?", 2); + } else if (status == 2) { + qm.sendNextPrev("I did as well, but you seem so tired. Are you sure you slept okay? Did the thunder and lightning last night keep you up?"); + } else if (status == 3) { + qm.sendNextPrev("#bOh, no. It's not that, Mom. I just had a strange dream last night.", 2); + } else if (status == 4) { + qm.sendNextPrev("A strange dream? What kind of strange dream?"); + } else if (status == 5) { + qm.sendNextPrev("#bWell...", 2); + } else if (status == 6) { + qm.sendNextPrev("#b(You explain that you met a dragon in your dream.)", 2); + } else if (status == 7) { + qm.sendAcceptDecline("Hahaha, a dragon? That's incredible. I'm glad he didn't swallow you whole! You should tell #p1013101# about your dream. I'm sure he'll enjoy it."); + } else if (status == 8) { + if (mode == 0) {//decline + qm.sendNext("Hm? Don't you want to tell #p1013101#? You have to be nice to your brother, dear.");//guess + qm.dispose();//get the message xd + } else {//accept + qm.forceStartQuest(); + qm.sendNext("#b#p1013101##k went to the #b#m100030102##k to feed the Bull Dog. You'll see him right outside."); + } + } else if (status == 9) { + qm.sendImage("UI/tutorial/evan/1/0"); + qm.dispose(); + } } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Hey, Evan. You up? What's with the dark circles under your eyes? Didn't sleep well? Huh? A strange dream? What was it about? Whoa? A dream about a dragon?"); - } else if (status == 1) { - qm.sendNextPrev("Muahahahahaha, a dragon? Are you serious? I don't know how to interpret dreams, but that sounds like a good one! Did you see a dog in your dream, too? Hahaha! \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 20 exp"); - } else if (status == 2) { - qm.forceCompleteQuest(); - qm.gainExp(20); - qm.sendImage("UI/tutorial/evan/2/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Hey, Evan. You up? What's with the dark circles under your eyes? Didn't sleep well? Huh? A strange dream? What was it about? Whoa? A dream about a dragon?"); + } else if (status == 1) { + qm.sendNextPrev("Muahahahahaha, a dragon? Are you serious? I don't know how to interpret dreams, but that sounds like a good one! Did you see a dog in your dream, too? Hahaha! \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 20 exp"); + } else if (status == 2) { + qm.forceCompleteQuest(); + qm.gainExp(20); + qm.sendImage("UI/tutorial/evan/2/0"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22001.js b/scripts/quest/22001.js index 98ce206ec0..a1e9e36d5f 100644 --- a/scripts/quest/22001.js +++ b/scripts/quest/22001.js @@ -1,32 +1,32 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Haha. I had a good laugh. Hahaha. But enough with that nonsense. Feed #p1013102#, would you?"); - } else if (status == 1) { - qm.sendNextPrev("#bWhat? That's #p1013101#'s job!", 2); - } else if (status == 2) { - qm.sendAcceptDecline("You little brat! I told you to call me Older Brother! You know how much #p1013102# hates me. He'll bite me if I go near him. You feed him. He likes you."); - } else if (status == 3) { - if (mode == 0) { - qm.sendNext("Stop being lazy. Do you want to see your brother bitten by a dog? Hurry up! Talk to me again and accept the quest!"); - qm.dispose(); - } else {//accept - qm.gainItem(4032447, true); - qm.forceStartQuest(); - qm.sendNext("Hurry up and head #bleft#k to feed #b#p1013102##k. He's been barking to be fed all morning."); - } - } else if (status == 4) { - qm.sendNextPrev("Feed #p1013102# and come back to see me."); - } else if (status == 5) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Haha. I had a good laugh. Hahaha. But enough with that nonsense. Feed #p1013102#, would you?"); + } else if (status == 1) { + qm.sendNextPrev("#bWhat? That's #p1013101#'s job!", 2); + } else if (status == 2) { + qm.sendAcceptDecline("You little brat! I told you to call me Older Brother! You know how much #p1013102# hates me. He'll bite me if I go near him. You feed him. He likes you."); + } else if (status == 3) { + if (mode == 0) { + qm.sendNext("Stop being lazy. Do you want to see your brother bitten by a dog? Hurry up! Talk to me again and accept the quest!"); + qm.dispose(); + } else {//accept + qm.gainItem(4032447, true); + qm.forceStartQuest(); + qm.sendNext("Hurry up and head #bleft#k to feed #b#p1013102##k. He's been barking to be fed all morning."); } + } else if (status == 4) { + qm.sendNextPrev("Feed #p1013102# and come back to see me."); + } else if (status == 5) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22002.js b/scripts/quest/22002.js index d759a4ec9b..5b79a9a503 100644 --- a/scripts/quest/22002.js +++ b/scripts/quest/22002.js @@ -1,51 +1,51 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Did you feed #p1013102#? You should have some breakfast now then, Evan. Today's breakfast is a #t2022620#. I've brought it with me. Hee hee. I was going to eat it myself if you didn't agree to feed #p1013102#."); - } else if (status == 1) { - qm.sendAcceptDecline("Here, I'll give you this #bSandwich#k, so #bgo talk to mom when you finish eating#k. She says she has something to tell you."); - } else if (status == 2) { - if (mode == 0) {//decline - qm.sendNext("Oh, what? Aren't you going to have breakfast? Breakfast is the most important meal of the day! Talk to me again if you change your mind. If you don't, I'm going to eat it myself."); - qm.dispose(); - } else { - qm.gainItem(2022620, true); - qm.forceStartQuest(); - qm.sendNext("#b(Mom has something to say? Eat your #t2022620# and head back inside the house.)#k"); - } - } else if (status == 3) { - qm.sendImage("UI/tutorial/evan/3/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Did you feed #p1013102#? You should have some breakfast now then, Evan. Today's breakfast is a #t2022620#. I've brought it with me. Hee hee. I was going to eat it myself if you didn't agree to feed #p1013102#."); + } else if (status == 1) { + qm.sendAcceptDecline("Here, I'll give you this #bSandwich#k, so #bgo talk to mom when you finish eating#k. She says she has something to tell you."); + } else if (status == 2) { + if (mode == 0) {//decline + qm.sendNext("Oh, what? Aren't you going to have breakfast? Breakfast is the most important meal of the day! Talk to me again if you change your mind. If you don't, I'm going to eat it myself."); + qm.dispose(); + } else { + qm.gainItem(2022620, true); + qm.forceStartQuest(); + qm.sendNext("#b(Mom has something to say? Eat your #t2022620# and head back inside the house.)#k"); + } + } else if (status == 3) { + qm.sendImage("UI/tutorial/evan/3/0"); + qm.dispose(); + } } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Did you eat your breakfast, Evan? Then, will you do me a favor? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1003028# 1 #t1003028# \r\n#i2022621# 5 #t2022621#s \r\n#i2022622# 5 #t2022622# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 60 exp"); - } else if (status == 1) { - qm.forceCompleteQuest(); - qm.gainItem(1003028, 1, true); - qm.gainItem(2022621, 5, true); - qm.gainItem(2022622, 5, true); - qm.gainExp(60); - qm.sendImage("UI/tutorial/evan/4/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Did you eat your breakfast, Evan? Then, will you do me a favor? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1003028# 1 #t1003028# \r\n#i2022621# 5 #t2022621#s \r\n#i2022622# 5 #t2022622# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 60 exp"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainItem(1003028, 1, true); + qm.gainItem(2022621, 5, true); + qm.gainItem(2022622, 5, true); + qm.gainExp(60); + qm.sendImage("UI/tutorial/evan/4/0"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22003.js b/scripts/quest/22003.js index 90ec2a4570..d84836dd4d 100644 --- a/scripts/quest/22003.js +++ b/scripts/quest/22003.js @@ -1,33 +1,33 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendAcceptDecline("Your #bDad#k forgot his Lunch Box when he left for the farm this morning. Will you #bdeliver this Lunch Box#k to your Dad in #b#m100030300##k, honey?"); - } else if (status == 1) { - if (mode == 0 && type == 15) {//decline - qm.sendNext("Good kids listen to their mothers. Now, Evan, be a good kid and talk to me again."); - qm.dispose(); - } else { - if (!qm.isQuestStarted(22003)) { - if (!qm.haveItem(4032448)) { - qm.gainItem(4032448, true); - } - qm.forceStartQuest(); - } - qm.sendNext("Heehee, my Evan is such a good kid! Head #bleft after you exit the house#k. Rush over to your dad. I'm sure he's starving."); - } - } else if (status == 2) { - qm.sendNextPrev("Come back to me if you happen to lose the Lunch Box. I'll make his lunch again."); - } else if (status == 3) { - qm.sendImage("UI/tutorial/evan/5/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendAcceptDecline("Your #bDad#k forgot his Lunch Box when he left for the farm this morning. Will you #bdeliver this Lunch Box#k to your Dad in #b#m100030300##k, honey?"); + } else if (status == 1) { + if (mode == 0 && type == 15) {//decline + qm.sendNext("Good kids listen to their mothers. Now, Evan, be a good kid and talk to me again."); + qm.dispose(); + } else { + if (!qm.isQuestStarted(22003)) { + if (!qm.haveItem(4032448)) { + qm.gainItem(4032448, true); + } + qm.forceStartQuest(); + } + qm.sendNext("Heehee, my Evan is such a good kid! Head #bleft after you exit the house#k. Rush over to your dad. I'm sure he's starving."); + } + } else if (status == 2) { + qm.sendNextPrev("Come back to me if you happen to lose the Lunch Box. I'll make his lunch again."); + } else if (status == 3) { + qm.sendImage("UI/tutorial/evan/5/0"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22004.js b/scripts/quest/22004.js index 0852b9afaa..d40426d5bd 100644 --- a/scripts/quest/22004.js +++ b/scripts/quest/22004.js @@ -1,52 +1,52 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("The #o1210100#s at the farm have been acting strange these past couple days. They've been angry and irritable for no reason. I was worried so I came out to the farm early this morning and sure enough, it seems like a few of these #o1210100#s got past the fence."); - } else if (status == 1) { - qm.sendAcceptDecline("Before I go and find the #o1210100#s, I should mend the broken fence. Luckily, it wasn't damaged too badly. I just need a few #t4032498#es to fix it right up. Will you bring me #b3#k #b#t4032498#es#k, Evan?"); - } else if (status == 2) { - if (mode == 0) {//decline - qm.sendNext("Hm, #p1013101# would have done it at the drop of a hat."); - qm.dispose(); - } else { - qm.forceStartQuest(); - qm.sendNext("Oh, that's very nice of you. You'll be able to find #b#t4032498#es#k from the nearby #r#o0130100#s#k. They're not too strong, but use your skills and items when you find yourself in danger."); - } - } else if (status == 3) { - qm.sendImage("UI/tutorial/evan/6/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("The #o1210100#s at the farm have been acting strange these past couple days. They've been angry and irritable for no reason. I was worried so I came out to the farm early this morning and sure enough, it seems like a few of these #o1210100#s got past the fence."); + } else if (status == 1) { + qm.sendAcceptDecline("Before I go and find the #o1210100#s, I should mend the broken fence. Luckily, it wasn't damaged too badly. I just need a few #t4032498#es to fix it right up. Will you bring me #b3#k #b#t4032498#es#k, Evan?"); + } else if (status == 2) { + if (mode == 0) {//decline + qm.sendNext("Hm, #p1013101# would have done it at the drop of a hat."); + qm.dispose(); + } else { + qm.forceStartQuest(); + qm.sendNext("Oh, that's very nice of you. You'll be able to find #b#t4032498#es#k from the nearby #r#o0130100#s#k. They're not too strong, but use your skills and items when you find yourself in danger."); + } + } else if (status == 3) { + qm.sendImage("UI/tutorial/evan/6/0"); + qm.dispose(); + } } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Ah, did you bring all the #t4032498#es? That's my kid! What shall I give you as a reward... Let's see... Oh, right! \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3010097# 1 #t3010097# \r\n#i2022621# 15 #t2022621#s \r\n#i2022622# 15 #t2022622#s \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 210 exp"); - } else if (status == 1) { - if (!qm.isQuestCompleted(22004)) { - qm.gainItem(3010097, true); - qm.forceCompleteQuest(); - qm.gainExp(210); - } - qm.sendNextPrev("Here. I made this new chair from the wooden boards I had left over after fixing the fence. It may not seem like much, but it's sturdy. I'm sure it'll come in handy."); - } else if (status == 2) { - qm.sendImage("UI/tutorial/evan/7/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Ah, did you bring all the #t4032498#es? That's my kid! What shall I give you as a reward... Let's see... Oh, right! \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3010097# 1 #t3010097# \r\n#i2022621# 15 #t2022621#s \r\n#i2022622# 15 #t2022622#s \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 210 exp"); + } else if (status == 1) { + if (!qm.isQuestCompleted(22004)) { + qm.gainItem(3010097, true); + qm.forceCompleteQuest(); + qm.gainExp(210); + } + qm.sendNextPrev("Here. I made this new chair from the wooden boards I had left over after fixing the fence. It may not seem like much, but it's sturdy. I'm sure it'll come in handy."); + } else if (status == 2) { + qm.sendImage("UI/tutorial/evan/7/0"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22007.js b/scripts/quest/22007.js index 19519e5236..96ec7c2148 100644 --- a/scripts/quest/22007.js +++ b/scripts/quest/22007.js @@ -1,28 +1,28 @@ var status = -1; function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Oh, did you bring the #t4032451#? Here, give it to me. I'll give you the Incubator then."); - } else if (status == 1) { - qm.sendYesNo("Alright, here you go. I have no idea how you use it, but it's yours... \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 360 exp"); - } else if (status == 2) { - if (mode == 0) {//decline - qm.sendNext("Hm? That's strange. The Incubator wasn't installed properly. Try again."); - } else { - qm.gainItem(4032451, -1); - qm.forceCompleteQuest(); - qm.gainExp(360); - qm.sendImage("UI/tutorial/evan/9/0"); - } - } else if (status == 3) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Oh, did you bring the #t4032451#? Here, give it to me. I'll give you the Incubator then."); + } else if (status == 1) { + qm.sendYesNo("Alright, here you go. I have no idea how you use it, but it's yours... \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 360 exp"); + } else if (status == 2) { + if (mode == 0) {//decline + qm.sendNext("Hm? That's strange. The Incubator wasn't installed properly. Try again."); + } else { + qm.gainItem(4032451, -1); + qm.forceCompleteQuest(); + qm.gainExp(360); + qm.sendImage("UI/tutorial/evan/9/0"); } + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22008.js b/scripts/quest/22008.js index cf5431dadd..a416893d2a 100644 --- a/scripts/quest/22008.js +++ b/scripts/quest/22008.js @@ -1,75 +1,75 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendAcceptDecline("It's strange. The chickens are acting funny. They used to hatch way more #t4032451#s. Do you think the Foxes have something to do with it? If so, we better hurry up and do something."); - } else if (status == 1) { - if (mode == 0) {//decline - qm.sendNext("Oh what... Are you scared of the #o9300385#es? Don't tell anyone you're related to me. That's shameful."); - qm.dispose(); - } else { - qm.forceStartQuest(); - qm.sendNext("Right? Let us go and defeat those Foxes. Go on ahead and defeat #r10 #o9300385#es#k in #b#m100030103##k first. I'll follow you and take care of what's left behind. Now, hurry over to #m100030103#!"); - } - } else if (status == 2) { - qm.sendImage("UI/tutorial/evan/10/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendAcceptDecline("It's strange. The chickens are acting funny. They used to hatch way more #t4032451#s. Do you think the Foxes have something to do with it? If so, we better hurry up and do something."); + } else if (status == 1) { + if (mode == 0) {//decline + qm.sendNext("Oh what... Are you scared of the #o9300385#es? Don't tell anyone you're related to me. That's shameful."); + qm.dispose(); + } else { + qm.forceStartQuest(); + qm.sendNext("Right? Let us go and defeat those Foxes. Go on ahead and defeat #r10 #o9300385#es#k in #b#m100030103##k first. I'll follow you and take care of what's left behind. Now, hurry over to #m100030103#!"); + } + } else if (status == 2) { + qm.sendImage("UI/tutorial/evan/10/0"); + qm.dispose(); + } } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Did you defeat the #o9300385#es?"); - } else if (status == 1) { - qm.sendNextPrev("#bWhat happened to slaying the Foxes left behind?", 2); - } else if (status == 2) { - qm.sendNextPrev("Oh, that? Haha. I did chase them, sort of, but I wanted to make sure that they catch up to you. I wouldn't want you eaten by a #o9300385# or anything. So I just let them be."); - } else if (status == 3) { - qm.sendNextPrev("#bAre you sure you weren't just hiding because you were scared of the Foxes?", 2); - } else if (status == 4) { - qm.sendNextPrev("What? No way! Sheesh, I fear nothing!"); - } else if (status == 5) { - qm.sendNextPrev("#bWatch out! There's a #o9300385# right behind you!", 2); - } else if (status == 6) { - qm.sendNextPrev("Eeeek! Mommy!"); - } else if (status == 7) { - qm.sendNextPrev("#b...", 2); - } else if (status == 8) { - qm.sendNextPrev("..."); - } else if (status == 9) { - qm.sendNextPrev("You little brat! I'm your older brother. Don't you mess with me! Your brother has a weak heart, you know. Don't surprise me like that!"); - } else if (status == 10) { - qm.sendNextPrev("#b(This is why I don't want to call you Older Brother...)", 2); - } else if (status == 11) { - qm.sendNextPrev("Hmph! Anyway, I'm glad you were able to defeat the #o9300385#es. As a reward, I'll give you something an adventurer gave me a long time ago. Here you are. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1372043# 1 #t1372043# \r\n#i2022621# 25 #t2022621# \r\n#i2022622# 25 #t2022622#s \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 910 exp"); - } else if (status == 12) { - if (!qm.isQuestCompleted(22008)) { - qm.gainItem(1372043, true); - qm.gainItem(2022621, 25, true); - qm.gainItem(2022622, 25, true); - qm.forceCompleteQuest(); - qm.gainExp(910); - } - qm.sendNextPrev("#bThis is a weapon that Magicians use. It's a Wand#k. You probably won't really need it, but it'll make you look important if you carry it around. Hahahahaha."); - } else if (status == 13) { - qm.sendPrev("Anyway, the Foxes have increased, right? How weird is that? Why are they growing day by day? We should really look into it and get to the bottom of this."); - } else if (status == 14) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Did you defeat the #o9300385#es?"); + } else if (status == 1) { + qm.sendNextPrev("#bWhat happened to slaying the Foxes left behind?", 2); + } else if (status == 2) { + qm.sendNextPrev("Oh, that? Haha. I did chase them, sort of, but I wanted to make sure that they catch up to you. I wouldn't want you eaten by a #o9300385# or anything. So I just let them be."); + } else if (status == 3) { + qm.sendNextPrev("#bAre you sure you weren't just hiding because you were scared of the Foxes?", 2); + } else if (status == 4) { + qm.sendNextPrev("What? No way! Sheesh, I fear nothing!"); + } else if (status == 5) { + qm.sendNextPrev("#bWatch out! There's a #o9300385# right behind you!", 2); + } else if (status == 6) { + qm.sendNextPrev("Eeeek! Mommy!"); + } else if (status == 7) { + qm.sendNextPrev("#b...", 2); + } else if (status == 8) { + qm.sendNextPrev("..."); + } else if (status == 9) { + qm.sendNextPrev("You little brat! I'm your older brother. Don't you mess with me! Your brother has a weak heart, you know. Don't surprise me like that!"); + } else if (status == 10) { + qm.sendNextPrev("#b(This is why I don't want to call you Older Brother...)", 2); + } else if (status == 11) { + qm.sendNextPrev("Hmph! Anyway, I'm glad you were able to defeat the #o9300385#es. As a reward, I'll give you something an adventurer gave me a long time ago. Here you are. \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i1372043# 1 #t1372043# \r\n#i2022621# 25 #t2022621# \r\n#i2022622# 25 #t2022622#s \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 910 exp"); + } else if (status == 12) { + if (!qm.isQuestCompleted(22008)) { + qm.gainItem(1372043, true); + qm.gainItem(2022621, 25, true); + qm.gainItem(2022622, 25, true); + qm.forceCompleteQuest(); + qm.gainExp(910); } + qm.sendNextPrev("#bThis is a weapon that Magicians use. It's a Wand#k. You probably won't really need it, but it'll make you look important if you carry it around. Hahahahaha."); + } else if (status == 13) { + qm.sendPrev("Anyway, the Foxes have increased, right? How weird is that? Why are they growing day by day? We should really look into it and get to the bottom of this."); + } else if (status == 14) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2214.js b/scripts/quest/2214.js index dd8800681c..5740f40a87 100644 --- a/scripts/quest/2214.js +++ b/scripts/quest/2214.js @@ -32,30 +32,31 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { var hourDay = qm.getHourOfDay(); - if(!(hourDay >= 17 && hourDay < 20)) { + if (!(hourDay >= 17 && hourDay < 20)) { qm.sendNext("(Hmm, I'm searching the trash can but can't find the #t4031894# JM was talking about, maybe it's not time yet...)"); canComplete = false; return; } - - if(!qm.canHold(4031894, 1)) { + + if (!qm.canHold(4031894, 1)) { qm.sendNext("(Eh, I can't hold the #t4031894# right now, I need an ETC slot available.)"); canComplete = false; return; } - + canComplete = true; qm.sendNext("(Ah, there is a crumbled note here... Hm, it contains details about some scheme that is about to happen, that must be what #r#p1052002##k was talking about.)"); } else if (status == 1) { @@ -64,7 +65,7 @@ function end(mode, type, selection) { qm.gainItem(4031894, 1); qm.gainExp(20000); } - + qm.dispose(); } } diff --git a/scripts/quest/2215.js b/scripts/quest/2215.js index 0c3b24bc7b..dc37144b46 100644 --- a/scripts/quest/2215.js +++ b/scripts/quest/2215.js @@ -32,36 +32,37 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { var hourDay = qm.getHourOfDay(); - if(!(hourDay >= 17 && hourDay < 20)) { + if (!(hourDay >= 17 && hourDay < 20)) { qm.sendNext("(Hmm, I'm searching the trash can but can't find the #t4031894# JM was talking about, maybe it's not time yet...)"); canComplete = false; return; } - - if(qm.getMeso() < 2000) { + + if (qm.getMeso() < 2000) { qm.sendNext("(Oh, I don't have the combined fee amount yet.)"); canComplete = false; return; } - - if(!qm.canHold(4031894, 1)) { + + if (!qm.canHold(4031894, 1)) { qm.sendNext("(Eh, I can't hold the #t4031894# right now, I need an ETC slot available.)"); canComplete = false; return; } - + canComplete = true; qm.sendNext("(Alright, now I will deposit the fee there and get the paper... That's it, yea, that's done.)"); } else if (status == 1) { @@ -70,7 +71,7 @@ function end(mode, type, selection) { qm.forceCompleteQuest(); qm.gainItem(4031894, 1); } - + qm.dispose(); } } diff --git a/scripts/quest/2216.js b/scripts/quest/2216.js index 0364562ca1..9fe410fc00 100644 --- a/scripts/quest/2216.js +++ b/scripts/quest/2216.js @@ -24,37 +24,38 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I've just gathered an interesting information, #rDyle looks just like regular Ligators#k, but bigger."); } else if (status == 1) { qm.forceCompleteQuest(); qm.gainExp(7000); - - if(isAllSubquestsDone() && qm.haveItem(4031894)) { + + if (isAllSubquestsDone() && qm.haveItem(4031894)) { qm.gainItem(4031894, -1); } - + qm.dispose(); } } } function isAllSubquestsDone() { - for(var i = 2216; i <= 2219; i++) { - if(!qm.isQuestCompleted(i)) { + for (var i = 2216; i <= 2219; i++) { + if (!qm.isQuestCompleted(i)) { return false; } } - + return true; } \ No newline at end of file diff --git a/scripts/quest/2217.js b/scripts/quest/2217.js index 396f4dd97a..4052247fd7 100644 --- a/scripts/quest/2217.js +++ b/scripts/quest/2217.js @@ -24,37 +24,38 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Hey, did you notice already, it looks like some awful stench is emanating from the sewers... Ewww"); } else if (status == 1) { qm.forceCompleteQuest(); qm.gainExp(7000); - - if(isAllSubquestsDone() && qm.haveItem(4031894)) { + + if (isAllSubquestsDone() && qm.haveItem(4031894)) { qm.gainItem(4031894, -1); } - + qm.dispose(); } } } function isAllSubquestsDone() { - for(var i = 2216; i <= 2219; i++) { - if(!qm.isQuestCompleted(i)) { + for (var i = 2216; i <= 2219; i++) { + if (!qm.isQuestCompleted(i)) { return false; } } - + return true; } \ No newline at end of file diff --git a/scripts/quest/2218.js b/scripts/quest/2218.js index 9b0f14bfb0..1b7c62c360 100644 --- a/scripts/quest/2218.js +++ b/scripts/quest/2218.js @@ -24,37 +24,38 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Hey did you see how strange #rLakelis#k has been acting these days? We should see what's going on aabout her, her actions have been so weird lately..."); } else if (status == 1) { qm.forceCompleteQuest(); qm.gainExp(7000); - - if(isAllSubquestsDone() && qm.haveItem(4031894)) { + + if (isAllSubquestsDone() && qm.haveItem(4031894)) { qm.gainItem(4031894, -1); } - + qm.dispose(); } } } function isAllSubquestsDone() { - for(var i = 2216; i <= 2219; i++) { - if(!qm.isQuestCompleted(i)) { + for (var i = 2216; i <= 2219; i++) { + if (!qm.isQuestCompleted(i)) { return false; } } - + return true; } \ No newline at end of file diff --git a/scripts/quest/2219.js b/scripts/quest/2219.js index 833f9131bb..ffd1008557 100644 --- a/scripts/quest/2219.js +++ b/scripts/quest/2219.js @@ -24,37 +24,38 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Did you know, they say someone from the sewers has been trying to #rdevelop a magic powder that let's one to grow#k, isn't that nice?"); } else if (status == 1) { qm.forceCompleteQuest(); qm.gainExp(7000); - - if(isAllSubquestsDone() && qm.haveItem(4031894)) { + + if (isAllSubquestsDone() && qm.haveItem(4031894)) { qm.gainItem(4031894, -1); } - + qm.dispose(); } } } function isAllSubquestsDone() { - for(var i = 2216; i <= 2219; i++) { - if(!qm.isQuestCompleted(i)) { + for (var i = 2216; i <= 2219; i++) { + if (!qm.isQuestCompleted(i)) { return false; } } - + return true; } \ No newline at end of file diff --git a/scripts/quest/2228.js b/scripts/quest/2228.js index 0d7ab84a4b..83137da4ca 100644 --- a/scripts/quest/2228.js +++ b/scripts/quest/2228.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Thank you for defeating #rFaust#k. That will finally settle my spirit to rest."); } else if (status == 1) { diff --git a/scripts/quest/2230.js b/scripts/quest/2230.js index 2da466673c..fd845d7861 100644 --- a/scripts/quest/2230.js +++ b/scripts/quest/2230.js @@ -34,15 +34,16 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; - if (status == 0) + } + if (status == 0) { qm.sendNext("I put this small, precious life in your hands...Guard it with your life..."); - else if (status == 1) + } else if (status == 1) { qm.sendYesNo("Looking after another life...That is the inevitable mission given to you...Follow the force that leads you to me."); - else if (status == 2) { + } else if (status == 2) { qm.sendOk("Put your hand in your pocket. I think your friend has already found you.\r\nThe purple bellflower that soaks in the sun in between the skyscraping trees...Follow the path to the unknown that leads you to the bellflower. I will wait for you here."); qm.forceStartQuest(); qm.gainItem(4032086, 1); // Mysterious Egg * 1 @@ -60,15 +61,16 @@ function end(mode, type, selection) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - - if (status == 0) + } + + if (status == 0) { qm.sendSimple("Hello, traveler... You have finally come to see me. Have you fulfilled your duties? \r\n #b#L0#What duties? Who are you?#l#k"); - else if (selection == 0 && status == 1) { + } else if (selection == 0 && status == 1) { qm.sendNext("Have you found a small egg in your pocket? That egg is your duty, your responsibility. Life is hard when you're all by yourself. In times like this, there's nothing quite like having a friend that will be there for you at all times. Have you heard of a #bpet#k?\r\nPeople raise pets to ease the burden, sorrow, and loneliness, because knowing that you have someone, or something in this matter, on your side will really bring a peace of mind. But everything has consequences, and with it comes responsibility..."); } else if (status == 2) { qm.sendNextPrev("Raising a pet requires a huge amount of responsibility. Remember a pet is a form of life, as well, so you'll need to feed it, name it, share your thoughts with it, and ultimately form a bond. That's how the owners get attached to these pets."); @@ -84,7 +86,7 @@ function end(mode, type, selection) { qm.sendNext("Please free a slot in your CASH inventory before you try to receive the pet..."); return; } - + qm.sendNext("This snail will only be alive for #b5 hours#k. Shower it with love. Your love will be reciprocated in the end."); } else if (status == 7) { if (canComplete) { @@ -92,7 +94,7 @@ function end(mode, type, selection) { qm.forceCompleteQuest(); qm.gainItem(5000054, 1, false, true, 5 * 60 * 60 * 1000); // rune snail (5hrs), missing expiration time detected thanks to cljnilsson } - + qm.dispose(); } } diff --git a/scripts/quest/2238.js b/scripts/quest/2238.js index ad63d088a8..d1c465abf5 100644 --- a/scripts/quest/2238.js +++ b/scripts/quest/2238.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.forceStartQuest(); qm.dispose(); diff --git a/scripts/quest/2245.js b/scripts/quest/2245.js index 5ea4177c39..6a9d035e90 100644 --- a/scripts/quest/2245.js +++ b/scripts/quest/2245.js @@ -24,23 +24,24 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { em = qm.getEventManager("BalrogQuest"); if (em == null) { qm.sendOk("Sorry, but the BalrogQuest is closed."); return; } - + var em = qm.getEventManager("BalrogQuest"); if (!em.startInstance(qm.getPlayer())) { qm.sendOk("There is currently someone in this map, come back later."); diff --git a/scripts/quest/22500.js b/scripts/quest/22500.js index 13fb1166ad..2b015f52d8 100644 --- a/scripts/quest/22500.js +++ b/scripts/quest/22500.js @@ -1,54 +1,54 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("I'm finally here! *inhales* Ah, this must be air I'm breathing. And that, that must be the sun! And that, a tree! And that, a plant! And that, a flower! Woohahahaha! This is incredible! This is much better than I imagined the world to be while I was trapped inside the egg. And you... Are you my master? Hm, I pictured you differently."); - } else if (status == 1) { - qm.sendNextPrev("#bWhoooooa, it talks!", 2); - } else if (status == 2) { - qm.sendNextPrev("My master is strange. I guess I can't do anything about it now, since the pact has been made. *sigh* Well, good to meet you. We'll be seeing a lot of each other."); - } else if (status == 3) { - qm.sendNextPrev("#bEh? What do you mean? We'll be seeing a lot of each other? What pact?", 2); - } else if (status == 4) { - qm.sendNextPrev("What do you mean what do I mean?! You woke me from the Egg. You're my master! So of course it's your responsibility to take care of me and train me and help me become a strong Dragon. Obviously!"); - } else if (status == 5) { - qm.sendNextPrev("#bWhaaat? A Dragon? You're a Dragon?! I don't get it... Why am I your master? What are you talking about?", 2); - } else if (status == 6) { - qm.sendNextPrev("What are YOU talking about? Your spirit made a pact with my spirit! We're pretty much the same person now. Do I really have to explain? As a result, you've become my master. We're bound by the pact. You can't change your mind... The pact cannot be broken."); - } else if (status == 7) { - qm.sendNextPrev("#bWait, wait, wait. Let me get this straight. You're saying I have no choice but to help you?", 2); - } else if (status == 8) { - qm.sendNextPrev("Yuuup! Heeeey...! What's with the face? You...don't want to be my master?"); - } else if (status == 9) { - qm.sendNextPrev("#bNo... It's not that... I just don't know if I'm ready for a pet.", 2); - } else if (status == 10) { - qm.sendNextPrev("A p-p-pet?! Did you just call me a pet?! How dare... Why, I'm a Dragon! The strongest being in the world!"); - } else if (status == 11) { - qm.sendNextPrev("#b...#b(You stare at him skeptically. He looks like a lizard. A puny little one, at that.)#k", 2); - } else if (status == 12) { - qm.sendAcceptDecline("Why are you looking at me like that?! Just watch! See what I can do with my power. Ready?"); - } else if (status == 13) { - if (mode == 0 && type == 15) { - qm.sendNext("You don't believe me? Grrrrr, you're getting me mad!"); - qm.dispose(); - } else { - if (!qm.isQuestStarted(22500)) { - qm.forceStartQuest(); - } - qm.sendNext("Command me to slay the #r#o1210100##ks! Do it now! I'll show you how fast a Dragon can defeat the #o1210100#s! Goooo, charge!"); - } - } else if (status == 14) { - qm.sendNextPrev("Wait a minute! Did you distribute your AP? I'm heavily affected by my master's #bINT and LUK#k! If you really want to see what I can do, distribute your AP and #bequip your Magician equipment#k before you use the skill!"); - } else if (status == 15) { - qm.sendImage("UI/tutorial/evan/11/0"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("I'm finally here! *inhales* Ah, this must be air I'm breathing. And that, that must be the sun! And that, a tree! And that, a plant! And that, a flower! Woohahahaha! This is incredible! This is much better than I imagined the world to be while I was trapped inside the egg. And you... Are you my master? Hm, I pictured you differently."); + } else if (status == 1) { + qm.sendNextPrev("#bWhoooooa, it talks!", 2); + } else if (status == 2) { + qm.sendNextPrev("My master is strange. I guess I can't do anything about it now, since the pact has been made. *sigh* Well, good to meet you. We'll be seeing a lot of each other."); + } else if (status == 3) { + qm.sendNextPrev("#bEh? What do you mean? We'll be seeing a lot of each other? What pact?", 2); + } else if (status == 4) { + qm.sendNextPrev("What do you mean what do I mean?! You woke me from the Egg. You're my master! So of course it's your responsibility to take care of me and train me and help me become a strong Dragon. Obviously!"); + } else if (status == 5) { + qm.sendNextPrev("#bWhaaat? A Dragon? You're a Dragon?! I don't get it... Why am I your master? What are you talking about?", 2); + } else if (status == 6) { + qm.sendNextPrev("What are YOU talking about? Your spirit made a pact with my spirit! We're pretty much the same person now. Do I really have to explain? As a result, you've become my master. We're bound by the pact. You can't change your mind... The pact cannot be broken."); + } else if (status == 7) { + qm.sendNextPrev("#bWait, wait, wait. Let me get this straight. You're saying I have no choice but to help you?", 2); + } else if (status == 8) { + qm.sendNextPrev("Yuuup! Heeeey...! What's with the face? You...don't want to be my master?"); + } else if (status == 9) { + qm.sendNextPrev("#bNo... It's not that... I just don't know if I'm ready for a pet.", 2); + } else if (status == 10) { + qm.sendNextPrev("A p-p-pet?! Did you just call me a pet?! How dare... Why, I'm a Dragon! The strongest being in the world!"); + } else if (status == 11) { + qm.sendNextPrev("#b...#b(You stare at him skeptically. He looks like a lizard. A puny little one, at that.)#k", 2); + } else if (status == 12) { + qm.sendAcceptDecline("Why are you looking at me like that?! Just watch! See what I can do with my power. Ready?"); + } else if (status == 13) { + if (mode == 0 && type == 15) { + qm.sendNext("You don't believe me? Grrrrr, you're getting me mad!"); + qm.dispose(); + } else { + if (!qm.isQuestStarted(22500)) { + qm.forceStartQuest(); + } + qm.sendNext("Command me to slay the #r#o1210100##ks! Do it now! I'll show you how fast a Dragon can defeat the #o1210100#s! Goooo, charge!"); + } + } else if (status == 14) { + qm.sendNextPrev("Wait a minute! Did you distribute your AP? I'm heavily affected by my master's #bINT and LUK#k! If you really want to see what I can do, distribute your AP and #bequip your Magician equipment#k before you use the skill!"); + } else if (status == 15) { + qm.sendImage("UI/tutorial/evan/11/0"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22501.js b/scripts/quest/22501.js index e329b8d49c..c903ce405a 100644 --- a/scripts/quest/22501.js +++ b/scripts/quest/22501.js @@ -1,30 +1,30 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Yo, master. Now that I've shown you what I can do, it's your turn. Prove to me...that you can find food! I'm starving. You can use my power now, so you have to take care of me."); - } else if (status == 1) { - qm.sendNextPrev("Eh, I still don't get what's going on, but I can't let a poor little critter like you starve, right? Food, you say? What do you want to eat?", 2); - } else if (status == 2) { - qm.sendNextPrev("Hi, I was just born a few minutes ago. How would I know what I eat? All I know is that I'm a Dragon... I'm YOUR Dragon. And you're my master. You have to treat me well!"); - } else if (status == 3) { - qm.sendAcceptDecline("I guess we're supposed to learn together. But I'm hungry. Master, I want food. Remember, I'm a baby! I'll start crying soon!"); - } else if (status == 4) { - if (mode == 0) { - qm.sendNext("*gasp* How can you refuse to feed your Dragon? This is child abuse! "); - } else { - qm.forceStartQuest(); - qm.sendOk("#b#b(#p1013000# the baby Dragon appears to be extremely hungry. You must feed him. Maybe your Dad can give you advice on what dragons eat.)"); - } - } else if (status == 5) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Yo, master. Now that I've shown you what I can do, it's your turn. Prove to me...that you can find food! I'm starving. You can use my power now, so you have to take care of me."); + } else if (status == 1) { + qm.sendNextPrev("Eh, I still don't get what's going on, but I can't let a poor little critter like you starve, right? Food, you say? What do you want to eat?", 2); + } else if (status == 2) { + qm.sendNextPrev("Hi, I was just born a few minutes ago. How would I know what I eat? All I know is that I'm a Dragon... I'm YOUR Dragon. And you're my master. You have to treat me well!"); + } else if (status == 3) { + qm.sendAcceptDecline("I guess we're supposed to learn together. But I'm hungry. Master, I want food. Remember, I'm a baby! I'll start crying soon!"); + } else if (status == 4) { + if (mode == 0) { + qm.sendNext("*gasp* How can you refuse to feed your Dragon? This is child abuse! "); + } else { + qm.forceStartQuest(); + qm.sendOk("#b#b(#p1013000# the baby Dragon appears to be extremely hungry. You must feed him. Maybe your Dad can give you advice on what dragons eat.)"); } + } else if (status == 5) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22502.js b/scripts/quest/22502.js index 6abcf2a1c6..d1f7772a4e 100644 --- a/scripts/quest/22502.js +++ b/scripts/quest/22502.js @@ -1,23 +1,23 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendAcceptDecline("Wouldn't a lizard enjoy a #b#t4032452##k, like a cow? There are a lot of #bHaystacks#k nearby, so try feeding it that."); - } else if (status == 1) { - if (mode == 0) { - qm.sendNext("Hm, you never know unless you try. That lizard is big enough to be on Maple's Believe It Or Not. It might eat hay."); - } else { - qm.forceStartQuest(); - qm.sendImage("UI/tutorial/evan/12/0"); - } - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendAcceptDecline("Wouldn't a lizard enjoy a #b#t4032452##k, like a cow? There are a lot of #bHaystacks#k nearby, so try feeding it that."); + } else if (status == 1) { + if (mode == 0) { + qm.sendNext("Hm, you never know unless you try. That lizard is big enough to be on Maple's Believe It Or Not. It might eat hay."); + } else { + qm.forceStartQuest(); + qm.sendImage("UI/tutorial/evan/12/0"); } + qm.dispose(); + } } diff --git a/scripts/quest/22503.js b/scripts/quest/22503.js index b1f931d2ba..5cf8cca8ee 100644 --- a/scripts/quest/22503.js +++ b/scripts/quest/22503.js @@ -1,28 +1,28 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("No, no, no. This isn't what I need. I need something more nutritious, master!"); - } else if (status == 1) { - qm.sendNextPrev("#bHm... So you're not a herbivore. You might be a carnivore. You're a Dragon, after all. How does some #t4032453# sound?", 2); - } else if (status == 2) { - qm.sendAcceptDecline("What's a...#t4032453#? Never heard of it, but if it's yummy, I accept! Just feed me something tasty. Anything but plants!"); - } else if (status == 3) { - if (mode == 0) { - qm.sendNext("How can you starve me like this. I'm just a baby. This is wrong!"); - } else { - qm.forceStartQuest(); - qm.sendNext("#b#b(Try giving #p1013000# some #t4032453#. You have to hunt a few #o1210100#s at the farm. Ten should be plenty...)"); - } - } else if (status == 4) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("No, no, no. This isn't what I need. I need something more nutritious, master!"); + } else if (status == 1) { + qm.sendNextPrev("#bHm... So you're not a herbivore. You might be a carnivore. You're a Dragon, after all. How does some #t4032453# sound?", 2); + } else if (status == 2) { + qm.sendAcceptDecline("What's a...#t4032453#? Never heard of it, but if it's yummy, I accept! Just feed me something tasty. Anything but plants!"); + } else if (status == 3) { + if (mode == 0) { + qm.sendNext("How can you starve me like this. I'm just a baby. This is wrong!"); + } else { + qm.forceStartQuest(); + qm.sendNext("#b#b(Try giving #p1013000# some #t4032453#. You have to hunt a few #o1210100#s at the farm. Ten should be plenty...)"); } + } else if (status == 4) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22504.js b/scripts/quest/22504.js index a77be2beb5..9b1e6b5e8e 100644 --- a/scripts/quest/22504.js +++ b/scripts/quest/22504.js @@ -1,28 +1,28 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Ugh. This isn't going to work. I need something else. No plants. No meat. What, you have no idea? But you're the master, and you're older than me, too. You must know what'd be good for me!"); - } else if (status == 1) { - qm.sendNextPrev("#bBut I don't. It's not like age has anything to do with this...", 2); - } else if (status == 2) { - qm.sendAcceptDecline("Since you're older, you must be more experienced in the world, too. Makes sense that you'd know more than me. Oh, fine. I'll ask someone who's even older than you, master!"); - } else if (status == 3) { - if (mode == 0) { - qm.sendNext("No use trying to find an answer to this on my own. I'd better look for #bsomeone older and wiser than master#k!"); - } else { - qm.forceStartQuest(); - qm.sendNext("#b#b(You already asked Dad once, but you don't have any better ideas. Time to ask him again!)"); - } - } else if (status == 4) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Ugh. This isn't going to work. I need something else. No plants. No meat. What, you have no idea? But you're the master, and you're older than me, too. You must know what'd be good for me!"); + } else if (status == 1) { + qm.sendNextPrev("#bBut I don't. It's not like age has anything to do with this...", 2); + } else if (status == 2) { + qm.sendAcceptDecline("Since you're older, you must be more experienced in the world, too. Makes sense that you'd know more than me. Oh, fine. I'll ask someone who's even older than you, master!"); + } else if (status == 3) { + if (mode == 0) { + qm.sendNext("No use trying to find an answer to this on my own. I'd better look for #bsomeone older and wiser than master#k!"); + } else { + qm.forceStartQuest(); + qm.sendNext("#b#b(You already asked Dad once, but you don't have any better ideas. Time to ask him again!)"); } + } else if (status == 4) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/22507.js b/scripts/quest/22507.js index bbd890fb0e..ebfe119452 100644 --- a/scripts/quest/22507.js +++ b/scripts/quest/22507.js @@ -1,59 +1,59 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("I knew it! I knew we were connected, master! When you get stronger, I get stronger, too. And when I get stronger, you can use my strength! That's our pact. I knew I picked a good master!"); - } else if (status == 1) { - qm.sendNextPrev("#bI see. How did we end up in this pact anyway?", 2); - } else if (status == 2) { - qm.sendNextPrev("I don't know. I was just an egg. I can't really remember...though I faintly recall you, master, walking toward me in a foggy forest. I remember your surprise upon seeing me. And I was calling out to you in return."); - } else if (status == 3) { - qm.sendNextPrev("#b#b(Wait! That sounds just like that one dream you had... Did the two of you meet in a dream? Is it possible that the giant Dragon you saw in that dream was...#p1013000#?)", 2); - } else if (status == 4) { - qm.sendNextPrev("Master, you and I are one in spirit. I knew it the moment I saw you. That's why I wanted to make the pact with you. No one else. You had to pay the price I set, of course."); - } else if (status == 5) { - qm.sendNextPrev("#bI paid a price?", 2); - } else if (status == 6) { - qm.sendNextPrev("Don't you remember? When you recognized me and touched me? That was the one condition I set. The moment you touched my egg, you and I became one in spirit."); - } else if (status == 7) { - qm.sendNextPrev("#bOne in...spirit?", 2); - } else if (status == 8) { - qm.sendNextPrev("Yes! The Spirit Pact! You and I have seperate bodies, but we share one spirit. That's why you get stronger when I get stronger, and vice versa! Awesome, right? At least, I think so."); - } else if (status == 9) { - qm.sendNextPrev("#bI have no idea what you're talking about, but it sounds like a pretty big deal.", 2); - } else if (status == 10) { - qm.sendNextPrev("Of course it's a big deal, silly master! You never have to worry about monsters again. You have me to protect you now! Go ahead and test me. In fact, let's go right now!"); - } else if (status == 11) { - qm.sendNextPrev("#bBut it's peaceful here. There are no dangerous monsters around.", 2); - } else if (status == 12) { - qm.sendNextPrev("WHAT?! That's no fun! Don't you like adventuring, master? Fighting monsters on behalf of your people, defeating evil, rescuing the innocent, and all that? You're not into that kind of thing?"); - } else if (status == 13) { - qm.sendNextPrev("#bIt's not part of my five year plan. I'm just kidding, but seriously, I'm a farmer's kid...", 2); - } else if (status == 14) { - qm.sendAcceptDecline("Bah, well let me tell you this. It's impossible for a Dragon Master to live a peaceful life. I'll have plenty of chances to prove my skills. Trust me, our life will be one big adventure. Promise me that you'll stick with me, okay?\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 810 exp"); - } else if (status == 15) { - if (mode == 0) { - qm.sendNext("Uh, you're kidding me, right? Tell me your finger slipped! Go ahead and accept the quest."); - } else { - if (!qm.isQuestCompleted(22507)) { - qm.forceCompleteQuest(); - qm.gainExp(810); - } - qm.sendNext("Hehehe, alrighty then, master. Let's get to it!"); - } - } else if (status == 16) { - qm.sendNextPrev("#b(You're a bit confused, but you are now traveling with Mir the Dragon. Perhaps you'll go on an adventure together, like he said.)", 2); - } else if (status == 17) { - qm.sendPrev("#b#b(You still have an errand to run. Your dad needs to talk to you, so go and see him now.)"); - } else if (status == 18) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("I knew it! I knew we were connected, master! When you get stronger, I get stronger, too. And when I get stronger, you can use my strength! That's our pact. I knew I picked a good master!"); + } else if (status == 1) { + qm.sendNextPrev("#bI see. How did we end up in this pact anyway?", 2); + } else if (status == 2) { + qm.sendNextPrev("I don't know. I was just an egg. I can't really remember...though I faintly recall you, master, walking toward me in a foggy forest. I remember your surprise upon seeing me. And I was calling out to you in return."); + } else if (status == 3) { + qm.sendNextPrev("#b#b(Wait! That sounds just like that one dream you had... Did the two of you meet in a dream? Is it possible that the giant Dragon you saw in that dream was...#p1013000#?)", 2); + } else if (status == 4) { + qm.sendNextPrev("Master, you and I are one in spirit. I knew it the moment I saw you. That's why I wanted to make the pact with you. No one else. You had to pay the price I set, of course."); + } else if (status == 5) { + qm.sendNextPrev("#bI paid a price?", 2); + } else if (status == 6) { + qm.sendNextPrev("Don't you remember? When you recognized me and touched me? That was the one condition I set. The moment you touched my egg, you and I became one in spirit."); + } else if (status == 7) { + qm.sendNextPrev("#bOne in...spirit?", 2); + } else if (status == 8) { + qm.sendNextPrev("Yes! The Spirit Pact! You and I have seperate bodies, but we share one spirit. That's why you get stronger when I get stronger, and vice versa! Awesome, right? At least, I think so."); + } else if (status == 9) { + qm.sendNextPrev("#bI have no idea what you're talking about, but it sounds like a pretty big deal.", 2); + } else if (status == 10) { + qm.sendNextPrev("Of course it's a big deal, silly master! You never have to worry about monsters again. You have me to protect you now! Go ahead and test me. In fact, let's go right now!"); + } else if (status == 11) { + qm.sendNextPrev("#bBut it's peaceful here. There are no dangerous monsters around.", 2); + } else if (status == 12) { + qm.sendNextPrev("WHAT?! That's no fun! Don't you like adventuring, master? Fighting monsters on behalf of your people, defeating evil, rescuing the innocent, and all that? You're not into that kind of thing?"); + } else if (status == 13) { + qm.sendNextPrev("#bIt's not part of my five year plan. I'm just kidding, but seriously, I'm a farmer's kid...", 2); + } else if (status == 14) { + qm.sendAcceptDecline("Bah, well let me tell you this. It's impossible for a Dragon Master to live a peaceful life. I'll have plenty of chances to prove my skills. Trust me, our life will be one big adventure. Promise me that you'll stick with me, okay?\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 810 exp"); + } else if (status == 15) { + if (mode == 0) { + qm.sendNext("Uh, you're kidding me, right? Tell me your finger slipped! Go ahead and accept the quest."); + } else { + if (!qm.isQuestCompleted(22507)) { + qm.forceCompleteQuest(); + qm.gainExp(810); + } + qm.sendNext("Hehehe, alrighty then, master. Let's get to it!"); } + } else if (status == 16) { + qm.sendNextPrev("#b(You're a bit confused, but you are now traveling with Mir the Dragon. Perhaps you'll go on an adventure together, like he said.)", 2); + } else if (status == 17) { + qm.sendPrev("#b#b(You still have an errand to run. Your dad needs to talk to you, so go and see him now.)"); + } else if (status == 18) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2251.js b/scripts/quest/2251.js index 55f1143a59..ac3af7024b 100644 --- a/scripts/quest/2251.js +++ b/scripts/quest/2251.js @@ -11,21 +11,21 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItem(4032399, 20)) { + if (!qm.haveItem(4032399, 20)) { qm.sendOk("Please bring me 20 #b#t4032399##k... #i4032399#"); - } - else { + } else { qm.gainItem(4032399, -20); qm.sendOk("Oh, you brought 20 #b#t4032399##k! Thank you."); qm.gainExp(8000); diff --git a/scripts/quest/2257.js b/scripts/quest/2257.js index e09bef4312..fff309beae 100644 --- a/scripts/quest/2257.js +++ b/scripts/quest/2257.js @@ -24,16 +24,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Hey there, do you want a ride to #r#m261000000##k? Oh a request from #b#p2101013##k?"); } else if (status == 1) { diff --git a/scripts/quest/2258.js b/scripts/quest/2258.js index 9ab0deb1ae..b7cfbfdade 100644 --- a/scripts/quest/2258.js +++ b/scripts/quest/2258.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendAcceptDecline("Meerkats spreads rumors like wildfire... By blackmailing me and my cab service, they are taking costumers away from me day after day... Hey, tell no one about this, if you clean some #rMeerkats#k from my way, I'll tell you an info about the #rMushroom Castle#k. What do you say?"); } else if (status == 1) { @@ -49,16 +50,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("You did it! ... Hey, #rMeerkats#k around here may listen to our conversation. I'm not going to talk about THAT right now."); } else if (status == 1) { diff --git a/scripts/quest/2259.js b/scripts/quest/2259.js index 7fe8f2820a..90eb3602b5 100644 --- a/scripts/quest/2259.js +++ b/scripts/quest/2259.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Ok, meet me at #b#m260020700##k for your information. To reach there, follow #reast#k from here until you reach #rMagatia#k, I will be there. Now go."); } else { @@ -47,22 +48,23 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.getMapId() == 260020000) { + if (qm.getMapId() == 260020000) { qm.sendNext("Eh you're still here? To reach #b#m260020700##k, follow #reast#k from here until you reach #rMagatia#k, I will be there. Now go."); return; } - + qm.sendNext("Oh there you are. There're no Meerkat's nearby, so there probably is no eavesdropping around here. Very well, you must be fit to go to the #rMushroom Castle#k. Talk to me once you've got #blevel 30#k."); qm.forceCompleteQuest(); } else if (status == 1) { diff --git a/scripts/quest/2260.js b/scripts/quest/2260.js index 491db22c2e..bc2702fe8e 100644 --- a/scripts/quest/2260.js +++ b/scripts/quest/2260.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Once you've got #b2nd job advancement#k, I'll tell you about the #bMushroom Castle#k."); } else if (status == 1) { @@ -47,24 +48,25 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { const GameConstants = Java.type('constants.game.GameConstants'); - if(GameConstants.getJobBranch(qm.getPlayer().getJob()) == 1) { + if (GameConstants.getJobBranch(qm.getPlayer().getJob()) == 1) { qm.sendNext("Eh, didn't you get the #r2nd job advancement#k yet?"); qm.dispose(); return; } - + qm.sendNext("Okay you seem ready to go to the #bMushroom Castle#k. In #rHenesys#k, climb at the tree fort at #bwest#k then enter a portal over there. On the other area, #rgo west#k. From there, a portal will be readily available to access the #bMushroom Castle#k area."); qm.forceCompleteQuest(); } else if (status == 1) { diff --git a/scripts/quest/2291.js b/scripts/quest/2291.js index a002a5ad52..8b43a9950c 100644 --- a/scripts/quest/2291.js +++ b/scripts/quest/2291.js @@ -24,23 +24,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItem(4032521, 10)) { + if (!qm.haveItem(4032521, 10)) { qm.sendNext("Hey, you didn't get #b10 #t4032521##k yet, did you?"); qm.dispose(); return; } - + qm.sendNext("You got the #b#i4032521##k with you, great. Let me show you the way."); } else if (status == 1) { var em = qm.getEventManager("RockSpiritVIP"); @@ -49,7 +50,7 @@ function end(mode, type, selection) { qm.dispose(); return; } - + qm.gainItem(4032521, -10); qm.forceCompleteQuest(); qm.dispose(); diff --git a/scripts/quest/2293.js b/scripts/quest/2293.js index 62294055cf..4dbb21b61b 100644 --- a/scripts/quest/2293.js +++ b/scripts/quest/2293.js @@ -23,94 +23,69 @@ var status = -1; function start(mode, type, selection) { - if(mode == -1 || (mode == 0 && status == 0)){ + if (mode == -1 || (mode == 0 && status == 0)) { qm.dispose(); return; - } - else if(mode == 0) + } else if (mode == 0) { status--; - else + } else { status++; + } - if(status == 0) - { + if (status == 0) { qm.sendNext("Do you remember the last song that the Spirit of Rock played? I can think of a few songs that he may be imitating, so listen carefully and tell me which song it is. #bYou only get one chance,#k so please choose wisely."); qm.forceStartQuest(); - } - else if(status == 1) - { + } else if (status == 1) { qm.dispose(); } } -function end(mode, type, selection) -{ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function end(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if (status == 0) - { + if (status == 0) { qm.sendSimple("Here, I'll give you some samples. Please listen to them and choose one. Please listen carefully before making your choide.\r\n\ \t#b#L1# Listen to song No. 1#l \r\n\ \t#L2# Listen to Song No. 2#l \r\n\ \t#L3# Listen to Song No. 3#l \r\n\ \r\n\ \t#e#L4# Enter the correct song.#l"); - } - else if(status == 1) - { - if(selection == 1) - { + } else if (status == 1) { + if (selection == 1) { qm.playSound("Party1/Failed"); - qm.sendOk("Awkwardly familiar..."); - status = -1; - } - else if(selection == 2) - { + qm.sendOk("Awkwardly familiar..."); + status = -1; + } else if (selection == 2) { qm.playSound("Coconut/Failed"); qm.sendOk("Was it this?"); status = -1; - } - else if(selection == 3) - { + } else if (selection == 3) { qm.playSound("quest2293/Die"); qm.sendOk("You heard that?"); status = -1; + } else if (selection == 4) { + qm.sendGetNumber("Now, please tell me the answer. You only get #bone chance#k, so please choose wisely. Please enter #b1, 2, or 3#k in the window below.\r\n", 1, 1, 3); } - else if(selection == 4) - { - qm.sendGetNumber("Now, please tell me the answer. You only get #bone chance#k, so please choose wisely. Please enter #b1, 2, or 3#k in the window below.\r\n",1,1,3); - } - } - else if(status == 2) - { - if(selection == 1) - { + } else if (status == 2) { + if (selection == 1) { qm.sendOk("Obviously you don't enjoy music."); - } - else if(selection == 2) - { + } else if (selection == 2) { qm.sendOk("I suppose you could get #b#eone#n#k more chance."); - } - else if(selection == 3) - { + } else if (selection == 3) { qm.sendOk("So that was the song he was playing... Well, it wasn't my song after all, but I'm glad I can know that now with certainty. Thank you so much."); qm.forceCompleteQuest(); qm.gainExp(32500); - } - else - { + } else { qm.dispose(); } - } - else if(status == 3) - { + } else if (status == 3) { qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/2300.js b/scripts/quest/2300.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2300.js +++ b/scripts/quest/2300.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2301.js b/scripts/quest/2301.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2301.js +++ b/scripts/quest/2301.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/23011.js b/scripts/quest/23011.js index 2ca307f30e..ebb9dfe5c5 100644 --- a/scripts/quest/23011.js +++ b/scripts/quest/23011.js @@ -1,32 +1,32 @@ var status = -1; function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendYesNo("So you've finally decided to become a Battle Mage, eh? Well, you can still change your mind. Just stop our conversation, forfeit this quest, and talk to another class trainer. So, you sure you want to become a Battle Mage? I'm not interested in teaching you unless you're a hundred percent sure..."); - } else if (status == 1) { - if (mode == 0) { - qm.sendNext("Think carefully before you make your decision."); - } else { - if (!qm.isQuestCompleted(23011)) { - qm.gainItem(1382100); - qm.gainItem(1142242); - qm.forceCompleteQuest(); - qm.changeJobById(3200); - qm.showItemGain(1382100, 1142242); - } - qm.sendNext("Okay, okay. Welcome to the Resistance, kid. From now on, you will play the role of a Battle Mage, a fierce Magician always ready to lead your party into battle."); - } - } else if (status == 2) { - qm.sendNextPrev("But don't go spreading it around that you're a Battle Mage, hm? No need to tempt the Black Wings to come after you. From now on, I'll be your teacher. If anyone asks, you're visiting me just as a regular student, not as a member of the Resistance. I'll give you special lessons now and then. You better not fall asleep in class, hear? "); - } else if (status == 3) { - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendYesNo("So you've finally decided to become a Battle Mage, eh? Well, you can still change your mind. Just stop our conversation, forfeit this quest, and talk to another class trainer. So, you sure you want to become a Battle Mage? I'm not interested in teaching you unless you're a hundred percent sure..."); + } else if (status == 1) { + if (mode == 0) { + qm.sendNext("Think carefully before you make your decision."); + } else { + if (!qm.isQuestCompleted(23011)) { + qm.gainItem(1382100); + qm.gainItem(1142242); + qm.forceCompleteQuest(); + qm.changeJobById(3200); + qm.showItemGain(1382100, 1142242); + } + qm.sendNext("Okay, okay. Welcome to the Resistance, kid. From now on, you will play the role of a Battle Mage, a fierce Magician always ready to lead your party into battle."); + } + } else if (status == 2) { + qm.sendNextPrev("But don't go spreading it around that you're a Battle Mage, hm? No need to tempt the Black Wings to come after you. From now on, I'll be your teacher. If anyone asks, you're visiting me just as a regular student, not as a member of the Resistance. I'll give you special lessons now and then. You better not fall asleep in class, hear? "); + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2302.js b/scripts/quest/2302.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2302.js +++ b/scripts/quest/2302.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2303.js b/scripts/quest/2303.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2303.js +++ b/scripts/quest/2303.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2304.js b/scripts/quest/2304.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2304.js +++ b/scripts/quest/2304.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2305.js b/scripts/quest/2305.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2305.js +++ b/scripts/quest/2305.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2306.js b/scripts/quest/2306.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2306.js +++ b/scripts/quest/2306.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2307.js b/scripts/quest/2307.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2307.js +++ b/scripts/quest/2307.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2308.js b/scripts/quest/2308.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2308.js +++ b/scripts/quest/2308.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2309.js b/scripts/quest/2309.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2309.js +++ b/scripts/quest/2309.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2310.js b/scripts/quest/2310.js index 01ea091c20..e45af57a87 100644 --- a/scripts/quest/2310.js +++ b/scripts/quest/2310.js @@ -14,7 +14,7 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { if (status != 3) { qm.sendOk("Really? It's an urgent matter, so if you have some time, please see me."); qm.dispose(); @@ -26,13 +26,14 @@ function start(mode, type, selection) { qm.dispose(); } } - + status++; } else { - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { qm.sendAcceptDecline("Now that you have made the job advancement, you look like you're ready for this. I have something I'd like to ask you for help. Are you willing to listen?"); @@ -47,23 +48,23 @@ function start(mode, type, selection) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.warp(106020000, 0); qm.forceStartQuest(); } else { qm.sendOk("Please have a slot available in your Etc inventory."); } - + qm.dispose(); - return; + } else if (status == 5) { if (!qm.haveItem(4032375, 1)) { qm.gainItem(4032375, 1); } - + qm.forceStartQuest(); qm.dispose(); - return; + } } } @@ -73,23 +74,24 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { if (!qm.haveItem(4032375, 1)) { qm.sendNext("What do you want, hmmm?"); qm.dispose(); return; } - + qm.sendNext("Hmmm? Is that a #brecommendation letter from the job instructor#k??! What is this, are you the one that came to save us, the Kingdom of Mushroom?"); } else if (status == 1) { qm.sendNextPrev("Hmmm... okay. Since the letter is from the job instructor, I suppose you are really the one. I apologize for not introducing myself to you earlier. I'm the #bHead Security Officer#k in charge of protecting King Mush. As you can see, this temporary hideout is protected by the team of security and soldiers. Our situation may be dire, but nevertheless, welcome to Kingdom of Mushroom."); diff --git a/scripts/quest/2312.js b/scripts/quest/2312.js index 054f28fa7e..1361978ae1 100644 --- a/scripts/quest/2312.js +++ b/scripts/quest/2312.js @@ -12,44 +12,44 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Hmmm... you must be unsure of your combat skills. We'll be here waiting for you, so come see us when you're ready."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("We need your help, noble explorer. Our kingdom is currently facing a big threat, and we are in desperate need of a courageous explorer willing to fight for us, and that's how you ended up here. Please understand, though, that since we need place our faith in you, we'll have to test your skills first before we can stand firmly behind you. Will it be okay for you to do this for us?"); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Keep moving forward, and you'll see #bRenegade Spores#k, the Spores that turned their backs on the Kingdom of Mushroom. We'd appreciate it if you can teach them a lesson or two, and bring back #b50 Mutated Spores#k in return."); - } else if (status == 2){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Hmmm... you must be unsure of your combat skills. We'll be here waiting for you, so come see us when you're ready."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("We need your help, noble explorer. Our kingdom is currently facing a big threat, and we are in desperate need of a courageous explorer willing to fight for us, and that's how you ended up here. Please understand, though, that since we need place our faith in you, we'll have to test your skills first before we can stand firmly behind you. Will it be okay for you to do this for us?"); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Keep moving forward, and you'll see #bRenegade Spores#k, the Spores that turned their backs on the Kingdom of Mushroom. We'd appreciate it if you can teach them a lesson or two, and bring back #b50 Mutated Spores#k in return."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Did you teach those Renegade Spores a lesson?"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(11500); - qm.gainItem(4000499, -50); - qm.sendOk("That was amazing. I apologize for doubting your abilities. Please save our Kingdom of Mushroom from this crisis!"); - } else if (status == 2){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Did you teach those Renegade Spores a lesson?"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(11500); + qm.gainItem(4000499, -50); + qm.sendOk("That was amazing. I apologize for doubting your abilities. Please save our Kingdom of Mushroom from this crisis!"); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2313.js b/scripts/quest/2313.js index 7c10cfbb7b..6d640f0743 100644 --- a/scripts/quest/2313.js +++ b/scripts/quest/2313.js @@ -12,38 +12,38 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("There's not much time. Please hurry."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("I have told our #bMinister of Home Affairs#k of your abilities. Please go pay a visit to him immediately."); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Save our kingdom! We believe in you!"); - } else if (status == 2){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("There's not much time. Please hurry."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("I have told our #bMinister of Home Affairs#k of your abilities. Please go pay a visit to him immediately."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Save our kingdom! We believe in you!"); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { - qm.dispose(); - return; - } - } - if (status == 0) { - qm.forceCompleteQuest(); - qm.gainExp(4000); - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; + } + } + if (status == 0) { + qm.forceCompleteQuest(); + qm.gainExp(4000); + qm.dispose(); + } } diff --git a/scripts/quest/2314.js b/scripts/quest/2314.js index b6fcdd41ec..a8b0c81ee1 100644 --- a/scripts/quest/2314.js +++ b/scripts/quest/2314.js @@ -12,48 +12,48 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendNext("Please do not lose faith in our Kingdom of Mushroom."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("In order to rescue the princess, you must first navigate the Mushroom Forest. King Pepe set up a powerful barrier forbidding anyone from entering the castle. Please investigate this matter for us."); - else if (status == 1) - qm.sendNext("You'll run into the barrier at the Mushroom Forest by heading east of where you are standing right now. Please be careful. I hear that the area is infested with crazy, fear-inducing monsters."); - else if(status == 2){ - //qm.forceStartQuest(); - //qm.forceStartQuest(2314,"1"); - qm.gainExp(8300); - qm.sendOk("I see, so it was indeed not a regular barrier by any means. Great work there. If not for you help, we wouldn't have had a clue as to what that was all about."); - qm.forceCompleteQuest(); - } else if(status == 3){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendNext("Please do not lose faith in our Kingdom of Mushroom."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("In order to rescue the princess, you must first navigate the Mushroom Forest. King Pepe set up a powerful barrier forbidding anyone from entering the castle. Please investigate this matter for us."); + } else if (status == 1) { + qm.sendNext("You'll run into the barrier at the Mushroom Forest by heading east of where you are standing right now. Please be careful. I hear that the area is infested with crazy, fear-inducing monsters."); + } else if (status == 2) { + //qm.forceStartQuest(); + //qm.forceStartQuest(2314,"1"); + qm.gainExp(8300); + qm.sendOk("I see, so it was indeed not a regular barrier by any means. Great work there. If not for you help, we wouldn't have had a clue as to what that was all about."); + qm.forceCompleteQuest(); + } else if (status == 3) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("I see that you have thoroughly investigated the barrier at the Mushroom Forest. What was it like?"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(8300); - qm.sendOk("I see, so it was indeed not a regular barrier by any means. Great work there. If not for you help, we wouldn't have had a clue as to what that was all about."); - } else if (status == 2){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("I see that you have thoroughly investigated the barrier at the Mushroom Forest. What was it like?"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(8300); + qm.sendOk("I see, so it was indeed not a regular barrier by any means. Great work there. If not for you help, we wouldn't have had a clue as to what that was all about."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2315.js b/scripts/quest/2315.js index d4a9639d3b..051f8d4f28 100644 --- a/scripts/quest/2315.js +++ b/scripts/quest/2315.js @@ -12,43 +12,43 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Please do not forget our plea for help."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("A powerful barrier of magic, huh? Then what should we do...? If we can't find a way to break that barrier, then we can't save the princess. If it's impossible to physically break through, as you mentioned, then how about requesting help from our #bMinister of Magic#k?"); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Please go see him immediately. The #bMinister of Magic#k may seem a bit on the edge, but he's very knowledgeable, and I'm sure he'll know what to do."); - } else if (status == 2){ - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Please do not forget our plea for help."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("A powerful barrier of magic, huh? Then what should we do...? If we can't find a way to break that barrier, then we can't save the princess. If it's impossible to physically break through, as you mentioned, then how about requesting help from our #bMinister of Magic#k?"); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Please go see him immediately. The #bMinister of Magic#k may seem a bit on the edge, but he's very knowledgeable, and I'm sure he'll know what to do."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("What? You investigated the barrier at the Mushroom Forest?"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(4000); - qm.sendOk("Hmmm...this is interesting. It's a barrier set up by someone with a powerful force of magic, which means there's no way we can manually break through it."); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("What? You investigated the barrier at the Mushroom Forest?"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(4000); + qm.sendOk("Hmmm...this is interesting. It's a barrier set up by someone with a powerful force of magic, which means there's no way we can manually break through it."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2316.js b/scripts/quest/2316.js index 6e4adf133b..cc82fe0c20 100644 --- a/scripts/quest/2316.js +++ b/scripts/quest/2316.js @@ -12,43 +12,43 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Why did you even ask if you were going to say no to this?#"); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("I think i've heard of a potion that breaks these kinds of barriers. I think it's called #bKiller Mushroom Spores#k? Hmmm... outside, you'll find the Mushroom Scholar #bScarrs#k waiting outside. #bScarrs#k is an expert on mushrooms, so go talk to him."); - else if (status == 1) { - qm.forceStartQuest(); - qm.sendOk("I am confident #kScarrs#k will do everything to help you."); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Why did you even ask if you were going to say no to this?#"); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("I think i've heard of a potion that breaks these kinds of barriers. I think it's called #bKiller Mushroom Spores#k? Hmmm... outside, you'll find the Mushroom Scholar #bScarrs#k waiting outside. #bScarrs#k is an expert on mushrooms, so go talk to him."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("I am confident #kScarrs#k will do everything to help you."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) { - status -= 2; - } else { - qm.dispose(); - return; - } - } - if (status == 0) { - qm.sendOk("Ah, so you're the explorer people were talking about. I'm #bScarrs, the Royal Mushroom Scholar#k representing the Kingdom of Mushroom. So you need some #kKiller Mushroom Spores#k?"); - } else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(4200); - qm.sendOk("#kKiller Mushroom Spores#k... I think i've heard of them before..."); - } else if (status == 2) { - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendOk("Ah, so you're the explorer people were talking about. I'm #bScarrs, the Royal Mushroom Scholar#k representing the Kingdom of Mushroom. So you need some #kKiller Mushroom Spores#k?"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(4200); + qm.sendOk("#kKiller Mushroom Spores#k... I think i've heard of them before..."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2317.js b/scripts/quest/2317.js index 797a11ec91..7a095c284b 100644 --- a/scripts/quest/2317.js +++ b/scripts/quest/2317.js @@ -12,44 +12,44 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Breaking through the barrier will require the Poison Mushroom Cap. Talk to me when you change your mind."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Ah! If I am not mistaken, I saw the #bKiller Mushroom Spores#k way back when I was a kid in a book. Now I remember... it's made out of extracts of powerful poisons from Poison Mushrooms, which means you'll need some Poison Mushroom Caps. If you can get me those, I think I'll be able to make it."); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Please defeat #bPoison Mushrooms#k and bring back #b100 Poison Mushroom Caps#k in return."); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Breaking through the barrier will require the Poison Mushroom Cap. Talk to me when you change your mind."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Ah! If I am not mistaken, I saw the #bKiller Mushroom Spores#k way back when I was a kid in a book. Now I remember... it's made out of extracts of powerful poisons from Poison Mushrooms, which means you'll need some Poison Mushroom Caps. If you can get me those, I think I'll be able to make it."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Please defeat #bPoison Mushrooms#k and bring back #b100 Poison Mushroom Caps#k in return."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Have you gathered up the 100 Poison Mushroom Caps like I asked you to get?"); - else if (status == 1){ - qm.sendOk("I am amazed that you were able to gather up these 100 Poison Mushroom Caps, which is considered a difficult feat. I think I'll be able to make #bKiller Mushroom Spores#k our of these."); - } else if (status == 2) { - qm.forceCompleteQuest(); - qm.gainExp(13500); - qm.gainItem(4000500, -100); - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Have you gathered up the 100 Poison Mushroom Caps like I asked you to get?"); + } else if (status == 1) { + qm.sendOk("I am amazed that you were able to gather up these 100 Poison Mushroom Caps, which is considered a difficult feat. I think I'll be able to make #bKiller Mushroom Spores#k our of these."); + } else if (status == 2) { + qm.forceCompleteQuest(); + qm.gainExp(13500); + qm.gainItem(4000500, -100); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2318.js b/scripts/quest/2318.js index 85d10153a6..e8a99c132f 100644 --- a/scripts/quest/2318.js +++ b/scripts/quest/2318.js @@ -12,53 +12,53 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("I understand it's not an easy task, but I can't make #bKiller Mushroom Spores#k without them. Please reconsider."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Hmmm... I looked into the making of the Spores while you were gathering up the Poison Mushroom Caps, and realised that we'll need more materials for it. I want you to gather up one more set of items. Can you do it?"); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Okay, I want you to defeat the Regenade Spores and bring back #b50 Mutated Spores#k in return."); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("I understand it's not an easy task, but I can't make #bKiller Mushroom Spores#k without them. Please reconsider."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Hmmm... I looked into the making of the Spores while you were gathering up the Poison Mushroom Caps, and realised that we'll need more materials for it. I want you to gather up one more set of items. Can you do it?"); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Okay, I want you to defeat the Regenade Spores and bring back #b50 Mutated Spores#k in return."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Did you gather up all the necessary ingredients for it?") - else if (status == 1){ - if (!qm.haveItem(4000499, 50)) { - qm.sendOk("Please gather all the ingredients first."); - status = 2; - return; - } - - qm.sendNext("These should be enough for me to make the #bKiller Mushroom Spores.#k Please hold on for a bit."); - } else if(status == 2){ - qm.sendOk("Okay, here are the Killer Mushroom Spores. Hopefully this will be enough for you to save our princess and help regain our kingdom. Good luck!"); - } else if(status == 3) { - qm.forceCompleteQuest(); - qm.gainExp(11500); - qm.gainItem(4000499, -50); - qm.gainItem(2430014, 1); - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Did you gather up all the necessary ingredients for it?") + } else if (status == 1) { + if (!qm.haveItem(4000499, 50)) { + qm.sendOk("Please gather all the ingredients first."); + status = 2; + return; + } + + qm.sendNext("These should be enough for me to make the #bKiller Mushroom Spores.#k Please hold on for a bit."); + } else if (status == 2) { + qm.sendOk("Okay, here are the Killer Mushroom Spores. Hopefully this will be enough for you to save our princess and help regain our kingdom. Good luck!"); + } else if (status == 3) { + qm.forceCompleteQuest(); + qm.gainExp(11500); + qm.gainItem(4000499, -50); + qm.gainItem(2430014, 1); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2319.js b/scripts/quest/2319.js index 2c9a4b7347..5b844729fd 100644 --- a/scripts/quest/2319.js +++ b/scripts/quest/2319.js @@ -12,45 +12,45 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("I know it's not a tough task, so come back to me if you're ready."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Oh, I almost forgot! What was I thinking? I need you to hand this #bSample of Killer Mushroom Spores#k to #bMinister of Magic#k and report the results."); - else if (status == 1){ - qm.forceStartQuest(); - qm.gainItem(4032389, 1); - qm.sendOk("The #bMinister of Magic#k told me once the #bKiller Mushroom Spores#k is complete, that he'll want a sample of it as well. I'll give you the sample; now go please hand it in to our #bMinister of Magic.#k"); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("I know it's not a tough task, so come back to me if you're ready."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Oh, I almost forgot! What was I thinking? I need you to hand this #bSample of Killer Mushroom Spores#k to #bMinister of Magic#k and report the results."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.gainItem(4032389, 1); + qm.sendOk("The #bMinister of Magic#k told me once the #bKiller Mushroom Spores#k is complete, that he'll want a sample of it as well. I'll give you the sample; now go please hand it in to our #bMinister of Magic.#k"); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Are the #bKiller Mushroom Spores#k finally completed?"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(4200); - qm.gainItem(4032389, -1); - qm.sendOk("Okay, so this is the #bKiller Mushroom Spores.#k Thank you, thank you, and please tell #bScarrs#k the same."); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Are the #bKiller Mushroom Spores#k finally completed?"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(4200); + qm.gainItem(4032389, -1); + qm.sendOk("Okay, so this is the #bKiller Mushroom Spores.#k Thank you, thank you, and please tell #bScarrs#k the same."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2320.js b/scripts/quest/2320.js index b00e711bef..596fb8c5d8 100644 --- a/scripts/quest/2320.js +++ b/scripts/quest/2320.js @@ -12,45 +12,45 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("I wanted you to personally give this piece of good news to #bBruce#k, but I understand if you're busy."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("I have just one more request for you. Would you like to take a listen?"); - else if (status == 1){ - qm.forceStartQuest(); - qm.gainItem(4032389, 1); - qm.sendOk("To be honest, these #bKiller Mushroom Spores#k are not completely out of my own work. Do you remember #bBruce#k from #bHenesys#k? I have been friends with him since childhood, and #bKiller Mushroom Spores#k was completed after he shared the results of his studies with me. This was all thanks to him, so I'd like for you to give this to him for me."); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("I wanted you to personally give this piece of good news to #bBruce#k, but I understand if you're busy."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("I have just one more request for you. Would you like to take a listen?"); + } else if (status == 1) { + qm.forceStartQuest(); + qm.gainItem(4032389, 1); + qm.sendOk("To be honest, these #bKiller Mushroom Spores#k are not completely out of my own work. Do you remember #bBruce#k from #bHenesys#k? I have been friends with him since childhood, and #bKiller Mushroom Spores#k was completed after he shared the results of his studies with me. This was all thanks to him, so I'd like for you to give this to him for me."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Oh! You're here on behalf of #bScarrs#k? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 8800 exp"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(8800); - qm.gainItem(4032389, -1); - qm.sendOk("Ahh, so this is the #bKiller Mushroom Spores#k that I was working on in the past. I had a tough time gathering up the ingredients, so I left it in theory only, but he was able to complete it, with a sample to show for as well. Please tell him I appreciate his good work."); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Oh! You're here on behalf of #bScarrs#k? \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#fUI/UIWindow.img/QuestIcon/8/0# 8800 exp"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(8800); + qm.gainItem(4032389, -1); + qm.sendOk("Ahh, so this is the #bKiller Mushroom Spores#k that I was working on in the past. I had a tough time gathering up the ingredients, so I left it in theory only, but he was able to complete it, with a sample to show for as well. Please tell him I appreciate his good work."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2321.js b/scripts/quest/2321.js index 8bb1c962f1..452dbc9078 100644 --- a/scripts/quest/2321.js +++ b/scripts/quest/2321.js @@ -12,43 +12,43 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("You don't seem to follow instructions well. Come see me when you are ready."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Now you'll be able to penetrate the spiny vine barrier of Mushroom Forest, but before that, #bMinister of Home Affairs#k wants to have a word with you. Please go see him immediately."); - else if (status == 1){ - qm.forceStartQuest(); - qm.sendOk("Good luck."); - } else if (status == 2){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("You don't seem to follow instructions well. Come see me when you are ready."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Now you'll be able to penetrate the spiny vine barrier of Mushroom Forest, but before that, #bMinister of Home Affairs#k wants to have a word with you. Please go see him immediately."); + } else if (status == 1) { + qm.forceStartQuest(); + qm.sendOk("Good luck."); + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("I have been keeping up on your fabulour work. I am aware that you have successfully created the #bKiller Mushroom Spores#k, which penetrates through the unpenetrable barrier of the forest. Congratulations!"); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(2500); - qm.sendOk("The problem now is to figure out how to enter the castle."); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("I have been keeping up on your fabulour work. I am aware that you have successfully created the #bKiller Mushroom Spores#k, which penetrates through the unpenetrable barrier of the forest. Congratulations!"); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(2500); + qm.sendOk("The problem now is to figure out how to enter the castle."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2322.js b/scripts/quest/2322.js index d07be2c103..64d64d2275 100644 --- a/scripts/quest/2322.js +++ b/scripts/quest/2322.js @@ -12,48 +12,48 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendNext("Really? Is there another way you can penetrate the castle? If you don't know of one, then just come see me."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendYesNo("Like I told you, just breaking the barrier cannot be a cause for celebration. That's because our castle for the Kingdom of Mushroom completely denies entry of anyone outside our kingdom, so it'll be hard for you to do that. Hmmm... to figure out a way to enter, can you...investigate the outer walls of the castle first?"); - else if (status == 1) - qm.sendNext("Walk past the Mushroom Forest and when you reach the #bSplit Road of Choice#k, just walk towards the castle. Good luck."); - else if (status == 2){ - //qm.forceStartQuest(); - //qm.forceStartQuest(2322, "1"); - qm.gainExp(11000); - qm.sendOk("Good job navigating through the area."); - qm.forceCompleteQuest(); - } else if (status == 3){ - qm.dispose(); - } + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendNext("Really? Is there another way you can penetrate the castle? If you don't know of one, then just come see me."); + qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendYesNo("Like I told you, just breaking the barrier cannot be a cause for celebration. That's because our castle for the Kingdom of Mushroom completely denies entry of anyone outside our kingdom, so it'll be hard for you to do that. Hmmm... to figure out a way to enter, can you...investigate the outer walls of the castle first?"); + } else if (status == 1) { + qm.sendNext("Walk past the Mushroom Forest and when you reach the #bSplit Road of Choice#k, just walk towards the castle. Good luck."); + } else if (status == 2) { + //qm.forceStartQuest(); + //qm.forceStartQuest(2322, "1"); + qm.gainExp(11000); + qm.sendOk("Good job navigating through the area."); + qm.forceCompleteQuest(); + } else if (status == 3) { + qm.dispose(); + } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendOk("Hmmm I see... so they have completely shut off the entrance and everything."); - else if (status == 1){ - qm.forceCompleteQuest(); - qm.gainExp(11000); - qm.sendOk("Good job navigating through the area."); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendOk("Hmmm I see... so they have completely shut off the entrance and everything."); + } else if (status == 1) { + qm.forceCompleteQuest(); + qm.gainExp(11000); + qm.sendOk("Good job navigating through the area."); + } else if (status == 2) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2325.js b/scripts/quest/2325.js index 288ab76477..51e6749405 100644 --- a/scripts/quest/2325.js +++ b/scripts/quest/2325.js @@ -5,27 +5,25 @@ var status = -1; -function end(mode, type, selection){ - if(mode == -1){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function end(mode, type, selection) { + if (mode == -1) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendNext("I... I am scared... Please... please help me..."); - } - else if(status == 1){ - qm.sendNextPrev("Don't be afriad, #b#p1300005##k sent me here.", 2); - } - else if(status == 2){ - qm.forceCompleteQuest(); - qm.gainExp(6000); - qm.sendOk("What? My brother sent you here? Ahhh... I am safe now. Thank you so much..."); - } else if (status == 3) { - qm.dispose(); - } + if (status == 0) { + qm.sendNext("I... I am scared... Please... please help me..."); + } else if (status == 1) { + qm.sendNextPrev("Don't be afriad, #b#p1300005##k sent me here.", 2); + } else if (status == 2) { + qm.forceCompleteQuest(); + qm.gainExp(6000); + qm.sendOk("What? My brother sent you here? Ahhh... I am safe now. Thank you so much..."); + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2327.js b/scripts/quest/2327.js index 2299f14a8c..f4e98e5c8a 100644 --- a/scripts/quest/2327.js +++ b/scripts/quest/2327.js @@ -6,28 +6,25 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1){ - qm.dispose(); - return; - } - else if(mode == 0 && status == 0){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function start(mode, type, selection) { + if (mode == -1) { + qm.dispose(); + return; + } else if (mode == 0 && status == 0) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendNext("Hey! Thank you for bringing me a #b#t4001317##k."); - } - else if(status == 1){ - qm.sendNextPrev("I plan to escape from here wearing the #b#t4001317##k. Give me a minute to put it on. Talk to you soon..."); - } - else if(status == 2){ - qm.forceStartQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendNext("Hey! Thank you for bringing me a #b#t4001317##k."); + } else if (status == 1) { + qm.sendNextPrev("I plan to escape from here wearing the #b#t4001317##k. Give me a minute to put it on. Talk to you soon..."); + } else if (status == 2) { + qm.forceStartQuest(); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2332.js b/scripts/quest/2332.js index ad81c409a6..4650c1e071 100644 --- a/scripts/quest/2332.js +++ b/scripts/quest/2332.js @@ -5,13 +5,13 @@ var status = -1; -function start(mode, type, selection){ - if(qm.hasItem(4032388) && !qm.isQuestStarted(2332)){ - qm.forceStartQuest(); - qm.getPlayer().showHint("I must find Violetta!! (#bquest started#k)"); - } - qm.dispose(); +function start(mode, type, selection) { + if (qm.hasItem(4032388) && !qm.isQuestStarted(2332)) { + qm.forceStartQuest(); + qm.getPlayer().showHint("I must find Violetta!! (#bquest started#k)"); + } + qm.dispose(); } -function end(mode, type, selection){ +function end(mode, type, selection) { } \ No newline at end of file diff --git a/scripts/quest/2333.js b/scripts/quest/2333.js index da10135554..bfd9739ecc 100644 --- a/scripts/quest/2333.js +++ b/scripts/quest/2333.js @@ -5,46 +5,43 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function start(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendAcceptDecline("Please help me!"); - } - else if(status == 1){ - qm.sendNext("The #bPrime Minister#k is the one who plotted all this! Oh no! Here he comes..."); - } - else if (status == 2){ - qm.forceStartQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendAcceptDecline("Please help me!"); + } else if (status == 1) { + qm.sendNext("The #bPrime Minister#k is the one who plotted all this! Oh no! Here he comes..."); + } else if (status == 2) { + qm.forceStartQuest(); + qm.dispose(); + } } -function end(mode, type, selection){ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function end(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendNext("Hurray! #b#h ##k you defeated the #bPrime Minister#k."); - } - else if(status == 1){ - qm.gainExp(15000); - qm.forceCompleteQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendNext("Hurray! #b#h ##k you defeated the #bPrime Minister#k."); + } else if (status == 1) { + qm.gainExp(15000); + qm.forceCompleteQuest(); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2334.js b/scripts/quest/2334.js index bc0b739984..607922dff5 100644 --- a/scripts/quest/2334.js +++ b/scripts/quest/2334.js @@ -5,42 +5,36 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function start(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.forceStartQuest(); - qm.sendNext("Thank you so much, #b#h ##k. You are the hero that has saved our empire from danger. I'm so grateful for what you've done. I dont know how to thank you. And please understand why I can't show you my face."); - } - else if(status == 1){ - qm.sendNextPrev("It's humiliating to say this, but ever since I was a baby, my family has kept my face veiled from the world. They feared of men falling hopelessly in love with me. I've grown so accustomed to it that I even shy away from women. I know, it's rude of me to have my back turned against the hero, but I'll need some time to muster my courage before I can greet you face to face."); - } - else if(status == 2){ - qm.sendNextPrev("I see...\r\n#b(Wow, how pretty could she be?)", 2); - } - else if(status == 3){ - qm.sendNextPrev("#b(What the--)", 2); - } - else if(status == 4){ - qm.sendNextPrev("#b(Is that what's considered pretty in the world of mushrooms?!)", 2); - } - else if(status == 5){ - qm.sendNextPrev("I'm so shy, I'm blushing. Anyways, thank you, #b#h ##k."); - } - else if(status == 6){ - qm.forceStartQuest(); - qm.gainExp(1000); - qm.forceCompleteQuest(); - qm.dispose(); - } + if (status == 0) { + qm.forceStartQuest(); + qm.sendNext("Thank you so much, #b#h ##k. You are the hero that has saved our empire from danger. I'm so grateful for what you've done. I dont know how to thank you. And please understand why I can't show you my face."); + } else if (status == 1) { + qm.sendNextPrev("It's humiliating to say this, but ever since I was a baby, my family has kept my face veiled from the world. They feared of men falling hopelessly in love with me. I've grown so accustomed to it that I even shy away from women. I know, it's rude of me to have my back turned against the hero, but I'll need some time to muster my courage before I can greet you face to face."); + } else if (status == 2) { + qm.sendNextPrev("I see...\r\n#b(Wow, how pretty could she be?)", 2); + } else if (status == 3) { + qm.sendNextPrev("#b(What the--)", 2); + } else if (status == 4) { + qm.sendNextPrev("#b(Is that what's considered pretty in the world of mushrooms?!)", 2); + } else if (status == 5) { + qm.sendNextPrev("I'm so shy, I'm blushing. Anyways, thank you, #b#h ##k."); + } else if (status == 6) { + qm.forceStartQuest(); + qm.gainExp(1000); + qm.forceCompleteQuest(); + qm.dispose(); + } } -function end(mode, type, selection){} \ No newline at end of file +function end(mode, type, selection) {} \ No newline at end of file diff --git a/scripts/quest/2335.js b/scripts/quest/2335.js index 96117e0e4c..1a5030c601 100644 --- a/scripts/quest/2335.js +++ b/scripts/quest/2335.js @@ -5,37 +5,33 @@ var status = -1; -function start(mode, type, selection){ - if(mode == -1 || (mode == 0 && status == 0)){ - qm.dispose(); - return; - } - else if(mode == 0) - status--; - else - status++; +function start(mode, type, selection) { + if (mode == -1 || (mode == 0 && status == 0)) { + qm.dispose(); + return; + } else if (mode == 0) { + status--; + } else { + status++; + } - if(status == 0){ - qm.sendNext("This is not the end, #b#h ##k. Minions of the #bPrime Minister#k can still be found scattered throughout the castle."); - } - else if(status == 1){ - qm.sendAcceptDecline("From what I've heard, there is a place near #bSkyscraper 3#k where a group of Prime Minister's minions can be found. I've picked up a key that the Prime Minister dropped the other day. Here, use this key."); - } - else if(status == 2){ - if(qm.canHold(4032405)){ - qm.gainItem(4032405, 1); - qm.sendNext("For one last time, good luck."); - } - else{ - qm.sendOk("Please have a free space in your ETC inventory."); - qm.dispose(); - } - } - else if(status == 3){ - qm.forceStartQuest(); - qm.dispose(); - } + if (status == 0) { + qm.sendNext("This is not the end, #b#h ##k. Minions of the #bPrime Minister#k can still be found scattered throughout the castle."); + } else if (status == 1) { + qm.sendAcceptDecline("From what I've heard, there is a place near #bSkyscraper 3#k where a group of Prime Minister's minions can be found. I've picked up a key that the Prime Minister dropped the other day. Here, use this key."); + } else if (status == 2) { + if (qm.canHold(4032405)) { + qm.gainItem(4032405, 1); + qm.sendNext("For one last time, good luck."); + } else { + qm.sendOk("Please have a free space in your ETC inventory."); + qm.dispose(); + } + } else if (status == 3) { + qm.forceStartQuest(); + qm.dispose(); + } } -function end(mode, type, selection){} \ No newline at end of file +function end(mode, type, selection) {} \ No newline at end of file diff --git a/scripts/quest/2338.js b/scripts/quest/2338.js index 71899082da..93312d6c52 100644 --- a/scripts/quest/2338.js +++ b/scripts/quest/2338.js @@ -24,26 +24,27 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.haveItem(2430014, 1)) { + if (qm.haveItem(2430014, 1)) { qm.sendNext("It looks like you already have one #b#t2430014##k on your inventory."); status = 1; return; } - + qm.sendNext("You've used the #b#t2430014##k? Oh well, good thing I have a spare one right here."); } else if (status == 1) { - if(!qm.canHold(2430014, 1)) { + if (!qm.canHold(2430014, 1)) { qm.sendNext("Please make a USE slot available to get it, alright?"); } else { qm.gainItem(2430014, 1); diff --git a/scripts/quest/2342.js b/scripts/quest/2342.js index 6d5d2ff6e4..281b56017a 100644 --- a/scripts/quest/2342.js +++ b/scripts/quest/2342.js @@ -5,33 +5,32 @@ var status = -1; -function start(mode, type, selection){ +function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.hasItem(4001318) && qm.isQuestStarted(2331) && !qm.isQuestCompleted(2331)){ - if(qm.canHold(4001318)){ + if (!qm.hasItem(4001318) && qm.isQuestStarted(2331) && !qm.isQuestCompleted(2331)) { + if (qm.canHold(4001318)) { qm.forceStartQuest(); qm.gainItem(4001318, 1); qm.forceCompleteQuest(); qm.sendOk("Looks like you forgot to pick up the #b#t4001318##k when you fought with the #bPrime Minister#k. This is very important to our kingdom, so please deliver this to my father as soon as possible."); - } - else{ + } else { qm.sendOk("Please free up one spot in your ETC inventory"); } - } - else{ + } else { qm.dispose(); } } else if (status == 1) { @@ -40,5 +39,5 @@ function start(mode, type, selection){ } } -function end(mode, type, selection){ +function end(mode, type, selection) { } \ No newline at end of file diff --git a/scripts/quest/2560.js b/scripts/quest/2560.js index 985edef5c4..57d99143a4 100644 --- a/scripts/quest/2560.js +++ b/scripts/quest/2560.js @@ -1,29 +1,29 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Ooook! Ook! Ook!"); - } else if (status == 1) { - qm.sendNextPrev("Well, that hit the spot, but... I still don't understand what happened. Where's the ship? Hey, do you know what happened to me?", 2); - } else if (status == 2) { - qm.sendAcceptDecline("Oook! (The monkey nods. Does he really know what's going on? Couldn't hurt to ask.)"); - } else if (status == 3) { - if (mode == 0) {//decline - qm.sendNext("Ook! Ook! (The monkey looks very dissatisfied.)"); - } else { - qm.forceStartQuest(); - qm.dispose(); - } - } else if (status == 4) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Ooook! Ook! Ook!"); + } else if (status == 1) { + qm.sendNextPrev("Well, that hit the spot, but... I still don't understand what happened. Where's the ship? Hey, do you know what happened to me?", 2); + } else if (status == 2) { + qm.sendAcceptDecline("Oook! (The monkey nods. Does he really know what's going on? Couldn't hurt to ask.)"); + } else if (status == 3) { + if (mode == 0) {//decline + qm.sendNext("Ook! Ook! (The monkey looks very dissatisfied.)"); + } else { + qm.forceStartQuest(); + qm.dispose(); } + } else if (status == 4) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2561.js b/scripts/quest/2561.js index 37b23ae534..41cdc21b5b 100644 --- a/scripts/quest/2561.js +++ b/scripts/quest/2561.js @@ -1,42 +1,42 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Ook, ook! Oook! Ook! Ook! Ook?!"); - } else if (status == 1) { - qm.sendNextPrev("I remember...I was on my way to Maple Island, to become an Explorer... What happened? What's going on?", 2); - } else if (status == 2) { - qm.sendNextPrev("Oook! Ook! Ook! Oooook!"); - } else if (status == 3) { - qm.sendNextPrev("I was talking to the captain, and admiring the scenery, and... Balrog! Balrog attacked the ship! So... Did I fall overboard? Then, why am I alive? I know #bI can swim#k, but can I swim while unconscious? Maybe I can. Maybe I'm a natural swimmer!", 2); - } else if (status == 4) { - qm.sendNext("Ooook! Ook! Ook! (Huh, a little monkey...tapping its foot angrily. Actually, when I first woke up, that monkey was the only thing I saw...)"); - } else if (status == 5) { - qm.sendNextPrev("Huh? Why are you waving your arms like that? Are you trying to tell me something? (The monkey took an apple out of the nearby chest. It looks delicious. But, what is he trying to tell you?)\r\n\r\n#i2010000#", 2); - } else if (status == 6) { - qm.sendAcceptDecline("Ook ook! Om nom nom! (The monkey looks frustrated that you don't understand him. He pretends to eat the apple. Wait, does he want YOU to eat it? That must be it! What a nice monkey.)"); - } else if (status == 7) { - if (mode == 0) {//decline - qm.sendNext("The thing is, I don't like apples... Sorry, but no thanks.", 2); - qm.dispose(); - } else { - if (!qm.isQuestStarted(2561)) {//seems that hp is not changed o.o - qm.gainItem(2010000, true); - qm.forceStartQuest(); - } - qm.sendNext("(You have received a delicious-looking apple. You should eat it. Now...how do you open your Inventory? Was it the #bI#k key...?)", 2); - } - } else if (status == 8) { - qm.showInfo("UI/tutorial.img/28"); - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Ook, ook! Oook! Ook! Ook! Ook?!"); + } else if (status == 1) { + qm.sendNextPrev("I remember...I was on my way to Maple Island, to become an Explorer... What happened? What's going on?", 2); + } else if (status == 2) { + qm.sendNextPrev("Oook! Ook! Ook! Oooook!"); + } else if (status == 3) { + qm.sendNextPrev("I was talking to the captain, and admiring the scenery, and... Balrog! Balrog attacked the ship! So... Did I fall overboard? Then, why am I alive? I know #bI can swim#k, but can I swim while unconscious? Maybe I can. Maybe I'm a natural swimmer!", 2); + } else if (status == 4) { + qm.sendNext("Ooook! Ook! Ook! (Huh, a little monkey...tapping its foot angrily. Actually, when I first woke up, that monkey was the only thing I saw...)"); + } else if (status == 5) { + qm.sendNextPrev("Huh? Why are you waving your arms like that? Are you trying to tell me something? (The monkey took an apple out of the nearby chest. It looks delicious. But, what is he trying to tell you?)\r\n\r\n#i2010000#", 2); + } else if (status == 6) { + qm.sendAcceptDecline("Ook ook! Om nom nom! (The monkey looks frustrated that you don't understand him. He pretends to eat the apple. Wait, does he want YOU to eat it? That must be it! What a nice monkey.)"); + } else if (status == 7) { + if (mode == 0) {//decline + qm.sendNext("The thing is, I don't like apples... Sorry, but no thanks.", 2); + qm.dispose(); + } else { + if (!qm.isQuestStarted(2561)) {//seems that hp is not changed o.o + qm.gainItem(2010000, true); + qm.forceStartQuest(); + } + qm.sendNext("(You have received a delicious-looking apple. You should eat it. Now...how do you open your Inventory? Was it the #bI#k key...?)", 2); + } + } else if (status == 8) { + qm.showInfo("UI/tutorial.img/28"); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/2568.js b/scripts/quest/2568.js index 846cbd3f52..fc4564c3b6 100644 --- a/scripts/quest/2568.js +++ b/scripts/quest/2568.js @@ -1,38 +1,38 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendAcceptDecline("You're back! Great. I got the Ignition Device all hooked up, so we can get back to civilization. Nothing left to do here, right? Let's roll!"); - } else if (status == 1) { - if (mode == 0) {//decline - - } else { - qm.forceStartQuest(); - qm.warp(912060200, 0); - } - qm.dispose(); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendAcceptDecline("You're back! Great. I got the Ignition Device all hooked up, so we can get back to civilization. Nothing left to do here, right? Let's roll!"); + } else if (status == 1) { + if (mode == 0) {//decline + + } else { + qm.forceStartQuest(); + qm.warp(912060200, 0); + } + qm.dispose(); + } } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext(""); - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext(""); + } } \ No newline at end of file diff --git a/scripts/quest/2570.js b/scripts/quest/2570.js index f8b698d85b..15f48c1253 100644 --- a/scripts/quest/2570.js +++ b/scripts/quest/2570.js @@ -1,55 +1,55 @@ var status = -1; function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Good to see you, #h0#. So...you're the one that helped Cutter return. I saw you were hurt when you first arrived...are you okay now? You must be made of stern stuff. No wonder Cutter regards you so highly. My name is Kyrin. I'm captain of the Nautilus, as well as the Job Instructor for Pirates."); - } else if (status == 1) { - qm.sendNextPrev("Cutter told you that he wants you to become a #bCannoneer#k, right? I agree with him, but I'm worried that your heart might not be in it. Maybe if you knew more about the pirates, you would be more interested. Let me tell you a little about us."); - } else if (status == 2) { - qm.sendNextPrev("I brought the pirates together to start working against the Black Mage, the great evil that threatens all of Maple World. Turns out the hero business is more profitable than looting and pillaging!"); - } else if (status == 3) { - qm.sendNextPrev("If you become a Pirate, you can help investigate the Black Mage's plots, and assist in the defense of Maple World. Keep in mind that I won't make you do anything...I'm primarily a Job Instructor, and just guide the pirates in a general sense."); - } else if (status == 4) { - qm.sendNextPrev("But, I know you would help us fight the Black Mage. You have that gleam in your eye that all heroes do. Anyway, I've said my piece."); - } else if (status == 5) { - qm.sendAcceptDecline("Now, it's all up to you. Do you wish to join the pirates? I would be quite pleased if you became a Cannoneer. "); - } else if (status == 6) { - if (mode == 0 && qm.isQuestCompleted(2570)) {//decline - qm.sendNext("Oh. So...you want to be something else? I understand...but Cutter might not..."); - qm.dispose(); - } else { - if (!qm.isQuestCompleted(2570)) { - qm.gainItem(1532000); - qm.gainItem(1002610); - qm.gainItem(1052095); - qm.changeJobById(501); - qm.forceCompleteQuest(); - qm.forceCompleteQuest(29900); - qm.teachSkill(109, 1, 1, -1); - qm.teachSkill(110, 0, -1, -1);//? blessing - qm.teachSkill(111, 1, 1, -1); - qm.showItemGain(1532000, 1002610, 1052095); - } - qm.sendNext("Well, you are truly one of us now. Open up your Skill window and check out your new Pirate abilities. I also gave you a few extra SP, so you can go ahead and boost some of your new skills. You'll get more skills at higher levels, so I suggest you have a plan for your training."); - } - } else if (status == 7) { - qm.sendNextPrev("Skills alone do not make you a great pirate. You have to distribute your stats like a pirate, too! If you're hoping to become a Cannoneer, invest heavily in STR so you can hold that heavy cannon of yours. And if you just have no idea, use the #bauto-distribute#k option. Simple, and effective."); - } else if (status == 8) { - qm.sendNextPrev("Oh, I gave you a little gift, too. I expanded a few slots in your Equip and ETC Item tabs, so you should have plenty of room for your spoils!"); - } else if (status == 9) { - qm.sendNextPrev("Now, there is one last thing that you need to remember. More than anything else, you need to keep your HP up. If you fall in battle, you'll lose some of your EXP. And I'm SURE you don't want that, right?"); - } else if (status == 10) { - qm.sendNextPrev("Well, that's it! I have taught you everything you need to know. I also gave you a few decent weapons, so make good use of them. Now, go forth, grow stronger, and kick around the Black Mage's minions, if you get the chance!"); - qm.forceStartQuest(2945, "1"); - } else if (status == 11) { - qm.dispose();//let them go back :P - } + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Good to see you, #h0#. So...you're the one that helped Cutter return. I saw you were hurt when you first arrived...are you okay now? You must be made of stern stuff. No wonder Cutter regards you so highly. My name is Kyrin. I'm captain of the Nautilus, as well as the Job Instructor for Pirates."); + } else if (status == 1) { + qm.sendNextPrev("Cutter told you that he wants you to become a #bCannoneer#k, right? I agree with him, but I'm worried that your heart might not be in it. Maybe if you knew more about the pirates, you would be more interested. Let me tell you a little about us."); + } else if (status == 2) { + qm.sendNextPrev("I brought the pirates together to start working against the Black Mage, the great evil that threatens all of Maple World. Turns out the hero business is more profitable than looting and pillaging!"); + } else if (status == 3) { + qm.sendNextPrev("If you become a Pirate, you can help investigate the Black Mage's plots, and assist in the defense of Maple World. Keep in mind that I won't make you do anything...I'm primarily a Job Instructor, and just guide the pirates in a general sense."); + } else if (status == 4) { + qm.sendNextPrev("But, I know you would help us fight the Black Mage. You have that gleam in your eye that all heroes do. Anyway, I've said my piece."); + } else if (status == 5) { + qm.sendAcceptDecline("Now, it's all up to you. Do you wish to join the pirates? I would be quite pleased if you became a Cannoneer. "); + } else if (status == 6) { + if (mode == 0 && qm.isQuestCompleted(2570)) {//decline + qm.sendNext("Oh. So...you want to be something else? I understand...but Cutter might not..."); + qm.dispose(); + } else { + if (!qm.isQuestCompleted(2570)) { + qm.gainItem(1532000); + qm.gainItem(1002610); + qm.gainItem(1052095); + qm.changeJobById(501); + qm.forceCompleteQuest(); + qm.forceCompleteQuest(29900); + qm.teachSkill(109, 1, 1, -1); + qm.teachSkill(110, 0, -1, -1);//? blessing + qm.teachSkill(111, 1, 1, -1); + qm.showItemGain(1532000, 1002610, 1052095); + } + qm.sendNext("Well, you are truly one of us now. Open up your Skill window and check out your new Pirate abilities. I also gave you a few extra SP, so you can go ahead and boost some of your new skills. You'll get more skills at higher levels, so I suggest you have a plan for your training."); + } + } else if (status == 7) { + qm.sendNextPrev("Skills alone do not make you a great pirate. You have to distribute your stats like a pirate, too! If you're hoping to become a Cannoneer, invest heavily in STR so you can hold that heavy cannon of yours. And if you just have no idea, use the #bauto-distribute#k option. Simple, and effective."); + } else if (status == 8) { + qm.sendNextPrev("Oh, I gave you a little gift, too. I expanded a few slots in your Equip and ETC Item tabs, so you should have plenty of room for your spoils!"); + } else if (status == 9) { + qm.sendNextPrev("Now, there is one last thing that you need to remember. More than anything else, you need to keep your HP up. If you fall in battle, you'll lose some of your EXP. And I'm SURE you don't want that, right?"); + } else if (status == 10) { + qm.sendNextPrev("Well, that's it! I have taught you everything you need to know. I also gave you a few decent weapons, so make good use of them. Now, go forth, grow stronger, and kick around the Black Mage's minions, if you get the chance!"); + qm.forceStartQuest(2945, "1"); + } else if (status == 11) { + qm.dispose();//let them go back :P + } } \ No newline at end of file diff --git a/scripts/quest/2573.js b/scripts/quest/2573.js index 8d05cda8e4..af93d7fdc4 100644 --- a/scripts/quest/2573.js +++ b/scripts/quest/2573.js @@ -1,27 +1,27 @@ var status = -1; function start(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - if (status == 0) { - qm.sendNext("Greetings! Isn't this just the perfect weather for a journey? I'm Skipper, the captain of this fine ship. You must be a new Explorer, eh? Nice to meet you."); - } else if (status == 1) { - qm.sendAcceptDecline("We're not quite ready to leave, so feel free to look around the ship while we're waiting."); - } else if (status == 2) { - if (mode == 0) {//decline - qm.sendNext("Hey, take it easy! Sometimes you just gotta wait."); - } else { - qm.warp(3000000, 0); - qm.forceCompleteQuest(); - qm.sendNext("Looks like we're all set! I think this is going to be a great voyage. Let's get underway."); - } - } else if (status == 3) { - qm.dispose(); + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + if (status == 0) { + qm.sendNext("Greetings! Isn't this just the perfect weather for a journey? I'm Skipper, the captain of this fine ship. You must be a new Explorer, eh? Nice to meet you."); + } else if (status == 1) { + qm.sendAcceptDecline("We're not quite ready to leave, so feel free to look around the ship while we're waiting."); + } else if (status == 2) { + if (mode == 0) {//decline + qm.sendNext("Hey, take it easy! Sometimes you just gotta wait."); + } else { + qm.warp(3000000, 0); + qm.forceCompleteQuest(); + qm.sendNext("Looks like we're all set! I think this is going to be a great voyage. Let's get underway."); } + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/28004.js b/scripts/quest/28004.js index 7385fbfa47..650d67e3ca 100644 --- a/scripts/quest/28004.js +++ b/scripts/quest/28004.js @@ -24,29 +24,30 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.getPlayer().getLevel() > 50) { + if (qm.getPlayer().getLevel() > 50) { qm.forceCompleteQuest(); qm.dispose(); return; } - + qm.sendNext("Okay... so here's our plan to defeat Scrooge and his dastardly plans. The Force of the Spirit I gave you is an item packed with mana. It's an item you'll definitely use at the map I am about to send you. In order to do that, you'll have to bring your party members with you as well. You should bring your party members here or form one right now!"); } else if (status == 1) { qm.sendAcceptDecline("Would you like to move forward?"); } else if (status == 2) { var level = qm.getPlayer().getLevel(); - + qm.warp(level <= 30 ? 889100000 : (level <= 40 ? 889100010 : 889100020)); qm.dispose(); } diff --git a/scripts/quest/29900.js b/scripts/quest/29900.js index dc129556dd..f4ca5adffb 100644 --- a/scripts/quest/29900.js +++ b/scripts/quest/29900.js @@ -28,19 +28,21 @@ var status = -1; function start(mode, type, selection) { - if (qm.forceStartQuest()) qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); - qm.dispose(); + if (qm.forceStartQuest()) { + qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); + } + qm.dispose(); } function end(mode, type, selection) { status++; - if (mode != 1) + if (mode != 1) { qm.dispose(); - else { - if (status == 0) + } else { + if (status == 0) { qm.sendNext("Congratulations on earning your honorable #b#k title. I wish you the best of luck in your future endeavors! Keep up the good work.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n #v1142107:# #t1142107# 1"); - else if (status == 1) { + } else if (status == 1) { if (qm.canHold(1142107)) { qm.gainItem(1142107); qm.forceCompleteQuest(); @@ -52,5 +54,5 @@ function end(mode, type, selection) { qm.dispose(); } } - + } \ No newline at end of file diff --git a/scripts/quest/29901.js b/scripts/quest/29901.js index b38d41c0ae..f0c26d1c7c 100644 --- a/scripts/quest/29901.js +++ b/scripts/quest/29901.js @@ -28,29 +28,31 @@ var status = -1; function start(mode, type, selection) { - if (qm.forceStartQuest()) qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); - qm.dispose(); + if (qm.forceStartQuest()) { + qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); + } + qm.dispose(); } function end(mode, type, selection) { status++; - if (mode != 1) + if (mode != 1) { qm.dispose(); - else { - if (status == 0) + } else { + if (status == 0) { qm.sendNext("Congratulations on earning your honorable #b#k title. I wish you the best of luck in your future endeavors! Keep up the good work.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n #v1142108:# #t1142108# 1"); - else if (status == 1) { - if (qm.canHold(1142108)) { - qm.gainItem(1142108); - qm.forceCompleteQuest(); - qm.dispose(); - } else { - qm.sendNext("Please make room in your inventory");//NOT GMS LIKE - } - } else if (status == 2) { + } else if (status == 1) { + if (qm.canHold(1142108)) { + qm.gainItem(1142108); + qm.forceCompleteQuest(); qm.dispose(); + } else { + qm.sendNext("Please make room in your inventory");//NOT GMS LIKE + } + } else if (status == 2) { + qm.dispose(); } } - + } \ No newline at end of file diff --git a/scripts/quest/29902.js b/scripts/quest/29902.js index c665731a14..33307c4752 100644 --- a/scripts/quest/29902.js +++ b/scripts/quest/29902.js @@ -28,29 +28,31 @@ var status = -1; function start(mode, type, selection) { - if (qm.forceStartQuest()) qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); - qm.dispose(); + if (qm.forceStartQuest()) { + qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); + } + qm.dispose(); } function end(mode, type, selection) { status++; - if (mode != 1) + if (mode != 1) { qm.dispose(); - else { - if (status == 0) + } else { + if (status == 0) { qm.sendNext("Congratulations on earning your honorable #b#k title. I wish you the best of luck in your future endeavors! Keep up the good work.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n #v1142109:# #t1142109# 1"); - else if (status == 1) { - if (qm.canHold(1142109)) { - qm.gainItem(1142109); - qm.forceCompleteQuest(); - qm.dispose(); - } else { - qm.sendNext("Please make room in your inventory");//NOT GMS LIKE - } - } else if (status == 2) { + } else if (status == 1) { + if (qm.canHold(1142109)) { + qm.gainItem(1142109); + qm.forceCompleteQuest(); qm.dispose(); + } else { + qm.sendNext("Please make room in your inventory");//NOT GMS LIKE + } + } else if (status == 2) { + qm.dispose(); } } - + } \ No newline at end of file diff --git a/scripts/quest/29903.js b/scripts/quest/29903.js index 999075c0f9..8a40fed4c0 100644 --- a/scripts/quest/29903.js +++ b/scripts/quest/29903.js @@ -28,29 +28,31 @@ var status = -1; function start(mode, type, selection) { - if (qm.forceStartQuest()) qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); - qm.dispose(); + if (qm.forceStartQuest()) { + qm.showInfoText("You have earned the title. You can receive a Medal from NPC Dalair."); + } + qm.dispose(); } function end(mode, type, selection) { status++; - if (mode != 1) + if (mode != 1) { qm.dispose(); - else { - if (status == 0) + } else { + if (status == 0) { qm.sendNext("Congratulations on earning your honorable #b#k title. I wish you the best of luck in your future endeavors! Keep up the good work.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n #v1142110:# #t1142110# 1"); - else if (status == 1) { - if (qm.canHold(1142110)) { - qm.gainItem(1142110); - qm.forceCompleteQuest(); - qm.dispose(); - } else { - qm.sendNext("Please make room in your inventory");//NOT GMS LIKE - } + } else if (status == 1) { + if (qm.canHold(1142110)) { + qm.gainItem(1142110); + qm.forceCompleteQuest(); + qm.dispose(); + } else { + qm.sendNext("Please make room in your inventory");//NOT GMS LIKE + } } else if (status == 2) { qm.dispose(); } } - + } \ No newline at end of file diff --git a/scripts/quest/29906.js b/scripts/quest/29906.js index 37661b120a..5e819ff030 100644 --- a/scripts/quest/29906.js +++ b/scripts/quest/29906.js @@ -1,15 +1,15 @@ function start(mode, type, selection) { - if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000) { - qm.forceStartQuest(); - } - qm.dispose(); + if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000) { + qm.forceStartQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142066) && !qm.hasItem(1142066) && (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000)) { - qm.gainItem(1142066,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142066) && !qm.hasItem(1142066) && (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000)) { + qm.gainItem(1142066, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29907.js b/scripts/quest/29907.js index 5bee23d4d6..77b5ec3aa3 100644 --- a/scripts/quest/29907.js +++ b/scripts/quest/29907.js @@ -1,18 +1,17 @@ - var status = -1; function start(mode, type, selection) { - if ((qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000) && qm.getPlayer().getJob().getId() % 100 == 10) { - qm.forceStartQuest(); - } - qm.dispose(); + if ((qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() < 2000) && qm.getPlayer().getJob().getId() % 100 == 10) { + qm.forceStartQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142067) && !qm.haveItem(1142067) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 100 > 0 && qm.getPlayer().getJob().getId() < 2000) { - qm.gainItem(1142067,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142067) && !qm.haveItem(1142067) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 100 > 0 && qm.getPlayer().getJob().getId() < 2000) { + qm.gainItem(1142067, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29908.js b/scripts/quest/29908.js index b988a6c249..cf4cafe441 100644 --- a/scripts/quest/29908.js +++ b/scripts/quest/29908.js @@ -1,18 +1,17 @@ - var status = -1; function start(mode, type, selection) { - if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 0 && qm.getPlayer().getJob().getId() < 2000) { - qm.forceStartQuest(); - } - qm.dispose(); + if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 0 && qm.getPlayer().getJob().getId() < 2000) { + qm.forceStartQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142068) && !qm.haveItem(1142068) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 0 && qm.getPlayer().getJob().getId() < 2000) { - qm.gainItem(1142068,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142068) && !qm.haveItem(1142068) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 0 && qm.getPlayer().getJob().getId() < 2000) { + qm.gainItem(1142068, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29909.js b/scripts/quest/29909.js index 4b9e11eb97..15574bccf1 100644 --- a/scripts/quest/29909.js +++ b/scripts/quest/29909.js @@ -1,18 +1,17 @@ - var status = -1; function start(mode, type, selection) { - if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 1 && qm.getPlayer().getJob().getId() < 2000) { - qm.forceStartQuest(); - } - qm.dispose(); + if (qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 1 && qm.getPlayer().getJob().getId() < 2000) { + qm.forceStartQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142069) && !qm.haveItem(1142069) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 1 && qm.getPlayer().getJob().getId() < 2000) { - qm.gainItem(1142069,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142069) && !qm.haveItem(1142069) && qm.getPlayer().getJob().getId() > 1000 && qm.getPlayer().getJob().getId() % 10 > 1 && qm.getPlayer().getJob().getId() < 2000) { + qm.gainItem(1142069, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29924.js b/scripts/quest/29924.js index bd73b2f22d..aed59546bb 100644 --- a/scripts/quest/29924.js +++ b/scripts/quest/29924.js @@ -1,46 +1,45 @@ - var status = -1; function start(mode, type, selection) { - if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) { - if(!qm.haveItem(1142129)) { - if(qm.canHold(1142129)) { - qm.gainItem(1142129,1); - } else { - qm.dispose(); - return; - } - } - - var medalname = qm.getMedalName(); - qm.message("<" + medalname + "> has been awarded."); - qm.earnTitle("<" + medalname + "> has been awarded."); - - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - - qm.dispose(); + if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) { + if (!qm.haveItem(1142129)) { + if (qm.canHold(1142129)) { + qm.gainItem(1142129, 1); + } else { + qm.dispose(); + return; + } + } + + var medalname = qm.getMedalName(); + qm.message("<" + medalname + "> has been awarded."); + qm.earnTitle("<" + medalname + "> has been awarded."); + + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + + qm.dispose(); } function end(mode, type, selection) { - if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) { - if(!qm.haveItem(1142129)) { - if(qm.canHold(1142129)) { - qm.gainItem(1142129,1); - } else { - qm.dispose(); - return; - } - } - - var medalname = qm.getMedalName(); - qm.message("<" + medalname + "> has been awarded."); - qm.earnTitle("<" + medalname + "> has been awarded."); - - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - - qm.dispose(); + if (qm.getPlayer().getLevel() >= 10 && ((qm.getPlayer().getJob().getId() / 100) | 0) == 21) { + if (!qm.haveItem(1142129)) { + if (qm.canHold(1142129)) { + qm.gainItem(1142129, 1); + } else { + qm.dispose(); + return; + } + } + + var medalname = qm.getMedalName(); + qm.message("<" + medalname + "> has been awarded."); + qm.earnTitle("<" + medalname + "> has been awarded."); + + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29925.js b/scripts/quest/29925.js index 0c1dfe868e..52595620b3 100644 --- a/scripts/quest/29925.js +++ b/scripts/quest/29925.js @@ -1,20 +1,19 @@ - var status = -1; function start(mode, type, selection) { - if (qm.canHold(1142130) && !qm.haveItem(1142130,1) && qm.getPlayer().getLevel() >= 30 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142130,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142130) && !qm.haveItem(1142130, 1) && qm.getPlayer().getLevel() >= 30 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142130, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142130) && !qm.haveItem(1142130,1) && qm.getPlayer().getLevel() >= 30 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142130,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142130) && !qm.haveItem(1142130, 1) && qm.getPlayer().getLevel() >= 30 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142130, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29926.js b/scripts/quest/29926.js index 5f89f981d8..5aaf651a41 100644 --- a/scripts/quest/29926.js +++ b/scripts/quest/29926.js @@ -1,20 +1,19 @@ - var status = -1; function start(mode, type, selection) { - if (qm.canHold(1142131) && !qm.haveItem(1142131,1) && qm.getPlayer().getLevel() >= 70 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142131,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142131) && !qm.haveItem(1142131, 1) && qm.getPlayer().getLevel() >= 70 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142131, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142131) && !qm.haveItem(1142131,1) && qm.getPlayer().getLevel() >= 70 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142131,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142131) && !qm.haveItem(1142131, 1) && qm.getPlayer().getLevel() >= 70 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142131, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29927.js b/scripts/quest/29927.js index e65f2df439..6f94e9059e 100644 --- a/scripts/quest/29927.js +++ b/scripts/quest/29927.js @@ -1,20 +1,19 @@ - var status = -1; function start(mode, type, selection) { - if (qm.canHold(1142132) && !qm.haveItem(1142132,1) && qm.getPlayer().getLevel() >= 120 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142132,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142132) && !qm.haveItem(1142132, 1) && qm.getPlayer().getLevel() >= 120 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142132, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142132) && !qm.haveItem(1142132,1) && qm.getPlayer().getLevel() >= 120 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142132,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142132) && !qm.haveItem(1142132, 1) && qm.getPlayer().getLevel() >= 120 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142132, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/29928.js b/scripts/quest/29928.js index 16170cf73c..5cf3f74a20 100644 --- a/scripts/quest/29928.js +++ b/scripts/quest/29928.js @@ -1,20 +1,19 @@ - var status = -1; function start(mode, type, selection) { - if (qm.canHold(1142133) && !qm.haveItem(1142133,1) && qm.getPlayer().getLevel() >= 200 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142133,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142133) && !qm.haveItem(1142133, 1) && qm.getPlayer().getLevel() >= 200 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142133, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } function end(mode, type, selection) { - if (qm.canHold(1142133) && !qm.haveItem(1142133,1) && qm.getPlayer().getLevel() >= 200 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { - qm.gainItem(1142133,1); - qm.forceStartQuest(); - qm.forceCompleteQuest(); - } - qm.dispose(); + if (qm.canHold(1142133) && !qm.haveItem(1142133, 1) && qm.getPlayer().getLevel() >= 200 && ((qm.getPlayer().getJob() / 100) | 0) == 21) { + qm.gainItem(1142133, 1); + qm.forceStartQuest(); + qm.forceCompleteQuest(); + } + qm.dispose(); } \ No newline at end of file diff --git a/scripts/quest/3108.js b/scripts/quest/3108.js index fc17c6b6a3..c777f1a129 100644 --- a/scripts/quest/3108.js +++ b/scripts/quest/3108.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("(As you peek into the shattered statue, you might have found a clue about what happened. Better talk to #rScadur#k about this.)"); qm.forceCompleteQuest(); diff --git a/scripts/quest/3239.js b/scripts/quest/3239.js index 6abc08e0d1..0ea316011c 100644 --- a/scripts/quest/3239.js +++ b/scripts/quest/3239.js @@ -23,12 +23,12 @@ function end(mode, type, selection) { } else { qm.sendOk("Free a space on your USE inventory before receiving your prize."); qm.dispose(); - return; + } } else { qm.sendOk("Please return me 10 #t4031092# that went missing on this room."); qm.dispose(); - return; + } } else if (status == 1) { qm.gainItem(4031092, -10); diff --git a/scripts/quest/3301.js b/scripts/quest/3301.js index 3e0352f326..dbc069d0ee 100644 --- a/scripts/quest/3301.js +++ b/scripts/quest/3301.js @@ -20,10 +20,10 @@ along with this program. If not, see . */ /** - NPC Name: Han the Broker - Map(s): Magatia - Description: Quest - Test from the Head of Zenumist Society -*/ + NPC Name: Han the Broker + Map(s): Magatia + Description: Quest - Test from the Head of Zenumist Society + */ var status = -1; var oreArray; @@ -36,44 +36,45 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { oreArray = getOreArray(); - if (oreArray.length > 0) { - qm.sendSimple("Oh, looks like someone's ready to make a deal. You want to join Zenumist so badly, huh? I really don't understand you, but that's just fine. What will you give me in return?\r\n" + getOreString(oreArray)); - } else { - qm.sendOk("What is this, you don't have the #rjewel ores#k with you. No ore, no deal."); - qm.dispose(); - return; - } - } else if (status == 1) { + if (oreArray.length > 0) { + qm.sendSimple("Oh, looks like someone's ready to make a deal. You want to join Zenumist so badly, huh? I really don't understand you, but that's just fine. What will you give me in return?\r\n" + getOreString(oreArray)); + } else { + qm.sendOk("What is this, you don't have the #rjewel ores#k with you. No ore, no deal."); + qm.dispose(); + + } + } else if (status == 1) { if (!qm.haveItem(oreArray[selection], 2)) { qm.sendNext("What's this, you haven't got the #rjewel ores#k. No ores no deal!"); qm.dispose(); return; } - qm.gainItem(oreArray[selection], -2); // Take 2 ores - qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zenumist."); - qm.forceCompleteQuest(); - } else if (status == 2) { - qm.dispose(); - } + qm.gainItem(oreArray[selection], -2); // Take 2 ores + qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zenumist."); + qm.forceCompleteQuest(); + } else if (status == 2) { + qm.dispose(); + } } } function getOreArray() { - var ores = new Array(); + var ores = []; var y = 0; for (var x = 4020000; x <= 4020008; x++) { - if (qm.haveItem(x, 2)) { - ores[y] = x; - y++; - } + if (qm.haveItem(x, 2)) { + ores[y] = x; + y++; + } } return ores; } @@ -82,8 +83,8 @@ function getOreString(ids) { // Parameter 'ids' is just the array of getOreArray var thestring = "#b"; var extra; for (x = 0; x < ids.length; x++) { - extra = "#L" + x + "##t" + ids[x] + "##l\r\n"; - thestring += extra; + extra = "#L" + x + "##t" + ids[x] + "##l\r\n"; + thestring += extra; } thestring += "#k"; return thestring; diff --git a/scripts/quest/3303.js b/scripts/quest/3303.js index d6884ab614..242b6ac7be 100644 --- a/scripts/quest/3303.js +++ b/scripts/quest/3303.js @@ -36,44 +36,45 @@ function end(mode, type, selection) { qm.dispose(); return; } - if (mode == 1) + if (mode == 1) { status++; - else + } else { status--; + } if (status == 0) { oreArray = getOreArray(); - if (oreArray.length > 0) { - qm.sendSimple("Oh, looks like someone's ready to make a deal. You want to join Zenumist so badly, huh? I really don't understand you, but that's just fine. What will you give me in return?\r\n" + getOreString(oreArray)); - } else { - qm.sendOk("What is this, you don't have the #rjewel ores#k with you. No ore, no deal."); // script would loop undefinitely at completion, thanks IxianMace for noticing - qm.dispose(); - return; - } - } else if (status == 1) { + if (oreArray.length > 0) { + qm.sendSimple("Oh, looks like someone's ready to make a deal. You want to join Zenumist so badly, huh? I really don't understand you, but that's just fine. What will you give me in return?\r\n" + getOreString(oreArray)); + } else { + qm.sendOk("What is this, you don't have the #rjewel ores#k with you. No ore, no deal."); // script would loop undefinitely at completion, thanks IxianMace for noticing + qm.dispose(); + + } + } else if (status == 1) { if (!qm.haveItem(oreArray[selection], 2)) { // thanks resinate for noticing a function missing here qm.sendNext("What's this, you haven't got the #rjewel ores#k. No ores no deal!"); qm.dispose(); return; } - qm.gainItem(oreArray[selection], -2); // Take 2 ores - qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zenumist."); - qm.forceCompleteQuest(); - } else if (status == 2) { - qm.dispose(); - } + qm.gainItem(oreArray[selection], -2); // Take 2 ores + qm.sendNext("Then wait for awhile. I'll go and get the stuff to help you pass the test of Chief Zenumist."); + qm.forceCompleteQuest(); + } else if (status == 2) { + qm.dispose(); + } } } function getOreArray() { - var ores = new Array(); + var ores = []; var y = 0; for (var x = 4020000; x <= 4020008; x++) { - if (qm.haveItem(x, 2)) { - ores[y] = x; - y++; - } + if (qm.haveItem(x, 2)) { + ores[y] = x; + y++; + } } return ores; } @@ -82,8 +83,8 @@ function getOreString(ids) { // Parameter 'ids' is just the array of getOreArray var thestring = "#b"; var extra; for (x = 0; x < ids.length; x++) { - extra = "#L" + x + "##t" + ids[x] + "##l\r\n"; - thestring += extra; + extra = "#L" + x + "##t" + ids[x] + "##l\r\n"; + thestring += extra; } thestring += "#k"; return thestring; diff --git a/scripts/quest/3314.js b/scripts/quest/3314.js index f0c4746ade..2b0dc396e9 100644 --- a/scripts/quest/3314.js +++ b/scripts/quest/3314.js @@ -29,21 +29,22 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(isPillUsed(qm.getPlayer())) { - if(qm.canHoldAll([2050004, 2022224], [10, 20])) { + if (isPillUsed(qm.getPlayer())) { + if (qm.canHoldAll([2050004, 2022224], [10, 20])) { qm.sendNext("You did took my experiments. Hmm, so THAT is the result of it, hehehehe... Ok, take that as compensation will you? And oh, you can #rspew that#k right away (#bright-click on the pill icon at the top-right corner of the screen#k), no worries."); - + qm.gainExp(12500); qm.gainItem(2050004, 10); diff --git a/scripts/quest/3320.js b/scripts/quest/3320.js index 564348b3ec..ff2f78e8dd 100644 --- a/scripts/quest/3320.js +++ b/scripts/quest/3320.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendAcceptDecline("I may have an idea of the whereabouts of Dr. De Lang. Are you ready to be transported to the area?"); } else if (status == 1) { diff --git a/scripts/quest/3321.js b/scripts/quest/3321.js index aa330f1164..04b588bebc 100644 --- a/scripts/quest/3321.js +++ b/scripts/quest/3321.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("As you may know by now, I am Dr. De Lang. Once an influent alchemist amongst the ranks of the Alcadno society, I have been disconnected from their society due to the disaster of the aftermatch of my failed experiments, that can be seen now all over Magatia."); } else if (status == 1) { diff --git a/scripts/quest/3353.js b/scripts/quest/3353.js index d3583c6b50..672d88a13c 100644 --- a/scripts/quest/3353.js +++ b/scripts/quest/3353.js @@ -24,23 +24,24 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I see. De Lang wants to stop the Huroids from causing more destruction, but the societies would like to get him on jail at once. So that's why he hid himself there."); } else if (status == 1) { qm.sendAcceptDecline("In that case, go there again and hear more details from De Lang, will you?"); } else if (status == 2) { qm.warp(926120200, 1); - + qm.forceStartQuest(); qm.dispose(); } diff --git a/scripts/quest/3354.js b/scripts/quest/3354.js index bd35c4755d..0b5e383f2e 100644 --- a/scripts/quest/3354.js +++ b/scripts/quest/3354.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendAcceptDecline("I have a request for you. Can you ask #bMaed#k for a potion of my devise? Obviously, don't mention I have asked you that, that would be a problem. #bKeeny#k got an illness due to the contact with the Huroids, this have bothering me so much I couldn't give progress on my researches... Please #rbring her the potion#k, so that I could feel better and start making progress. I'm counting on you."); } else if (status == 1) { diff --git a/scripts/quest/3360.js b/scripts/quest/3360.js index 78496c6381..a16c5f89c5 100644 --- a/scripts/quest/3360.js +++ b/scripts/quest/3360.js @@ -28,33 +28,33 @@ var pass; function start(mode, type, selection) { if (mode == -1) { - qm.dispose(); + qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - if (mode == 1) { - status++; - } else { - qm.sendNext("Come on, hurry up. Get your pen and paper out if you're not that smart!"); - qm.dispose(); - return; - } + if (mode == 1) { + status++; + } else { + qm.sendNext("Come on, hurry up. Get your pen and paper out if you're not that smart!"); + qm.dispose(); + return; + } - if (status == 0) { - qm.sendNext("Oh! Finally you have come! I'm glad you are here in time. I have the master key for you to open the secret passage! Hahahaha! Isn't it amazing? Say it amazing!"); - } else if (status == 1) { - qm.sendAcceptDecline("All right, now, this key is very long and complex. I need you to memorize it very well. I won't say again, so you'd better write it down somewhere. Are you ready?"); - } else if (status == 2) { - pass = generateString(); - qm.sendOk("The key code is #b" + pass + "#k. Got that? Put the key into the door of the secret passage, and you will be able to walk around the passage freely."); - } else if (status == 3) { + if (status == 0) { + qm.sendNext("Oh! Finally you have come! I'm glad you are here in time. I have the master key for you to open the secret passage! Hahahaha! Isn't it amazing? Say it amazing!"); + } else if (status == 1) { + qm.sendAcceptDecline("All right, now, this key is very long and complex. I need you to memorize it very well. I won't say again, so you'd better write it down somewhere. Are you ready?"); + } else if (status == 2) { + pass = generateString(); + qm.sendOk("The key code is #b" + pass + "#k. Got that? Put the key into the door of the secret passage, and you will be able to walk around the passage freely."); + } else if (status == 3) { qm.forceStartQuest(); qm.setQuestProgress(3360, pass); - qm.dispose(); - } + qm.dispose(); + } } } @@ -63,8 +63,8 @@ function generateString() { var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var rnum; for (var i = 0; i < 10; i++) { - rnum = Math.floor(Math.random() * chars.length); - thestring += chars.substring(rnum, rnum+1); + rnum = Math.floor(Math.random() * chars.length); + thestring += chars.substring(rnum, rnum + 1); } return thestring; } diff --git a/scripts/quest/3382.js b/scripts/quest/3382.js index c2814e3554..95cc2665c2 100644 --- a/scripts/quest/3382.js +++ b/scripts/quest/3382.js @@ -33,19 +33,20 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.haveItem(4001159, 25) && qm.haveItem(4001160, 25) && !qm.haveItemWithId(1122010, true)) { - if(qm.canHold(1122010)) { + if (qm.haveItem(4001159, 25) && qm.haveItem(4001160, 25) && !qm.haveItemWithId(1122010, true)) { + if (qm.canHold(1122010)) { qm.gainItem(4001159, -25); qm.gainItem(4001160, -25); qm.gainItem(1122010, 1); @@ -55,8 +56,8 @@ function end(mode, type, selection) { qm.sendNext("Free a slot on your EQUIP tab before claiming a prize."); return; } - } else if(qm.haveItem(4001159, 10) && qm.haveItem(4001160, 10)) { - if(qm.canHold(2041212)) { + } else if (qm.haveItem(4001159, 10) && qm.haveItem(4001160, 10)) { + if (qm.canHold(2041212)) { qm.gainItem(4001159, -10); qm.gainItem(4001160, -10); qm.gainItem(2041212, 1); diff --git a/scripts/quest/3414.js b/scripts/quest/3414.js index 3e8a966ef4..1edb7e2031 100644 --- a/scripts/quest/3414.js +++ b/scripts/quest/3414.js @@ -4,49 +4,52 @@ var status = -1; var vecItem; function end(mode, type, selection) { - if(mode == 0) { - qm.dispose(); - return; - } - status++; + if (mode == 0) { + qm.dispose(); + return; + } + status++; - if(status == 0) { - qm.sendNext("Whoa... this is it!!! With this sample, the studies that are taking place in Omega Sector will be reinvigorated with results! I am also at a loss for words for finding someone that is more talented than me at hunting. I'll have to get back on track! Anyway, for your job well done, I'll have to reward you accordingly."); - } - - else if(status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) { - qm.getPlayer().dropMessage(1, "USE inventory full."); - qm.dispose(); - return; - } - - var talkStr = "Here, please select the scroll of your choice. All success rates are at 10%. \r\n\r\n#rSELECT A ITEM\r\n#b" - stance = qm.getPlayer().getJobStyle(); - - const Job = Java.type('client.Job'); - if(stance == Job.WARRIOR || stance == Job.BEGINNER) vecItem = new Array(2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302); - else if(stance == Job.MAGICIAN) vecItem = new Array(2043702, 2043802); - else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) vecItem = new Array(2044502, 2044602); - else if(stance == Job.THIEF) vecItem = new Array(2043302, 2044702); - else vecItem = new Array(2044802, 2044902); - - for (var i = 0; i < vecItem.length; i++) - talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; - qm.sendSimple(talkStr); - } - - else if(status == 2) { - item = vecItem[selection]; - qm.gainItem(item, 1); - qm.gainItem(4031103, -1); - qm.gainItem(4031104, -1); - qm.gainItem(4031105, -1); - qm.gainItem(4031106, -1); - qm.gainExp(12000); - qm.completeQuest(); - + if (status == 0) { + qm.sendNext("Whoa... this is it!!! With this sample, the studies that are taking place in Omega Sector will be reinvigorated with results! I am also at a loss for words for finding someone that is more talented than me at hunting. I'll have to get back on track! Anyway, for your job well done, I'll have to reward you accordingly."); + } else if (status == 1) { + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) { + qm.getPlayer().dropMessage(1, "USE inventory full."); qm.dispose(); + return; } + + var talkStr = "Here, please select the scroll of your choice. All success rates are at 10%. \r\n\r\n#rSELECT A ITEM\r\n#b" + stance = qm.getPlayer().getJobStyle(); + + const Job = Java.type('client.Job'); + if (stance == Job.WARRIOR || stance == Job.BEGINNER) { + vecItem = [2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302]; + } else if (stance == Job.MAGICIAN) { + vecItem = [2043702, 2043802]; + } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) { + vecItem = [2044502, 2044602]; + } else if (stance == Job.THIEF) { + vecItem = [2043302, 2044702]; + } else { + vecItem = [2044802, 2044902]; + } + + for (var i = 0; i < vecItem.length; i++) { + talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; + } + qm.sendSimple(talkStr); + } else if (status == 2) { + item = vecItem[selection]; + qm.gainItem(item, 1); + qm.gainItem(4031103, -1); + qm.gainItem(4031104, -1); + qm.gainItem(4031105, -1); + qm.gainItem(4031106, -1); + qm.gainExp(12000); + qm.completeQuest(); + + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/3414_free10rate.js b/scripts/quest/3414_free10rate.js index 95d39af1da..1c154ed70c 100644 --- a/scripts/quest/3414_free10rate.js +++ b/scripts/quest/3414_free10rate.js @@ -4,41 +4,44 @@ var status = -1; var vecItem; function end(mode, type, selection) { - if(mode == 0) { - qm.dispose(); - return; - } - status++; + if (mode == 0) { + qm.dispose(); + return; + } + status++; - if(status == 0) { - qm.sendNext("Whoa... this is it!!! With this sample, the studies that are taking place in Omega Sector will be reinvigorated with results! I am also at a loss for words for finding someone that is more talented than me at hunting. I'll have to get back on track! Anyway, for your job well done, I'll have to reward you accordingly."); - } + if (status == 0) { + qm.sendNext("Whoa... this is it!!! With this sample, the studies that are taking place in Omega Sector will be reinvigorated with results! I am also at a loss for words for finding someone that is more talented than me at hunting. I'll have to get back on track! Anyway, for your job well done, I'll have to reward you accordingly."); + } else if (status == 1) { + var talkStr = "Here, please select the scroll of your choice. All success rates are at 10%. \r\n\r\n#rSELECT A ITEM\r\n#b" + stance = qm.getPlayer().getJobStyle(); - else if(status == 1) { - var talkStr = "Here, please select the scroll of your choice. All success rates are at 10%. \r\n\r\n#rSELECT A ITEM\r\n#b" - stance = qm.getPlayer().getJobStyle(); - - const Job = Java.type('client.Job'); - if(stance == Job.WARRIOR || stance == Job.BEGINNER) vecItem = new Array(2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302); - else if(stance == Job.MAGICIAN) vecItem = new Array(2043702, 2043802); - else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) vecItem = new Array(2044502, 2044602); - else if(stance == Job.THIEF) vecItem = new Array(2043302, 2044702); - else vecItem = new Array(2044802, 2044902); - - for (var i = 0; i < vecItem.length; i++) - talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; - qm.sendSimple(talkStr); - } - - else if(status == 2) { - item = vecItem[selection]; - item = qm.gainItem(item, 1); - - if (item != null) { - qm.gainExp(12000); - qm.completeQuest(); - } - - qm.dispose(); + const Job = Java.type('client.Job'); + if (stance == Job.WARRIOR || stance == Job.BEGINNER) { + vecItem = [2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302]; + } else if (stance == Job.MAGICIAN) { + vecItem = [2043702, 2043802]; + } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) { + vecItem = [2044502, 2044602]; + } else if (stance == Job.THIEF) { + vecItem = [2043302, 2044702]; + } else { + vecItem = [2044802, 2044902]; } + + for (var i = 0; i < vecItem.length; i++) { + talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; + } + qm.sendSimple(talkStr); + } else if (status == 2) { + item = vecItem[selection]; + item = qm.gainItem(item, 1); + + if (item != null) { + qm.gainExp(12000); + qm.completeQuest(); + } + + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/3437.js b/scripts/quest/3437.js index 70e6eb1f4b..e11d1eba6f 100644 --- a/scripts/quest/3437.js +++ b/scripts/quest/3437.js @@ -4,41 +4,48 @@ var status = -1; var item; function end(mode, type, selection) { - if(mode == 0) { - qm.dispose(); - return; - } - status++; + if (mode == 0) { + qm.dispose(); + return; + } + status++; - if(status == 0) { - qm.sendNext("What the? Are you telling me you've already taken out 150 #o4230120#s? And these ... yes, these really are 120 #t4000122#s. I was wondering how you were going to complete this mission all by yourself, but you took care of it just fine. Alright, here ... this is a very important item for me, but please take it."); - } else if(status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) { - qm.sendOk("Please free a EQUIP inventory slot to receive the reward."); - qm.dispose(); - return; - } - - var talkStr = "Do you like the glove? I've kept this for a while, and I was planning on using it someday, but it looks much better on you. Please put it to good use; besides, I got so much stuff from the Sector, that I don't need it anymore."; - stance = qm.getPlayer().getJobStyle(); - - const Job = Java.type('client.Job'); - if(stance == Job.WARRIOR) item = 1082024; - else if(stance == Job.MAGICIAN) item = 1082063; - else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) item = 1082072; - else if(stance == Job.THIEF) item = 1082076; - else if(stance == Job.BRAWLER || stance == Job.GUNSLINGER) item = 1082195; - else item = 1082149; - - qm.sendNext(talkStr); - } else if(status == 2) { - qm.completeQuest(); - qm.gainItem(item, 1); - qm.gainItem(4000122, -120); - qm.gainExp(6100); - qm.sendOk("Thank you so much for fulfilling your missions as one of the Mesorangers. I've told the Sector about your successful story, and the Sector seems to be very pleased with you, too. Hopefully you'll keep working with us. Bye~"); - } else if (status == 3) { + if (status == 0) { + qm.sendNext("What the? Are you telling me you've already taken out 150 #o4230120#s? And these ... yes, these really are 120 #t4000122#s. I was wondering how you were going to complete this mission all by yourself, but you took care of it just fine. Alright, here ... this is a very important item for me, but please take it."); + } else if (status == 1) { + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) { + qm.sendOk("Please free a EQUIP inventory slot to receive the reward."); qm.dispose(); + return; } + + var talkStr = "Do you like the glove? I've kept this for a while, and I was planning on using it someday, but it looks much better on you. Please put it to good use; besides, I got so much stuff from the Sector, that I don't need it anymore."; + stance = qm.getPlayer().getJobStyle(); + + const Job = Java.type('client.Job'); + if (stance == Job.WARRIOR) { + item = 1082024; + } else if (stance == Job.MAGICIAN) { + item = 1082063; + } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) { + item = 1082072; + } else if (stance == Job.THIEF) { + item = 1082076; + } else if (stance == Job.BRAWLER || stance == Job.GUNSLINGER) { + item = 1082195; + } else { + item = 1082149; + } + + qm.sendNext(talkStr); + } else if (status == 2) { + qm.completeQuest(); + qm.gainItem(item, 1); + qm.gainItem(4000122, -120); + qm.gainExp(6100); + qm.sendOk("Thank you so much for fulfilling your missions as one of the Mesorangers. I've told the Sector about your successful story, and the Sector seems to be very pleased with you, too. Hopefully you'll keep working with us. Bye~"); + } else if (status == 3) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/3452.js b/scripts/quest/3452.js index 1f4f818002..a17e82c8eb 100644 --- a/scripts/quest/3452.js +++ b/scripts/quest/3452.js @@ -4,25 +4,22 @@ function end(mode, type, selection) { status++; if (mode != 1) { qm.dispose(); - } - else { + } else { if (status == 0) { qm.sendNext("Take these #bMana Elixir Pills#k as a token of my gratitude."); - } - else if (status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) { - qm.gainItem(4000099, -1); - qm.gainItem(2000011, 50); - qm.gainExp(8000); - qm.forceCompleteQuest(); - qm.dispose(); - } - else { - qm.sendNext("Hm? It looks like your inventory is full."); - } - } else if (status == 2) { + } else if (status == 1) { + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) { + qm.gainItem(4000099, -1); + qm.gainItem(2000011, 50); + qm.gainExp(8000); + qm.forceCompleteQuest(); qm.dispose(); + } else { + qm.sendNext("Hm? It looks like your inventory is full."); + } + } else if (status == 2) { + qm.dispose(); } - } + } } \ No newline at end of file diff --git a/scripts/quest/3454.js b/scripts/quest/3454.js index 967e713af4..dc5aa77e7c 100644 --- a/scripts/quest/3454.js +++ b/scripts/quest/3454.js @@ -33,21 +33,22 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { const InventoryType = Java.type('client.inventory.InventoryType'); - if(qm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) { + if (qm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) { qm.sendOk("Make room on your ETC inventory first."); - qm.dispose(); + qm.dispose(); return; } @@ -57,10 +58,9 @@ function end(mode, type, selection) { qm.gainItem(4000118, -30); rnd = Math.random(); - if(rnd < 1.0) { + if (rnd < 1.0) { qm.gainItem(4031928, 1); - } - else { + } else { qm.gainItem(4031927, 1); } diff --git a/scripts/quest/3507.js b/scripts/quest/3507.js index f2ab5516af..1d87db4608 100644 --- a/scripts/quest/3507.js +++ b/scripts/quest/3507.js @@ -1,22 +1,22 @@ - var status = -1; function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(qm.isQuestCompleted(3523) || qm.isQuestCompleted(3524) || qm.isQuestCompleted(3525) || qm.isQuestCompleted(3526) || qm.isQuestCompleted(3527) || qm.isQuestCompleted(3529) || qm.isQuestCompleted(3539)) { + if (qm.isQuestCompleted(3523) || qm.isQuestCompleted(3524) || qm.isQuestCompleted(3525) || qm.isQuestCompleted(3526) || qm.isQuestCompleted(3527) || qm.isQuestCompleted(3529) || qm.isQuestCompleted(3539)) { qm.completeQuest(); qm.sendOk("You are now filled with all of your memories again.. You are now allowed to go to #m270020000#."); } else { diff --git a/scripts/quest/3514.js b/scripts/quest/3514.js index 3568e9a35d..587b03df30 100644 --- a/scripts/quest/3514.js +++ b/scripts/quest/3514.js @@ -26,21 +26,21 @@ var status = -1; function start(mode, type, selection) { - if(qm.getPlayer().getMeso() >= 1000000) { - if(qm.canHold(2022337, 1)) { - qm.gainItem(2022337, 1); - qm.gainMeso(-1000000); - - //qm.sendOk("Nice doing business with you~~."); - qm.startQuest(3514); - } else { - qm.sendOk("Check out for a slot on your USE inventory first."); - } + if (qm.getPlayer().getMeso() >= 1000000) { + if (qm.canHold(2022337, 1)) { + qm.gainItem(2022337, 1); + qm.gainMeso(-1000000); + + //qm.sendOk("Nice doing business with you~~."); + qm.startQuest(3514); } else { - qm.sendOk("Oy, you don't have the money. I charge #r1,000,000 mesos#k for the emotion potion. No money, no deal."); + qm.sendOk("Check out for a slot on your USE inventory first."); } - - qm.dispose(); + } else { + qm.sendOk("Oy, you don't have the money. I charge #r1,000,000 mesos#k for the emotion potion. No money, no deal."); + } + + qm.dispose(); } function usedPotion(ch) { @@ -49,36 +49,36 @@ function usedPotion(ch) { } function end(mode, type, selection) { - if (mode == 0 && type == 0) { - status--; - } else if (mode == -1) { - qm.dispose(); - return; - } else { - status++; - } - - if(status == 0) { - if(!usedPotion(qm.getPlayer())) { - if(qm.haveItem(2022337)) { - qm.sendOk("Are you scared to drink the potion? I can assure you it has only a minor #rside effect#k."); - } else { - if(qm.canHold(2022337)) { - qm.gainItem(2022337, 1); - qm.sendOk("Lost it? Luckily for you I managed to recover it back. Take it."); - } else { - qm.sendOk("Lost it? Luckily for you I managed to recover it back. Make a room to get it."); - } - } - - qm.dispose(); - return; + if (mode == 0 && type == 0) { + status--; + } else if (mode == -1) { + qm.dispose(); + return; + } else { + status++; + } + + if (status == 0) { + if (!usedPotion(qm.getPlayer())) { + if (qm.haveItem(2022337)) { + qm.sendOk("Are you scared to drink the potion? I can assure you it has only a minor #rside effect#k."); + } else { + if (qm.canHold(2022337)) { + qm.gainItem(2022337, 1); + qm.sendOk("Lost it? Luckily for you I managed to recover it back. Take it."); } else { - qm.sendOk("It seems the potion worked and your emotions are no longer frozen. And, oh, my... You're ailing bad, #bpurge#k that out quickly."); + qm.sendOk("Lost it? Luckily for you I managed to recover it back. Make a room to get it."); } - } else if(status == 1) { - qm.gainExp(891500); - qm.completeQuest(3514); - qm.dispose(); + } + + qm.dispose(); + + } else { + qm.sendOk("It seems the potion worked and your emotions are no longer frozen. And, oh, my... You're ailing bad, #bpurge#k that out quickly."); } + } else if (status == 1) { + qm.gainExp(891500); + qm.completeQuest(3514); + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/3523.js b/scripts/quest/3523.js index 4f8ab2905d..0289a230a4 100644 --- a/scripts/quest/3523.js +++ b/scripts/quest/3523.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); // thanks resinate for pointing out uncompletable quest due to non-updated progress diff --git a/scripts/quest/3524.js b/scripts/quest/3524.js index 4b740dd36b..36c338a338 100644 --- a/scripts/quest/3524.js +++ b/scripts/quest/3524.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3525.js b/scripts/quest/3525.js index 97bbae92c7..3a6a1b2444 100644 --- a/scripts/quest/3525.js +++ b/scripts/quest/3525.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3526.js b/scripts/quest/3526.js index 77b49a7ce1..57aea57b75 100644 --- a/scripts/quest/3526.js +++ b/scripts/quest/3526.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3527.js b/scripts/quest/3527.js index ce28f770f0..7061a3b235 100644 --- a/scripts/quest/3527.js +++ b/scripts/quest/3527.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3529.js b/scripts/quest/3529.js index 5d1ac8f05f..e60fa7eb80 100644 --- a/scripts/quest/3529.js +++ b/scripts/quest/3529.js @@ -24,16 +24,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendOk("You have regained your memories, talk to #b#p2140001##k to get the pass."); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3539.js b/scripts/quest/3539.js index ce28f770f0..7061a3b235 100644 --- a/scripts/quest/3539.js +++ b/scripts/quest/3539.js @@ -29,16 +29,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.startQuest(); qm.setQuestProgress(3507, 7081, 1); diff --git a/scripts/quest/3714.js b/scripts/quest/3714.js index 913c341fb9..436a8c59bb 100644 --- a/scripts/quest/3714.js +++ b/scripts/quest/3714.js @@ -24,29 +24,30 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!qm.haveItem(4001094, 1)) { + if (!qm.haveItem(4001094, 1)) { qm.sendNext("You don't have a #b#t4001094##k..."); qm.dispose(); return; } - + if (qm.haveItem(2041200, 1)) { qm.sendOk("(The #b#t2041200##k in my bag has grown brighter since reaching this place... Noticing again, the young dragon over there seems to be glaring bitterly towards it.)"); qm.dispose(); return; } - + qm.sendNext("You have brought a #b#t4001094##k, thank you for retrieving one more of my kin to the nest! Please have this...\r\n\r\n....... (bleuuhnuhgh) (blahrgngnhhng) ...\r\n\r\nehh, #b#t2041200##k as a token of my kin's gratitude. And do a favor for us, please, get that thing out of here..."); } else if (status == 1) { if (!qm.canHold(2041200, 1)) { @@ -54,7 +55,7 @@ function start(mode, type, selection) { qm.dispose(); return; } - + qm.forceCompleteQuest(); qm.gainItem(4001094, -1); qm.gainItem(2041200, 1); // quest not rewarding properly found thanks to MedicOP & Thora diff --git a/scripts/quest/3833.js b/scripts/quest/3833.js index 873f9084bd..f21d34c68f 100644 --- a/scripts/quest/3833.js +++ b/scripts/quest/3833.js @@ -8,45 +8,44 @@ function end(mode, type, selection) { if (status == 0) { qm.sendOk("Great! You managed to get the herb I need. As a #btoken of gratitude#k, take this item to help on your journey."); } else if (status == 1) { - const InventoryType = Java.type('client.inventory.InventoryType'); - if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 2) { - if (qm.haveItem(4000294, 1000)) { - qm.gainItem(4000294, -1000); - qm.gainItem(2040501, 1); - qm.gainItem(2000005, 50); - qm.gainExp(54000); - qm.forceCompleteQuest(); - } else if (qm.haveItem(4000294, 600)) { - qm.gainItem(4000294, -600); - qm.gainItem(2020013, 50); - qm.gainExp(54000); - qm.forceCompleteQuest(); - } else if (qm.haveItem(4000294, 500)) { - qm.gainItem(4000294, -500); - qm.gainExp(54000); - qm.forceCompleteQuest(); - } else if (qm.haveItem(4000294, 100)) { - qm.gainItem(4000294, -100); - qm.gainExp(45000); - qm.forceCompleteQuest(); - } else if (qm.haveItem(4000294, 50)) { - qm.gainItem(4000294, -50); - qm.gainItem(2020007, 50); - qm.gainExp(10000); - qm.forceCompleteQuest(); - } else if (qm.haveItem(4000294, 1)) { - qm.gainItem(4000294, -1); - qm.gainItem(2000000, 1); - qm.gainExp(10); - qm.forceCompleteQuest(); - } + const InventoryType = Java.type('client.inventory.InventoryType'); + if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 2) { + if (qm.haveItem(4000294, 1000)) { + qm.gainItem(4000294, -1000); + qm.gainItem(2040501, 1); + qm.gainItem(2000005, 50); + qm.gainExp(54000); + qm.forceCompleteQuest(); + } else if (qm.haveItem(4000294, 600)) { + qm.gainItem(4000294, -600); + qm.gainItem(2020013, 50); + qm.gainExp(54000); + qm.forceCompleteQuest(); + } else if (qm.haveItem(4000294, 500)) { + qm.gainItem(4000294, -500); + qm.gainExp(54000); + qm.forceCompleteQuest(); + } else if (qm.haveItem(4000294, 100)) { + qm.gainItem(4000294, -100); + qm.gainExp(45000); + qm.forceCompleteQuest(); + } else if (qm.haveItem(4000294, 50)) { + qm.gainItem(4000294, -50); + qm.gainItem(2020007, 50); + qm.gainExp(10000); + qm.forceCompleteQuest(); + } else if (qm.haveItem(4000294, 1)) { + qm.gainItem(4000294, -1); + qm.gainItem(2000000, 1); + qm.gainExp(10); + qm.forceCompleteQuest(); + } - qm.dispose(); - } - else { - qm.sendOk("Could you make #b2 slots available#k on your USE inventory before receiving your reward?"); - } - } else if (status == 2) { + qm.dispose(); + } else { + qm.sendOk("Could you make #b2 slots available#k on your USE inventory before receiving your reward?"); + } + } else if (status == 2) { qm.dispose(); } } diff --git a/scripts/quest/3933.js b/scripts/quest/3933.js index 4ee82e96df..8db0c9e8f6 100644 --- a/scripts/quest/3933.js +++ b/scripts/quest/3933.js @@ -27,16 +27,17 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I didn't think you would be this strong. I feel like you have what it takes to become a member of the Sand Bandits. The most important aspect of being a member is power, and I think you have that. I also... want to test you one more time, just to make sure you're the right one. What do you think? Can you handle it?"); } else if (status == 1) { @@ -44,7 +45,7 @@ function start(mode, type, selection) { } else if (status == 2) { qm.sendNext("Good, I like your confidence."); } else if (status == 3) { - if(qm.getWarpMap(926000000).getCharacters().size() > 0) { + if (qm.getWarpMap(926000000).getCharacters().size() > 0) { qm.sendOk("There is someone currently in this map, come back later."); qm.dispose(); } else { diff --git a/scripts/quest/3941.js b/scripts/quest/3941.js index 12173499e1..292d81faa3 100644 --- a/scripts/quest/3941.js +++ b/scripts/quest/3941.js @@ -17,6 +17,7 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ + /* Steal queen's silk */ @@ -31,18 +32,19 @@ function start(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!isTigunMorphed(qm.getPlayer())) { + if (!isTigunMorphed(qm.getPlayer())) { qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights."); status = 1; return; @@ -50,7 +52,7 @@ function start(mode, type, selection) { qm.sendNext("Tigun, what are you doing here?"); } else if (status == 1) { - if(!isTigunMorphed(qm.getPlayer())) { + if (!isTigunMorphed(qm.getPlayer())) { qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights."); return; } @@ -67,26 +69,27 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { - if(!isTigunMorphed(qm.getPlayer())) { + if (!isTigunMorphed(qm.getPlayer())) { qm.sendNext("What's this? I can't simply give the Queen's silk to anyone, claiming they will hand it at once to the queen. Get out of my sights."); qm.dispose(); return; } - if(qm.canHold(4031571, 1)) { + if (qm.canHold(4031571, 1)) { qm.gainItem(4031571); - + qm.sendNext("There you go. Please deliver to the queen as soon as possible, Tigun, she gets really mad if things get delayed."); qm.forceCompleteQuest(); } else { diff --git a/scripts/quest/3953.js b/scripts/quest/3953.js index 1575c21706..c951e1ea6a 100644 --- a/scripts/quest/3953.js +++ b/scripts/quest/3953.js @@ -24,16 +24,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendSimple("Eh, are you still saying Deo is a monster? No, Deo is not a monster, he is a peaceful leader of the Royal cactus from the region.\r\n\r\n#L0##bHave you heard that a group of merchants crossing through the desert were attacked by the monsters?#k"); } else if (status == 1) { diff --git a/scripts/quest/4647.js b/scripts/quest/4647.js index 0e18b92d34..1ef13adb24 100644 --- a/scripts/quest/4647.js +++ b/scripts/quest/4647.js @@ -27,28 +27,29 @@ var status = -1; function start(mode, type, selection) { - qm.dispose(); + qm.dispose(); } function end(mode, type, selection) { - if (mode == -1) { - qm.dispose(); - } else { - if (mode == 1) - status++; - else - status--; - if (status == 0) { - if(qm.haveItem(5460000)) { - qm.completeQuest(); - qm.teachSkill(8, 1, 1, -1); - qm.gainItem(5460000, -1, false); - qm.sendOk("You got the Pet Snack! Thanks! You can use these to feed multiple pets at once!"); - } else { - qm.sendOk("Get me the Pet Snack! It can be found in a very big shop...."); - } - } else if (status == 1) { - qm.dispose(); - } - } + if (mode == -1) { + qm.dispose(); + } else { + if (mode == 1) { + status++; + } else { + status--; + } + if (status == 0) { + if (qm.haveItem(5460000)) { + qm.completeQuest(); + qm.teachSkill(8, 1, 1, -1); + qm.gainItem(5460000, -1, false); + qm.sendOk("You got the Pet Snack! Thanks! You can use these to feed multiple pets at once!"); + } else { + qm.sendOk("Get me the Pet Snack! It can be found in a very big shop...."); + } + } else if (status == 1) { + qm.dispose(); + } + } } \ No newline at end of file diff --git a/scripts/quest/4659.js b/scripts/quest/4659.js index bfc0389130..8a9978e37d 100644 --- a/scripts/quest/4659.js +++ b/scripts/quest/4659.js @@ -34,82 +34,81 @@ function start(mode, type, selection) { function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) + if (type == 1 && mode == 0) { status -= 2; - else{ + } else { qm.dispose(); return; } } if (status == 0) { - if(qm.getMeso() < 10000) { + if (qm.getMeso() < 10000) { qm.sendOk("Hey! I need #b10,000 mesos#k to do your pet's evolution!"); qm.dispose(); return; } qm.sendNext("Great job on finding your evolution materials. I will now give you a robot."); - } - else if (status == 1) { + } else if (status == 1) { if (qm.isQuestCompleted(4659)) { qm.dropMessage(1, "how did this get here?"); qm.dispose(); - } else if (qm.canHold(5000048)){ + } else if (qm.canHold(5000048)) { var pet = 0; var after; var i; - - for(i = 0; i < 3; i++) { - if(qm.getPlayer().getPet(i) != null && qm.getPlayer().getPet(i).getItemId() == 5000048) { + + for (i = 0; i < 3; i++) { + if (qm.getPlayer().getPet(i) != null && qm.getPlayer().getPet(i).getItemId() == 5000048) { pet = qm.getPlayer().getPet(i); break; } } - if(i == 3) { + if (i == 3) { qm.getPlayer().message("Pet could not be evolved."); qm.dispose(); return; } - + var closeness = pet.getCloseness(); - if(closeness < 1642) { + if (closeness < 1642) { qm.sendOk("It looks like your pet is not grown enough to be evolved yet. Train it a bit more, util it reaches #blevel 15#k."); qm.dispose(); return; } - + var level = pet.getLevel(); var fullness = pet.getFullness(); var name = pet.getName(); var rand = 1 + Math.floor(Math.random() * 9); - + if (rand >= 1 && rand <= 2) { - after = 5000049; + after = 5000049; } else if (rand >= 3 && rand <= 4) { - after = 5000050; + after = 5000050; } else if (rand >= 5 && rand <= 6) { - after = 5000051; + after = 5000051; } else if (rand >= 7 && rand <= 8) { - after = 5000052; + after = 5000052; } else if (rand == 9) { - after = 5000053; + after = 5000053; } else { - qm.sendOk("Something wrong. Try again."); - qm.dispose(); + qm.sendOk("Something wrong. Try again."); + qm.dispose(); return; - } - + } + //qm.gainItem(5000048 + rand); qm.gainItem(5380000, -1); qm.gainMeso(-10000); - + qm.evolvePet(i, after); // var petId = Pet.createPet(rand + 5000049, level, closeness, fullness); // if (petId == -1) return; // InventoryManipulator.addById(qm.getClient(), rand+5000049, 1, "", petId); qm.dispose(); } else { - qm.dropMessage(1,"Your inventory is full"); + qm.dropMessage(1, "Your inventory is full"); qm.dispose(); } } diff --git a/scripts/quest/6030.js b/scripts/quest/6030.js index 1b7bd18e9b..9f39a2607d 100644 --- a/scripts/quest/6030.js +++ b/scripts/quest/6030.js @@ -27,16 +27,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I am to teach you about the fundamentals of Alchemy."); } else if (status == 1) { @@ -49,7 +50,7 @@ function end(mode, type, selection) { qm.sendNextPrev("And remember this: the maxima of #bExchange#k, the area of the fundamentals of Alchemy where the total amount of the material does not change, is that no item can be created from nothing. Understood?"); } else if (status == 5) { qm.gainMeso(-10000); - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/6031.js b/scripts/quest/6031.js index f1e210549c..1e45e99e5b 100644 --- a/scripts/quest/6031.js +++ b/scripts/quest/6031.js @@ -27,16 +27,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("I am to teach you about the basics of the Theory of Science."); } else if (status == 1) { @@ -49,7 +50,7 @@ function end(mode, type, selection) { qm.sendNextPrev("That has been made clear, right? Good, then the class is over. Dismissed."); } else if (status == 5) { qm.gainMeso(-10000); - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/6032.js b/scripts/quest/6032.js index d9dfe6700d..3d67b489d7 100644 --- a/scripts/quest/6032.js +++ b/scripts/quest/6032.js @@ -27,16 +27,17 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("So you've come to attend my class, huh? Right, I'll make it fast."); } else if (status == 1) { @@ -47,7 +48,7 @@ function end(mode, type, selection) { qm.sendNextPrev("Ok, now you need to hand me a fee, 10,000 mesos that is, for that information. The collected fee shall be used for acquiring the needed materials for your learning of the fine art of the #bMaker#k."); } else if (status == 4) { qm.gainMeso(-10000); - + qm.forceCompleteQuest(); qm.dispose(); } diff --git a/scripts/quest/6033.js b/scripts/quest/6033.js index 6f0ca48ffd..1db6726d4d 100644 --- a/scripts/quest/6033.js +++ b/scripts/quest/6033.js @@ -28,29 +28,30 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Hm, so you claim to have brought the #b#t4260003##k? Ok, let's take a look into it."); } else if (status == 1) { - if(qm.getQuestProgressInt(6033) == 1 && qm.haveItem(4260003, 1)) { + if (qm.getQuestProgressInt(6033) == 1 && qm.haveItem(4260003, 1)) { qm.sendNextPrev("You indeed have crafted a fine piece of Monster Crystal, I see. You passed! Now, I shall teach you the next steps of the Maker skill. Keep the monster crystal with you as well, it's your work."); } else { qm.sendNext("Hey, what's wrong? I did tell you to make a monster crystal to pass my test, didn't I? Buying one or crafting before the start of the test is NOT part of the deal. Go craft me an #b#t4260003##k."); qm.dispose(); - return; + } } else if (status == 2) { qm.forceCompleteQuest(); - + var skillid = Math.floor(qm.getPlayer().getJob().getId() / 1000) * 10000000 + 1007; qm.teachSkill(skillid, 2, 3, -1); qm.gainExp(230000); diff --git a/scripts/quest/6036.js b/scripts/quest/6036.js index 1407c20da6..b8ad64dfb9 100644 --- a/scripts/quest/6036.js +++ b/scripts/quest/6036.js @@ -28,34 +28,35 @@ function end(mode, type, selection) { if (mode == -1) { qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendNext("Bothering me again? What's it?"); } else if (status == 1) { - if(qm.haveItem(4031980, 1)) { + if (qm.haveItem(4031980, 1)) { qm.sendNext("You crafted a #b#t4031980##k?! How comes, how did you do it?? ... Well, that can't be helped, I guess. The student surpassed the teacher! Youth sure do wonders to one's perception capabilities.\r\n\r\nYou are now ready to take the last step on mastering the Maker skill, contemplate it at it's finest form!"); } else { qm.sendNext("... Please step aside, I can't finish this work if I'm being distracted at every moment."); qm.dispose(); - return; + } } else if (status == 2) { qm.forceCompleteQuest(); - + qm.gainItem(4031980, -1); var skillid = Math.floor(qm.getPlayer().getJob().getId() / 1000) * 10000000 + 1007; qm.teachSkill(skillid, 3, 3, -1); qm.gainExp(300000); - + qm.dispose(); } } diff --git a/scripts/quest/7103.js b/scripts/quest/7103.js index 4dbd337649..170bcfda35 100644 --- a/scripts/quest/7103.js +++ b/scripts/quest/7103.js @@ -27,17 +27,18 @@ function start(mode, type, selection) { qm.sendOk("Oh really. Do you need more time? I'm fully confident that you'll help me out before the Time Sphere is formed."); qm.dispose(); } else { - if(mode == 0 && type > 0) { + if (mode == 0 && type > 0) { qm.sendOk("Oh really. Do you need more time? I'm fully confident that you'll help me out before the Time Sphere is formed."); qm.dispose(); return; } - - if (mode == 1) + + if (mode == 1) { status++; - else + } else { status--; - + } + if (status == 0) { qm.sendYesNo("Only thing we have to do now ...is to make #o8500002# disappear forever... are you ready?"); } else if (status == 1) { @@ -51,10 +52,10 @@ function start(mode, type, selection) { qm.dispose(); return; } - + qm.gainItem(4031179, 1); } - + qm.sendAcceptDecline("Drop the #b#t4031179:##k that I returned to you to seal up whatever crack you see that #o8500002# may have used to enter this dimension in the first place. Then it'll come out of the Time Sphere and show everyone its true appearance. Please, please kill it and then come back. \r\n\r\nCollect #r1 #t4031172:##k\r\nEliminate #r#o8500001##k"); } else if (status == 4) { qm.forceStartQuest(); diff --git a/scripts/quest/8185.js b/scripts/quest/8185.js index 156554aacc..0990d1b79e 100644 --- a/scripts/quest/8185.js +++ b/scripts/quest/8185.js @@ -28,78 +28,79 @@ var status = -1; function end(mode, type, selection) { - if (mode == -1) { - qm.dispose(); - } else { - if (mode == 1) - status++; - else - status--; - if (status == 0) { - if(qm.getMeso() < 10000) { - qm.sendOk("Hey! I need #b10,000 mesos#k to do your pet's evolution!"); - qm.dispose(); - return; - } - - qm.sendNext("#e#bHey, you did it!#n#k \r\n#rWow!#k Now I could complete my studies on your pet!"); - } else if (status == 1) { - if (mode == 0) { - qm.sendOk("I see... Come back when you wish to do it. I'm really excited to do this."); - qm.dispose(); - } else { - qm.sendNextPrev("Just saying, your new dragon's color is gonna be #e#rrandom#k#n! It's either gonna be #ggreen, #bblue, #rred, #dor very rarely#k, black. \r\n\r\n#fUI/UIWindow.img/QuestIcon/5/0# \r\n\r If you happen to not like your pet's new color, or if you ever wish to change your pet color again, #eyou can change it!#n Simply just #dbuy another Rock of Evolution, 10,000 mesos, #kand #dequip your new pet#k before talking to me again, but of course, I cannot return your pet as a baby dragon, only to another adult dragon."); - } - } else if (status == 2) { - qm.sendYesNo("Now let me try to evolve your pet. You ready? Wanna see your cute baby dragon turn into either a matured dark black, blue, calm green, or fiery red adult dragon? It'll still have the same closeness, level, name, fullness, hunger, and equipment in case you're worried. \r\n\r #b#eDo you wish to continue or do you have some last-minute things to do first?#k#n"); - } else if (status == 3) { - qm.sendNextPrev("Alright, here we go...! #rHYAHH!#k"); - } else if (status == 4) { - var rand = 1 + Math.floor(Math.random() * 10); - var after = 0; - var i = 0; - - for(i = 0; i < 3; i++) { - if(qm.getPlayer().getPet(i) != null && qm.getPlayer().getPet(i).getItemId() == 5000029) { - var pet = qm.getPlayer().getPet(i); - break; - } - } - if(i == 3) { - qm.getPlayer().message("Pet could not be evolved."); - qm.dispose(); - return; - } - - - if (rand >= 1 && rand <= 3) { - after = 5000030; - } else if (rand >= 4 && rand <= 6) { - after = 5000031; - } else if (rand >= 7 && rand <= 9) { - after = 5000032; - } else if (rand == 10) { - after = 5000033; - } else { - qm.sendOk("Something wrong. Try again."); - qm.dispose(); - return; - } - - /* if (name.equals(ItemInformationProvider.getInstance().getName(id))) { - name = ItemInformationProvider.getInstance().getName(after); - } */ - - //qm.unequipPet(qm.getClient()); - qm.gainItem(5380000, -1); - qm.gainMeso(-10000); - qm.evolvePet(i, after); - - //SpawnPetHandler.evolve(qm.getPlayer().getClient(), 5000029, after); - - qm.sendOk("#bSWEET! IT WORKED!#k Your dragon has grown beautifully! #rYou may find your new pet under your 'CASH' inventory.\r #kIt used to be a #b #i5000029##t5000029##k, and now it's \r a #b#i" + after + "##t" + after + "##k!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v"+after+"# #t"+after+"#"); - } else if (status == 5) { - qm.dispose(); + if (mode == -1) { + qm.dispose(); + } else { + if (mode == 1) { + status++; + } else { + status--; + } + if (status == 0) { + if (qm.getMeso() < 10000) { + qm.sendOk("Hey! I need #b10,000 mesos#k to do your pet's evolution!"); + qm.dispose(); + return; + } + + qm.sendNext("#e#bHey, you did it!#n#k \r\n#rWow!#k Now I could complete my studies on your pet!"); + } else if (status == 1) { + if (mode == 0) { + qm.sendOk("I see... Come back when you wish to do it. I'm really excited to do this."); + qm.dispose(); + } else { + qm.sendNextPrev("Just saying, your new dragon's color is gonna be #e#rrandom#k#n! It's either gonna be #ggreen, #bblue, #rred, #dor very rarely#k, black. \r\n\r\n#fUI/UIWindow.img/QuestIcon/5/0# \r\n\r If you happen to not like your pet's new color, or if you ever wish to change your pet color again, #eyou can change it!#n Simply just #dbuy another Rock of Evolution, 10,000 mesos, #kand #dequip your new pet#k before talking to me again, but of course, I cannot return your pet as a baby dragon, only to another adult dragon."); + } + } else if (status == 2) { + qm.sendYesNo("Now let me try to evolve your pet. You ready? Wanna see your cute baby dragon turn into either a matured dark black, blue, calm green, or fiery red adult dragon? It'll still have the same closeness, level, name, fullness, hunger, and equipment in case you're worried. \r\n\r #b#eDo you wish to continue or do you have some last-minute things to do first?#k#n"); + } else if (status == 3) { + qm.sendNextPrev("Alright, here we go...! #rHYAHH!#k"); + } else if (status == 4) { + var rand = 1 + Math.floor(Math.random() * 10); + var after = 0; + var i = 0; + + for (i = 0; i < 3; i++) { + if (qm.getPlayer().getPet(i) != null && qm.getPlayer().getPet(i).getItemId() == 5000029) { + var pet = qm.getPlayer().getPet(i); + break; } - } + } + if (i == 3) { + qm.getPlayer().message("Pet could not be evolved."); + qm.dispose(); + return; + } + + + if (rand >= 1 && rand <= 3) { + after = 5000030; + } else if (rand >= 4 && rand <= 6) { + after = 5000031; + } else if (rand >= 7 && rand <= 9) { + after = 5000032; + } else if (rand == 10) { + after = 5000033; + } else { + qm.sendOk("Something wrong. Try again."); + qm.dispose(); + return; + } + + /* if (name.equals(ItemInformationProvider.getInstance().getName(id))) { + name = ItemInformationProvider.getInstance().getName(after); +} */ + + //qm.unequipPet(qm.getClient()); + qm.gainItem(5380000, -1); + qm.gainMeso(-10000); + qm.evolvePet(i, after); + + //SpawnPetHandler.evolve(qm.getPlayer().getClient(), 5000029, after); + + qm.sendOk("#bSWEET! IT WORKED!#k Your dragon has grown beautifully! #rYou may find your new pet under your 'CASH' inventory.\r #kIt used to be a #b #i5000029##t5000029##k, and now it's \r a #b#i" + after + "##t" + after + "##k!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v" + after + "# #t" + after + "#"); + } else if (status == 5) { + qm.dispose(); + } + } } \ No newline at end of file diff --git a/scripts/quest/8189.js b/scripts/quest/8189.js index 8bc9bcba94..e7b1d7adaa 100644 --- a/scripts/quest/8189.js +++ b/scripts/quest/8189.js @@ -28,76 +28,77 @@ var status = -1; function end(mode, type, selection) { - if (mode == -1) { - qm.dispose(); - } else { - if (mode == 1) - status++; - else - status--; - if (status == 0) { - if(qm.getMeso() < 10000) { - qm.sendOk("Hey! I need #b10,000 mesos#k to do your pet's re-evolution!"); - qm.dispose(); - return; - } - - qm.sendYesNo("Alright then, let's do this again, shall we? As usual, it's going to be random, and I'm going to take away one of your Rock of Evolutions. \r\n\r #r#eReady?#n#k"); - } else if (status == 1) { - qm.sendNextPrev("Then here we go...! #rHYAHH!#k"); - } else if (status == 2) { - var petidx = -1; - var petItemid; - for (var i = 0; i < 3; i++) { - var pet = qm.getPlayer().getPet(pet); - if (pet != null) { - var id = pet.getItemId(); - if (id >= 5000029 && id <= 5000033) { - petItemid = 5000030; - petidx = i; - break; - } else if (id >= 5000048 && id <= 5000053) { // thanks Conrad for noticing Robo pets not being able to re-evolve - petItemid = 5000049; - petidx = i; - break; - } - } - } + if (mode == -1) { + qm.dispose(); + } else { + if (mode == 1) { + status++; + } else { + status--; + } + if (status == 0) { + if (qm.getMeso() < 10000) { + qm.sendOk("Hey! I need #b10,000 mesos#k to do your pet's re-evolution!"); + qm.dispose(); + return; + } - if (petidx == -1) { - qm.sendOk("Something wrong, try again."); - qm.dispose(); - return; - } - - var pool = (petItemid == 5000030) ? 10 : 11; - do { - var rand = 1 + Math.floor(Math.random() * pool); - var after = 0; - if (rand >= 1 && rand <= 3) { - after = petItemid; - } else if (rand >= 4 && rand <= 6) { - after = petItemid + 1; - } else if (rand >= 7 && rand <= 9) { - after = petItemid + 2; - } else if (rand == 10) { - after = petItemid + 3; - } else { - after = petItemid + 4; - } - } while (after == pet.getItemId()); - - /*if (name.equals(ItemInformationProvider.getInstance().getName(id))) { - name = ItemInformationProvider.getInstance().getName(after); - } */ - - qm.gainMeso(-10000); - qm.gainItem(5380000, -1); - qm.evolvePet(petidx, after); - - qm.sendOk("Woo! It worked again! #rYou may find your new pet under your 'CASH' inventory.\r #kIt used to be a #b#i" + id + "##t" + id + "##k, and now it's \r a#b #i" + after + "##t" + after + "##k! \r\n Come back with 10,000 mesos and another Rock of Evolution if you don't like it!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v"+after+"# #t"+after+"#"); - } else if (status == 3) { - qm.dispose(); + qm.sendYesNo("Alright then, let's do this again, shall we? As usual, it's going to be random, and I'm going to take away one of your Rock of Evolutions. \r\n\r #r#eReady?#n#k"); + } else if (status == 1) { + qm.sendNextPrev("Then here we go...! #rHYAHH!#k"); + } else if (status == 2) { + var petidx = -1; + var petItemid; + for (var i = 0; i < 3; i++) { + var pet = qm.getPlayer().getPet(pet); + if (pet != null) { + var id = pet.getItemId(); + if (id >= 5000029 && id <= 5000033) { + petItemid = 5000030; + petidx = i; + break; + } else if (id >= 5000048 && id <= 5000053) { // thanks Conrad for noticing Robo pets not being able to re-evolve + petItemid = 5000049; + petidx = i; + break; + } } - } + } + + if (petidx == -1) { + qm.sendOk("Something wrong, try again."); + qm.dispose(); + return; + } + + var pool = (petItemid == 5000030) ? 10 : 11; + do { + var rand = 1 + Math.floor(Math.random() * pool); + var after = 0; + if (rand >= 1 && rand <= 3) { + after = petItemid; + } else if (rand >= 4 && rand <= 6) { + after = petItemid + 1; + } else if (rand >= 7 && rand <= 9) { + after = petItemid + 2; + } else if (rand == 10) { + after = petItemid + 3; + } else { + after = petItemid + 4; + } + } while (after == pet.getItemId()); + + /*if (name.equals(ItemInformationProvider.getInstance().getName(id))) { + name = ItemInformationProvider.getInstance().getName(after); +} */ + + qm.gainMeso(-10000); + qm.gainItem(5380000, -1); + qm.evolvePet(petidx, after); + + qm.sendOk("Woo! It worked again! #rYou may find your new pet under your 'CASH' inventory.\r #kIt used to be a #b#i" + id + "##t" + id + "##k, and now it's \r a#b #i" + after + "##t" + after + "##k! \r\n Come back with 10,000 mesos and another Rock of Evolution if you don't like it!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v" + after + "# #t" + after + "#"); + } else if (status == 3) { + qm.dispose(); + } + } } \ No newline at end of file diff --git a/scripts/quest/8219.js b/scripts/quest/8219.js index ff770041d5..30011791c8 100644 --- a/scripts/quest/8219.js +++ b/scripts/quest/8219.js @@ -12,52 +12,49 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("The time is now, kid. We have all the preparations complete to further research for why all these oddities have been happening lately. I also must introduce you to my brother, Jack. "); - else if (status == 1){ - qm.sendOk("He is currently wandering around the Crimsonwood Mountain, past the sinister Phantom Forest, in the track to the Crimsonwood Keep. Your next destination is there, may your journey be a safe one."); - qm.forceStartQuest(); - } else if (status == 2) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("The time is now, kid. We have all the preparations complete to further research for why all these oddities have been happening lately. I also must introduce you to my brother, Jack. "); + } else if (status == 1) { + qm.sendOk("He is currently wandering around the Crimsonwood Mountain, past the sinister Phantom Forest, in the track to the Crimsonwood Keep. Your next destination is there, may your journey be a safe one."); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); } } function end(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendNext("Who are you? Oh, you came here by my brother John's stead? Great."); - - else if (status == 1){ - qm.sendOk("It seems you helped the folks at the city at some errands, don't you? I shall appraise you nicely. Take a look on this: this is a map of the Phantom Forest, which I made myself after enough exploration. Take possession of that, and you #bwill be granted passage#k by paths other times undiscoverable. Remember well to #rnever lose it#k, you won't be having that again!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3992040# #t3992040#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 175000 EXP"); - } - else if (status == 2){ - if(qm.canHold(3992040, 1)) { - qm.forceCompleteQuest(); - qm.gainItem(3992040, 1); - qm.gainExp(175000); - qm.dispose(); - } - else { - qm.sendOk("Hey, you don't have a slot in your SETUP inventory for what I have to give to you. Solve that minor issue of yours then talk to me."); - } - } else if (status == 3) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendNext("Who are you? Oh, you came here by my brother John's stead? Great."); + } else if (status == 1) { + qm.sendOk("It seems you helped the folks at the city at some errands, don't you? I shall appraise you nicely. Take a look on this: this is a map of the Phantom Forest, which I made myself after enough exploration. Take possession of that, and you #bwill be granted passage#k by paths other times undiscoverable. Remember well to #rnever lose it#k, you won't be having that again!\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n#i3992040# #t3992040#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 175000 EXP"); + } else if (status == 2) { + if (qm.canHold(3992040, 1)) { + qm.forceCompleteQuest(); + qm.gainItem(3992040, 1); + qm.gainExp(175000); + qm.dispose(); + } else { + qm.sendOk("Hey, you don't have a slot in your SETUP inventory for what I have to give to you. Solve that minor issue of yours then talk to me."); + } + } else if (status == 3) { + qm.dispose(); + } } diff --git a/scripts/quest/8221.js b/scripts/quest/8221.js index 21a1976bc4..2c10745914 100644 --- a/scripts/quest/8221.js +++ b/scripts/quest/8221.js @@ -11,22 +11,21 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0){ - qm.sendAcceptDecline("It's about time! We need to make you a way to travel safely to the summit of the Crimsonwood Valley, or else all we've been doing was for naught. You have to lay hands on the #b#t3992039##k. Are you ready to go?"); - } - else if (status == 1){ - qm.sendOk("Okay, I need you to have these items on hand first: #b10 #t4010006##k, #b4 #t4032005##k and #b1 #t4004000##k. Go!"); - qm.forceStartQuest(); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("It's about time! We need to make you a way to travel safely to the summit of the Crimsonwood Valley, or else all we've been doing was for naught. You have to lay hands on the #b#t3992039##k. Are you ready to go?"); + } else if (status == 1) { + qm.sendOk("Okay, I need you to have these items on hand first: #b10 #t4010006##k, #b4 #t4032005##k and #b1 #t4004000##k. Go!"); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); + } } diff --git a/scripts/quest/8223.js b/scripts/quest/8223.js index da61f86149..6cd92b017d 100644 --- a/scripts/quest/8223.js +++ b/scripts/quest/8223.js @@ -11,21 +11,21 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Oh, Jack sent you here? Good timing, I'm planning alongside Jack and others to storm the Keep and retake it from the Twisted Masters what is ours by right. You seem ready to fight alongside us, right?"); - else if (status == 1){ - qm.sendOk("Great! Your mission now is to rack down some numbers of their army and weaken their defenses by all effects. Defeat 75 of each: Windraider, Firebrand and Nightshadow, then return to me to report."); - qm.forceStartQuest(); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("Oh, Jack sent you here? Good timing, I'm planning alongside Jack and others to storm the Keep and retake it from the Twisted Masters what is ours by right. You seem ready to fight alongside us, right?"); + } else if (status == 1) { + qm.sendOk("Great! Your mission now is to rack down some numbers of their army and weaken their defenses by all effects. Defeat 75 of each: Windraider, Firebrand and Nightshadow, then return to me to report."); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); + } } diff --git a/scripts/quest/8224.js b/scripts/quest/8224.js index 95844d8e56..d2c523295b 100644 --- a/scripts/quest/8224.js +++ b/scripts/quest/8224.js @@ -12,20 +12,20 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Hey traveler, come here! I am Taggrin, leader of the Raven Ninja Clan. We are mercenaries currently under the payload of the New Leaf City county. Our job here is to hunt down those creatures that have been lurking around here these days. Are you interested to make a little errand for us? Of course, the pay off will be advantageous for both parties."); - else if (status == 1){ - qm.sendOk("Ok. I need you to hunt down #bthose fake trees#k in the forest, and collect 50 of their drops as proof that you made your part on this."); - qm.forceStartQuest(); - } else if (status == 2) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); qm.dispose(); + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Hey traveler, come here! I am Taggrin, leader of the Raven Ninja Clan. We are mercenaries currently under the payload of the New Leaf City county. Our job here is to hunt down those creatures that have been lurking around here these days. Are you interested to make a little errand for us? Of course, the pay off will be advantageous for both parties."); + } else if (status == 1) { + qm.sendOk("Ok. I need you to hunt down #bthose fake trees#k in the forest, and collect 50 of their drops as proof that you made your part on this."); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); } } diff --git a/scripts/quest/8225.js b/scripts/quest/8225.js index 90fadcfb70..818bcb507b 100644 --- a/scripts/quest/8225.js +++ b/scripts/quest/8225.js @@ -11,21 +11,21 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Hey, partner. Now that you make part of the Raven Claws team, I have a task for you. Are you up now?"); - else if (status == 1){ - qm.sendOk("Very well. To prove your valor among our ranks, you must first pass on a little challenge: you have to be able to move extraordinaly well around here, known of all secrets these woods holds. Trace a #bmap of the Phantom Forest#k, then come talk to me. I shall then evaluate if you're worth to be with us."); - qm.forceStartQuest(); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("Hey, partner. Now that you make part of the Raven Claws team, I have a task for you. Are you up now?"); + } else if (status == 1) { + qm.sendOk("Very well. To prove your valor among our ranks, you must first pass on a little challenge: you have to be able to move extraordinaly well around here, known of all secrets these woods holds. Trace a #bmap of the Phantom Forest#k, then come talk to me. I shall then evaluate if you're worth to be with us."); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); + } } diff --git a/scripts/quest/8226.js b/scripts/quest/8226.js index 3c4fb90ae1..bb079efdae 100644 --- a/scripts/quest/8226.js +++ b/scripts/quest/8226.js @@ -11,21 +11,21 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Now that you are part of our team, listen to what I have to say. We, Raven Clan of Ninjas, are hired to take care of many issues, and to do so each one works on different sectors of the continent, solving problems for our employers. I'm about to talk about your mission, are you ready?"); - else if (status == 1){ - qm.sendOk("Your next mission is: defeat the Elderwraiths that roam this forest. These are a tough bunch though, so stay alert. I need you to bring me 100 #t4032010# as proof of your duty."); - qm.forceStartQuest(); - } else if (status == 2) { - qm.dispose(); + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } + } + if (status == 0) { + qm.sendAcceptDecline("Now that you are part of our team, listen to what I have to say. We, Raven Clan of Ninjas, are hired to take care of many issues, and to do so each one works on different sectors of the continent, solving problems for our employers. I'm about to talk about your mission, are you ready?"); + } else if (status == 1) { + qm.sendOk("Your next mission is: defeat the Elderwraiths that roam this forest. These are a tough bunch though, so stay alert. I need you to bring me 100 #t4032010# as proof of your duty."); + qm.forceStartQuest(); + } else if (status == 2) { + qm.dispose(); + } } diff --git a/scripts/quest/8227.js b/scripts/quest/8227.js index ab61a188d1..86de6c6cfb 100644 --- a/scripts/quest/8227.js +++ b/scripts/quest/8227.js @@ -12,18 +12,18 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { + if (type == 1 && mode == 0) { + status -= 2; + } else { qm.sendOk("Come on, the city really needs you cooperating on this one!"); qm.dispose(); return; } } - if (status == 0) - qm.sendAcceptDecline("Hey buddy! Nice timing. There is this communique I've been able to swipe from the officials at the Keep, however it's information is encrypted. I have no use for this as it is like this. So, will you transport this to John and see if he can decode this?"); - else if (status == 1){ - if(qm.canHold(4032032, 1)) { + if (status == 0) { + qm.sendAcceptDecline("Hey buddy! Nice timing. There is this communique I've been able to swipe from the officials at the Keep, however it's information is encrypted. I have no use for this as it is like this. So, will you transport this to John and see if he can decode this?"); + } else if (status == 1) { + if (qm.canHold(4032032, 1)) { qm.gainItem(4032032, 1); qm.sendOk("Very well, I'm counting on you on this one."); qm.forceStartQuest(); @@ -38,22 +38,22 @@ function start(mode, type, selection) { function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { + if (type == 1 && mode == 0) { + status -= 2; + } else { qm.dispose(); return; } } - if (status == 0){ - if(qm.haveItem(4032032, 1)) { + if (status == 0) { + if (qm.haveItem(4032032, 1)) { qm.gainItem(4032032, -1); qm.sendOk("Oh you brought a letter from the Keep?! Neat! Let me check if I can decode that right now."); qm.forceCompleteQuest(); } else { qm.sendOk("You don't brought the coded letter Jack said? Come on, kid, we need that to decipher our enemies' next step!"); } - } else if (status == 1){ + } else if (status == 1) { qm.dispose(); } } diff --git a/scripts/quest/8228.js b/scripts/quest/8228.js index ef54ea70ae..c0445ed0b7 100644 --- a/scripts/quest/8228.js +++ b/scripts/quest/8228.js @@ -11,42 +11,42 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { - qm.sendOk("Come on, the city really needs you cooperating on this one!"); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("Hm, that's no good. I can't seem to make these Hyper Glyphs work, dang it. ... Ah, yea, the outsider! He may know the language this paper is written on. Let Elpam try to read this, maybe he knows something."); - else if (status == 1){ - if(qm.canHold(4032032, 1)) { - qm.gainItem(4032032, 1); - qm.sendOk("Very well, I'm counting on you on this one."); - qm.forceStartQuest(); - } else { - qm.sendOk("Hey. There's no slot on your ETC."); - } - } else if (status == 2){ + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Come on, the city really needs you cooperating on this one!"); qm.dispose(); - } + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("Hm, that's no good. I can't seem to make these Hyper Glyphs work, dang it. ... Ah, yea, the outsider! He may know the language this paper is written on. Let Elpam try to read this, maybe he knows something."); + } else if (status == 1) { + if (qm.canHold(4032032, 1)) { + qm.gainItem(4032032, 1); + qm.sendOk("Very well, I'm counting on you on this one."); + qm.forceStartQuest(); + } else { + qm.sendOk("Hey. There's no slot on your ETC."); + } + } else if (status == 2) { + qm.dispose(); + } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { + if (type == 1 && mode == 0) { + status -= 2; + } else { qm.dispose(); return; } } - if (status == 0){ - if(qm.haveItem(4032032, 1)) { + if (status == 0) { + if (qm.haveItem(4032032, 1)) { qm.sendOk("Hello, native of this world. So you have a message that needs translation? My people back in Versal is known for mastering many foreign languages, this one may very well be some we know. Please stand by..."); qm.gainItem(4032032, -1); qm.forceCompleteQuest(); diff --git a/scripts/quest/8229.js b/scripts/quest/8229.js index afd261e086..cc2153f0cc 100644 --- a/scripts/quest/8229.js +++ b/scripts/quest/8229.js @@ -11,53 +11,53 @@ var status = -1; function start(mode, type, selection) { status++; - if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { - qm.sendOk("Come on, the city really needs you cooperating on this one!"); - qm.dispose(); - return; - } - } - if (status == 0) - qm.sendAcceptDecline("I knew we could rely on the outsider on this matter! Now that we have the letter translated by him, head it to Jack, he knows what to do."); - else if (status == 1){ - if(qm.haveItem(4032018, 1)) { - qm.forceStartQuest(); - } else if(qm.canHold(4032018, 1)) { - qm.gainItem(4032018, 1); - qm.forceStartQuest(); - } else { - qm.sendOk("Oy, you need a slot in your ETC to get the communique."); - } - + if (mode != 1) { + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Come on, the city really needs you cooperating on this one!"); qm.dispose(); - } + return; + } + } + if (status == 0) { + qm.sendAcceptDecline("I knew we could rely on the outsider on this matter! Now that we have the letter translated by him, head it to Jack, he knows what to do."); + } else if (status == 1) { + if (qm.haveItem(4032018, 1)) { + qm.forceStartQuest(); + } else if (qm.canHold(4032018, 1)) { + qm.gainItem(4032018, 1); + qm.forceStartQuest(); + } else { + qm.sendOk("Oy, you need a slot in your ETC to get the communique."); + } + + qm.dispose(); + } } function end(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else { + if (type == 1 && mode == 0) { + status -= 2; + } else { qm.dispose(); return; } } - if (status == 0){ - if(qm.haveItem(4032018, 1)) { + if (status == 0) { + if (qm.haveItem(4032018, 1)) { qm.sendOk("Oh, you brought it. Nicely done, the countermeasure process will be much easier now.\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 50000 EXP"); } else { qm.sendOk("What's wrong? Why you didn't retrieved the translated message yet? Please bring me the letter's content for me to strategize a countermeasure ASAP."); qm.dispose(); } - } else if (status == 1){ + } else if (status == 1) { qm.gainItem(4032018, -1); qm.gainExp(50000); qm.forceCompleteQuest(); - + qm.dispose(); } } diff --git a/scripts/quest/8230.js b/scripts/quest/8230.js index f1983e82d4..aff4a990a8 100644 --- a/scripts/quest/8230.js +++ b/scripts/quest/8230.js @@ -12,37 +12,37 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } - if (status == 0) - qm.sendAcceptDecline("Hey, traveler! I need your help. A great threat is about to endanger the folks down there at the New Leaf City, the way I can see it right now. These creatures roaming around here suddenly... That can be no good. Care if you listen to what I have to say?"); - else if (status == 1) { - qm.sendOk("That's the thing: the Twisted Masters, great figures that currently holds seize of the Crimsonwood Keep, have planned a large-scale attack to the New Leaf City, that may be happening on the next few days. I can't just stay here observing while they prepare for this attack. However, I can't just leave this position, I must keep an eye on their moves at all costs. There's where you enter: go find Lukan, knight of the past Crimsonwood Keep, that is currently wandering around the woods, and receive from him further orders, he knows what to do."); - qm.forceStartQuest(); + if (status == 0) { + qm.sendAcceptDecline("Hey, traveler! I need your help. A great threat is about to endanger the folks down there at the New Leaf City, the way I can see it right now. These creatures roaming around here suddenly... That can be no good. Care if you listen to what I have to say?"); + } else if (status == 1) { + qm.sendOk("That's the thing: the Twisted Masters, great figures that currently holds seize of the Crimsonwood Keep, have planned a large-scale attack to the New Leaf City, that may be happening on the next few days. I can't just stay here observing while they prepare for this attack. However, I can't just leave this position, I must keep an eye on their moves at all costs. There's where you enter: go find Lukan, knight of the past Crimsonwood Keep, that is currently wandering around the woods, and receive from him further orders, he knows what to do."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } function end(mode, type, selection) { - status++; + status++; - if(status == 0) { - if(qm.haveItem(3992041)) { - qm.sendOk("Ah, you did accomplish the task I handed to you. Nicely done, now those guys are busy recovering from this offensive. Now, remember: #bthat key must be used to access#k the Inner Sanctum inside the Keep. Hold that with you at all times if you ever want to enter there."); - qm.forceCompleteQuest(); - } else if(qm.getQuestStatus(8223) == 2) { - qm.sendOk("You completed the mission but lost the key? That's bad, you NEED this key to enter the inner rooms of the Keep. Check out there with Lukan what you should be doing next, we need you inside the Keep."); - } else { - qm.sendOk("The folks back there on the city are counting on you on this one. Please hurry up."); - } - } else if (status == 1) { - qm.dispose(); + if (status == 0) { + if (qm.haveItem(3992041)) { + qm.sendOk("Ah, you did accomplish the task I handed to you. Nicely done, now those guys are busy recovering from this offensive. Now, remember: #bthat key must be used to access#k the Inner Sanctum inside the Keep. Hold that with you at all times if you ever want to enter there."); + qm.forceCompleteQuest(); + } else if (qm.getQuestStatus(8223) == 2) { + qm.sendOk("You completed the mission but lost the key? That's bad, you NEED this key to enter the inner rooms of the Keep. Check out there with Lukan what you should be doing next, we need you inside the Keep."); + } else { + qm.sendOk("The folks back there on the city are counting on you on this one. Please hurry up."); } + } else if (status == 1) { + qm.dispose(); + } } \ No newline at end of file diff --git a/scripts/quest/8231.js b/scripts/quest/8231.js index 8d339bb87e..dff9e221d9 100644 --- a/scripts/quest/8231.js +++ b/scripts/quest/8231.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "are Leprechauns"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r30 #t4032031##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "are Leprechauns"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r30 #t4032031##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8232.js b/scripts/quest/8232.js index 8d339bb87e..dff9e221d9 100644 --- a/scripts/quest/8232.js +++ b/scripts/quest/8232.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "are Leprechauns"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r30 #t4032031##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "are Leprechauns"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r30 #t4032031##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8233.js b/scripts/quest/8233.js index 40ff75b5ea..c650d6b106 100644 --- a/scripts/quest/8233.js +++ b/scripts/quest/8233.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "are Elderwraiths"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r30 #t4032011##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "are Elderwraiths"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r30 #t4032011##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8234.js b/scripts/quest/8234.js index 40ff75b5ea..c650d6b106 100644 --- a/scripts/quest/8234.js +++ b/scripts/quest/8234.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "are Elderwraiths"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r30 #t4032011##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "are Elderwraiths"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r30 #t4032011##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8235.js b/scripts/quest/8235.js index 1ea6062dd9..c65827eeaf 100644 --- a/scripts/quest/8235.js +++ b/scripts/quest/8235.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "is the Headless Horseman"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r1 #t4031903##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "is the Headless Horseman"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r1 #t4031903##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8236.js b/scripts/quest/8236.js index 1ea6062dd9..c65827eeaf 100644 --- a/scripts/quest/8236.js +++ b/scripts/quest/8236.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "is the Headless Horseman"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r1 #t4031903##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "is the Headless Horseman"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r1 #t4031903##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8237.js b/scripts/quest/8237.js index d47ec715ec..c34ca12678 100644 --- a/scripts/quest/8237.js +++ b/scripts/quest/8237.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "is the Bigfoot"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r1 #t4032013##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "is the Bigfoot"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r1 #t4032013##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8238.js b/scripts/quest/8238.js index d47ec715ec..c34ca12678 100644 --- a/scripts/quest/8238.js +++ b/scripts/quest/8238.js @@ -12,23 +12,22 @@ var status = -1; function start(mode, type, selection) { status++; if (mode != 1) { - if(type == 1 && mode == 0) - status -= 2; - else{ - qm.sendOk("Okay, then. See you around."); - qm.dispose(); - return; + if (type == 1 && mode == 0) { + status -= 2; + } else { + qm.sendOk("Okay, then. See you around."); + qm.dispose(); + return; } } if (status == 0) { - var target = "is the Bigfoot"; - qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); - } - else if (status == 1) { - var reqs = "#r1 #t4032013##k"; - qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); - qm.forceStartQuest(); + var target = "is the Bigfoot"; + qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?"); + } else if (status == 1) { + var reqs = "#r1 #t4032013##k"; + qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you."); + qm.forceStartQuest(); } else if (status == 2) { - qm.dispose(); + qm.dispose(); } } \ No newline at end of file diff --git a/scripts/quest/8255.js b/scripts/quest/8255.js index 3c9d27bdfb..90e36e47d8 100644 --- a/scripts/quest/8255.js +++ b/scripts/quest/8255.js @@ -19,7 +19,8 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -/* + +/* NPC Name: Adonis Map(s): El Nath Description: Quest - Lost Spirits @@ -27,10 +28,10 @@ */ function start(mode, type, selection) { - qm.forceStartQuest(); - qm.forceCompleteQuest(); + qm.forceStartQuest(); + qm.forceCompleteQuest(); } function end(mode, type, selection) { - qm.forceCompleteQuest(); + qm.forceCompleteQuest(); } \ No newline at end of file diff --git a/scripts/quest/unidentifiedQuest.js b/scripts/quest/unidentifiedQuest.js index cbeb9b83c0..7665792fbd 100644 --- a/scripts/quest/unidentifiedQuest.js +++ b/scripts/quest/unidentifiedQuest.js @@ -1,4 +1,4 @@ function start() { - qm.getPlayer().dropMessage("Quest: " + qm.getQuest() + " is not found, please report this."); - qm.dispose(); + qm.getPlayer().dropMessage("Quest: " + qm.getQuest() + " is not found, please report this."); + qm.dispose(); } \ No newline at end of file