Out DATED*
var status = 0;
var maps = Array(1010000, 680000000, 230000000, 101000000, 211000000, 100000000, 251000000, 103000000, 222000000, 104000000, 240000000, 220000000, 250000000, 800000000, 600000000, 221000000, 200000000, 102000000, 801000000, 105040300, 60000, 610010004, 260000000, 540010000, 120000000); // Amherst, Amoria, Aquarium, Ellinia, El Nath, Entrance - Henesys, Herb Town, Kerning City, Korean Folk Town, Leafre, Lith Harbor, Ludibrium, Mu Lung, Mushroom Shrine, New Leaf City, Omega Sector, Orbis, Perion, Showa Town, Sleepywood, Southperry, Crimsonwood, Ariant, Singapore, Nautilus Port
var cost = Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var costBeginner = Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var selectedMap = -1;
var job;
importPackage(net.sf.xxxx.client);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status == 1 && mode == 0) {
cm.dispose();
return;
} else if (status >= 2 && mode == 0) {
cm.sendNext("There's a lot to see in this town, too. Come back and find us when you need to go to a different town.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("How's it going? I drive the Teleport Taxi. I'll teleport u anywhere for 1meso - or lower! If you want to go from town to town safely and fast, then ride our cab. We'll gladly take you to your destination. If your name is Llyodd Korn, Piss off. [FMS]Matt");
} else if (status == 1) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
var selStr = "We have a special 90% discount for beginners. Choose your destination, for fees will change from place to place.#b";
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + costBeginner[i] + " mesos)#l";
}
} else {
var selStr = "Choose your destination, And go anywhere for free..#b";
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + cost[i] + " mesos)#l";
}
}
cm.sendSimple(selStr);
} else if (status == 2) {
cm.sendYesNo("You don't have anything else to do here, huh? Do you really want to go to#b#m" + maps[selection] + "##k? It'll cost you #b"+ cost[selection] + " mesos#k.");
selectedMap = selection;
} else if (status == 3) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
if (cm.getMeso() < costBeginner[selection]) {
cm.sendNext("You don't have enough mesos.");
cm.dispose();
} else {
cm.gainMeso(-costBeginner[selectedMap]);
}
} else {
if (cm.getMeso() < cost[selection]) {
cm.sendNext("You don't have enough mesos.");
cm.dispose();
} else {
cm.gainMeso(-cost[selectedMap]);
}
cm.warp(maps[selectedMap], 0);
cm.dispose();
}
}
}
}