Ill do it
|
Can someone convert this so I'm able to use it with Hyperion please?
It's for moving things around on an interface, like the ranging minigame.Code:public void sendFrame70(int componentId, int x, int y) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(70); c.getOutStream().writeWord(x); c.getOutStream().writeWordBigEndian(y); c.getOutStream().writeWordBigEndian(componentId); c.flushOutStream(); } }
Code:public ActionSender sendInterfaceOffset(int interfaceId, int x, int y) { player.write(new PacketBuilder(70).putShort(x).putLEShort(y).putLEShort(interfaceId).toPacket()); return this; }
I think I have the wrong packet, which one is it to move functions on an interface? It's for 474.
Must be one of the red ones under "Packetnumbers Server to Client" at the bottom of the 4th post: http://www.rune-server.org/runescape...-protocol.html
The censored word in the link says: ana lysis.
I'm sorry I can't help you with that yet. But if you insist I'll pick up my old client and continue my investigation of the packets (I'm the original poster).
Name: OffsetInterfaceItem
Number: 76
Purpose: Offsets child interfaces on the parent’s interface.
Data Sent: parentId, childId, xOffset, yOffset
How to send:
Remarks: The offset is in relation to the child’s original position on the parent.Code:bldr.putLEShort(xOffset); bldr.putLEInt(parentId << 16 | childId); bldr.putShortA(yOffset);
-------------------------------------------------------------------
Since the "How to send" code is based on Hyperion: there you have the conversion.
It's packet 76, don't forget to chance that as well.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |