Thread: Item dont get showed at interface?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Item dont get showed at interface? 
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    How do i get an item showed at this interface ? i think this is right but the Component id is wrong i think





    my code

    Code:
    if (cmd[0].equals("test")) {
    				player.getInterfaceManager().sendInterface(1123);
    				player.getPackets().sendItemOnIComponent(1123, 86, 13740, 1);
    				return true;
    				}
    Reply With Quote  
     

  2. #2  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Code:
    				if (cmd[0].equals("test")) {
    				    player.getInterfaceManager().sendInterface(1123);
    				    for (int index : 10000) {
    				        player.getPackets().sendItemOnIComponent(1123, index, index, 1);
    				    }
    				    return true;
    				}
    That will do the same you had, but this will print item id to the id of the config, to the config's place. So like.. If the first config happens to be 4151, a whip will show in that box.
    I don't recommend using this for anything other than debugging and testing...
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    ye so what do i add now at the red market things?


    to get like a divine showed up?

    Code:
    if (cmd[0].equals("test")) {
    				    player.getInterfaceManager().sendInterface(1123);
    				    for (int index : 10000) {
    				        player.getPackets().sendItemOnIComponent(1123, index,index , 1);
    				    }
    				    return true;
    				}
    Reply With Quote  
     

  4. #4  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    I posted that code for you to take and paste in and use.. There's no editting of those.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    but if i only use this, its not working ? lol

    Code:
    if (cmd[0].equals("test")) {
    				    player.getInterfaceManager().sendInterface(1123);
    				    for (int index : 10000) {
    				        player.getPackets().sendItemOnIComponent(1123, index,index , 1);
    				    }
    				    return true;
    				}
    Reply With Quote  
     

  6. #6  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Change 10000 to 1000 or 100...
    And if the items change from the first post, put the picture in here so I can see what they are.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    if i add this code i get this error now.


    Code:
    tarting...
    src\com\rs\game\player\content\Commands.java:1165: error: for-each not applicabl
    e to expression type
                                       for (int index : 1000) {
                                                        ^
     required: array or java.lang.Iterable
     found:    int
    1 error

    with this command

    Code:
    if (cmd[0].equals("test")) {
    				    player.getInterfaceManager().sendInterface(1123);
    				    for (int index : 1000) {
    				        player.getPackets().sendItemOnIComponent(1123, index,index , 1);
    				    }
    				    return true;
    				}
    Reply With Quote  
     

  8. #8  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Code:
    if (cmd[0].equals("test")) {
    				    player.getInterfaceManager().sendInterface(1123);
    				    for (int index = 0; index <= 1000; index++) {
    				        player.getPackets().sendItemOnIComponent(1123, index,index , 1);
    				    }
    				    return true;
    				}
    Sorry, use that. I forgot the other was only for arrays or whatever..
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2013
    Posts
    546
    Thanks given
    4
    Thanks received
    1
    Rep Power
    11
    im getting client crash if i do this command l0l
    Reply With Quote  
     

  10. #10  
    Donator

    Frosty Teh Snowman's Avatar
    Join Date
    Sep 2007
    Posts
    1,084
    Thanks given
    86
    Thanks received
    256
    Rep Power
    103
    Just add my Skype.
    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. Bank - item dont show in inv
    By Rifblood in forum Help
    Replies: 6
    Last Post: 09-20-2011, 09:09 PM
  2. How can I show 2 interfaces at once?
    By fffrunegod in forum Help
    Replies: 3
    Last Post: 07-20-2011, 08:56 AM
  3. Replies: 1
    Last Post: 11-27-2009, 05:30 AM
  4. items dont show in invy for trade
    By zach. in forum Help
    Replies: 3
    Last Post: 03-04-2009, 05:12 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
  •