Rename and clean up MapleInventoryManipulator
This commit is contained in:
@@ -101,9 +101,9 @@ function action(mode, type, selection) {
|
||||
}
|
||||
} else if (status == 2) {
|
||||
if (selection == 0) {
|
||||
const MapleInventoryManipulator = Java.type('client.inventory.manipulator.MapleInventoryManipulator');
|
||||
const InventoryManipulator = Java.type('client.inventory.manipulator.InventoryManipulator');
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
MapleInventoryManipulator.removeFromSlot(cm.getClient(), InventoryType.CASH, 1, 1, true);
|
||||
InventoryManipulator.removeFromSlot(cm.getClient(), InventoryType.CASH, 1, 1, true);
|
||||
cm.sendOk("Your cash first slot is removed.");
|
||||
} else if (selection == 1) {
|
||||
if (cm.haveItem(5000029, 2)) {
|
||||
|
||||
@@ -106,7 +106,7 @@ function end(mode, type, selection) {
|
||||
qm.evolvePet(i, after);
|
||||
// var petId = Pet.createPet(rand + 5000049, level, closeness, fullness);
|
||||
// if (petId == -1) return;
|
||||
// MapleInventoryManipulator.addById(qm.getClient(), rand+5000049, 1, "", petId);
|
||||
// InventoryManipulator.addById(qm.getClient(), rand+5000049, 1, "", petId);
|
||||
qm.dispose();
|
||||
} else {
|
||||
qm.dropMessage(1,"Your inventory is full");
|
||||
|
||||
Reference in New Issue
Block a user