Originally Posted by
Terrorblade
Code:
WorldPacket data(SMSG_PET_SPELLS * 4 + 22);
data << GetGUID();
data << uint16(0x0000);//pet family
data << uint32(0x00000000);//unk
data << uint32(0x00000101);//bar type
for (int i = 0; i < 10; ++i)
{
if(i < 5)
data << uint16(m_vehicledata->spells[i]) << uint8(0) << uint8(i+8);
else
data << uint16(0) << uint8(0) << uint8(i+8);
}
data << uint16(0)
<< uint16(DEFAULT_SPELL_STATE);
data << uint8(0);
player->GetSession()->SendPacket(&data);
which is very close to what it is on sandshroud
BROMANDUDE!
The error you are getting is here.
Code:
WorldPacket data(SMSG_PET_SPELLS * 4 + 22);
Should be this.
Code:
WorldPacket data(SMSG_PET_SPELLS, 63);