[EXPERIMENTAL] Added the AutoJCE feature to the server source. This is expected to solve the encryption size issue without resorting to overwrite the JCE files on the system. LMPQ now sends players to random starting rooms, GMS-like. Added a server flag for the free market item sold announcement. Tweaked the reactor-hitting system, expecting to solve the incorrect parameter issue on the "multiple players hitting" scenario.
81 lines
2.7 KiB
JavaScript
81 lines
2.7 KiB
JavaScript
/*
|
|
This file is part of the HeavenMS (MapleSolaxiaV2) MapleStory Server
|
|
Copyleft (L) 2017 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 = -1;
|
|
|
|
function start(mode, type, selection) {
|
|
if (mode == -1) {
|
|
qm.dispose();
|
|
} else {
|
|
if(mode == 0 && type > 0) {
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
if (status == 0) {
|
|
qm.sendNext("Aran, ever since the Puppeteer's ambush on me, I've been thinking it is dangerous to have the #b#t4032323##k around here by myself. So, I need you to deliver the gem to #r#p1201000##k, in Rien, she will know what to do with it.");
|
|
} else if (status == 1) {
|
|
if(!qm.canHold(4032323, 1)) {
|
|
qm.sendNext("Please free a slot on your ETC inventory before receiving the item.");
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if(!qm.haveItem(4032323, 1)) qm.gainItem(4032323, 1);
|
|
qm.forceStartQuest();
|
|
qm.dispose();
|
|
}
|
|
}
|
|
}
|
|
|
|
function end(mode, type, selection) {
|
|
if (mode == -1) {
|
|
qm.dispose();
|
|
} else {
|
|
if(mode == 0 && type > 0) {
|
|
qm.dispose();
|
|
return;
|
|
}
|
|
|
|
if (mode == 1)
|
|
status++;
|
|
else
|
|
status--;
|
|
|
|
if (status == 0) {
|
|
if(qm.haveItem(4032323, 1)) {
|
|
qm.sendNext("#r#p1002104##k sent the #b#t4032323##k here for safety? Thank goodness, indeed here the gem will be safer than anywhere on Victoria Island. Thank you, #b#h0##k.");
|
|
} else {
|
|
qm.dispose();
|
|
}
|
|
} else if (status == 1) {
|
|
qm.gainItem(4032323, -1);
|
|
qm.gainExp(6037 * qm.getPlayer().getExpRate());
|
|
qm.forceCompleteQuest();
|
|
|
|
qm.dispose();
|
|
}
|
|
}
|
|
} |