More Masteria quests + several minor fixes

Added more quests on Masteria and updated drop data in the region. Fixed
mystic door on slopes deploying players unproperly. Fixed mounts
equipped by low level players crashing the client.
This commit is contained in:
ronancpl
2017-07-12 02:36:20 -03:00
parent 57125a70ce
commit 7f80f45553
70 changed files with 7004 additions and 6420 deletions

178
scripts/npc/9201095.js Normal file
View File

@@ -0,0 +1,178 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Fiona
Phantom Forest - Dead Man's Gorge (610010004)
Refining NPC:
* Raven Claw items
* Raven Claw upgrades
*/
var status = 0;
var selectedType = -1;
var selectedItem = -1;
var item;
var mats;
var matQty;
var cost;
var qty;
function start() {
if (cm.getQuestStatus(8225) != 2) {
cm.sendOk("Step aside, novice, we're doing business here.");
cm.dispose();
return;
}
cm.getPlayer().setCS(true);
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
else
cm.dispose();
if (status == 0 && mode == 1) {
var selStr = "Hey, partner! If you have the right goods, I can turn it into something very nice...#b"
var options = new Array("Weapon Forging","Weapon Upgrading");
for (var i = 0; i < options.length; i++)
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
cm.sendSimple(selStr);
}
else if (status == 1 && mode == 1) {
selectedType = selection;
if (selectedType == 0){ //weapon forge
var selStr = "So, what kind of weapon would you like me to forge?#b";
var weapon = new Array ("#t2070018#","#t1382060#","#t1442068#","#t1452060#");
for (var i = 0; i < weapon.length; i++)
selStr += "\r\n#L" + i + "# " + weapon[i] + "#l";
cm.sendSimple(selStr);
}
else if (selectedType == 1){ //weapon upgrade
var selStr = "An upgraded weapon? Of course, but note that upgrades won't carry over to the new item... #b";
var weapon = new Array ("#t1472074#","#t1472073#","#t1472075#","#t1332079#","#t1332078#","#t1332080#","#t1462054#","#t1462053#","#t1462055#","#t1402050#","#t1402049#","#t1402051#");
for (var i = 0; i < weapon.length; i++)
selStr += "\r\n#L" + i + "# " + weapon[i] + "#l";
cm.sendSimple(selStr);
}
}
else if (status == 2 && mode == 1) {
qty = 1;
selectedItem = selection;
if (selectedType == 0){ // weapon forge
var itemSet = new Array(2070018,1382060,1442068,1452060);
var matSet = new Array(new Array(4032015, 4032016, 4032017, 4021008, 4032005), new Array(4032016,4032017,4032004,4032005,4032012,4005001), new Array(4032015,4032017,4032004,4032005,4032012,4005000), new Array(4032015,4032016,4032004,4032005,4032012,4005002));
var matQtySet = new Array(new Array(1,1,1,100,30), new Array(1,1,400,10,30,4), new Array(1,1,500,40,20,4), new Array(1,1,300,75,10,4));
var costSet = new Array(70000,70000,70000,70000);
item = itemSet[selectedItem];
mats = matSet[selectedItem];
matQty = matQtySet[selectedItem];
cost = costSet[selectedItem];
}
else if (selectedType == 1){ // weapon upgrade
var itemSet = new Array(1472074,1472073,1472075,1332079,1332078,1332080,1462054,1462053,1462055,1402050,1402049,1402051);
var matSet = new Array(new Array(4032017,4005001,4021008), new Array(4032015,4005002,4021008), new Array(4032016,4005000,4021008),new Array(4032017,4005001,4021008), new Array(4032015,4005002,4021008), new Array(4032016,4005000,4021008), new Array(4032017,4005001,4021008), new Array(4032015,4005002,4021008), new Array(4032016,4005000,4021008), new Array(4032017,4005001,4021008), new Array(4032015,4005002,4021008), new Array(4032016,4005000,4021008));
var matQtySet = new Array(new Array(1,10,20),new Array(1,10,30),new Array(1,5,20),new Array(1,10,20),new Array(1,10,30),new Array(1,5,20),new Array(1,10,20),new Array(1,10,30),new Array(1,5,20),new Array(1,10,20),new Array(1,10,30),new Array(1,5,20));
var costSet = new Array (75000,50000,50000,75000,50000,50000,75000,50000,50000,75000,50000,50000);
item = itemSet[selectedItem];
mats = matSet[selectedItem];
matQty = matQtySet[selectedItem];
cost = costSet[selectedItem];
}
var prompt = "You want me to make ";
if (qty == 1)
prompt += "a #t" + item + "#?";
else
prompt += qty + " #t" + item + "#?";
prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";
if (mats instanceof Array){
for(var i = 0; i < mats.length; i++){
prompt += "\r\n#i"+mats[i]+"# " + matQty[i] * qty + " #t" + mats[i] + "#";
}
}
else {
prompt += "\r\n#i"+mats+"# " + matQty * qty + " #t" + mats + "#";
}
if (cost > 0)
prompt += "\r\n#i4031138# " + cost * qty + " meso";
cm.sendYesNo(prompt);
}
else if (status == 3 && mode == 1) {
var complete = true;
var recvItem = item, recvQty;
recvQty = qty;
if(!cm.canHold(recvItem, recvQty)) {
cm.sendOk("Check your inventory for a free slot first.");
cm.dispose();
return;
}
else if (cm.getMeso() < cost * qty)
{
cm.sendOk("I am afraid you don't have enough to pay me, partner. Please check this out first, ok?");
cm.dispose();
return;
}
else
{
if (mats instanceof Array) {
for(var i = 0; complete && i < mats.length; i++)
if (!cm.haveItem(mats[i], matQty[i]))
complete = false;
}
else if (!cm.haveItem(mats, matQty))
complete = false;
}
if (!complete)
cm.sendOk("Hey, I need those items to craft properly, you know?");
else {
if (mats instanceof Array) {
for (var i = 0; i < mats.length; i++){
cm.gainItem(mats[i], -matQty[i] * qty);
}
}
else
cm.gainItem(mats, -matQty * qty);
if (cost > 0)
cm.gainMeso(-cost * qty);
cm.gainItem(recvItem, recvQty);
cm.sendOk("All done. If you need anything else... Well, I'm not going anywhere.");
}
cm.dispose();
}
}

9
scripts/npc/9201101.js Normal file
View File

@@ -0,0 +1,9 @@
/**
*9201083 - T-1337
*@author Ronan
*/
function start() {
cm.sendOk("The patrol in New Leaf City is always ready. No creatures are able to break through to the city.");
cm.dispose();
}

View File

@@ -25,8 +25,8 @@
*/
function start() {
if(cm.haveItem(3992041, 1)) cm.warp(610030020);
else cm.getPlayer().dropMessage(5, "The giant gate of iron will not budge no matter what, however there is a key-shaped socket visible.");
if(cm.haveItem(3992041, 1)) cm.warp(610030020, "out00");
else cm.playerMessage(5, "The giant gate of iron will not budge no matter what, however there is a visible key-shaped socket.");
cm.dispose();
}

27
scripts/npc/9201142.js Normal file
View File

@@ -0,0 +1,27 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var status = -1;
function start() {
cm.sendOk("Young one, you seem very proud of yourself, don't you? Can you face the real nightmare that is this place? If you think you can do it, then go ahead, ehehehehehe.");
cm.dispose();
}

View File

@@ -0,0 +1,9 @@
function enter(pi) {
if (pi.haveItem(3992041, 1)) {
pi.warp(610030020, "out00");
return true;
} else {
pi.playerMessage(5, "The giant gate of iron will not budge no matter what, however there is a visible key-shaped socket.");
return false;
}
}

31
scripts/quest/8221.js Normal file
View File

@@ -0,0 +1,31 @@
/* ===========================================================
Ronan Lana
NPC Name: Jack
Description: Quest - Mark of Heroism
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0){
qm.sendAcceptDecline("It's about time! We need to make you a way to travel safely to the summit of the Crimsonwood Valley, or else all we've been doing was for naught. You have to lay hands on the #b#t3992039##k. Are you ready to go?");
}
else if (status == 1){
qm.sendOk("Okay, I need you to have these items on hand first: #b10 #t4010006##k, #b4 #t4032005##k and #b1 #t4004000##k. Go!");
qm.forceStartQuest();
qm.dispose();
}
}

View File

@@ -46,14 +46,9 @@ function end(mode, type, selection) {
}
}
if (status == 0){
if(!qm.canHold(4032018, 1)) {
qm.sendOk("I'm afraid you don't have a slot available on your ETC inventory.");
}
else if(qm.haveItem(4032032, 1)) {
if(qm.haveItem(4032032, 1)) {
qm.sendOk("Hello, native of this world. So you have a message that needs translation? My people back in Versal is known for mastering many foreign languages, this one may very well be some we know. Please stand by...");
qm.gainItem(4032032, -1);
qm.gainItem(4032018, 1);
qm.sendOk("Hello, native of this world. So you have a message that needs translation? My people back in Versal is known for mastering many foreign languages, this one may very well be some we know. Please stand by... Here, the translated transcript.");
qm.forceCompleteQuest();
} else {
qm.sendOk("I'm afraid you don't have the letter you claimed to have with you.");

View File

@@ -25,11 +25,11 @@ function start(mode, type, selection) {
else if (status == 1){
if(qm.haveItem(4032018, 1)) {
qm.forceStartQuest();
} else if (qm.canHold(4032018, 1)) {
} else if(qm.canHold(4032018, 1)) {
qm.gainItem(4032018, 1);
qm.forceStartQuest();
} else {
qm.sendOk("Hey. There's no slot on your ETC.");
qm.sendOk("Oy, you need a slot in your ETC to get the communique.");
}
qm.dispose();

33
scripts/quest/8231.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Fool's Gold
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "are Leprechauns";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r30 #t4032031##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8232.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Fool's Gold
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "are Leprechauns";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r30 #t4032031##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8233.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Rags to Riches
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "are Elderwraiths";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r30 #t4032011##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8234.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Rags to Riches
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "are Elderwraiths";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r30 #t4032011##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8235.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - One Step A-Head
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "is the Headless Horseman";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r1 #t4031903##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8236.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - One Step A-Head
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "is the Headless Horseman";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r1 #t4031903##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8237.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Catch a Bigfoot by the Toe
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "is the Bigfoot";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r1 #t4032013##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}

33
scripts/quest/8238.js Normal file
View File

@@ -0,0 +1,33 @@
/* ===========================================================
Ronan Lana
NPC Name: Lita Lawless
Description: Quest - Bounty Hunter - Catch a Bigfoot by the Toe
=============================================================
Version 1.0 - Script Done.(11/7/2017)
=============================================================
*/
var status = -1;
function start(mode, type, selection) {
status++;
if (mode != 1) {
if(type == 1 && mode == 0)
status -= 2;
else{
qm.sendOk("Okay, then. See you around.");
qm.dispose();
return;
}
}
if (status == 0) {
var target = "is the Bigfoot";
qm.sendAcceptDecline("Hey, traveler! I need your help. A new threat has appeared to the citizens of the New Leaf City. I'm currently recruiting anyone, and this time's target #r" + target + "#k. Are you in?");
}
else if (status == 1) {
var reqs = "#r1 #t4032013##k";
qm.sendOk("Very well. Get me #r" + reqs + "#k, asap. The NLC is counting on you.");
qm.forceStartQuest();
qm.dispose();
}
}