Reformat and clean up quest scripts

This commit is contained in:
P0nk
2021-09-09 23:36:54 +02:00
parent a78ca88a02
commit 3f43fe82d0
249 changed files with 4361 additions and 4247 deletions

View File

@@ -32,23 +32,24 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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."); 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~!"); qm.sendAcceptDecline("So..... Let me just do this for fun! Abaracadabra~!");
else if (status == 3) { } else if (status == 3) {
if (qm.getPlayer().getHp() >= 50) { if (qm.getPlayer().getHp() >= 50) {
qm.getPlayer().updateHp(25); qm.getPlayer().updateHp(25);
} }
@@ -72,36 +73,39 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) if (status == 0) {
if (qm.c.getPlayer().getHp() < 50) { 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.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(); 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."); 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!"); 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"); 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) { } else if (status == 3) {
if(qm.isQuestCompleted(1021)) if (qm.isQuestCompleted(1021)) {
qm.dropMessage(1,"Unknown Error"); qm.dropMessage(1, "Unknown Error");
else if(qm.canHold(2010000) && qm.canHold(2010009)){ } else if (qm.canHold(2010000) && qm.canHold(2010009)) {
qm.gainExp(10); qm.gainExp(10);
qm.gainItem(2010000, 3); qm.gainItem(2010000, 3);
qm.gainItem(2010009, 3); qm.gainItem(2010009, 3);
qm.forceCompleteQuest(); qm.forceCompleteQuest();
}else } else {
qm.dropMessage(1,"Your inventory is full"); qm.dropMessage(1, "Your inventory is full");
}
qm.dispose(); qm.dispose();
} }
} }

View File

@@ -6,10 +6,11 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if (mode > 0) if (mode > 0) {
status++; status++;
else } else {
qm.dispose(); qm.dispose();
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -33,17 +33,18 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if (mode > 0) if (mode > 0) {
status++; status++;
else } else {
status--; 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..."); 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 ..."); 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?"); 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.gainItem(1142065, 1); // Noblesse Medal * 1
qm.gainExp(20); //gain 20 exp!! qm.gainExp(20); //gain 20 exp!!
qm.forceStartQuest(); qm.forceStartQuest();

View File

@@ -33,29 +33,30 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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..."); 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..."); 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..."); 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..."); 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."); 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."); 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."); 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"); 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?"); qm.sendAcceptDecline("This is the basic overview of this situation. Understood?");
else if (status == 9) { } else if (status == 9) {
if (qm.isQuestCompleted(20001)) { if (qm.isQuestCompleted(20001)) {
qm.gainExp(40); qm.gainExp(40);
qm.gainItem(1052177, 1); // fancy noblesse robe qm.gainItem(1052177, 1); // fancy noblesse robe
@@ -63,11 +64,12 @@ function start(mode, type, selection) {
qm.forceStartQuest(); qm.forceStartQuest();
qm.forceCompleteQuest(); 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?"); 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..."); 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."); 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."); 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.");
} }
}
} }

View File

@@ -33,17 +33,18 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if (mode > 0) if (mode > 0) {
status++; status++;
else } else {
status--; 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."); 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."); 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?"); 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.forceStartQuest();
qm.forceCompleteQuest(); qm.forceCompleteQuest();

View File

@@ -33,12 +33,12 @@ var choice1;
function start(mode, type, selection) { function start(mode, type, selection) {
if (mode < 1) { if (mode < 1) {
qm.dispose(); qm.dispose();
} } else if (mode > 0) {
else if (mode > 0)
status++; 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"); 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) { 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.sendNext("If you call yourself a Knight, then do not hesitate. Show everyone how much courage you have in you.");
qm.dispose(); qm.dispose();

View File

@@ -4,19 +4,17 @@ var status = -1;
var vecItem; var vecItem;
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == 0) { if (mode == 0) {
qm.dispose(); qm.dispose();
return; return;
} }
status++; status++;
if(status == 0) { 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 ..."); 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) {
else if(status == 1) {
const InventoryType = Java.type('client.inventory.InventoryType'); const InventoryType = Java.type('client.inventory.InventoryType');
if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) { if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) {
qm.getPlayer().dropMessage(1, "USE inventory full."); qm.getPlayer().dropMessage(1, "USE inventory full.");
qm.dispose(); qm.dispose();
return; return;
@@ -26,18 +24,23 @@ function end(mode, type, selection) {
stance = qm.getPlayer().getJobStyle(); stance = qm.getPlayer().getJobStyle();
const Job = Java.type('client.Job'); const Job = Java.type('client.Job');
if(stance == Job.WARRIOR || stance == Job.BEGINNER) vecItem = new Array(2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302); if (stance == Job.WARRIOR || stance == Job.BEGINNER) {
else if(stance == Job.MAGICIAN) vecItem = new Array(2043702, 2043802); vecItem = [2043002, 2043102, 2043202, 2044002, 2044102, 2044202, 2044402, 2044302];
else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) vecItem = new Array(2044502, 2044602); } else if (stance == Job.MAGICIAN) {
else if(stance == Job.THIEF) vecItem = new Array(2043302, 2044702); vecItem = [2043702, 2043802];
else vecItem = new Array(2044802, 2044902); } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) {
vecItem = [2044502, 2044602];
for (var i = 0; i < vecItem.length; i++) } else if (stance == Job.THIEF) {
talkStr += "\r\n#L" + i + "# #i" + vecItem[i] + "# #t" + vecItem[i] + "#"; vecItem = [2043302, 2044702];
qm.sendSimple(talkStr); } else {
vecItem = [2044802, 2044902];
} }
else if(status == 2) { 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 = vecItem[selection];
qm.gainItem(item, 1); qm.gainItem(item, 1);
qm.gainItem(4000022, -100); qm.gainItem(4000022, -100);

View File

@@ -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.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(); qm.dispose();
} else { } 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.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(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {
@@ -39,8 +40,8 @@ function end(mode, type, selection) {
if (status == 0) { 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"); 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) { } else if (status == 1) {
if(qm.canHold(2000022) && qm.canHold(2000023)){ if (qm.canHold(2000022) && qm.canHold(2000023)) {
if(!qm.isQuestCompleted(21010)) { if (!qm.isQuestCompleted(21010)) {
qm.gainItem(2000020, 5); qm.gainItem(2000020, 5);
qm.gainItem(2000021, 5); qm.gainItem(2000021, 5);
qm.gainExp(15); qm.gainExp(15);

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -35,7 +35,7 @@ function start(mode, type, selection) {
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -35,7 +35,7 @@ function start(mode, type, selection) {
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -39,7 +39,7 @@ function start(mode, type, selection) {
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -9,16 +9,17 @@ 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.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(); qm.dispose();
} else { } 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.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(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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?");

View File

@@ -30,15 +30,15 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if (mode > 0) if (mode > 0) {
status++; status++;
else { } else {
qm.dispose(); qm.dispose();
return; 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."); 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.forceStartQuest();
qm.forceCompleteQuest(); qm.forceCompleteQuest();

View File

@@ -23,7 +23,7 @@ function end(mode, type, selection) {
if (canTryFirstJob) { if (canTryFirstJob) {
canTryFirstJob = false; canTryFirstJob = false;
if (qm.getPlayer().getJob().getId() != 1100) { 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.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(); qm.dispose();
return; return;

View File

@@ -23,7 +23,7 @@ function end(mode, type, selection) {
if (canTryFirstJob) { if (canTryFirstJob) {
canTryFirstJob = false; canTryFirstJob = false;
if (qm.getPlayer().getJob().getId() != 1200) { 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.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(); qm.dispose();
return; return;

View File

@@ -23,7 +23,7 @@ function end(mode, type, selection) {
if (canTryFirstJob) { if (canTryFirstJob) {
canTryFirstJob = false; canTryFirstJob = false;
if (qm.getPlayer().getJob().getId() != 1300) { 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.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(); qm.dispose();
return; return;

View File

@@ -23,7 +23,7 @@ function end(mode, type, selection) {
if (canTryFirstJob) { if (canTryFirstJob) {
canTryFirstJob = false; canTryFirstJob = false;
if (qm.getPlayer().getJob().getId() != 1400) { 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.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(); qm.dispose();
return; return;

View File

@@ -23,7 +23,7 @@ function end(mode, type, selection) {
if (canTryFirstJob) { if (canTryFirstJob) {
canTryFirstJob = false; canTryFirstJob = false;
if (qm.getPlayer().getJob().getId() != 1500) { 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.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(); qm.dispose();
return; return;

View File

@@ -35,10 +35,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -35,10 +35,11 @@ function end(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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?"); 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) { } else if (status == 1) {

View File

@@ -36,10 +36,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {

View File

@@ -36,10 +36,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {

View File

@@ -36,10 +36,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {

View File

@@ -36,10 +36,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {

View File

@@ -36,10 +36,11 @@ function start(mode, type, selection) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } else if (status == 1) {

View File

@@ -3,19 +3,17 @@ var status = -1;
var item; var item;
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == 0) { if (mode == 0) {
qm.dispose(); qm.dispose();
return; return;
} }
status++; status++;
if(status == 0) { 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."); 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) {
else if(status == 1) {
const InventoryType = Java.type('client.inventory.InventoryType'); const InventoryType = Java.type('client.inventory.InventoryType');
if(qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) { if (qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) {
qm.sendOk("Please free a EQUIP inventory slot to receive the reward."); qm.sendOk("Please free a EQUIP inventory slot to receive the reward.");
qm.dispose(); qm.dispose();
return; return;
@@ -24,12 +22,19 @@ function end(mode, type, selection) {
var stance = qm.getPlayer().getJobStyle(); var stance = qm.getPlayer().getJobStyle();
const Job = Java.type('client.Job'); const Job = Java.type('client.Job');
if(stance == Job.WARRIOR) item = 1072003; if (stance == Job.WARRIOR) {
else if(stance == Job.MAGICIAN) item = 1072077; item = 1072003;
else if(stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) item = 1072081; } else if (stance == Job.MAGICIAN) {
else if(stance == Job.THIEF) item = 1072035; item = 1072077;
else if(stance == Job.BRAWLER || stance == Job.GUNSLINGER) item = 1072294; } else if (stance == Job.BOWMAN || stance == Job.CROSSBOWMAN) {
else item = 1072018; 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(item, 1);
qm.gainItem(4000007, -150); qm.gainItem(4000007, -150);
@@ -37,9 +42,7 @@ function end(mode, type, selection) {
qm.completeQuest(); 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~"); 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) {
else if (status == 2) {
qm.dispose(); qm.dispose();
} }
} }

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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); 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);

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) { // missing script for questid found than
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -27,10 +27,10 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { if (type == 1 && mode == 0) {
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
return; return;
} } else if (status >= 2 && mode == 0) {
else if (status >= 2 && mode == 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if(mode == 1) status++; if (mode == 1) {
else status--; status++;
} else {
status--;
}
if (status == 0) { 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.");
@@ -45,14 +46,16 @@ function start(mode, type, selection) {
} else if (status == 2) { } 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) { } 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.sendOk("Make up a room on your ETC tab so I can give you the Mimiana egg.");
qm.dispose(); qm.dispose();
return; return;
} }
qm.forceStartQuest(); qm.forceStartQuest();
if(!qm.haveItem(4220137)) qm.gainItem(4220137); 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."); 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) { } else if (status == 4) {
qm.dispose(); qm.dispose();
@@ -69,7 +72,7 @@ function end(mode, type, selection) {
if (status == 0) { 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. } 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.sendOk("I see, you lost your egg... You need to be more careful when raising a baby Mimiana!");
return; return;
} }

View File

@@ -28,15 +28,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
return; return;
} } else if (status >= 2 && mode == 0) {
else if (status >= 2 && mode == 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if(mode == 1) status++; if (mode == 1) {
else status--; status++;
} else {
status--;
}
if (status == 0) { 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.");
@@ -45,7 +46,7 @@ function start(mode, type, selection) {
} else if (status == 2) { } 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) { } 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.sendOk("Make up a room on your ETC tab so I can give you the Mimiana egg.");
qm.dispose(); qm.dispose();
return; return;
@@ -53,7 +54,9 @@ function start(mode, type, selection) {
qm.forceStartQuest(); qm.forceStartQuest();
if(!qm.haveItem(4220137)) qm.gainItem(4220137); 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."); 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) { } else if (status == 4) {
qm.dispose(); qm.dispose();
@@ -70,12 +73,12 @@ function end(mode, type, selection) {
if (status == 0) { 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. } 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.sendOk("I see, you lost your egg... You need to be more careful when raising a baby Mimiana!");
qm.dispose(); qm.dispose();
return; return;
} }
if(!qm.canHold(1902005)) { if (!qm.canHold(1902005)) {
qm.sendOk("Please, make a space on your EQUIP tab for your Mimiana!"); qm.sendOk("Please, make a space on your EQUIP tab for your Mimiana!");
qm.dispose(); qm.dispose();
return; return;

View File

@@ -24,20 +24,21 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
var mount = qm.getPlayer().getMount(); var mount = qm.getPlayer().getMount();
if(mount != null && mount.getLevel() >= 3) { if (mount != null && mount.getLevel() >= 3) {
qm.forceCompleteQuest(); 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."); 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 { } else {

View File

@@ -6,7 +6,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -7,28 +7,24 @@
var status = -1; var status = -1;
function start(mode, type, selection){ function start(mode, type, selection) {
if(mode == -1){ if (mode == -1) {
qm.dispose(); qm.dispose();
return; return;
} } else if (mode == 0 && status == 0) {
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.sendOk("What? Are you declining the mission? Fine, do it like that. I'll just report it straight to #p1101002#.");
qm.dispose(); qm.dispose();
return; return;
} } else if (mode == 0) {
else if(mode == 0){
status--; status--;
} } else {
else{
status++; status++;
} }
if(status == 0){ 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."); 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) {
else if(status == 1){
qm.forceStartQuest(); qm.forceStartQuest();
qm.dispose(); qm.dispose();
} }

View File

@@ -5,23 +5,22 @@
var status = -1; var status = -1;
function start(mode, type, selection){ function start(mode, type, selection) {
if(mode == -1 || (mode == 0 && status == 0)){ if (mode == -1 || (mode == 0 && status == 0)) {
qm.dispose(); qm.dispose();
return; return;
} } else if (mode == 0) {
else if(mode == 0)
status--; status--;
else } else {
status++; 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){
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.forceStartQuest();
qm.dispose(); qm.dispose();
} }
} }
function end(mode, type, selection){} function end(mode, type, selection) {}

View File

@@ -31,17 +31,17 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) if (type == 1 && mode == 0) {
status -= 2; status -= 2;
else{ } 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.sendNext("No, Aran... We can't leave a kid behind. I know it's a lot to ask, but please reconsider. Please!");
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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!"); 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) { } else if (status == 1) {
qm.forceStartQuest(); 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!"); 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) { } else if (status == 2) {
@@ -52,7 +52,7 @@ function start(mode, type, selection) {
qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1"); qm.showInfo("Effect/OnUserEff.img/guideEffect/aranTutorial/tutorialArrow1");
qm.dispose(); qm.dispose();
} }
} }
function end(mode, type, selection) { function end(mode, type, selection) {

View File

@@ -28,11 +28,11 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 15 && mode == 0) { if (type == 15 && mode == 0) {
qm.sendNext("*Sob* Aran has declined my request!"); qm.sendNext("*Sob* Aran has declined my request!");
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -58,21 +58,21 @@ function end(mode, type, selection) {
return; return;
} }
if (status == 0) if (status == 0) {
qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!"); qm.sendYesNo("You made it back safely! What about the child?! Did you bring the child with you?!");
else if (status == 1) { } else if (status == 1) {
qm.sendNext("Oh, what a relief. I'm so glad...", 9); qm.sendNext("Oh, what a relief. I'm so glad...", 9);
} else if (status == 2) } else if (status == 2) {
qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3); qm.sendNextPrev("Hurry and board the ship! We don't have much time!", 3);
else if (status == 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); 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) } else if (status == 4) {
qm.sendNextPrev("Leave, now!", 3); qm.sendNextPrev("Leave, now!", 3);
else if (status == 5) } 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); 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) } else if (status == 6) {
qm.sendNextPrev("No, I can't!", 3); qm.sendNextPrev("No, I can't!", 3);
else if (status == 7) { } 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); 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) { } else if (status == 8) {
qm.gainItem(4001271, -1); qm.gainItem(4001271, -1);

View File

@@ -28,7 +28,7 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 15 && mode == 0) { 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.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(); qm.dispose();
return; return;
@@ -64,9 +64,9 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) if (type == 1 && mode == 0) {
qm.dispose(); qm.dispose();
else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -81,7 +81,7 @@ function end(mode, type, selection) {
} else if (status == 1) { } 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"); 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) { } else if (status == 2) {
if(qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) { if (qm.isQuestStarted(21010) && !qm.isQuestCompleted(21010)) {
qm.gainExp(16); qm.gainExp(16);
qm.gainItem(2000022, 3); qm.gainItem(2000022, 3);
qm.gainItem(2000023, 3); qm.gainItem(2000023, 3);

View File

@@ -27,19 +27,19 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { 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.sendOk("Ah, okay. I understand. Heroes are very busy. *Sniff...* If you ever get any free time, though...");
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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?! ") 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) { } else if (status == 1) {
qm.sendNextPrev(" #i4001171#"); qm.sendNextPrev(" #i4001171#");
} else if (status == 2) { } 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#.");
@@ -56,17 +56,17 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { 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.sendNext("*sniff sniff* Isn't this sword good enough for you, just for now? I'd be so honored...");
qm.dispose(); qm.dispose();
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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?!"); 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) { } else if (status == 1) {
qm.sendNextPrev("#i4001171#"); qm.sendNextPrev("#i4001171#");
} else if (status == 2) { } 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."); 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.");
@@ -75,15 +75,16 @@ function end(mode, type, selection) {
} else if (status == 4) { } 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"); 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) { } else if (status == 5) {
if(qm.isQuestCompleted(21011)) if (qm.isQuestCompleted(21011)) {
qm.dropMessage(1,"Unknown Error"); qm.dropMessage(1, "Unknown Error");
else if(qm.canHold(1302000)){ } else if (qm.canHold(1302000)) {
qm.gainItem(1302000, 1); qm.gainItem(1302000, 1);
qm.gainExp(35); qm.gainExp(35);
qm.forceCompleteQuest(); 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); 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 } else {
qm.dropMessage(1,"Your inventory is full"); qm.dropMessage(1, "Your inventory is full");
}
} else if (status == 6) { } else if (status == 6) {
qm.guideHint(16); qm.guideHint(16);
qm.dispose(); qm.dispose();

View File

@@ -27,18 +27,18 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 2 && mode == 0) { if (type == 2 && mode == 0) {
qm.sendOk("Hm... You don't think that would help? Think about it. It could help, you know..."); qm.sendOk("Hm... You don't think that would help? Think about it. It could help, you know...");
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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!") 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) { } 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?"); 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) { } 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?");
@@ -46,7 +46,7 @@ function start(mode, type, selection) {
qm.forceStartQuest(); 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."); 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) { } 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.") ; 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) { } else if (status == 5) {
qm.guideHint(17); qm.guideHint(17);
qm.dispose(); qm.dispose();
@@ -56,7 +56,7 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { if (type == 1 && mode == 0) {
qm.sendNext("What? You don't want the potion?"); qm.sendNext("What? You don't want the potion?");
qm.dispose(); qm.dispose();
return; return;
@@ -65,19 +65,19 @@ function end(mode, type, selection) {
return; return;
} }
} }
if (status == 0) 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"); 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) { } else if (status == 1) {
if(qm.isQuestCompleted(21012)) if (qm.isQuestCompleted(21012)) {
qm.dropMessage(1,"Unknown Error"); qm.dropMessage(1, "Unknown Error");
else if(qm.canHold(2000022) && qm.canHold(2000023)){ } else if (qm.canHold(2000022) && qm.canHold(2000023)) {
qm.forceCompleteQuest(); qm.forceCompleteQuest();
qm.gainExp(57); qm.gainExp(57);
qm.gainItem(2000022, 10); qm.gainItem(2000022, 10);
qm.gainItem(2000023, 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); qm.sendOk("#b(Even if you're really the hero everyone says you are... What good are you without any skills?)", 3);
} else { } else {
qm.dropMessage(1,"Your inventory is full"); qm.dropMessage(1, "Your inventory is full");
qm.dispose(); qm.dispose();
} }
} else if (status == 2) { } else if (status == 2) {

View File

@@ -27,19 +27,19 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { 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.sendNext("I'm sure it will come in handy during your journey. Please, don't decline my offer.");
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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"); 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) { } 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?"); 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) { } else if (status == 2) {
qm.forceStartQuest(); qm.forceStartQuest();
@@ -53,20 +53,20 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1) { if (mode != 1) {
if(type == 1 && mode == 0) { if (type == 1 && mode == 0) {
qm.sendNext("What? You don't want the potion?"); qm.sendNext("What? You don't want the potion?");
qm.dispose(); qm.dispose();
return; return;
}else{ } else {
qm.dispose(); qm.dispose();
return; return;
} }
} }
if (status == 0) 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"); 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) { } else if (status == 1) {
if(qm.isQuestCompleted(21013)) { if (qm.isQuestCompleted(21013)) {
qm.dropMessage(1,"Unknown Error"); qm.dropMessage(1, "Unknown Error");
} }
qm.forceCompleteQuest(); qm.forceCompleteQuest();
qm.gainExp(95); qm.gainExp(95);

View File

@@ -24,11 +24,12 @@ status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
if (mode == 0) 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(); qm.dispose();
return; return;
} }
@@ -36,7 +37,7 @@ 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"); 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) { } else if (status == 1) {
if (qm.getPlayer().getJob().getId() == 2000) { if (qm.getPlayer().getJob().getId() == 2000) {
if(!qm.canHold(1142129)) { 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.sendOk("Wow, your #bequip#k inventory is full. You need to make at least 1 empty slot to complete this quest.");
qm.dispose(); qm.dispose();
return; return;

View File

@@ -24,17 +24,18 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1){ if (mode != 1) {
if (mode == 0 && type == 12) if (mode == 0 && type == 12) {
qm.sendNext("Come back again when you have took your desition wisely."); qm.sendNext("Come back again when you have took your desition wisely.");
}
qm.dispose(); qm.dispose();
return; 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."); 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."); 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.startQuest();
qm.dispose(); qm.dispose();
} }
@@ -42,41 +43,43 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1){ if (mode != 1) {
if (mode == 0 && type == 1) if (mode == 0 && type == 1) {
qm.sendNext("Hey! At least say you tried!"); qm.sendNext("Hey! At least say you tried!");
}
qm.dispose(); qm.dispose();
return; return;
} }
if (status == 0) if (status == 0) {
qm.sendNext("Voom voom voom voom voom...."); //Giant Polearm qm.sendNext("Voom voom voom voom voom....");
else if (status == 1) }//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); 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); 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!"); 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); 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."); 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); 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!"); 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); 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?!"); 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); 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!"); 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.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.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); //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.showVideo("Maha");
qm.dispose(); qm.dispose();
} }

View File

@@ -27,36 +27,38 @@ function end(mode, type, selection) {
qm.sendNext("Hey! At least say you tried!"); qm.sendNext("Hey! At least say you tried!");
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.sendNext("Hey! At least say you tried!"); qm.sendNext("Hey! At least say you tried!");
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) 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 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!");
else if (status == 1) }//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); 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?"); 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); 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?"); 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); 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."); 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!"); 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) { } else if (status == 8) {
if(!qm.isQuestCompleted(21201)) { if (!qm.isQuestCompleted(21201)) {
if(!qm.canHold(1142130)) { 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 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; return;
} }

View File

@@ -24,25 +24,26 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (mode != 1){ if (mode != 1) {
if (mode == 0 && type == 1) if (mode == 0 && type == 1) {
qm.sendNext("Do you not want to put in the work to get the ultimate weapon?"); qm.sendNext("Do you not want to put in the work to get the ultimate weapon?");
}
qm.dispose(); qm.dispose();
return; return;
} }
if (status == 0) { if (status == 0) {
qm.sendNext("Hmm.. What's a young person like you doing in this secluded place?"); 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); 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.."); 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); 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?"); 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."); 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.startQuest();
qm.dispose(); qm.dispose();
} }
@@ -50,24 +51,25 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1){ if (mode != 1) {
if (mode == 0 && type == 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.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(); qm.dispose();
return; return;
} }
if (status == 0) { 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."); 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.sendNext("Go for the 30 #t4032311#.");
qm.dispose(); 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.)"); 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."); 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.showVideo("Polearm");
qm.completeQuest(); qm.completeQuest();
qm.removeAll(4032311); qm.removeAll(4032311);

View File

@@ -29,21 +29,21 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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..."); qm.sendOk("Please bring me the box with the supplies that lies with #b#p2012019##k...");
} } else {
else {
qm.gainItem(4031619, -1); qm.gainItem(4031619, -1);
qm.sendOk("Oh, you brought #p2012019#'s box! Thank you."); qm.sendOk("Oh, you brought #p2012019#'s box! Thank you.");
qm.forceCompleteQuest(); qm.forceCompleteQuest();

View File

@@ -29,21 +29,21 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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..."); qm.sendOk("Please bring me the box with the supplies that lies with #b#p2012019##k...");
} } else {
else {
qm.gainItem(4031619, -1); qm.gainItem(4031619, -1);
qm.sendOk("Oh, you brought #p2012019#'s box! Thank you."); qm.sendOk("Oh, you brought #p2012019#'s box! Thank you.");
qm.forceCompleteQuest(); qm.forceCompleteQuest();

View File

@@ -29,15 +29,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendOk("I see you're ready for the task. Now, pay heed to the details of your mission..."); qm.sendOk("I see you're ready for the task. Now, pay heed to the details of your mission...");

View File

@@ -2,9 +2,9 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
//if (mode == 0) //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(); qm.dispose();

View File

@@ -2,9 +2,9 @@ var status = -1;
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
//if (mode == 0) //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(); qm.dispose();
@@ -16,7 +16,7 @@ function end(mode, type, selection) {
} else if (status == 1) { } 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..."); 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) { } 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..." ); 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) { } 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..."); 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) { } else if (status == 4) {

View File

@@ -24,9 +24,10 @@ var status = -1;
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if (mode != 1){ if (mode != 1) {
if (mode == 0 && type == 1) if (mode == 0 && type == 1) {
qm.sendNext("Hey! At least say you tried!"); qm.sendNext("Hey! At least say you tried!");
}
qm.dispose(); qm.dispose();
return; return;
} }
@@ -35,14 +36,14 @@ function end(mode, type, selection) {
} else if (status == 1) { } 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!"); 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) { } else if (status == 2) {
if(!qm.isQuestCompleted(21302)) { if (!qm.isQuestCompleted(21302)) {
if(!qm.canHold(1142131)) { 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.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest.");
qm.dispose(); qm.dispose();
return; return;
} }
if(qm.haveItem(4032312, 1)) { if (qm.haveItem(4032312, 1)) {
qm.gainItem(4032312, -1); qm.gainItem(4032312, -1);
} }

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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); 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);

View File

@@ -2,9 +2,9 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
//if (mode == 0) //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(); qm.dispose();

View File

@@ -2,9 +2,9 @@ var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
//if (mode == 0) //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(); qm.dispose();
@@ -33,9 +33,9 @@ function start(mode, type, selection) {
function end(mode, type, selection) { function end(mode, type, selection) {
status++; status++;
if(mode == 0 && type == 0) if (mode == 0 && type == 0) {
status -= 2; status -= 2;
else if (mode != 1) { } else if (mode != 1) {
//if (mode == 0) //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(); qm.dispose();
@@ -44,11 +44,11 @@ function end(mode, type, selection) {
if (status == 0) { 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..."); 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) { } 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."); 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) { } else if (status == 2) {
if(!qm.isQuestCompleted(21401)) { if (!qm.isQuestCompleted(21401)) {
if(!qm.canHold(1142132)) { 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.sendOk("Wow, your #bequip#k inventory is full. I need you to make at least 1 empty slot to complete this quest.");
qm.dispose(); qm.dispose();
return; return;
@@ -66,14 +66,15 @@ function end(mode, type, selection) {
qm.completeQuest(); 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."); 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) { } else if (status == 3) {
qm.dispose(); qm.dispose();
} }
} }
function spawnMob(x, y, id, map) { function spawnMob(x, y, id, map) {
if(map.getMonsterById(id) != null) if (map.getMonsterById(id) != null) {
return; return;
}
const LifeFactory = Java.type('server.life.LifeFactory'); const LifeFactory = Java.type('server.life.LifeFactory');
const Point = Java.type('java.awt.Point'); const Point = Java.type('java.awt.Point');

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Some bats seems to accompany this tree wherever it goes. Creepy..."); qm.sendNext("Some bats seems to accompany this tree wherever it goes. Creepy...");
@@ -22,6 +23,7 @@ function start(mode, type, selection) {
} }
} }
} }
function end(mode, type, selection) { function end(mode, type, selection) {
qm.dispose(); qm.dispose();
} }

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.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!");

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("The tree has a scarf upon its branches, I tell you."); qm.sendNext("The tree has a scarf upon its branches, I tell you.");

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("The tree has a strange carving that resembles a scary face."); qm.sendNext("The tree has a strange carving that resembles a scary face.");

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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); 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);
@@ -44,9 +45,8 @@ function start(mode, type, selection) {
var em = qm.getEventManager("Aran_3rdmount"); var em = qm.getEventManager("Aran_3rdmount");
if (em == null) { if (em == null) {
qm.sendOk("Sorry, but the 3rd mount quest (Wolves) is closed."); qm.sendOk("Sorry, but the 3rd mount quest (Wolves) is closed.");
return;
} } else {
else {
var em = qm.getEventManager("Aran_3rdmount"); var em = qm.getEventManager("Aran_3rdmount");
if (!em.startInstance(qm.getPlayer())) { if (!em.startInstance(qm.getPlayer())) {
qm.sendOk("There is currently someone in this map, come back later."); qm.sendOk("There is currently someone in this map, come back later.");

View File

@@ -26,15 +26,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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); 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);
@@ -53,18 +54,19 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.sendNext("You will have to unequip the wolf first before going for the evolution.");
qm.dispose(); qm.dispose();
return; return;

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -29,7 +29,7 @@ function start(mode, type, selection) {
} else if (status == 5) { } 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."); 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)) { if (!qm.isQuestStarted(21700) && !qm.isQuestCompleted(21700)) {
qm.gainItem(1442000,1); qm.gainItem(1442000, 1);
qm.forceStartQuest(); qm.forceStartQuest();
} }
} else if (status == 6) { } else if (status == 6) {

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
@@ -39,7 +39,7 @@ function start(mode, type, selection) {
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -1,7 +1,7 @@
var status = -1; var status = -1;
function start(mode, type, selection) { function start(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -5,7 +5,7 @@ function start(mode, type, selection) {
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if(mode == -1 || mode == 0 && type > 0) { if (mode == -1 || mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,17 +24,18 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if(status == 0) { if (status == 0) {
qm.sendNext("Aran, Lith have been caught off guard. We are under attack! Get here ASAP."); qm.sendNext("Aran, Lith have been caught off guard. We are under attack! Get here ASAP.");
} else { } else {
qm.forceStartQuest(); qm.forceStartQuest();
@@ -47,21 +48,22 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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!"); 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."); 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.gainExp(8000);
qm.teachSkill(21100000, 0, 20, -1); // polearm mastery qm.teachSkill(21100000, 0, 20, -1); // polearm mastery

View File

@@ -24,17 +24,18 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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 { } else {
qm.forceStartQuest(); qm.forceStartQuest();
@@ -47,23 +48,24 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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."); 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."); 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.forceCompleteQuest();
qm.gainExp(12500); qm.gainExp(12500);

View File

@@ -24,26 +24,29 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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) { } 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.sendNext("Please free a slot on your ETC inventory before receiving the item.");
qm.dispose(); qm.dispose();
return; return;
} }
if(!qm.haveItem(4032323, 1)) qm.gainItem(4032323, 1); if (!qm.haveItem(4032323, 1)) {
qm.gainItem(4032323, 1);
}
qm.forceStartQuest(); qm.forceStartQuest();
qm.dispose(); qm.dispose();
} }
@@ -54,18 +57,19 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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 { } else {
qm.dispose(); qm.dispose();

View File

@@ -24,25 +24,26 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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."); 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."); 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?"); 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.forceStartQuest();
qm.dispose(); qm.dispose();
} }

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { // thanks ZERO傑洛 for noticing this quest shouldn't need a pw -- GMS-like string data thanks to skycombat 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); 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);

View File

@@ -24,17 +24,18 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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) { } else if (status == 1) {
qm.forceCompleteQuest(); qm.forceCompleteQuest();

View File

@@ -24,17 +24,18 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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."); 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 { } else {
qm.forceStartQuest(); qm.forceStartQuest();
@@ -47,21 +48,22 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; 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..."); 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!"); 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.forceCompleteQuest();
qm.teachSkill(21100004, 0, 20, -1); // combo smash qm.teachSkill(21100004, 0, 20, -1); // combo smash
qm.dispose(); qm.dispose();

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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); 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);
@@ -53,8 +54,8 @@ function start(mode, type, selection) {
} else if (status == 8) { } 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); 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 { } else {
if(!qm.haveItem(4220151, 1)) { if (!qm.haveItem(4220151, 1)) {
if(!qm.canHold(4220151, 1)) { if (!qm.canHold(4220151, 1)) {
qm.sendOk("Please free a room on your ETC inventory.", 9); qm.sendOk("Please free a room on your ETC inventory.", 9);
qm.dispose(); qm.dispose();
return; return;
@@ -73,15 +74,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.'"); 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.'");

View File

@@ -24,27 +24,27 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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 { } else {
var mapobj = qm.getWarpMap(925040001); var mapobj = qm.getWarpMap(925040001);
if(mapobj.countPlayers() == 0) { if (mapobj.countPlayers() == 0) {
mapobj.resetPQ(1); mapobj.resetPQ(1);
qm.warp(925040001, 0); qm.warp(925040001, 0);
qm.forceStartQuest(); qm.forceStartQuest();
} } else {
else {
qm.sendOk("Someone is already attempting a challenge. Wait for them to finish before you enter."); qm.sendOk("Someone is already attempting a challenge. Wait for them to finish before you enter.");
} }
@@ -58,15 +58,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.'"); 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.'");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");
@@ -49,15 +50,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); qm.sendNext("So you have defeated the Shadow Knight. I have never doubted of your handiwork, and you handled the task well.");

View File

@@ -24,15 +24,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,15 +24,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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..."); 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...");

View File

@@ -24,15 +24,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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."); 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.");

View File

@@ -24,18 +24,19 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { 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.sendNext("Hm, I will need you to prepare a ETC slot for a letter I need to give you.");
qm.dispose(); qm.dispose();
return; return;

View File

@@ -24,15 +24,16 @@ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Oh, a letter for the #rempress#k? From the #bheroes#k?!"); qm.sendNext("Oh, a letter for the #rempress#k? From the #bheroes#k?!");

View File

@@ -4,22 +4,22 @@ var canStart;
function start(mode, type, selection) { function start(mode, type, selection) {
status++; status++;
if (status == 0) { if (status == 0) {
if(qm.haveItem(4032423, 1)) { if (qm.haveItem(4032423, 1)) {
qm.forceStartQuest(); qm.forceStartQuest();
qm.dispose(); qm.dispose();
return; return;
} }
canStart = qm.canHold(4032423, 1); canStart = qm.canHold(4032423, 1);
if(!canStart) { if (!canStart) {
qm.sendNext("Please open a slot in your ETC inventory first."); qm.sendNext("Please open a slot in your ETC inventory first.");
return; 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"); 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) { } else if (status == 1) {
if(canStart) { if (canStart) {
qm.gainItem(4032423,1); qm.gainItem(4032423, 1);
qm.forceStartQuest(); qm.forceStartQuest();
} }

View File

@@ -5,48 +5,48 @@
var status = -1; // thanks IxianMace for noticing missing status declaration var status = -1; // thanks IxianMace for noticing missing status declaration
function end(mode, type, selection){ function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
if(!qm.isQuestCompleted(2186)) { if (!qm.isQuestCompleted(2186)) {
if(qm.haveItem(4031853)){ if (qm.haveItem(4031853)) {
if(qm.canHold(2030019)) { if (qm.canHold(2030019)) {
qm.gainItem(4031853, -1); qm.gainItem(4031853, -1);
qm.gainExp(1700); qm.gainExp(1700);
qm.gainItem(2030019, 10); 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.sendOk("Geez, you found my glasses! Thank you, thank you so much. Now I'm able to see everything again!");
qm.forceCompleteQuest(); qm.forceCompleteQuest();
} } else {
else {
qm.sendOk("I need you to have an USE slot available to reward you properly!"); 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 } 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.canHold(2030019)) {
if(qm.haveItem(4031854)) if (qm.haveItem(4031854)) {
qm.gainItem(4031854, -1); qm.gainItem(4031854, -1);
else } else {
qm.gainItem(4031855, -1); qm.gainItem(4031855, -1);
}
qm.gainExp(1000); qm.gainExp(1000);
qm.gainItem(2030019, 5); qm.gainItem(2030019, 5);
qm.sendOk("Hm, those aren't my glasses... But alas, I'll take it anyway. Thanks."); qm.sendOk("Hm, those aren't my glasses... But alas, I'll take it anyway. Thanks.");
qm.forceCompleteQuest(); qm.forceCompleteQuest();
} } else {
else {
qm.sendOk("I need you to have an USE slot available to reward you properly!"); qm.sendOk("I need you to have an USE slot available to reward you properly!");
} }
} }

View File

@@ -4,15 +4,16 @@ function start(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Oh, you already have monster book. Good luck on your journey~!"); qm.sendNext("Oh, you already have monster book. Good luck on your journey~!");
@@ -22,19 +23,21 @@ function start(mode, type, selection) {
} }
} }
} }
function end(mode, type, selection) { function end(mode, type, selection) {
if (mode == -1) { if (mode == -1) {
qm.dispose(); qm.dispose();
} else { } else {
if(mode == 0 && type > 0) { if (mode == 0 && type > 0) {
qm.dispose(); qm.dispose();
return; return;
} }
if (mode == 1) if (mode == 1) {
status++; status++;
else } else {
status--; status--;
}
if (status == 0) { if (status == 0) {
qm.sendNext("Oh, you already have monster book. Good luck on your journey~!"); qm.sendNext("Oh, you already have monster book. Good luck on your journey~!");

Some files were not shown because too many files have changed in this diff Show More