NPCs Taxis and Crafters now checks properly
Fixed taxis that wouldn't check for mesos upon travel. Fixed crafters that wouldn't check for inventory slots available before crafting items.
This commit is contained in:
@@ -26,8 +26,12 @@
|
||||
Information
|
||||
-- Version Info -----------------------------------------------------------------------------------
|
||||
1.0 - First Version by Information
|
||||
2.0 - Second Version by Jayd
|
||||
---------------------------------------------------------------------------------------------------
|
||||
**/
|
||||
var k2s;
|
||||
var airport;
|
||||
var s2k;
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -43,16 +47,40 @@ function action(mode, type, selection) {
|
||||
status++;
|
||||
}
|
||||
if(mode == 0) {
|
||||
cm.sendOk("Please hold on for a sec, and plane will be taking off. Thanks for your patience.");
|
||||
cm.dispose();
|
||||
return;
|
||||
if (cm.getMapId() == 540010101) {
|
||||
cm.sendOk("Please hold on for a sec, and we're reaching Singapore! Thanks for your patience.");
|
||||
cm.dispose();
|
||||
return;
|
||||
} else {
|
||||
cm.sendOk("Please hold on for a sec, and we're reaching Kerning City! Thanks for your patience.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(status == 0) {
|
||||
cm.sendYesNo("The plane will be taking off soon, Will you leave now? You will have buy the plane ticket again to come in here.");
|
||||
if (cm.getMapId() == 540010001) {
|
||||
cm.sendYesNo("The plane is taking off soon, are you sure you want to leave now? The ticket is not refundable.");
|
||||
airport = 1;
|
||||
} else if (cm.getMapId() == 540010002) {
|
||||
cm.sendYesNo("We're reaching Kerning City in a minute, are you sure you want to leave now? The ticket is not refundable.");
|
||||
s2k = 1;
|
||||
} else if (cm.getMapId() == 540010101) {
|
||||
cm.sendYesNo("We're reaching Singapore in a minute, are you sure you want to leave now? The ticket is not refundable.");
|
||||
k2s = 1;
|
||||
}
|
||||
} else if(status == 1) {
|
||||
cm.sendNext("I have already told you the ticket is not refunable~ hope to see you again~");
|
||||
} else if(status == 2) {
|
||||
cm.warp(540010000);
|
||||
cm.dispose();
|
||||
if (k2s == 1) {
|
||||
cm.warp(103000000);
|
||||
cm.sendOk("Hope to see you again soon!");
|
||||
cm.dispose();
|
||||
} else if (airport == 1) {
|
||||
cm.warp(540010000);
|
||||
cm.sendOk("Hope to see you again soon!");
|
||||
cm.dispose();
|
||||
} else if (s2k == 1) {
|
||||
cm.warp(540010000);
|
||||
cm.sendOk("Hope to see you again soon!");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user