Rename and clean up MapleInventoryType
This commit is contained in:
@@ -15,8 +15,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
|
||||
else if(status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() < 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) {
|
||||
qm.getPlayer().dropMessage(1, "USE inventory full.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -14,8 +14,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
|
||||
else if(status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
qm.sendOk("Please free a EQUIP inventory slot to receive the reward.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -17,8 +17,8 @@ function end(mode, type, selection) {
|
||||
|
||||
if (status == 0) {
|
||||
if (qm.haveItem(4031092, 10)) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if (qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if (qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
qm.sendOk("Well done! You brought back all the #t4031092# that were missing. Here, take this scroll as a token of my gratitude...");
|
||||
} else {
|
||||
qm.sendOk("Free a space on your USE inventory before receiving your prize.");
|
||||
|
||||
@@ -15,8 +15,8 @@ function end(mode, type, selection) {
|
||||
}
|
||||
|
||||
else if(status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() < 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() < 1) {
|
||||
qm.getPlayer().dropMessage(1, "USE inventory full.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -13,8 +13,8 @@ function end(mode, type, selection) {
|
||||
if(status == 0) {
|
||||
qm.sendNext("What the? Are you telling me you've already taken out 150 #o4230120#s? And these ... yes, these really are 120 #t4000122#s. I was wondering how you were going to complete this mission all by yourself, but you took care of it just fine. Alright, here ... this is a very important item for me, but please take it.");
|
||||
} else if(status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.EQUIP).getNumFreeSlot() < 1) {
|
||||
qm.sendOk("Please free a EQUIP inventory slot to receive the reward.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -10,8 +10,8 @@ function end(mode, type, selection) {
|
||||
qm.sendNext("Take these #bMana Elixir Pills#k as a token of my gratitude.");
|
||||
}
|
||||
else if (status == 1) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.USE).getNumFreeSlot() >= 1) {
|
||||
qm.gainItem(4000099, -1);
|
||||
qm.gainItem(2000011, 50);
|
||||
qm.gainExp(8000);
|
||||
|
||||
@@ -44,8 +44,8 @@ function end(mode, type, selection) {
|
||||
status--;
|
||||
|
||||
if (status == 0) {
|
||||
const MapleInventoryType = Java.type('client.inventory.MapleInventoryType');
|
||||
if(qm.getPlayer().getInventory(MapleInventoryType.ETC).getNumFreeSlot() < 1) {
|
||||
const InventoryType = Java.type('client.inventory.InventoryType');
|
||||
if(qm.getPlayer().getInventory(InventoryType.ETC).getNumFreeSlot() < 1) {
|
||||
qm.sendOk("Make room on your ETC inventory first.");
|
||||
qm.dispose();
|
||||
return;
|
||||
|
||||
@@ -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