go into ItemHandler.java and search for this:
Code:
public void createGroundItem(Player player, int itemId, int itemX, int itemY, int height, int itemAmount,
int playerId) {
remove that entire method and add this instead of it:
Code:
public void createGroundItem(Player player, int itemId, int itemX, int itemY, int height, int itemAmount,
int playerId) {
if (playerId < 0 || playerId > PlayerHandler.players.length - 1) {
return;
}
Player owner = PlayerHandler.players[playerId];
if (owner == null) {
return;
}
if (itemId > 0 && itemAmount > 0) {
if (itemId >= 2412 && itemId <= 2414) {
player.sendMessage("The cape vanishes as it touches the ground.");
return;
}
/**
* Lootvalue
*/
if (player.lootValue > 0) {
if (ShopAssistant.getItemShopValue(itemId) >= player.lootValue) {
player.getPA().stillGfx(1177, itemX, itemY, height, 5);
player.sendMessage("@[email protected] lootvalue senses a drop valued at or over "
+ Misc.getValueWithoutRepresentation(player.lootValue) + " coins.");
}
}
/**
* Bone crusher
*/
boolean crusher = player.getItems().playerHasItem(13116);
Optional<Bone> bone = Prayer.isOperableBone(itemId);
if (crusher && bone.isPresent()) {
double experience = player.getRechargeItems().hasItem(13114) ? 0.75 : player.getRechargeItems().hasItem(13115) ? 1 : 0.50;
if (itemId == bone.get().getItemId()) {
player.getPA().addSkillXP((int) (bone.get().getExperience() * (player.getMode().getType().equals(ModeType.OSRS) ? 1 : Config.PRAYER_EXPERIENCE) * experience),
Skill.PRAYER.getId(), true);
}
return;
}
if (!Item.itemStackable[itemId] && itemAmount > 0) {
if (itemAmount > 28) {
itemAmount = 28;
}
for (int j = 0; j < itemAmount; j++) {
player.getItems().createGroundItem(itemId, itemX, itemY, 1);
GroundItem item = new GroundItem(itemId, itemX, itemY, height, 1, HIDE_TICKS, owner.playerName);
items.add(item);
}
} else {
player.getItems().createGroundItem(itemId, itemX, itemY, itemAmount);
GroundItem item = new GroundItem(itemId, itemX, itemY, height, itemAmount, HIDE_TICKS,
owner.playerName);
items.add(item);
}
}
}