51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
|
/**
|
||
|
----------------------------------------------------------------------------------
|
||
|
Skyferry Between Victoria Island, Ereve and Orbis.
|
||
|
|
||
|
1100007 Kiriru (Victoria Island Station to Ereve)
|
||
|
|
||
|
Credits to: MapleSanta
|
||
|
----------------------------------------------------------------------------------
|
||
|
**/
|
||
|
|
||
|
var menu = new Array("Ereve");
|
||
|
var method;
|
||
|
|
||
|
function start() {
|
||
|
status = -1;
|
||
|
action(1, 0, 0);
|
||
|
}
|
||
|
|
||
|
function action(mode, type, selection) {
|
||
|
if (mode == -1) {
|
||
|
cm.dispose();
|
||
|
|
||
|
} else {
|
||
|
if (mode == 0 && status == 0) {
|
||
|
cm.dispose();
|
||
|
return;
|
||
|
} else if (mode == 0) {
|
||
|
cm.sendNext("If you're not interested, then oh well...");
|
||
|
cm.dispose();
|
||
|
return;
|
||
|
}
|
||
|
status++;
|
||
|
if (status == 0) {
|
||
|
var display = "";
|
||
|
for (var i = 0; i < menu.length; i++) {
|
||
|
display += "\r\n#L" + i + "##b Ereve (1000 mesos)#k";
|
||
|
}
|
||
|
cm.sendSimple("Eh... So... Um... Are you trying to leave Victoria to go to a different region? You can take this boat to #bEreve#k. There, you will see bright sunlight shinning on the leaves and feel a gentle breeze on your skin. It's where Shinsoo and Empress Cygnus are. Would you like to go to Ereve? It will take about #b2 Minutes#k, and it will cost you #b1000#k mesos.\r\n" + display);
|
||
|
|
||
|
} else if (status == 1) {
|
||
|
if (cm.getMeso() < 1000) {
|
||
|
cm.sendNext("Hmm... Are you sure you have #b1000#k Mesos? Check your Inventory and make sure you have enough. You must pay the fee or I can't let you get on...");
|
||
|
cm.dispose();
|
||
|
} else {
|
||
|
cm.gainMeso(-1000);
|
||
|
cm.warp(200090030);
|
||
|
cm.dispose();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|