Rename and clean up MapleInventoryType
This commit is contained in:
@@ -8,8 +8,8 @@ function end(mode, type, selection) {
|
||||
if (status == 0) {
|
||||
qm.sendOk("Great! You managed to get the herb I need. As a #btoken of gratitude#k, take this item to help on your journey.");
|
||||
} else if (status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if (qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() >= 2) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 2) {
|
||||
if (qm.haveItem(4000294, 1000)) {
|
||||
qm.gainItem(4000294, -1000);
|
||||
qm.gainItem(2040501, 1);
|
||||
|
||||
Reference in New Issue
Block a user