Correction to structure of some packets. (#240)

* Correction to packet MSG_QUEST_PUSH_RESULT.

* Packets SMSG_PET_NAME_INVALID, SMSG_RAID_GROUP_ONLY, SMSG_OPEN_CONTAINER

* Correction to packet SMSG_TRANSFER_ABORTED.

* Implement SMSG_MOUNTRESULT, SMSG_DISMOUNTRESULT.

* Remove handlers for non-existent opcodes.

* Rename SMSG_CAST_FAILED to SMSG_CAST_RESULT.

* Fix guid sent in SMSG_PLAYERBOUND.

* Implement SMSG_INVALIDATE_PLAYER.

* Implement CMSG_MOVE_SET_RAW_POSITION.

* Corrections to SMSG_LOGOUT_RESPONSE, SMSG_*_QUERY_RESPONSE.

* Correction to SMSG_GAMEOBJECT_QUERY_RESPONSE, guild related enum.

* Fix spacing.

* Few SMSG_CHANNEL chat opcodes.

* Correction to packets SMSG_READ_ITEM_OK, SMSG_READ_ITEM_FAILED.

* Revise packets SMSG_QUESTGIVER_QUEST_FAILED, SMSG_QUESTUPDATE_FAILED.

* Remove extra value from SMSG_SPELLHEALLOG, SMSG_QUESTGIVER_REQUEST_ITEMS.

* Corrections to SMSG_BUY_FAILED, SMSG_SELL_ITEM, SMSG_BUY_BANK_SLOT_RESULT and petition signing.

* We don't need those brackets.

* Move SendGameObjectCustomAnim() to GameObject class.

* Implement packet SMSG_GAMEOBJECT_RESET_STATE.

* Refactor bg group queue checks to implement error messages for SMSG_GROUP_JOINED_BATTLEGROUND.

* Add back text error.

* Correct ResponseCodes, ActionFeedback enums.

* Correct SMSG_PARTY_MEMBER_STATS_FULL size for offline member.

* Implement SMSG_SET_FACTION_ATWAR.

* Corrections to SMSG_UPDATE_INSTANCE_OWNERSHIP, SMSG_UPDATE_LAST_INSTANCE, SMSG_INSTANCE_RESET_FAILED.

* Don't send reset error to offline player.
This commit is contained in:
brotalnia
2017-10-27 17:25:43 +03:00
committed by GitHub
parent 4b973153a2
commit b9b006db08
56 changed files with 578 additions and 498 deletions
-8
View File
@@ -2006,14 +2006,6 @@ void WorldObject::SendObjectDeSpawnAnim(ObjectGuid guid)
SendObjectMessageToSet(&data, true);
}
void WorldObject::SendGameObjectCustomAnim(ObjectGuid guid, uint32 animId /*= 0*/)
{
WorldPacket data(SMSG_GAMEOBJECT_CUSTOM_ANIM, 8 + 4);
data << ObjectGuid(guid);
data << uint32(animId);
SendObjectMessageToSet(&data, true);
}
bool WorldObject::isWithinVisibilityDistanceOf(Unit const* viewer, WorldObject const* viewPoint, bool inVisibleList) const
{
if (viewer->IsTaxiFlying())