You need to send the interface.
|
|
This is the code im using, note that it is in interfacemanager.java.
For some reason the text that i put in the IComponent method wont show up on the interface ingame, im using the interface 1160.Code:public void sendChallanges() { player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 26, "Woodcutting");
You need to send the interface.
Heres the code... Still doesn't work. The text isnt showing up on the component id's?
Code:} public void sendChallanges() { player.getPackets().sendWindowsPane(1160, 0); player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 26, "Woodcutting");
How are you sending the Interface? You could make a Button/Command and use:
Code:case "challenges": player.getInterfaceManager().sendInterface(1160); player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 26, "Woodcutting"); for (int i = 100; i < 300; i++) player.getPackets().sendIComponentText(275, i, ""); return;
You'res works, but only when i click i button in the interface, i just want it to send the text simply by opening the interface with a command or dialogue.
Edit: Tried this
Doesn't work.Code:public void sendChallangeSystem() { player.getPackets().sendWindowsPane(1160, 0); player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 26, "Woodcutting"); for (int i = 100; i < 300; i++) player.getPackets().sendIComponentText(275, i, "");
Code:if (cmd[0].equalsIgnoreCase("daily")) { player.getInterfaceManager().sendInterface(1160); player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 44, "Woodcutting"); player.getPackets().sendIComponentText(1160, 46, "Mining"); player.getPackets().sendIComponentText(1160, 48, "Smithing"); player.getPackets().sendIComponentText(1160, 50, "Farming"); player.getPackets().sendIComponentText(1160, 52, "Prayer"); player.getPackets().sendIComponentText(1160, 54, "Summoning"); player.getPackets().sendIComponentText(1160, 56, "Construction"); player.getPackets().sendIComponentText(1160, 26, ""); player.getPackets().sendIComponentText(1160, 28, ""); player.getPackets().sendIComponentText(1160, 30, ""); player.getPackets().sendIComponentText(1160, 32, ""); player.getPackets().sendIComponentText(1160, 34, ""); player.getPackets().sendIComponentText(1160, 36, ""); player.getPackets().sendIComponentText(1160, 39, ""); player.getPackets().sendIComponentText(1160, 40, ""); }
Already had all that, but thanks anyways, appreciate it. Anyways that's not what i was looking for, i need the method to be inside of interfacemanager.java so the interface has those texts weather or not i open it with a dialogue, object, or command. Heres my current code.
I'm pretty sure sending it has something to do with this code...Code:public void sendChallangeSystem() { player.getPackets().sendInterface(true, 1160, 11, 1160); player.getPackets().sendIComponentText(1160, 75, "Daily Challange Noticeboard"); player.getPackets().sendIComponentText(1160, 41, "Skilling:"); player.getPackets().sendIComponentText(1160, 44, "Woodcutting"); player.getPackets().sendIComponentText(1160, 46, ""); player.getPackets().sendIComponentText(1160, 48, ""); player.getPackets().sendIComponentText(1160, 50, ""); player.getPackets().sendIComponentText(1160, 52, ""); player.getPackets().sendIComponentText(1160, 54, ""); player.getPackets().sendIComponentText(1160, 56, "");
Code:player.getPackets().sendInterface(
Bump
| « Need help with running source. | Client Issues 562/668 » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |