I'm using Browns RS2HD that he released and i'm using h9s sendCreateGroundItem method which is
Code:
public void sendCreateGroundItem(FloorItem item) {
sendCoords(item.getLocation());
StaticPacketBuilder spb = new StaticPacketBuilder().setId(232);
spb.addLEShort(item.getAmount());
spb.addByteA(0);
spb.addLEShortA(item.getId());
player.getSession().write(spb.toPacket());
}
and in my drop item packet i'm using
Code:
private void drop(Player player, IoSession session, Packet packet) {
int slot = packet.readShort();
packet.readShort();
int interfaceId = packet.readShort();
int id = packet.readLEShortA() & 0xFFFF;
switch (interfaceId) {
case 149:
if (slot < 0 || slot >= Inventory.SIZE || player.getInventory().getContainer().get(slot) == null) {
return;
}
Item item = player.getInventory().getContainer().get(slot);
player.getInventory().getContainer().set(slot, null);
player.getInventory().refresh();
World.getInstance().getItemManager().createGroundItem(player, item);
World.getInstance().getItemManager().refresh(player);
break;
}
}
Yeah it is calling the method but the item does not get shown on the floor.
Also added some debugging to make sure the ground item was registered, but still didn't show.:
Code:
Item Position = X = 3225,Y =3219
Player Position = X = 3225,Y =3219
Size = 2//Total Drops