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:
@@ -177,11 +177,11 @@ function action(mode, type, selection) {
|
||||
if (!complete)
|
||||
cm.sendOk("Are you sure you got all the items required? Double check it!");
|
||||
else {
|
||||
if (cm.canHold(item)) {
|
||||
if (cm.canHold(item, qty)) {
|
||||
if (mats instanceof Array) {
|
||||
for (var i = 0; i < mats.length; i++)
|
||||
cm.gainItem(mats[i], -(matQty[i] * qty));
|
||||
}else
|
||||
} else
|
||||
cm.gainItem(mats, -(matQty * qty));
|
||||
cm.gainMeso(-(cost * qty));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user