Dropping items in a certain area drops them but the drops dissapear - Need help!
Well since I'm writing a "bug free" dungeoneering base I need this small smuggling problem fixed.
The way I thought is, what if I could stop items from appearing on the ground when I drop them, then I did a few searches and found that it has been done in PI before (Soulsplit) so I was wondering how I would go about doing this.
Heres what I came up with.
I edited the creategrounditem method to this.
Code:
public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) {
if (c.isInTest()) {
c.sendMessage("Your items are dropped and magically disappear!");
deleteItem(itemID,itemAmount);
}
synchronized(c) {
c.getOutStream().createFrame(85);
c.getOutStream().writeByteC((itemY - 8 * c.mapRegionY));
c.getOutStream().writeByteC((itemX - 8 * c.mapRegionX));
c.getOutStream().createFrame(44);
c.getOutStream().writeWordBigEndianA(itemID);
c.getOutStream().writeWord(itemAmount);
c.getOutStream().writeByte(0);
c.flushOutStream();
}
}
However that did nothing to the drops and just sent the message. The item was on the ground.
So I was wondering how would this be done and is it even in this method where I would edit.
Thanks in advance, Mikey :D