You could try this and see if it become a new line.
Code:player.getPacketSender().sendString(OVERLAY, 5, "text1\ntext2");
|
I am trying to change the text in the interface overlay but can't find the child id
How it's original :
How it is now:
the code:
Now I want the text under "text1" and the "0" but can't find the child id. any idea?Code:private static final int OVERLAY = 139; player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY); player.getPacketSender().sendString(OVERLAY, 5, "text1");
You could try this and see if it become a new line.
Code:player.getPacketSender().sendString(OVERLAY, 5, "text1\ntext2");
And if that do not wwork:Code:private static final int OVERLAY = 139; player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY); player.getPacketSender().sendString(OVERLAY, 5, "text1"); player.getPacketSender().sendString(OVERLAY + 1, 5, "text2");
Code:private static final int OVERLAY = 139; player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY); player.getPacketSender().sendString(OVERLAY, 5, "text1\\ntext2");
bump
You could try do something like:
And if nothing show up on any other string then there is something else that overwrite on the interface.Code:private static final int OVERLAY = 139; player.openInterface(InterfaceType.PRIMARY_OVERLAY, OVERLAY); for(int i = 136; i < OVERLAY + 10; i++) player.getPacketSender().sendString(i, 5, "text " + (i - 136));
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |