Reworked Singapore/Malaysia + warp fix

Reworked many aspects of the Malaysia/Singapore region (added DB data,
enabled Latanica & Scarga expedition, fixed maps). Fixed some issues
related with player warping.
This commit is contained in:
ronancpl
2017-07-14 20:40:06 -03:00
parent 7f80f45553
commit 8fab2a6e3e
120 changed files with 17684 additions and 16759 deletions

View File

@@ -53,11 +53,17 @@ function action(mode, type, selection) {
oldSelection = selection;
}else if(status == 1){
if(oldSelection == 0){
if (cm.getPlayer().getMeso() > 4999 && cm.getPlayer().haveItem(4031731) == false) {
cm.gainMeso(-5000);
cm.gainItem(4031731);
cm.sendOk("Thank you for choosing Wizet Airline! Enjoy your flight!");
cm.dispose();
if (cm.getPlayer().getMeso() > 4999 && !cm.getPlayer().haveItem(4031731)) {
if(cm.canHold(4031731, 1)) {
cm.gainMeso(-5000);
cm.gainItem(4031731);
cm.sendOk("Thank you for choosing Wizet Airline! Enjoy your flight!");
cm.dispose();
}
else {
cm.sendOk("You don't have a free slot on your ETC inventory for the ticket, please make a room beforehand.");
cm.dispose();
}
} else {
cm.sendOk("You do not have enough mesos or you've already purchased a ticket.");
cm.dispose();