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:
ronancpl
2017-05-10 10:47:05 -03:00
parent ab31f3d487
commit ed6121dd5f
39 changed files with 363 additions and 741 deletions

View File

@@ -41,6 +41,7 @@ function action(mode, type, selection) {
if (mode == 1) {
if (cm.getMeso() < 1500) {
cm.sendNext("I am sorry, but I think you are short on mesos. I am afraid I can't let you ride this if you do not have enough money to do so. Please come back when you have enough money to use this.");
cm.dispose();
} else {
cm.warp(cm.getPlayer().getMapId() == 260020000 ? 261000000 : 260000000, 0);
cm.gainMeso(-1500);