package l1j.server.server.serverpackets;
import l1j.server.server.Opcodes;
import l1j.server.server.model.Instance.L1PetInstance;
public class S_PetEquipment extends ServerBasePacket {
private static final String S_PET_EQUIPMENT = "[S] S_PetEquipment";
/**
* 【Client】 id:60 size:8 time:1302335819781
* 0000 3c 00 04 bd 54 00 00 00 <...T...
*
* 【Server】 id:82 size:16 time:1302335819812
* 0000 52 25 00 04 bd 54 00 00 0a 37 80 08 7e ec d0 46 R%...T...7..~..F
*/
public S_PetEquipment(int i, L1PetInstance pet, int j) {
writeC(Opcodes.S_OPCODE_PACKETBOX);
writeC(0x25);
writeC(i);
writeD(pet.getId());
writeC(j);
writeC(pet.getAc()); // 寵物防禦
}
@Override
public byte[] getContent() {
return getBytes();
}
@Override
public String getType() {
return S_PET_EQUIPMENT;
}
}