Thread: Interfaces and adding text

Results 1 to 8 of 8
  1. #1 Interfaces and adding text 
    Registered Member
    Join Date
    Apr 2013
    Posts
    61
    Thanks given
    2
    Thanks received
    2
    Rep Power
    36
    I'm trying to implement the skill menus for the skills.

    However, I can get the interface working for member skills, but I can't place text because I don't know what or how to find what childId is used for it.

    e.g.

    Code:
    case 320:
                	switch(buttonId) {
                	case 125:
                		player.getActionSender().sendInterface(499, false);
                		player.getActionSender().sendString("This is some text", 499, 30); //I have tried 1-30 and it doesn't display text, but higher causes client to log out with error
                		break;
                	}
    Code:
    public void sendString(String string, int interfaceId, int childId) {
    		int sSize = string.length() + 5;
    		StaticPacketBuilder spb = new StaticPacketBuilder().setId(179)
    				.addByte((byte) (sSize / 256))
    				.addByte((byte) (sSize % 256))
    				.addString(string)
    				.addShort(childId)
    				.addShort(interfaceId);
    		player.getSession().write(spb.toPacket());
    	}
    https://imgur.com/a/ToY83gm



    Thanks
    Reply With Quote  
     

  2. #2  
    Banned


    Join Date
    Mar 2010
    Posts
    1,854
    Thanks given
    693
    Thanks received
    1,110
    Discord
    View profile
    Rep Power
    0
    Code:
    for(int i = 0; i <= 50000; i++) {
    player.getActionSender().sendString("child id: "+i, 499, i);
    }
    this trick will show u the child id

    just typed this in reply box and I don't code soz if u get syntax errors
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    61
    Thanks given
    2
    Thanks received
    2
    Rep Power
    36
    Quote Originally Posted by Women View Post
    Code:
    for(int i = 0; i <= 50000; i++) {
    player.getActionSender().sendString("child id: "+i, 499, i);
    }
    this trick will show u the child id

    just typed this in reply box and I don't code soz if u get syntax errors
    I know for the quest interface scroll for a quest that the child ids start at 11, which is center of playing screen, but with the same child id it doesnt work with the skill menu.

    EDIT: didn't work because some values cause errors, and thus log my character out.
    Reply With Quote  
     

  4. #4  
    Banned


    Join Date
    Mar 2010
    Posts
    1,854
    Thanks given
    693
    Thanks received
    1,110
    Discord
    View profile
    Rep Power
    0
    Quote Originally Posted by gilbo184 View Post
    I know for the quest interface scroll for a quest that the child ids start at 11, which is center of playing screen, but with the same child id it doesnt work with the skill menu.

    EDIT: didn't work because some values cause errors, and thus log my character out.
    maybe because 50000 is too high otherwise you'd have to show the error to know

    anyway the idea is to loop through all of the values and display them on the interface so you know which value is associated to that line
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2013
    Posts
    61
    Thanks given
    2
    Thanks received
    2
    Rep Power
    36
    Quote Originally Posted by Women View Post
    maybe because 50000 is too high otherwise you'd have to show the error to know

    anyway the idea is to loop through all of the values and display them on the interface so you know which value is associated to that line
    Yeah I understand what you are saying and I think that is a good way. But say i = 50, the client crashes for what ever reason. I tried looping 1-30 and no text appears on the screen.

    ERROR:
    Code:
    Error: Class14_Sub8_Sub35:132 Class14_Sub5:51 client:1693 Applet_Sub1:1004 Applet_Sub1:647 java.lang.Thread.run | java.lang.Throwable | T2 - 179,179,179 - 17,3209,3219 - 99,104,105,108,100,32,105,100,58,32,50,54,0,0,26,1,-13,
    Reply With Quote  
     

  6. #6  
    Contributor

    Rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    988
    Thanks given
    789
    Thanks received
    839
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Women View Post
    maybe because 50000 is too high otherwise you'd have to show the error to know

    anyway the idea is to loop through all of the values and display them on the interface so you know which value is associated to that line
    love u women but higher rev is parent -> child, not 50,000 length array ob: a component has a hash
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Registered Member
    Join Date
    Apr 2013
    Posts
    61
    Thanks given
    2
    Thanks received
    2
    Rep Power
    36
    Still can't figure out why 1-30 doesn't display any text on the interface.
    Reply With Quote  
     

  9. #8  
    Banned


    Join Date
    Mar 2010
    Posts
    1,854
    Thanks given
    693
    Thanks received
    1,110
    Discord
    View profile
    Rep Power
    0
    soz didnt realize.. i stay away from high rev, post in 503+ section
    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. Interface 34 (Adding text)
    By Skrew in forum Help
    Replies: 4
    Last Post: 10-21-2015, 11:43 PM
  2. Adding My Bounty Hunter Interfaces and Skulls
    By TheRedArmy in forum Tutorials
    Replies: 45
    Last Post: 09-28-2010, 02:11 PM
  3. Replies: 2
    Last Post: 12-03-2009, 02:28 PM
  4. Replies: 4
    Last Post: 02-05-2009, 07:56 AM
  5. Replies: 22
    Last Post: 06-05-2008, 05:01 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
  •