Hi, i have been adding up a few codes for Winter storage and it dosent work, i have no idea why. Check out the codes and tell me if there is anything wrong with it.
packyak.java
Code:
@Override
public boolean submitSpecial(Object object) {
int slotId = (Integer) object;
if (getOwner().getBank().hasBankSpace()) {
getOwner().getBank().depositItem(slotId, 1, false);
getOwner().getPackets().sendGameMessage(
"Your Pack Yak has sent an item to your bank.");
getOwner().setNextGraphics(new Graphics(1316));
getOwner().setNextAnimation(new Animation(7660));
}
return true;
}
Worldpacketsdecoder.java
Code:
} else if (packetId == ITEM_ON_ITEM_PACKET) {
InventoryOptionsHandler.handleItemOnItem(player, stream);
//if (!player.hasStarted() || !player.clientHasLoadedMapRegion()
//|| player.isDead())
//return;
if (player.getLockDelay() > Utils.currentTimeMillis())
return;
@SuppressWarnings("unused")
int itemUsedWithId = stream.readShort();
int toSlot = stream.readShortLE128();
int interfaceId = stream.readInt() >> 16;
@SuppressWarnings("unused")
int interfaceId2 = stream.readInt() >> 16;
@SuppressWarnings("unused")
int fromSlot = stream.readShort();
@SuppressWarnings("unused")
int itemUsedId = stream.readShortLE128();
switch (interfaceId) {
case 747:
case 662:
if (player.getFamiliar() == null
|| player.getFamiliar().getSpecialAttack() != SpecialAttack.ITEM)
return;
player.getFamiliar().submitSpecial(toSlot);
return;
}
- - - Updated - - -
Bump
- - - Updated - - -
still need help