Implemented persistent diseases. Players now keep their disease status when logging out the game. Solved several concurrent access issues in MapleMap and MapleMonster. Implemented an option where an account's character slots can be accounted either by each world or all-server range. Fixed some issues with character slot count when entering/exiting Cash Shop. Fixed an exploit with Papulatus, on where players could create cracks of dimension infinitely. Solved an issue with the "reach" command not working properly when the targeted player is on an event instance. Devised an advanced and secure "PQ request" system. The service revolves around expecting massive number of players requesting a "pass" simultaneously, and fairly & swiftly responsing as much people as possible. Improved overall Whisper handler performance. Fixed GPQ Stage 1 statues not working as expected, which rendered the instance unplayable until now. Added commands for start, complete and reset quests.
53 lines
2.5 KiB
JavaScript
53 lines
2.5 KiB
JavaScript
/*
|
|
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/>.
|
|
*/
|
|
/*
|
|
-- Odin JavaScript --------------------------------------------------------------------------------
|
|
Camel Cab - Magatia (GMS Like)
|
|
-- Version Info -----------------------------------------------------------------------------------
|
|
1.3 - Actually fixed by Alan (SharpAceX)
|
|
1.2 - Fixed and recoded by Moogra
|
|
1.1 - Shortened by Moogra
|
|
1.0 - First Version by Maple4U, who actually can't code at all
|
|
---------------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
var toMagatia = "Would you like to take the #bCamel Cab#k to #bMagatia#k, the town of Alchemy? The fare is #b1500 mesos#k.";
|
|
var toAriant = "Would you like to take the #bCamel Cab#k to #bAriant#k, the town of Burning Roads? The fare is #b1500 mesos#k.";
|
|
|
|
function start() {
|
|
cm.sendYesNo(cm.getPlayer().getMapId() == 260020000 ? toMagatia : toAriant);
|
|
}
|
|
|
|
function action(mode, type, selection) {
|
|
if (mode == 1) {
|
|
if (cm.getMeso() < 1500) {
|
|
cm.sendNext("I am sorry, but I think you are short on mesos. I am afraid I can't let you ride this if you do not have enough money to do so. Please come back when you have enough money to use this.");
|
|
cm.dispose();
|
|
} else {
|
|
cm.warp(cm.getPlayer().getMapId() == 260020000 ? 261000000 : 260000000, 0);
|
|
cm.gainMeso(-1500);
|
|
cm.dispose();
|
|
}
|
|
} else if (mode == 0)
|
|
cm.sendNext("Hmmm... too busy to do it right now? If you feel like doing it, though, come back and find me.");
|
|
cm.dispose();
|
|
} |