[REQUEST]Spinel
5 posters
[REQUEST]Spinel
I would like to request spinel being teleporter for all towns and entrance to dragon forest
nero569- Newbie
- Posts : 2
Join date : 2008-07-02
Re: [REQUEST]Spinel
I Could Help you With That * Give Me Some Time
Alfons- Newbie
- Posts : 4
Join date : 2008-07-02
Re: [REQUEST]Spinel
*/
var status = 0;
var maps = Array(680000000, 230000000, 211000000, 101000000, 100000000, 251000000, 103000000, 222000000, 104000000, 240000000, 240030000, 220000000, 250000000, 800000000, 600000000, 221000, 200000000, 102000000, 801000, 105040300);
var cost = Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var costBeginner = Array(100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
var selectedMap = -1;
var job;
importPackage(net.sf.odinms.client);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 2 && mode == 0) {
cm.sendOk("Alright, see you next time.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hi, I am Super Taxi ");
} else if (status == 1) {
cm.sendNextPrev("I can take you to many locations for just a small fee. Beginners will get a 90% discount on normal prices.")
} else if (status == 2) {
var selStr = "Select your destination.#b";
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + costBeginner[i] + " meso)#l";
}
} else {
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + cost[i] + " meso)#l";
}
}
cm.sendSimple(selStr);
} else if (status == 3) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
if (cm.getMeso() < costBeginner[selection]) {
cm.sendOk("You do not have enough mesos.")
cm.dispose();
} else {
cm.sendYesNo("So you have nothing left to do here? Do you want to go to #m" + maps[selection] + "#?");
selectedMap = selection;
}
}
else {
if (cm.getMeso() < cost[selection]) {
cm.sendOk("You do not have enough mesos.")
cm.dispose();
} else {
cm.sendYesNo("So you have nothing left to do here? Do you want to go to #m" + maps[selection] + "#?");
selectedMap = selection;
}
}
} else if (status == 4) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
cm.gainMeso(-costBeginner[selectedMap]);
}
else {
cm.gainMeso(-cost[selectedMap]);
}
cm.warp(maps[selectedMap], 0);
cm.dispose();
}
}
}
var status = 0;
var maps = Array(680000000, 230000000, 211000000, 101000000, 100000000, 251000000, 103000000, 222000000, 104000000, 240000000, 240030000, 220000000, 250000000, 800000000, 600000000, 221000, 200000000, 102000000, 801000, 105040300);
var cost = Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var costBeginner = Array(100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
var selectedMap = -1;
var job;
importPackage(net.sf.odinms.client);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 2 && mode == 0) {
cm.sendOk("Alright, see you next time.");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hi, I am Super Taxi ");
} else if (status == 1) {
cm.sendNextPrev("I can take you to many locations for just a small fee. Beginners will get a 90% discount on normal prices.")
} else if (status == 2) {
var selStr = "Select your destination.#b";
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + costBeginner[i] + " meso)#l";
}
} else {
for (var i = 0; i < maps.length; i++) {
selStr += "\r\n#L" + i + "##m" + maps[i] + "# (" + cost[i] + " meso)#l";
}
}
cm.sendSimple(selStr);
} else if (status == 3) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
if (cm.getMeso() < costBeginner[selection]) {
cm.sendOk("You do not have enough mesos.")
cm.dispose();
} else {
cm.sendYesNo("So you have nothing left to do here? Do you want to go to #m" + maps[selection] + "#?");
selectedMap = selection;
}
}
else {
if (cm.getMeso() < cost[selection]) {
cm.sendOk("You do not have enough mesos.")
cm.dispose();
} else {
cm.sendYesNo("So you have nothing left to do here? Do you want to go to #m" + maps[selection] + "#?");
selectedMap = selection;
}
}
} else if (status == 4) {
if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
cm.gainMeso(-costBeginner[selectedMap]);
}
else {
cm.gainMeso(-cost[selectedMap]);
}
cm.warp(maps[selectedMap], 0);
cm.dispose();
}
}
}
AnimeFreak- Newbie
- Posts : 6
Join date : 2008-07-02
Permissions in this forum:
You cannot reply to topics in this forum