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?