Thread: 718 annoying interface issue WILL REP + THANK

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 718 annoying interface issue WILL REP + THANK 
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    This is the code im using, note that it is in interfacemanager.java.

    Code:
    public void sendChallanges() {
            player.getPackets().sendIComponentText(1160, 75,  "Daily Challange Noticeboard");
            player.getPackets().sendIComponentText(1160, 41,  "Skilling:");
            player.getPackets().sendIComponentText(1160, 26,  "Woodcutting");
    For some reason the text that i put in the IComponent method wont show up on the interface ingame, im using the interface 1160.
    Reply With Quote  
     

  2. #2  
    Set the World on Fire
    Unsafe's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    59
    Thanks received
    123
    Rep Power
    8
    You need to send the interface.


    Stand up for what you believe in, Even if it means Standing Alone


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    Quote Originally Posted by Unsafe View Post
    You need to send the interface.
    Would i use as method that would look something like this?

    Code:
    player.getPackets().sendWindowsPane(1160, 0);
    Reply With Quote  
     

  4. #4  
    Set the World on Fire
    Unsafe's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    59
    Thanks received
    123
    Rep Power
    8
    Quote Originally Posted by altiar View Post
    Would i use as method that would look something like this?

    Code:
    player.getPackets().sendWindowsPane(1160, 0);
    I believe so, I don't see another way of doing it


    Stand up for what you believe in, Even if it means Standing Alone


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    Quote Originally Posted by Unsafe View Post
    I believe so, I don't see another way of doing it
    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");
    Reply With Quote  
     

  6. #6  
    Set the World on Fire
    Unsafe's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    59
    Thanks received
    123
    Rep Power
    8
    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;


    Stand up for what you believe in, Even if it means Standing Alone


    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    Quote Originally Posted by Unsafe View Post
    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

    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, "");
    Doesn't work.
    Reply With Quote  
     

  9. #8  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    24
    Posts
    3,337
    Thanks given
    801
    Thanks received
    1,185
    Rep Power
    189
    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,  "");
    		}

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    Quote Originally Posted by Santa Hat View Post
    Code:
    			if (cmd[0].equalsIgnoreCase("daily")) {
    		        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.

    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,  "");
    I'm pretty sure sending it has something to do with this code...


    Code:
    player.getPackets().sendInterface(
    Reply With Quote  
     

  12. #10  
    Registered Member
    Join Date
    Jan 2012
    Posts
    341
    Thanks given
    29
    Thanks received
    11
    Rep Power
    12
    Bump
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [$10] Interface issues (2) [REP++]
    By C4llum in forum Help
    Replies: 6
    Last Post: 10-04-2010, 08:17 PM
  2. Replies: 3
    Last Post: 08-14-2010, 06:06 PM
  3. Replies: 0
    Last Post: 08-05-2010, 10:34 AM
  4. [Will Rep++ & Thanks]Client Problem
    By Kedd in forum Help
    Replies: 2
    Last Post: 01-19-2010, 09:23 AM
  5. [DELTA] Need help, will Rep++, thanks.
    By Uhm Kyle in forum Help
    Replies: 11
    Last Post: 10-08-2009, 12:09 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •