Files
sweetgum-server/scripts/npc/1100004.js
ronancpl 7f178a3d80 Multi World NPCs + patch on Player interactions
Made NPCs now work properly on multiworld system. Solved multiple issues
regarding Player Shops not giving back items properly when owner exits.
Added restriction on changing channels at FM rooms, preventing shop
owner entering Cash Shop.
2017-05-28 22:11:39 -03:00

50 lines
1.8 KiB
JavaScript

/**
----------------------------------------------------------------------------------
Skyferry Between Victoria Island, Ereve and Orbis.
1100004 Kiru (To Orbis)
-------Credits:-------------------------------------------------------------------
*MapleSanta
----------------------------------------------------------------------------------
**/
var menu = new Array("Orbis");
var method;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
return;
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
} else if (mode == 0) {
cm.sendNext("OK. If you ever change your mind, please let me know.");
cm.dispose();
return;
}
status++;
if (status == 0) {
for (var i = 0; i < menu.length; i++) {
var display = "\r\n#L" + i + "##b Orbis (1000 mesos)#k";
}
cm.sendSimple("Hmm... The winds are favorable. Are you thinking of leaving ereve and going somwhere else? This ferry sails to Orbis on the Ossyria Continent, Have you taking care of everything you needed to in Ereve? If you happen to be headed toward #bOrbis#k i can take you there. What do you day? Are you going to go to Orbis?\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(200090021);
cm.dispose();
}
}
}
}