Thread: [525] error pls help (im new at this :D)

Results 1 to 5 of 5
  1. #1 [525] error pls help (im new at this :D) 
    Member
    Join Date
    Sep 2008
    Age
    27
    Posts
    437
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    so i got these errors
    Code:
    src\com\rs2hd\model\Equipment.java:322: sendItems() in com.rs2hd.net.ActionSende
    r cannot be applied to (int,int,int,com.rs2hd.model.Container<com.rs2hd.model.It
    em>)
                    player.getActionSender().sendItems(-1, 64208, 94, equipment);
                                            ^
    src\com\rs2hd\model\Inventory.java:52: sendItems() in com.rs2hd.net.ActionSender
     cannot be applied to (int,int,int,com.rs2hd.model.Container<com.rs2hd.model.Ite
    m>)
                    player.getActionSender().sendItems(-1, 64208, 93, inventory);
                                            ^
    2 errors
    and got this in Actionsender:

    Code:
    	public void sendItems(){//int interfaceId, int childId, int type, Container<Item> inventory) {
    		int main = 149 * 65536 + 0; // interfaceId + childId
    		StaticPacketBuilder spb = new StaticPacketBuilder().setId(236).setSize(Size.VariableShort);
    		spb.addInt(main) // main
    		.addShort(93) // type
    		.addShort(12);
    		for(int i = 0; i < 12; i++) {
    			int item = 14479;
    			int id, amt;
    			if(item == -1) {
    				id = -1;
    				amt = 0;
    			} else {
    				id = 14484;
    				amt = 1;
    			}
    			if(amt > 254) {
    				spb.addByte((byte) 255);
    				spb.addLEInt(amt);
    			} else {
    				spb.addByte((byte) amt);
    			}
    			spb.addLEShortA(id+1);
    		}
    		player.getSession().write(spb.toPacket());
    	}
    can someone help? or relase a basic 525 with equipping?

    NVM! i dont quit
    Reply With Quote  
     

  2. #2  
    Doctor p - Sweet Shop

    Join Date
    Apr 2007
    Age
    28
    Posts
    6,835
    Thanks given
    150
    Thanks received
    584
    Rep Power
    2595
    change
    Code:
    public void sendItems(){//int interfaceId, int childId, int type, Container<Item> inventory) {
    to
    Code:
        public void sendItems(int interfaceId, int childId, int type, Container<Item> inventory) {

    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Sep 2008
    Age
    27
    Posts
    437
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    thanks man im noob now lol

    can you give me some example command? like item etc.. in rs2hd

    cuz idk how never tryed to code rs2hd source

    NVM! i dont quit
    Reply With Quote  
     

  4. #4  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,789
    Discord
    View profile
    Rep Power
    5000
    Quote Originally Posted by Gamepapa View Post
    thanks man im noob now lol

    can you give me some example command? like item etc.. in rs2hd

    cuz idk how never tryed to code rs2hd source
    There are commands in v2.

    Reply With Quote  
     

  5. #5  
    That universal language.
    'Ramon's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    3,026
    Thanks given
    116
    Thanks received
    86
    Rep Power
    3165
    Lelz


    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •