Convert NPC scripts to Graal

This commit is contained in:
P0nk
2021-04-17 21:02:39 +02:00
parent 256e5688e0
commit d2c7023e7b
54 changed files with 127 additions and 168 deletions

View File

@@ -9,10 +9,6 @@
Dragon Evolver
*/
importPackage(Packages.client.inventory);
importPackage(Packages.client.inventory.manipulator);
importPackage(Packages.server);
var status;
function start() {
@@ -105,6 +101,8 @@ function action(mode, type, selection) {
}
} else if (status == 2) {
if (selection == 0) {
const MapleInventoryManipulator = Java.type('client.inventory.manipulator.MapleInventoryManipulator');
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
MapleInventoryManipulator.removeFromSlot(cm.getClient(), MapleInventoryType.CASH, 1, 1, true);
cm.sendOk("Your cash first slot is removed.");
} else if (selection == 1) {