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:
@@ -47,12 +47,18 @@ function action(mode, type, selection) {
|
||||
cm.sendGetNumber("Okay, so how many do you want me to make?", 1, 1, 100);
|
||||
else if (status == 2) {
|
||||
var complete = true;
|
||||
|
||||
if (cm.getMeso() < 500000 * selection){
|
||||
cm.sendOk("I'm sorry, but I am NOT doing this for free.");
|
||||
cm.dispose();
|
||||
return;
|
||||
} else if (!cm.haveItem(4004004, 10 * selection))
|
||||
} else if (!cm.haveItem(4004004, 10 * selection)) {
|
||||
complete = false;
|
||||
} else if(!cm.canHold(4005004, selection)) {
|
||||
cm.sendOk("Are you having trouble with no empty slots on your inventory? Sort that out first!");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (!complete)
|
||||
cm.sendOk("I need that ore to refine the Crystal. No exceptions..");
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user