Code:
void HideTitle()
{
byte Packet[] = {0x56, 0x00, 0x00, 0x00};
SendPacket(Packet, 4);
}
void SetTitle(short Id)
{
byte Packet[] = {0x56, 0x00, 0x00, 0x00};
*(short*)(Packet+2) = Id;
SendPacket(Packet, 4);
}
void AttackTarget()
{
byte Packet[] = {0x1C, 0x00, 0x0F};
SendPacket(Packet, 3);
}
void CancelSkill()
{
byte Packet[] = {0x09, 0x00};
SendPacket(Packet, 3);
}
void UseSkill(short sId, short tId)
{
byte Packet[] = {0x20, 0x00, 0x3c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0F, 0x01, 0x0A, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80};
*(short*)(Packet+2 ) = sId;
*(short*)(Packet+20) = tId;
SendPacket(Packet, 27);
}
void CallPet(byte Index)
{
byte Packet[] = {0x64, 0x00, 0x00};
Packet[2] = Index;
SendPacket(Packet, 3);
}
void DropPet(byte Index)
{
byte Packet[] = {0x65, 0x00, 0x00};
Packet[2] = Index;
SendPacket(Packet, 3);
}
void PetAttack(short Id)
{
byte Packet[] = {0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00,
0x00, 0x0F};
*(short*)(Packet+3) = Id;
SendPacket(Packet, 20);
}
void UsePot(short Id, byte Slot)
{
byte Packet[] = {0x32, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
*(short*)(Packet+6) = Id;
Packet[4] = Slot;
SendPacket(Packet, 10);
}
void UsePetFood(short Id, byte Slot)
{
byte Packet[] = {0xA3, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
*(short*)(Packet+6) = Id;
Packet[3] = Slot;
SendPacket(Packet, 10);
}
im not entirely sure if all of them are correct, but yet i was able to sucessfully send em.