source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
52
scripts/npc/world0/2110005.js
Normal file
52
scripts/npc/world0/2110005.js
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
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 SharpAceX (Alan)
|
||||
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.");
|
||||
} 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();
|
||||
}
|
||||
Reference in New Issue
Block a user