Wow you go all crazy on having this and you release it xD? repped
|
|

creditsCode:public void setPlayerOption(Player p, String option, int slot) { if (p == null || p.stream == null || p.disconnected[0]) { return; } p.stream.createFrameVarSize(241); p.stream.writeByteS(0); p.stream.writeByte(slot); p.stream.writeString(option); p.stream.endFrameVarSize(); }
99% luke132
1% me for umm i believe i got one stream right :l (if not then 100% to luke132)
Wow you go all crazy on having this and you release it xD? repped


You almost have it full.
The "byteS" should be 1 if the option is above "Walk here," and 0 if it is below it.Code:public void sendPlayerOption(String option, int slot, boolean top) { player.getSession().write(new StaticPacketBuilder().setId(241) .setSize(Packet.Size.VariableByte) .addByte((byte)(128 - (top ? 1 : 0))) .addByte((byte)slot) .addString(option) .toPacket()); }

| « [525]Players Command With List And Ranks[525] | Proper rune requirments.. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |