source
Source for my MapleSolaxiaV2 (v83 MapleStory).
This commit is contained in:
52
scripts/npc/world0/1200003.js
Normal file
52
scripts/npc/world0/1200003.js
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
----------------------------------------------------------------------------------
|
||||
Whale Between Lith harbor and Rien.
|
||||
|
||||
1200003 Puro
|
||||
|
||||
-------Credits:-------------------------------------------------------------------
|
||||
*MapleSanta
|
||||
----------------------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
var menu = new Array("Lith Harboor");
|
||||
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 Lith Harbor (800 mesos)#k";
|
||||
}
|
||||
cm.sendSimple("Are you trying to leave Rien? Board this ship and I'll take you from #bRien#k to #bLith Harbor#k and back. for a #bfee of 800#k Mesos. Would you like to head over to Lith Harbor now? It'll take about a minute to get there.\r\n"+display);
|
||||
|
||||
} else if(status == 1) {
|
||||
{ if(cm.getMeso() < 800) {
|
||||
cm.sendNext("Hmm... Are you sure you have #b800#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(-800);
|
||||
cm.warp(200090070);
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user