Item pickup patch + Rescaled buyback fee + Tameness gain on Quests
Fixed a concurrency issue with registering picked items into the inventory, that would render some of the collected items to not be registered. Adjusted buyback fee, now using a value sensitive to the player level (starts scaling from level 30, caps at 120). Edited MaxHP of the boss Shade, now properly scaled to it's level. Fixed return scroll and summon bags being usable inside BRPQ rest points. Added missing etc drop data for the Extras/Leaders mobs from Zipangu. Implemented pet tameness gain on quests. Fixed a concurrency issue with the pet spawn handler, allowing possible PE exploits. Adjusted drop rates of omok pieces and match cards, now somewhat GMS-like. Shadow Meso now properly dispels mobs wdef/mdef up, as the skill description suggests. Fixed Shadow Meso using up projectiles (it should use only mesos).
This commit is contained in:
@@ -98,7 +98,7 @@ function action(mode, type, selection) {
|
||||
var itemSet = new Array (4003001,4003001,4003000);
|
||||
var matSet = new Array(4000003,4000018,new Array (4011000,4011001));
|
||||
var matQtySet = new Array (10,5,new Array (1,1));
|
||||
var costSet = new Array (0,0,0)
|
||||
var costSet = new Array (0,0,0);
|
||||
item = itemSet[selectedItem];
|
||||
mats = matSet[selectedItem];
|
||||
matQty = matQtySet[selectedItem];
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
function start() {
|
||||
if (cm.haveItem(4001019))
|
||||
cm.sendYesNo("You can use #b#t4001019#k to activate #b#p2012014##k. Will you teleport to where #b#p2012015##k is?");
|
||||
cm.sendYesNo("You can use #b#t4001019##k to activate #b#p2012014##k. Will you teleport to where #b#p2012015##k is?");
|
||||
else {
|
||||
cm.sendOk("There's a #b#p2012014##k that'll enable you to teleport to where #b#p2012015##k is, but you can't activate it without the scroll.");
|
||||
cm.dispose();
|
||||
@@ -43,7 +43,7 @@ function start() {
|
||||
function action(mode, type, selection) {
|
||||
if (mode > 0) {
|
||||
cm.gainItem(4001019, -1);
|
||||
cm.warp(200082100);
|
||||
cm.warp(200082100, 0);
|
||||
}
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
function start() {
|
||||
if (cm.haveItem(4001019))
|
||||
cm.sendYesNo("You can use #b#t4001019#k to activate #b#p2012014##k. Will you teleport to where #b#p2012015##k is?");
|
||||
cm.sendYesNo("You can use #b#t4001019##k to activate #b#p2012014##k. Will you teleport to where #b#p2012015##k is?");
|
||||
else {
|
||||
cm.sendOk("There's a #b#p2012015##k that'll enable you to teleport to where #b#p2012014##k is, but you can't activate it without the scroll.");
|
||||
cm.dispose();
|
||||
@@ -43,7 +43,7 @@ function start() {
|
||||
function action(mode, type, selection) {
|
||||
if (mode > 0) {
|
||||
cm.gainItem(4001019, -1);
|
||||
cm.warp(200080200);
|
||||
cm.warp(200080200, 0);
|
||||
}
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ function action(mode, type, selection) {
|
||||
if (cm.getMeso() < cost[location]) {
|
||||
cm.sendNext("You don't seem to have enough mesos. I am terribly sorry, but I cannot help you unless you pay up. Bring in the mesos by hunting more and come back when you have enough.");
|
||||
} else {
|
||||
cm.warp(toMap[location]);
|
||||
cm.warp(toMap[location], location != 1 ? 0 : 1);
|
||||
cm.gainMeso(-cost[location]);
|
||||
}
|
||||
cm.dispose();
|
||||
|
||||
46
scripts/npc/2082014_script.js
Normal file
46
scripts/npc/2082014_script.js
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2018 RonanLana
|
||||
|
||||
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;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && type > 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if(status == 0) {
|
||||
cm.sendOk("We've already located the enemy's ultimate weapon! Follow along the ship's bow area ahead and you will find my sister #b#p2082013##k. Report to her for futher instructions on the mission.");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@ function action(mode, type, selection) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.gainMeso(-cost[2]);
|
||||
cm.warp(251000000);
|
||||
cm.warp(251000000, 0);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
if(cm.getPlayer().getMapId() == 251000000) {
|
||||
cm.gainMeso(-cost[2]);
|
||||
cm.warp(250000100);
|
||||
cm.warp(250000100, 0);
|
||||
cm.dispose();
|
||||
} else {
|
||||
cm.gainMeso(-cost[slct]);
|
||||
|
||||
@@ -41,7 +41,7 @@ var maxEqp = 0;
|
||||
function start() {
|
||||
cm.getPlayer().setCS(true);
|
||||
var selStr = "Hello, I am the #bAccessory NPC Crafter#k! My works are widely recognized to be too fine, up to the point at which all my items mimic not only the appearance but too the attributes of them! Everything I charge is some 'ingredients' to make them and, of course, a fee for my services. On what kind of equipment are you interessed?#b";
|
||||
var options = ["Pendants","Face accessories","Eye accessories","Belts & medals","Rings","#t4032496#"];
|
||||
var options = ["Pendants","Face accessories","Eye accessories","Belts & medals","Rings"/*,"#t4032496#"*/];
|
||||
for (var i = 0; i < options.length; i++)
|
||||
selStr += "\r\n#L" + i + "# " + options[i] + "#l";
|
||||
cm.sendSimple(selStr);
|
||||
@@ -91,19 +91,19 @@ function action(mode, type, selection) {
|
||||
for (var i = 0; i < items.length; i++)
|
||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##b";
|
||||
|
||||
}else if (selection == 5) { //make necklace
|
||||
}/*else if (selection == 5) { //make necklace
|
||||
var selStr = "Need to make #t4032496#?#b";
|
||||
items = [4032496];
|
||||
for (var i = 0; i < items.length; i++)
|
||||
selStr += "\r\n#L" + i + "##t" + items[i] + "##l";
|
||||
}
|
||||
}*/
|
||||
selectedType = selection;
|
||||
cm.sendSimple(selStr);
|
||||
}else if (status == 1) {
|
||||
if (selectedType != 3) selectedItem = selection;
|
||||
|
||||
if (selectedType == 0) { //pendant refine
|
||||
var matSet = [[4003004, 4030012, 4001356, 4000026], [4000026, 4001356, 4000073, 4001006], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [1122007, 4003002, 4032496]];
|
||||
var matSet = [[4003004, 4030012, 4001356, 4000026], [4000026, 4001356, 4000073, 4001006], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [4001344, 4003001, 4003004, 4003005], [1122007, 4003002, 4000413]];
|
||||
var matQtySet = [[20, 20, 5, 1], [5, 5, 10, 1], [10, 4, 20, 4], [20, 8, 20, 8], [10, 4, 20, 4], [15, 6, 30, 6], [20, 8, 40, 8], [15, 6, 30, 6], [1, 1, 1]];
|
||||
var costSet = [150000, 500000, 200000, 400000, 200000, 300000, 400000, 300000, 2500000];
|
||||
}else if (selectedType == 1) { //face accessory refine
|
||||
@@ -122,11 +122,11 @@ function action(mode, type, selection) {
|
||||
var matSet = [[4003001, 4001344, 4006000], [4003001, 4001344, 4006000], [4021004, 4011008], [4011008, 4001006], [1112413, 2022039], [1112414, 4000176], [4011007, 4021009]];
|
||||
var matQtySet = [[2, 2, 2], [2, 2, 2], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1]];
|
||||
var costSet = [10000, 10000, 10000, 20000, 15000, 15000, 10000];
|
||||
}else if (selectedType == 5) { //necklace refine
|
||||
}/*else if (selectedType == 5) { //necklace refine
|
||||
var matSet = [[4011007, 4011008, 4021009]];
|
||||
var matQtySet = [[1, 1, 1]];
|
||||
var costSet = [10000];
|
||||
}
|
||||
}*/
|
||||
|
||||
if (selectedType == 3) {
|
||||
selectedItem = Math.floor(Math.random() * maxEqp);
|
||||
@@ -161,34 +161,36 @@ function action(mode, type, selection) {
|
||||
prompt += "\r\n#i4031138# " + (cost * qty) + " meso";
|
||||
cm.sendYesNo(prompt);
|
||||
}else if (status == 2) {
|
||||
var complete = true;
|
||||
if (cm.getMeso() < (cost * qty))
|
||||
if (cm.getMeso() < (cost * qty)) {
|
||||
cm.sendOk("This is the fee I charge to make my items! No credit.");
|
||||
else{
|
||||
} else {
|
||||
var complete = true;
|
||||
if (mats instanceof Array) {
|
||||
for(var i = 0; complete && i < mats.length; i++)
|
||||
if (!cm.haveItem(mats[i], matQty[i] * qty))
|
||||
complete = false;
|
||||
}else if (!cm.haveItem(mats, matQty * qty))
|
||||
} else if (!cm.haveItem(mats, matQty * qty))
|
||||
complete = false;
|
||||
}
|
||||
if (!complete)
|
||||
cm.sendOk("Are you sure you got all the items required? Double check it!");
|
||||
else {
|
||||
if (cm.canHold(item, qty)) {
|
||||
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));
|
||||
cm.gainMeso(-(cost * qty));
|
||||
|
||||
cm.gainItem(item, qty);
|
||||
cm.sendOk("The item is done! Take and try this piece of art yourself.");
|
||||
}else {
|
||||
cm.sendOk("You got no free slot on your inventory.");
|
||||
|
||||
if (!complete)
|
||||
cm.sendOk("Are you sure you got all the items required? Double check it!");
|
||||
else {
|
||||
if (cm.canHold(item, qty)) {
|
||||
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));
|
||||
cm.gainMeso(-(cost * qty));
|
||||
|
||||
cm.gainItem(item, qty);
|
||||
cm.sendOk("The item is done! Take and try this piece of art yourself.");
|
||||
} else {
|
||||
cm.sendOk("You got no free slot on your inventory.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
26
scripts/npc/9201082.js
Normal file
26
scripts/npc/9201082.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var status;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && type > 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
|
||||
if(status == 0) {
|
||||
cm.sendOk("Have you ever come to know about the card game based on MapleStory, the MapleStory iTCG?");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendSimple("#b<Raid Quest: Happyville>#k\r\nA raid is nothing but many people joining up in an attempt to defeat extremely powerful creatures. Here is no different. Here, everyone can take part in defeating the spawned creature. What will you do?\r\n#b\r\n#L0#Spawn Kid Snowman.\r\n#L1#Spawn Lost Rudolph.\r\n#L2#Nothing, just chilling.#k");
|
||||
cm.sendSimple("#b<Raid Quest: Happyville>#k\r\nA raid is nothing but many people joining up in an attempt to defeat extremely powerful creatures. Here is no different. Everyone can take part in defeating the spawned creature. What will you do?\r\n#b\r\n#L0#Spawn Kid Snowman.\r\n#L1#Spawn Lost Rudolph.\r\n#L2#Nothing, just chilling.#k");
|
||||
} else if(status == 1) {
|
||||
if(selection == 0) {
|
||||
if(cm.getMap().getMonsters().size() > 1) { //reactor as a monster? wtf
|
||||
|
||||
@@ -84,6 +84,7 @@ function writeFeatureTab_CashItems() {
|
||||
addFeature("EXP/DROP/Cosmetic Coupons.");
|
||||
addFeature("EXP/DROP Coupon as buff effect during active time.");
|
||||
addFeature("Great deal of cash items functional.");
|
||||
addFeature("GMS-esque omok/match card drop chances.");
|
||||
addFeature("New town scroll: antibanish. Counters boss banishes.");
|
||||
addFeature("Inventory system checks for free slot & stack space.");
|
||||
addFeature("Storage with 'Arrange Items' feature functional.");
|
||||
|
||||
Reference in New Issue
Block a user