Thread: How do I add in custom interfaces?

Results 1 to 4 of 4
  1. #1 How do I add in custom interfaces? 
    Registered Member
    Join Date
    May 2014
    Posts
    35
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Im looking to add in the commands ::commands, ::rules, :layers but I dont know how to add/change interfaces to display what I want, does anyone know how to do this?

    Thanks.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2013
    Posts
    1,233
    Thanks given
    1
    Thanks received
    493
    Rep Power
    0
    Ok i think your question is "how to send an interface containing 'custom data'"? If im wrong sorry, but to send an interface with a command with Matrix (718) probs will works with others but ye....u use this

    Code:
    player.getInterfaceManager().sendInterface(####);
    TO apply data in that interface:

    Code:
    player.getPackets().sendIComponentText(1245, "what u want it to say....");
    If you want it to contain continous amount of data such as for players:

    Code:
    player.getInterfaceManager().sendInterface(1245);
    				int number = 0;
    					for (int i = 0; i < 100; i++) {
    				player.getPackets().sendIComponentText(1245, i, "");
    				}
    					for(Player p5 : World.getPlayers()) {
    						if(p5 == null)
    						continue;
    						number++;
    						String titles = "";
    						if (player.getRights() == 0 && !p5.isExtremeDonator() && !p5.isDonator()) {
    							 titles = "[Player]"; 
    						 }
    Hopefully that answer's your question
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Jul 2013
    Posts
    594
    Thanks given
    261
    Thanks received
    104
    Rep Power
    247
    Quote Originally Posted by TheAnonyMoose View Post
    Im looking to add in the commands ::commands, ::rules, :layers but I dont know how to add/change interfaces to display what I want, does anyone know how to do this?

    Thanks.
    if the person above me didnt help you any, look on youtube. there are plently of newbie rsps tuts
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    May 2014
    Posts
    35
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Thanks alot for the responses, im just trying to learn as much as I can about server programming before I actually release one (I dont C/P). I want to be able to release good content for my players im not trying to just put some shitty server up.

    Anyways that did help me quite alot '423 million' so the way your block of code works is that you send the interface to the current player and then update it with the information you wanted to display?
    Reply With Quote  
     


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. How do i add a CUSTOM INTERFACE:
    By Assist in forum Help
    Replies: 3
    Last Post: 03-24-2012, 04:00 PM
  2. [PI] How do I add some customs?
    By Martyr in forum Help
    Replies: 9
    Last Post: 02-05-2011, 04:52 AM
  3. How Do I Add a Custom Domain with IIS
    By Exploiter in forum Application Development
    Replies: 2
    Last Post: 07-27-2010, 10:13 PM
  4. Replies: 3
    Last Post: 03-14-2009, 09:14 PM
  5. Replies: 4
    Last Post: 06-17-2008, 08:31 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
  •