Bump, I would love to know too.
|
Well, i know this is abit stupid considering i make interfaces
BUT, one thing i've never tried is loading an item from the server onto the interface instead of using an image
Any ideas?
Will rep++
Bump, I would love to know too.
if you need the client sided refer to the bob interface i releasedCode:public void itemOnInterface(int interfaceChild, int zoom, int itemId) { if (c.getOutStream() != null && c != null) { c.getOutStream().createFrame(246); c.getOutStream().writeWordBigEndian(interfaceChild); c.getOutStream().writeWord(zoom); c.getOutStream().writeWord(itemId); c.flushOutStream(); } }
Thanks, but looks as if yours' does not stack. You know how to fix that?
Use this one for that
Code:public void itemToInterface(int id, int slot, int column, int amount) { if (c.getOutStream() != null && c != null) { c.outStream.createFrameVarSizeWord(34); c.outStream.writeWord(column); c.outStream.writeByte(4); c.outStream.writeDWord(slot); c.outStream.writeWord(id + 1); c.outStream.writeByte(amount); c.outStream.endFrameVarSizeWord(); } }
Example usage like this?
Code:itemToInterface(1234, 1, 1, 1);
Okay, I'm not the best coder out there, just trying to learn. Thanks.
ty man helped
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |