Thread: Inventory interface bank id

Results 1 to 3 of 3
  1. #1 Inventory interface bank id 
    Registered Member CyberShades's Avatar
    Join Date
    Jun 2012
    Posts
    809
    Thanks given
    246
    Thanks received
    65
    Rep Power
    39
    What is the interface id of when you bank and the inventory goes into another mode where you can store stuff and shit.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2015
    Posts
    607
    Thanks given
    520
    Thanks received
    660
    Rep Power
    0
    When a player opens bank..
    Code:
    getPlayer().getPacketSender().sendItemContainer(getPlayer().getInventory(), INVENTORY_INTERFACE_ID); 
    //INVENTORY_INTERFACE_ID = 5064
    Reply With Quote  
     

  3. #3  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    There's no mode, you send the ItemOnInterface packet.

    Code:
    /**
     * The {@link OutgoingPacket} that sends an array of items on an interface.
     * 
     * @author SeVen
     */
    public class ItemOnInterfacePacket extends OutgoingPacket {
    
    	/**
    	 * The id of the interface to display the items on.
    	 */
    	private final int interfaceId;
    	
    	/**
    	 * The items to display.
    	 */
    	private final Item[] items;
    	
    	/**
    	 * Creates a new {@link ItemOnInterfacePacket}.
    	 * 
    	 * @param interfaceId
    	 * 		The id of the interface to display the items on.
    	 * 
    	 * @param items
    	 * 		The items to display.
    	 */
    	public ItemOnInterfacePacket(int interfaceId, Item[] items) {
    		super(53, PacketHeader.VARIABLE_SHORT, 2048);
    		this.interfaceId = interfaceId;
    		this.items = items;
    	}
    
    	@Override
    	public PacketBuilder dispatch(Player player) {
    		player.getContext().prepare(this, builder);
    		builder.putShort(interfaceId);
    		builder.putShort(items.length);
    		for(Item item : items) {
    			if (item != null) {
    			if(item.getAmount() > 254) {
    				builder.putByte(255);
    				builder.putInt(item.getAmount(), ByteOrder.INVERSE);				
    			} else {
    				builder.putByte(item.getAmount());
    			}
    			builder.putShort(item.getId() + 1, ByteValue.ADDITION, ByteOrder.LITTLE);
    			} else {
    				builder.putByte(0);
    				builder.putShort(0, ByteValue.ADDITION, ByteOrder.LITTLE);
    			}			
    		}
    		builder.endVariableShortPacketHeader();
    		return builder;
    	}
    
    }
    opcode 53.

    And you use the container interface to display items.

    The interface client-sided has to be of type container (0) or inventory (2) to show items. 0 shows items with a scroll bar, 2 doesn't.

    Here are some container interfaces in the 317 client.
    Code:
    	public static final int STORE_BANK = 5064;
    	
    	public static final int WITHDRAW_BANK = 5382;
    	
    	public static final int DEPOSIT_BOX = 7423;
    
            public static final int INVENTORY = 3214;
    Attached image
    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. Replies: 19
    Last Post: 11-18-2016, 11:18 AM
  2. Inventory Interface ID ?
    By M Peter in forum Help
    Replies: 12
    Last Post: 03-25-2010, 08:14 PM
  3. Interface Child ID's (0-759)
    By Anthony-| in forum Downloads
    Replies: 12
    Last Post: 03-10-2009, 09:12 PM
  4. [525]Interface frames/ids
    By Anthony-| in forum Requests
    Replies: 13
    Last Post: 01-13-2009, 04:32 AM
  5. Multi Swords Interface/String ID?
    By Extea in forum Requests
    Replies: 1
    Last Post: 11-25-2008, 02:21 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •