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:
@@ -46,7 +46,7 @@ function action(mode, type, selection) {
|
||||
}
|
||||
if (status == 1) {
|
||||
cm.sendYesNo(cm.getJobId() == 0 ? "We have a special 90% discount for beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where the 24 Hr Mobile Store is. Would you like to go there for #b1,000 mesos#k?" : "The regular fee applies for all non-beginners. The Ant Tunnel is located deep inside in the dungeon that's placed at the center of the Victoria Island, where 24 Hr Mobile Store is. Would you like to go there for #b10,000 mesos#k?");
|
||||
cost *= cm.getJobId() == 0 ? 10 : 1;
|
||||
cost /= ((cm.getJobId() == 0) ? 10 : 1);
|
||||
} else if (status == 2) {
|
||||
if (cm.getMeso() < cost)
|
||||
cm.sendNext("It looks like you don't have enough mesos. Sorry but you won't be able to use this without it.")
|
||||
|
||||
Reference in New Issue
Block a user