Rename and clean up MapleInventoryManipulator

This commit is contained in:
P0nk
2021-09-09 20:55:07 +02:00
parent 7c61df6887
commit b2cbb65c6a
47 changed files with 292 additions and 287 deletions

View File

@@ -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)) {

View File

@@ -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");