![]() |
TrinityCore
|
Player session in the World. More...
#include <WorldSession.h>
Classes | |
| union | ConnectToKey |
| class | DosProtection |
| struct | PlayerDataAccount |
Static Public Member Functions | |
| static void | AddInstanceConnection (WorldSession *session, std::weak_ptr< WorldSocket > sockRef, ConnectToKey key) |
Public Attributes | |
| time_t | m_muteTime |
| std::atomic< time_t > | m_timeOutTime |
Static Public Attributes | |
| static constexpr uint32 | SPECIAL_INIT_ACTIVE_MOVER_TIME_SYNC_COUNTER = 0xFFFFFFFF |
| static constexpr uint32 | SPECIAL_RESUME_COMMS_TIME_SYNC_COUNTER = 0xFFFFFFFE |
Protected Attributes | |
| class WorldSession::DosProtection | AntiDOS |
Private Member Functions | |
| void | ProcessQueryCallbacks () |
| void | moveItems (Item *myItems[], Item *hisItems[]) |
| bool | CanUseBank (ObjectGuid bankerGUID=ObjectGuid::Empty) const |
| void | LogUnexpectedOpcode (WorldPacket *packet, char const *status, const char *reason) |
| Logging helper for unexpected opcodes. | |
| bool | IsLegitCharacterForAccount (ObjectGuid lowGUID) |
| Unit * | ValidateAndGetUnitBeingMoved (ObjectGuid guid, OpcodeClient opcode, bool forStatusAck) const |
| void | ComputeNewClockDelta () |
| WorldSession (WorldSession const &right)=delete | |
| WorldSession & | operator= (WorldSession const &right)=delete |
Friends | |
| class | World |
Definition at line 980 of file WorldSession.h.
| WorldSession::WorldSession | ( | uint32 | id, |
| std::string && | name, | ||
| uint32 | battlenetAccountId, | ||
| std::string && | battlenetAccountEmail, | ||
| std::shared_ptr< WorldSocket > && | sock, | ||
| AccountTypes | sec, | ||
| uint8 | expansion, | ||
| time_t | mute_time, | ||
| std::string && | os, | ||
| Minutes | timezoneOffset, | ||
| uint32 | build, | ||
| ClientBuild::VariantId | clientBuildVariant, | ||
| LocaleConstant | locale, | ||
| uint32 | recruiter, | ||
| bool | isARecruiter | ||
| ) |
WorldSession constructor.
Definition at line 107 of file WorldSession.cpp.
| WorldSession::~WorldSession | ( | ) |
WorldSession destructor.
Definition at line 164 of file WorldSession.cpp.
References _player, _RBACData, _recvQueue, GetAccountId(), LoginDatabase, LogoutPlayer(), m_Socket, and LockedQueue< T, StorageType >::next().
|
privatedelete |
| void WorldSession::AbortLogin | ( | WorldPackets::Character::LoginFailureReason | reason | ) |
Definition at line 1157 of file CharacterHandler.cpp.
References ObjectGuid::Clear(), GetPlayer(), KickPlayer(), m_playerLoading, PlayerLoading(), and SendPacket().
Referenced by WorldSocket::HandleConnectToFailed().
|
static |
Definition at line 309 of file WorldSession.cpp.
References CONNECTION_TYPE_INSTANCE, ERROR_TIMED_OUT, GetConnectToInstanceKey(), HandleContinuePlayerLogin(), m_Socket, and WorldSession::ConnectToKey::Raw.
Referenced by World::UpdateSessions().
| void WorldSession::AddInstanceEnterTime | ( | uint32 | instanceId, |
| SystemTimePoint | enterTime | ||
| ) |
Definition at line 1026 of file WorldSession.cpp.
References _instanceResetTimes.
Referenced by InstanceMap::AddPlayerToMap().
| SQLQueryHolderCallback & WorldSession::AddQueryHolderCallback | ( | SQLQueryHolderCallback && | callback | ) |
Definition at line 1239 of file WorldSession.cpp.
References _queryHolderProcessor, and AsyncCallbackProcessor< T >::AddCallback().
Referenced by HandleCharEnumOpcode(), HandleCharUndeleteEnumOpcode(), HandleContinuePlayerLogin(), InitializeSession(), and Pet::LoadPetFromDB().
| TransactionCallback & WorldSession::AddTransactionCallback | ( | TransactionCallback && | callback | ) |
Definition at line 1234 of file WorldSession.cpp.
References _transactionCallbacks, and AsyncCallbackProcessor< T >::AddCallback().
Referenced by HandleAuctionConfirmCommoditiesPurchase(), HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), and Player::SetPetSlot().
Definition at line 169 of file MovementHandler.cpp.
References _timeSyncClockDelta, GameTime::GetGameTimeMS(), SI64LIT, and TC_LOG_WARN.
Referenced by HandleMoveApplyInertiaAck(), HandleMoveApplyMovementForceAck(), HandleMoveDismissVehicle(), HandleMoveForceGravityModifierChangeAck(), HandleMoveKnockBackAck(), HandleMovementOpcode(), HandleMoveRemoveInertiaAck(), HandleMoveRemoveMovementForceAck(), and HandleMoveSetModMovementForceMagnitudeAck().
| void WorldSession::BuildNameQueryData | ( | ObjectGuid | guid, |
| WorldPackets::Query::NameCacheLookupResult & | lookupData | ||
| ) |
Definition at line 37 of file QueryHandler.cpp.
References WorldPackets::Query::NameCacheLookupResult::Data, ObjectAccessor::FindConnectedPlayer(), WorldPackets::Query::NameCacheLookupResult::Player, RESPONSE_FAILURE, RESPONSE_SUCCESS, and WorldPackets::Query::NameCacheLookupResult::Result.
Referenced by HandleQueryPlayerNames(), and lfg::LFGPlayerScript::OnMapChanged().
| bool WorldSession::CanAccessAlliedRaces | ( | ) | const |
Definition at line 1244 of file WorldSession.cpp.
References EXPANSION_BATTLE_FOR_AZEROTH, and GetAccountExpansion().
Referenced by CriteriaHandler::ModifierSatisfied().
| bool WorldSession::CanOpenMailBox | ( | ObjectGuid | guid | ) |
Definition at line 38 of file MailHandler.cpp.
References _player, GAMEOBJECT_TYPE_MAILBOX, Player::GetGameObjectIfCanInteractWith(), BaseEntity::GetGUID(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), HasPermission(), ObjectGuid::IsAnyTypeCreature(), ObjectGuid::IsGameObject(), rbac::RBAC_PERM_COMMAND_MAILBOX, TC_LOG_WARN, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_MAILBOX.
Referenced by HandleGetMailList(), HandleMailCreateTextItem(), HandleMailDelete(), HandleMailMarkAsRead(), HandleMailReturnToSender(), HandleMailTakeItem(), HandleMailTakeMoney(), and HandleSendMail().
| bool WorldSession::CanSpeak | ( | ) | const |
Definition at line 783 of file WorldSession.cpp.
References GameTime::GetGameTime(), and m_muteTime.
Referenced by HandleChatAddonMessage(), HandleChatMessage(), HandleTextEmoteOpcode(), misc_commandscript::HandleUnmuteCommand(), and SendFeatureSystemStatus().
|
private |
Definition at line 1187 of file ItemHandler.cpp.
References _player, BaseEntity::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::PlayerTalkClass, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_BANKER.
Referenced by HandleAutoBankItemOpcode(), HandleAutoDepositCharacterBank(), HandleAutoStoreBankItemOpcode(), HandleBuyBankTab(), HandleSwapInvItemOpcode(), HandleSwapItem(), and HandleUpdateBankTabSettings().
| bool WorldSession::CheckStableMaster | ( | ObjectGuid | guid | ) |
Definition at line 437 of file PetHandler.cpp.
References GetPlayer(), SPELL_AURA_OPEN_STABLE, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_STABLEMASTER.
Referenced by HandleRequestStabledPets(), and HandleSetPetSlot().
|
private |
Definition at line 1027 of file MovementHandler.cpp.
References _player, _timeSyncClockDelta, _timeSyncClockDeltaQueue, PLAYER_LOCAL_FLAG_OVERRIDE_TRANSPORT_SERVER_TIME, Player::SetPlayerLocalFlag(), and Player::SetTransportServerTime().
Referenced by HandleTimeSync().
| bool WorldSession::DisallowHyperlinksAndMaybeKick | ( | std::string const & | str | ) |
Definition at line 738 of file WorldSession.cpp.
References CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, GetPlayer(), KickPlayer(), sWorld, and TC_LOG_ERROR.
Referenced by HandleJoinChannel().
| void WorldSession::DoLootRelease | ( | Loot * | loot | ) |
Definition at line 269 of file LootHandler.cpp.
References GameObject::AddUse(), Creature::AllLootRemovedFromCorpse(), ObjectGuid::Clear(), CORPSE_DYNFLAG_LOOTABLE, Player::DestroyItem(), Player::DestroyItemCount(), UF::ObjectData::DynamicFlags, ObjectGuid::Empty, GameObjectValue::FishingHole, BaseEntity::ForceUpdateFieldChange(), GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_GATHERING_NODE, Player::GetAELootView(), Item::GetBagSlot(), ObjectAccessor::GetCorpse(), Item::GetCount(), Map::GetCreature(), Map::GetGameObject(), GameObject::GetGoType(), GameObject::GetGOValue(), BaseEntity::GetGUID(), Loot::GetGUID(), Player::GetItemByGuid(), Player::GetLootGUID(), WorldObject::GetMap(), Loot::GetOwnerGUID(), GameObject::GetOwnerGUID(), GetPlayer(), Item::GetSlot(), Item::GetTemplate(), GameObject::GetUseCount(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, ItemTemplate::HasFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), Creature::IsFullyLooted(), GameObject::IsFullyLooted(), ObjectGuid::IsGameObject(), BaseEntity::IsInWorld(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), ITEM_FLAG_HAS_LOOT, LOOT_MILLING, LOOT_PROSPECTING, Loot::loot_type, Player::m_AELootView, Corpse::m_loot, Item::m_loot, Item::m_lootGenerated, Object::m_objectData, BaseEntity::m_values, GameObjectValue::MaxOpens, UF::UpdateFieldHolder::ModifyValue(), Loot::NotifyLootList(), GameObject::OnLootRelease(), Corpse::RemoveCorpseDynamicFlag(), Object::RemoveDynamicFlag(), Loot::RemoveLooter(), Unit::RemoveUnitFlag(), Loot::roundRobinPlayer, Player::SendLootRelease(), Player::SetLootGUID(), GameObject::SetLootState(), UNIT_DYNFLAG_LOOTABLE, and UNIT_FLAG_LOOTING.
Referenced by DoLootReleaseAll(), HandleAutostoreLootItemOpcode(), HandleLootMoneyOpcode(), and HandleLootReleaseOpcode().
| void WorldSession::DoLootReleaseAll | ( | ) |
Definition at line 400 of file LootHandler.cpp.
References _player, DoLootRelease(), and Player::GetAELootView().
Referenced by LogoutPlayer(), Player::RemoveFromWorld(), Player::SendLoot(), and Player::SwapItem().
|
inline |
Definition at line 1100 of file WorldSession.h.
Referenced by HandleRequestAccountData(), and SendAccountDataTimes().
|
inline |
Definition at line 1031 of file WorldSession.h.
Referenced by CanAccessAlliedRaces(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), HandleCharCreateOpcode(), HandleCharEnum(), CriteriaHandler::ModifierSatisfied(), and SendAuthResponse().
|
inline |
Definition at line 1019 of file WorldSession.h.
Referenced by Channel::AddonSay(), Guild::BroadcastAddonToGuild(), Guild::BroadcastToGuild(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuyCommodity(), AuctionHouseObject::CreateCommodityQuote(), Player::DoRandomRoll(), Spell::EffectDuel(), HandleAuctionPlaceBid(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), HandleCalendarInvite(), Battlenet::Services::ClubService::HandleCreateMessage(), Guild::HandleInviteMember(), HandlePartyInviteOpcode(), HandleTextEmoteOpcode(), lfg::LFGMgr::HasIgnore(), Channel::Invite(), and Channel::Say().
|
inline |
Definition at line 1018 of file WorldSession.h.
Referenced by World::AddSession_(), AuctionHouseObject::BuyCommodity(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::DosProtection::EvaluateOpcode(), SocialMgr::GetFriendInfo(), GetPlayerInfo(), Player::GetsRecruitAFriendBonus(), Player::GetStartLevel(), HandleAcceptTradeOpcode(), account_commandscript::HandleAccount2FARemoveCommand(), account_commandscript::HandleAccount2FASetupCommand(), account_commandscript::HandleAccountAddonCommand(), account_commandscript::HandleAccountCommand(), battlenet_account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountLockIpCommand(), account_commandscript::HandleAccountPasswordCommand(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), HandleCharCreateOpcode(), HandleCharCustomizeCallback(), HandleCharCustomizeOpcode(), HandleCharDeleteOpcode(), HandleCharEnum(), HandleCharEnumOpcode(), HandleCharRaceOrFactionChangeOpcode(), HandleCharRenameCallBack(), HandleCharRenameOpcode(), HandleCharUndeleteEnumOpcode(), HandleContinuePlayerLogin(), HandleDismissCritter(), HandleForceSpeedChangeAck(), battlenet_account_commandscript::HandleGameAccountCreateCommand(), HandleMailReturnToSender(), HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), HandleMoveSetModMovementForceMagnitudeAck(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), HandleRandomizeCharNameOpcode(), HandleReorderCharacters(), HandleSendMail(), HandleSignPetition(), misc_commandscript::HandleUnmuteCommand(), HandleWhoIsOpcode(), World::HasRecentlyDisconnected(), InitializeSession(), LoadPermissions(), LoadPermissionsAsync(), LogCommandUsage(), LogoutPlayer(), CriteriaHandler::ModifierSatisfied(), moveItems(), SaveInstanceTimeRestrictions(), SaveTutorialsData(), AuctionHouseObject::SendAuctionWon(), BlackMarketMgr::SendAuctionWonMail(), SendConnectToInstance(), SetAccountData(), and ~WorldSession().
|
inline |
Definition at line 1020 of file WorldSession.h.
Referenced by account_commandscript::HandleAccountOnlineListCommandWithParameters(), and Battlenet::Services::Shared::GameUtilities::JoinRealm().
|
inline |
Definition at line 1023 of file WorldSession.h.
Referenced by Player::AddToWorld(), Player::BuildCreateUpdateBlockForPlayer(), and Player::RemoveFromWorld().
| ObjectGuid WorldSession::GetBattlenetAccountGUID | ( | ) | const |
Definition at line 201 of file WorldSession.cpp.
References _battlenetAccount.
Referenced by World::AddSession_(), GetBattlenetAccountId(), BattlePets::BattlePetMgr::IsJournalLockAcquired(), PlayerAchievementMgr::SendAllData(), PlayerAchievementMgr::SendCriteriaUpdate(), and World::UpdateSessions().
| uint32 WorldSession::GetBattlenetAccountId | ( | ) | const |
Definition at line 196 of file WorldSession.cpp.
References GetBattlenetAccountGUID(), and ObjectGuid::GetCounter().
Referenced by battlenet_account_commandscript::HandleAccountLockCountryCommand(), battlenet_account_commandscript::HandleAccountLockIpCommand(), battlenet_account_commandscript::HandleAccountPasswordCommand(), HandleCharUndeleteOpcode(), HandleGetUndeleteCooldownStatus(), HandleSendMail(), InitializeSession(), BattlePets::BattlePetMgr::LoadFromDB(), CollectionMgr::SaveAccountHeirlooms(), CollectionMgr::SaveAccountMounts(), CollectionMgr::SaveAccountToys(), CollectionMgr::SaveAccountTransmogOutfits(), CollectionMgr::SaveAccountWarbandScenes(), SavePlayerDataAccount(), BattlePets::BattlePetMgr::SaveToDB(), and SendTradeStatus().
|
inline |
Definition at line 1233 of file WorldSession.h.
Referenced by Spell::CheckCast(), Spell::EffectChangeBattlePetQuality(), Spell::EffectEnableBattlePets(), Spell::EffectGrantBattlePetExperience(), Spell::EffectGrantBattlePetLevel(), Spell::EffectHealBattlePetPct(), Spell::EffectLearnSpell(), Spell::EffectUncageBattlePet(), HandleBattlePetClearFanfare(), HandleBattlePetDeletePet(), HandleBattlePetModifyName(), HandleBattlePetRequestJournal(), HandleBattlePetRequestJournalLock(), HandleBattlePetSetBattleSlot(), HandleBattlePetSetFlags(), HandleBattlePetSummon(), HandleBattlePetUpdateNotify(), HandleCageBattlePet(), HandlePlayerLogin(), HandleQueryBattlePetName(), HandleUseCritterItem(), CriteriaHandler::ModifierSatisfied(), achievement_newbie::OnCompleted(), achievement_just_a_pup::OnCompleted(), Player::ResummonBattlePetTemporaryUnSummonedIfAny(), Player::SaveToDB(), Trainer::Trainer::TeachSpell(), Player::UnsummonBattlePetTemporaryIfAny(), CriteriaHandler::UpdateCriteria(), and spell_gen_trainer_heal_cooldown::UpdateReviveBattlePetCooldown().
|
inline |
Definition at line 1229 of file WorldSession.h.
Referenced by HandleCalendarAddEvent(), and HandleCalendarCopyEvent().
|
inline |
Definition at line 1034 of file WorldSession.h.
Referenced by Battlenet::Services::Shared::GameUtilities::GetRealmList(), and Battlenet::Services::Shared::GameUtilities::JoinRealm().
|
inline |
Definition at line 1035 of file WorldSession.h.
Referenced by Battlenet::Services::Shared::GameUtilities::JoinRealm().
|
inline |
Definition at line 1235 of file WorldSession.h.
Referenced by Player::_LoadInventory(), Player::_LoadQuestStatusRewarded(), Player::_StoreOrEquipNewItem(), Player::AddSpell(), AuctionsBucketData::BuildBucketInfo(), AuctionHouseObject::BuildListBuckets(), Spell::CheckCast(), Item::ClearSoulboundTradeable(), Spell::EffectCreateHeirloomItem(), Spell::EffectLearnTransmogIllusion(), Spell::EffectLearnTransmogSet(), Spell::EffectLearnWarbandScene(), HandleCollectionItemSetFavorite(), HandleEquipmentSetSave(), HandleTransmogOutfitNew(), HandleTransmogOutfitUpdateSlots(), HandleTransmogrifyItems(), ConditionMgr::IsPlayerMeetingCondition(), Player::LoadFromDB(), MeetsChrCustomizationReq(), CriteriaHandler::ModifierSatisfied(), Player::MoveItemFromInventory(), Player::ProcessItemCast(), Player::RefundItem(), Player::RewardQuest(), Player::RewardQuestPackage(), Player::SaveToDB(), Player::SendInitialPacketsBeforeAddToMap(), Item::SetNotRefundable(), Player::StoreNewItem(), and Player::VisualizeItem().
|
inline |
Definition at line 1933 of file WorldSession.h.
Referenced by AddInstanceConnection().
|
inline |
Definition at line 1032 of file WorldSession.h.
Referenced by lfg::LFGMgr::GetLockedDungeons(), HandleCharCreateOpcode(), HandleCharEnum(), CriteriaHandler::ModifierSatisfied(), SendAuthResponse(), SendLfgPlayerLockInfo(), and Quest::XPValue().
|
inline |
Definition at line 1206 of file WorldSession.h.
Referenced by WorldSession::DosProtection::EvaluateOpcode(), misc_commandscript::HandlePInfoCommand(), and Player::SaveToDB().
|
inline |
Definition at line 1033 of file WorldSession.h.
Referenced by Battlenet::Services::Shared::GameUtilities::JoinRealm().
|
inline |
Definition at line 1024 of file WorldSession.h.
Referenced by AbortLogin(), CollectionMgr::AddHeirloom(), CollectionMgr::AddItemAppearance(), CollectionMgr::AddMount(), BattlePets::BattlePetMgr::AddPet(), CollectionMgr::AddTemporaryAppearance(), Battlenet::Account::AddToObjectUpdate(), CollectionMgr::AddToy(), CollectionMgr::AddTransmogIllusion(), CollectionMgr::AddTransmogOutfit(), CollectionMgr::AddWarbandScene(), Guild::BroadcastAddonToGuild(), Guild::BroadcastToGuild(), Battlenet::Account::BuildUpdate(), BattlePets::BattlePetMgr::CageBattlePet(), CanUseBank(), CollectionMgr::CheckHeirloomUpgrades(), cast_commandscript::CheckSpellExistsAndIsValid(), CheckStableMaster(), DisallowHyperlinksAndMaybeKick(), ArenaTeam::Disband(), BattlePets::BattlePetMgr::DismissPet(), DoLootRelease(), go_commandscript::DoTeleport(), ChatHandler::GetCreatureFromPlayerMapByDbGuid(), ChatHandler::GetNearbyGameObject(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), ChatHandler::GetPlayer(), ChatHandler::GetPlayerGroupAndGUIDByName(), ChatHandler::getSelectedCreature(), ChatHandler::getSelectedObject(), ChatHandler::getSelectedPlayer(), ChatHandler::getSelectedPlayerOrSelf(), GetSelectedPlayerPetOrOwn(), ChatHandler::getSelectedUnit(), BattlePets::BattlePetMgr::GrantBattlePetExperience(), BattlePets::BattlePetMgr::GrantBattlePetLevel(), Guild::HandleAcceptMember(), battlenet_account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), account_commandscript::HandleAccountPasswordCommand(), battlenet_account_commandscript::HandleAccountPasswordCommand(), HandleActivateTaxiOpcode(), HandleAddFriendOpcode(), HandleAddIgnoreOpcode(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), misc_commandscript::HandleAddItemToCommand(), Guild::HandleAddNewRank(), Battlenet::Services::ClubService::HandleAdvanceStreamViewTime(), misc_commandscript::HandleAppearCommand(), HandleAreaSpiritHealerQueryOpcode(), HandleAreaSpiritHealerQueueOpcode(), HandleAreaTriggerOpcode(), HandleAttackStopOpcode(), HandleAuctionBrowseQuery(), HandleAuctionCancelCommoditiesPurchase(), HandleAuctionConfirmCommoditiesPurchase(), HandleAuctionGetCommodityQuote(), HandleAuctionHelloOpcode(), HandleAuctionListBiddedItems(), HandleAuctionListBucketsByBucketKeys(), HandleAuctionListItemsByBucketKey(), HandleAuctionListItemsByItemID(), HandleAuctionListOwnedItems(), HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), HandleAuctionReplicateItems(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), HandleAutoGuildBankItem(), HandleAutoStoreGuildBankItem(), HandleAutostoreLootItemOpcode(), misc_commandscript::HandleBankCommand(), HandleBankerActivateOpcode(), HandleBattlemasterHelloOpcode(), HandleBattlemasterJoinOpcode(), HandleBinderActivateOpcode(), misc_commandscript::HandleBindSightCommand(), HandleBlackMarketBidOnItem(), HandleBlackMarketOpen(), HandleBlackMarketRequestItems(), HandleBuybackItem(), Guild::HandleBuyBankTab(), HandleBuyItemOpcode(), HandleCancelTempEnchantmentOpcode(), cast_commandscript::HandleCastBackCommand(), cast_commandscript::HandleCastCommand(), cast_commandscript::HandleCastDistCommand(), cheat_commandscript::HandleCasttimeCheatCommand(), HandleChangeSubGroupOpcode(), misc_commandscript::HandleChangeWeather(), HandleChannelCommand(), HandleChannelPassword(), HandleChannelPlayerCommand(), message_commandscript::HandleChannelSetOwnership(), character_commandscript::HandleCharacterLevelCommand(), HandleChatAddonMessage(), HandleChatCanLocalWhisperTargetRequest(), HandleChatIgnoredOpcode(), HandleChatMessage(), HandleChatMessageAFKOpcode(), HandleChatMessageDNDOpcode(), cheat_commandscript::HandleCheatStatusCommand(), HandleClearRaidMarker(), misc_commandscript::HandleComeToMeCommand(), HandleCompleteCinematic(), HandleConfirmRespecWipeOpcode(), HandleContinuePlayerLogin(), HandleConvertRaidOpcode(), cheat_commandscript::HandleCoolDownCheatCommand(), misc_commandscript::HandleCooldownCommand(), Battlenet::Services::ClubService::HandleCreateMessage(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDamageGoCommand(), debug_commandscript::HandleDebugArenaCommand(), debug_commandscript::HandleDebugBecomePersonalClone(), scene_commandscript::HandleDebugSceneCommand(), debug_commandscript::HandleDebugSendQuestPartyMsgCommand(), debug_commandscript::HandleDebugSendSetPhaseShiftCommand(), HandleDeclineGuildInvites(), HandleDeclineNeighborhoodInvites(), Guild::HandleDelete(), HandleDelFriendOpcode(), HandleDelIgnoreOpcode(), modify_commandscript::HandleDeMorphCommand(), misc_commandscript::HandleDevCommand(), HandleDFGetJoinStatus(), misc_commandscript::HandleDieCommand(), HandleDismissCritter(), HandleDoReadyCheckOpcode(), HandleDuelAccepted(), HandleDuelCancelled(), HandleEjectPassenger(), HandleEmoteOpcode(), HandleEnableTaxiNodeOpcode(), cheat_commandscript::HandleExploreCheatCommand(), HandleFarSightOpcode(), misc_commandscript::HandleFreezeCommand(), battlenet_account_commandscript::HandleGameAccountCreateCommand(), gobject_commandscript::HandleGameObjectActivateCommand(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectDeleteCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), HandleGameobjectReportUse(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), HandleGameObjectUseOpcode(), Guild::HandleGetAchievementMembers(), misc_commandscript::HandleGetDistanceCommand(), HandleGetItemPurchaseData(), Battlenet::Services::ClubService::HandleGetMembers(), Battlenet::Services::ClubService::HandleGetStreams(), gm_commandscript::HandleGMFlyCommand(), gm_commandscript::HandleGMListIngameCommand(), gm_commandscript::HandleGMVisibleCommand(), go_commandscript::HandleGoBossCommand(), cheat_commandscript::HandleGodModeCheatCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoOffsetCommand(), go_commandscript::HandleGoQuestCommand(), HandleGossipHelloOpcode(), HandleGossipSelectOptionOpcode(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), misc_commandscript::HandleGUIDCommand(), HandleGuildAcceptInvite(), HandleGuildAddRank(), HandleGuildAssignRank(), HandleGuildBankActivate(), HandleGuildBankBuyTab(), HandleGuildBankDepositMoney(), HandleGuildBankLogQuery(), HandleGuildBankMoneyWithdrawn(), HandleGuildBankQueryTab(), HandleGuildBankSetTabText(), HandleGuildBankTextQuery(), HandleGuildBankUpdateTab(), HandleGuildBankWithdrawMoney(), HandleGuildDeclineInvitation(), HandleGuildDelete(), HandleGuildDeleteRank(), HandleGuildDemoteMember(), HandleGuildEventLogQuery(), HandleGuildGetAchievementMembers(), HandleGuildGetRoster(), HandleGuildInviteByName(), HandleGuildLeave(), HandleGuildNewsUpdateSticky(), HandleGuildOfficerRemoveMember(), Guild::HandleGuildPartyRequest(), HandleGuildPermissionsQuery(), HandleGuildPromoteMember(), HandleGuildQueryNews(), HandleGuildReplaceGuildMaster(), HandleGuildSetAchievementTracking(), HandleGuildSetGuildMaster(), HandleGuildSetMemberNote(), HandleGuildSetRankPermissions(), HandleGuildShiftRank(), HandleGuildUpdateInfoText(), HandleGuildUpdateMotdText(), honor_commandscript::HandleHonorAddKillCommand(), HandleInitiateRolePoll(), HandleInitiateTradeOpcode(), HandleInspectOpcode(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceUnbindCommand(), Guild::HandleInviteMember(), misc_commandscript::HandleItemMoveCommand(), HandleItemRefund(), HandleJoinChannel(), HandleKeyboundOverride(), misc_commandscript::HandleKickPlayerCommand(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllLangCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), learn_commandscript::HandleLearnMySpellsCommand(), HandleLeaveChannel(), HandleLeaveGroupOpcode(), Guild::HandleLeaveMember(), character_commandscript::HandleLevelUpCommand(), HandleLfgJoinOpcode(), HandleLfgLeaveOpcode(), HandleLfgProposalResultOpcode(), HandleLfgSetBootVoteOpcode(), HandleLfgSetRolesOpcode(), HandleLfgTeleportOpcode(), misc_commandscript::HandleLinkGraveCommand(), list_commandscript::HandleListCreatureCommand(), HandleListInventoryOpcode(), list_commandscript::HandleListMailCommand(), list_commandscript::HandleListObjectCommand(), list_commandscript::HandleListRespawnsCommand(), list_commandscript::HandleListScenesCommand(), list_commandscript::HandleListSpawnPointsCommand(), HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), lookup_commandscript::HandleLookupPlayerIpCommand(), lookup_commandscript::HandleLookupQuestCommand(), lookup_commandscript::HandleLookupQuestIdCommand(), HandleLootMasterGiveOpcode(), HandleLootMoneyOpcode(), HandleLootOpcode(), HandleLootReleaseOpcode(), HandleLootRoll(), misc_commandscript::HandleMailBoxCommand(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberLogout(), Guild::HandleMemberWithdrawMoney(), HandleMergeGuildBankItemWithGuildBankItem(), HandleMergeGuildBankItemWithItem(), HandleMergeItemWithGuildBankItem(), HandleMinimapPingOpcode(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), mmaps_commandscript::HandleMmapStatsCommand(), mmaps_commandscript::HandleMmapTestArea(), modify_commandscript::HandleModifyMorphCommand(), modify_commandscript::HandleModifyStandStateCommand(), HandleMountSpecialAnimOpcode(), HandleMoveChangeVehicleSeats(), HandleMoveGuildBankItem(), HandleMovementOpcode(), HandleMoveSplineDoneOpcode(), HandleMoveTeleportAck(), HandleMoveWorldportAck(), misc_commandscript::HandleNearGraveCommand(), HandleNextCinematicCamera(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcAddTempSpawnCommand(), npc_commandscript::HandleNpcAddVendorItemCommand(), HandleNpcDespawnGroup(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), HandleNpcSpawnGroup(), npc_commandscript::HandleNpcTameCommand(), npc_commandscript::HandleNpcUnFollowCommand(), HandleOfferPetition(), HandleOpenItemOpcode(), HandleOpenWrappedItemCallback(), HandleOptOutOfLootOpcode(), HandlePartyInviteOpcode(), HandlePartyInviteResponseOpcode(), HandlePartyUninviteOpcode(), HandlePetAction(), HandlePetActionHelper(), HandlePetCancelAuraOpcode(), HandlePetCastSpellOpcode(), pet_commandscript::HandlePetCreateCommand(), HandlePetitionBuy(), HandlePetitionShowSignatures(), HandlePetSetAction(), HandlePetSpellAutocastOpcode(), HandlePetStopAttack(), misc_commandscript::HandlePlayAllCommand(), HandlePlayerLoginOpcode(), HandlePortGraveyard(), misc_commandscript::HandlePossessCommand(), cheat_commandscript::HandlePowerCheatCommand(), HandlePushQuestToParty(), HandleQueryInspectAchievements(), HandleQuestgiverAcceptQuestOpcode(), HandleQuestgiverHelloOpcode(), HandleRandomRollOpcode(), HandleReadyCheckResponseOpcode(), Guild::HandleRemoveMember(), Guild::HandleRemoveRank(), HandleRepairItemOpcode(), HandleRepopRequest(), HandleRequestPartyJoinUpdates(), HandleRequestPartyMemberStatsOpcode(), HandleRequestStabledPets(), HandleRequestVehicleExit(), HandleRequestVehicleNextSeat(), HandleRequestVehiclePrevSeat(), HandleRequestVehicleSwitchSeat(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), HandleResurrectResponse(), Guild::HandleRoster(), misc_commandscript::HandleSaveCommand(), HandleSaveCUFProfiles(), HandleSaveGuildEmblem(), HandleScenePlaybackCanceled(), HandleScenePlaybackComplete(), HandleSceneTriggerEvent(), HandleSellAllJunkItems(), HandleSellItemOpcode(), send_commandscript::HandleSendItemsCommand(), HandleSendMail(), send_commandscript::HandleSendMailCommand(), send_commandscript::HandleSendMoneyCommand(), Guild::HandleSetAchievementTracking(), HandleSetActionBarToggles(), HandleSetActionButtonOpcode(), HandleSetActiveMoverOpcode(), HandleSetAssistantLeaderOpcode(), Guild::HandleSetEmblem(), HandleSetEveryoneIsAssistant(), HandleSetFactionAtWar(), HandleSetFactionNotAtWar(), Guild::HandleSetInfo(), HandleSetLootSpecialization(), Guild::HandleSetMemberNote(), Guild::HandleSetMemberRank(), Guild::HandleSetMOTD(), Guild::HandleSetNewGuildMaster(), HandleSetPartyAssignment(), HandleSetPartyLeaderOpcode(), HandleSetPvP(), Guild::HandleSetRankInfo(), HandleSetRestrictPingsToAssistants(), HandleSetRoleOpcode(), HandleSetSheathedOpcode(), Battlenet::Services::ClubService::HandleSetStreamFocus(), HandleSetTitleOpcode(), HandleSetWatchedFactionOpcode(), Guild::HandleShiftRank(), HandleSignPetition(), HandleSpiritHealerActivate(), HandleSplitGuildBankItem(), HandleSplitGuildBankItemToInventory(), HandleSplitItemToGuildBank(), HandleStoreGuildBankItem(), HandleSubmitUserFeedback(), Battlenet::Services::ClubService::HandleSubscribe(), Battlenet::Services::ClubMembershipService::HandleSubscribe(), Battlenet::Services::ClubService::HandleSubscribeStream(), misc_commandscript::HandleSummonCommand(), HandleSupportTicketSubmitComplaint(), HandleSuspendTokenResponse(), HandleSwapGuildBankItemWithGuildBankItem(), HandleSwapItemWithGuildBankItem(), HandleSwapSubGroupsOpcode(), HandleTabardVendorActivateOpcode(), cheat_commandscript::HandleTaxiCheatCommand(), HandleTaxiQueryAvailableNodesOpcode(), HandleTaxiRequestEarlyLanding(), tele_commandscript::HandleTeleAddCommand(), tele_commandscript::HandleTeleCommand(), ticket_commandscript::HandleTicketAssignToCommand(), ticket_commandscript::HandleTicketCloseByIdCommand(), ticket_commandscript::HandleTicketCommentCommand(), ticket_commandscript::HandleTicketDeleteByIdCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), HandleTogglePvP(), HandleTrainerBuySpellOpcode(), HandleTrainerListOpcode(), HandleTransmogrifyItems(), misc_commandscript::HandleUnbindSightCommand(), HandleUnlearnSkillOpcode(), misc_commandscript::HandleUnPossessCommand(), misc_commandscript::HandleUnstuckCommand(), Guild::HandleUpdateMemberRank(), HandleUpdateRaidTargetOpcode(), cheat_commandscript::HandleWaterWalkCheatCommand(), message_commandscript::HandleWhispersCommand(), HandleWhoIsOpcode(), CollectionMgr::LoadHeirlooms(), CollectionMgr::LoadItemAppearances(), CollectionMgr::LoadToys(), CollectionMgr::LoadTransmogIllusions(), CollectionMgr::LoadTransmogOutfits(), CollectionMgr::LoadWarbandScenes(), LogCommandUsage(), Guild::MassInviteToEvent(), BattlePets::BattlePetMgr::ModifyName(), ChatHandler::needReportToTarget(), MapSessionFilter::Process(), WorldSessionFilter::Process(), Battlenet::Account::RemoveFromObjectUpdate(), CollectionMgr::RemoveTemporaryAppearance(), ResetTimeOutTime(), SendAuctionHello(), Guild::SendBankList(), SendBindPoint(), SendDiscoverNewTaxiNode(), SendEnchantmentLog(), Guild::SendEventPresenceChanged(), World::SendGlobalGMMessage(), World::SendGMText(), BattlePets::BattlePetMgr::SendJournal(), SendLearnNewTaxiNode(), SendLfgBootProposalUpdate(), SendLfgJoinResult(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgUpdateProposal(), SendListInventory(), SendLoadCUFProfiles(), Guild::SendLoginInfo(), Guild::SendMoneyInfo(), Guild::SendPermissions(), SendPetitionShowList(), PlayerMenu::SendQuestQueryResponse(), CollectionMgr::SendSingleMountUpdate(), SendTaxiMenu(), SendTaxiStatus(), SendTrainerList(), Player::SetPetSlot(), Player::StartLoadingActionButtons(), BattlePets::BattlePetMgr::SummonPet(), Update(), BattlePets::BattlePetMgr::UpdateBattlePetData(), CollectionMgr::UpgradeHeirloom(), ValidateHyperlinksAndMaybeKick(), and ValidateMovementInfo().
|
inline |
Definition at line 1153 of file WorldSession.h.
Referenced by Player::_LoadPlayerData().
| std::string WorldSession::GetPlayerInfo | ( | ) | const |
Definition at line 211 of file WorldSession.cpp.
References _player, GetAccountId(), BaseEntity::GetGUID(), WorldObject::GetName(), ObjectGuid::IsEmpty(), m_playerLoading, and Trinity::StringFormat().
Referenced by Battlenet::WorldserverServiceDispatcher::Dispatch(), Battlenet::WorldserverService< T >::GetCallerInfo(), Handle_EarlyProccess(), Handle_NULL(), HandleAddFriendOpcode(), WorldSocket::HandleAuthContinuedSession(), WorldSocket::HandleAuthSession(), HandleBattleFieldPortOpcode(), HandleChannelCommand(), HandleChannelPassword(), HandleChannelPlayerCommand(), HandleCharRaceOrFactionChangeCallback(), HandleChatMessage(), Battlenet::Services::Shared::GameUtilities::HandleClientRequest(), WorldSocket::HandleConnectToFailed(), HandleDBQueryBulk(), HandleDFGetJoinStatus(), HandleDFGetSystemInfo(), Battlenet::Services::Shared::GameUtilities::HandleGetAllValuesForAttribute(), HandleGuildAddRank(), HandleGuildAssignRank(), HandleGuildBankActivate(), HandleGuildBankBuyTab(), HandleGuildBankDepositMoney(), HandleGuildBankLogQuery(), HandleGuildBankQueryTab(), HandleGuildBankSetTabText(), HandleGuildBankTextQuery(), HandleGuildBankUpdateTab(), HandleGuildBankWithdrawMoney(), HandleGuildDeleteRank(), HandleGuildDemoteMember(), HandleGuildEventLogQuery(), HandleGuildGetRanks(), HandleGuildInviteByName(), HandleGuildOfficerRemoveMember(), Guild::HandleGuildPartyRequest(), HandleGuildPromoteMember(), HandleGuildQueryOpcode(), HandleGuildSetGuildMaster(), HandleGuildSetMemberNote(), HandleGuildSetRankPermissions(), HandleGuildShiftRank(), HandleGuildUpdateInfoText(), HandleGuildUpdateMotdText(), HandleJoinChannel(), HandleLeaveChannel(), HandleLfgJoinOpcode(), HandleLfgLeaveOpcode(), HandleLfgProposalResultOpcode(), HandleLfgSetBootVoteOpcode(), HandleLfgSetRolesOpcode(), HandleLfgTeleportOpcode(), Guild::HandleNewsSetSticky(), WorldSocket::HandlePing(), HandlePlayerChoiceResponse(), Guild::HandleQuery(), HandleRemoveNewItem(), Guild::HandleRoster(), HandleSaveGuildEmblem(), HandleSendMail(), Guild::HandleSetBankTabInfo(), HandleTransmogOutfitNew(), HandleTransmogOutfitUpdateInfo(), HandleTransmogOutfitUpdateSituations(), HandleTransmogOutfitUpdateSlots(), KickPlayer(), Channel::List(), WorldSocket::LogOpcodeText(), LogUnexpectedOpcode(), LogUnprocessedTail(), lfg::LFGPlayerScript::OnLogin(), WorldSocket::ReadDataHandler(), Guild::SendBankLog(), Guild::SendCommandResult(), Guild::SendEventLog(), Guild::SendEventMOTD(), Guild::SendGuildRankInfo(), SendLfgBootProposalUpdate(), SendLfgDisabled(), SendLfgJoinResult(), SendLfgOfferContinue(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgRoleCheckUpdate(), SendLfgRoleChosen(), SendLfgTeleportError(), SendLfgUpdateProposal(), SendLfgUpdateStatus(), Guild::SendMoneyInfo(), Guild::SendNewsUpdate(), SendPacket(), Guild::SendPermissions(), Guild::SendSaveEmblemResult(), Guild::BankTab::SendText(), Pet::Update(), Update(), and ValidateAndGetUnitBeingMoved().
| std::string const & WorldSession::GetPlayerName | ( | ) | const |
Definition at line 206 of file WorldSession.cpp.
References _player, and WorldObject::GetName().
Referenced by WorldSession::DosProtection::EvaluateOpcode(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), misc_commandscript::HandleKickPlayerCommand(), HandleMailTakeItem(), HandleObjectUpdateFailedOpcode(), HandleObjectUpdateRescuedOpcode(), HandleSaveCUFProfiles(), and HandleSendMail().
|
inline |
Definition at line 1937 of file WorldSession.h.
Referenced by HandleAddFriendOpcode(), HandleCalendarInvite(), HandleSendMail(), SendAuctionFavoriteList(), and Player::StartLoadingActionButtons().
| rbac::RBACData * WorldSession::GetRBACData | ( | ) | const |
Definition at line 1478 of file WorldSession.cpp.
References _RBACData.
Referenced by rbac_commandscript::GetRBACData(), account_commandscript::HandleAccountSetSecLevelCommand(), and WorldSocket::LoadSessionPermissionsCallback().
Definition at line 1898 of file WorldSession.h.
Referenced by Battlenet::Services::Shared::GameUtilities::GetRealmList().
|
inline |
Definition at line 1895 of file WorldSession.h.
Referenced by Battlenet::Services::Shared::GameUtilities::JoinRealm().
|
inline |
Definition at line 1216 of file WorldSession.h.
Referenced by Spell::CheckCast(), SocialMgr::GetFriendInfo(), Player::GetsRecruitAFriendBonus(), CriteriaHandler::ModifierSatisfied(), and RestMgr::SetRestBonus().
|
inline |
Definition at line 1029 of file WorldSession.h.
Referenced by CharacterActionIpLogger::CharacterIPLogAction(), WorldSession::DosProtection::EvaluateOpcode(), Player::GetStartLevel(), battlenet_account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountLockCountryCommand(), battlenet_account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), account_commandscript::HandleAccountPasswordCommand(), battlenet_account_commandscript::HandleAccountPasswordCommand(), HandleCharCustomizeCallback(), HandleCharCustomizeOpcode(), HandleCharDeleteOpcode(), HandleCharRaceOrFactionChangeCallback(), HandleCharRaceOrFactionChangeOpcode(), HandleCharRenameCallBack(), HandleCharRenameOpcode(), battlenet_account_commandscript::HandleGameAccountCreateCommand(), lookup_commandscript::HandleLookupPlayerIpCommand(), HandlePlayerLogin(), HandleReportPvPAFK(), server_commandscript::IsOnlyUser(), Battlenet::Services::Shared::GameUtilities::JoinRealm(), LogoutPlayer(), SendConnectToInstance(), and Update().
|
inline |
Definition at line 1017 of file WorldSession.h.
Referenced by SocialMgr::BroadcastToFriendListers(), SocialMgr::GetFriendInfo(), Battlenet::Services::Shared::GameUtilities::GetRealmList(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), misc_commandscript::HandlePInfoCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), Player::IsVisibleGloballyFor(), Channel::JoinChannel(), Battlenet::Services::Shared::GameUtilities::JoinRealm(), Channel::List(), LoadPermissions(), LoadPermissionsAsync(), LogCommandUsage(), Player::UpdateMirrorTimers(), and ValidateMovementInfo().
|
inline |
Definition at line 1199 of file WorldSession.h.
Referenced by Player::_LoadTraits(), Player::_LoadTransmogOutfits(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListAuctionItems(), AuctionHouseObject::BuildListBiddedItems(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListBuckets(), AuctionHouseObject::BuildListOwnedItems(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), ReputationMgr::GetReputationRankName(), ChatHandler::GetSessionDbcLocale(), HandleCharCreateOpcode(), HandleCharCustomizeCallback(), HandleCharRaceOrFactionChangeCallback(), HandleCharRenameOpcode(), HandleCheckCharacterNameAvailability(), HandleDBQueryBulk(), HandleHotfixRequest(), list_commandscript::HandleListRespawnsCommand(), lookup_commandscript::HandleLookupMapIdCommand(), HandleMailCreateTextItem(), HandleWhoOpcode(), Battlenet::Services::Shared::GameUtilities::JoinRealm(), Channel::List(), LogCommandUsage(), Trinity::ChatPacketSender::operator()(), SendAvailableHotfixes(), and World::SendServerMessage().
|
inline |
Definition at line 1200 of file WorldSession.h.
Referenced by PlayerAchievementMgr::CompletedAchievement(), Guild::Create(), ChatHandler::GetSessionDbLocaleIndex(), GetTrinityString(), UF::ViewerDependentValue< UF::ConversationData::LastLineEndTimeTag >::GetValue(), UF::ViewerDependentValue< UF::ConversationLine::StartTimeTag >::GetValue(), HandleCreatureQuery(), HandleGameObjectQueryOpcode(), HandleQueryPageText(), Trinity::LocalizedDo< Localizer >::operator()(), CreatureTextLocalizer< Builder >::operator()(), PlayerMenu::PlayerMenu(), PlayerMenu::SendGossipMenu(), Player::SendPlayerChoice(), PlayerMenu::SendPointOfInterest(), Player::SendPushToPartyResponse(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestListMessage(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), Spell::SendResurrectRequest(), SendTrainerList(), Unit::Whisper(), Unit::Whisper(), and Player::Whisper().
|
inline |
Definition at line 1202 of file WorldSession.h.
Referenced by Guild::AddGuildNews(), CalendarEvent::BuildCalendarMailBody(), Scenario::GetCriteriasProgressFor(), HandleCalendarAddEvent(), HandleCalendarCopyEvent(), HandleCalendarGetCalendar(), HandleCalendarUpdateEvent(), Guild::HandleNewsSetSticky(), Guild::HandleRoster(), Battlenet::Services::Shared::GameUtilities::JoinRealm(), GuildAchievementMgr::Reset(), GuildAchievementMgr::SendAchievementEarned(), PlayerAchievementMgr::SendAchievementInfo(), PlayerAchievementMgr::SendAllData(), GuildAchievementMgr::SendAllData(), QuestObjectiveCriteriaMgr::SendAllData(), GuildAchievementMgr::SendAllTrackedCriterias(), AuctionHouseObject::SendAuctionInvoice(), CalendarMgr::SendCalendarEvent(), Scenario::SendCriteriaUpdate(), PlayerAchievementMgr::SendCriteriaUpdate(), QuestObjectiveCriteriaMgr::SendCriteriaUpdate(), and Guild::SendNewsUpdate().
| char const * WorldSession::GetTrinityString | ( | uint32 | entry | ) | const |
Definition at line 788 of file WorldSession.cpp.
References GetSessionDbLocaleIndex(), and sObjectMgr.
Referenced by Player::_LoadInventory(), Player::AutoUnequipOffhandIfNeed(), ChatHandler::GetTrinityString(), HandleChatMessage(), HandleChatMessageAFKOpcode(), HandleChatMessageDNDOpcode(), HandleInitiateTradeOpcode(), HandleSendMail(), HandleTextEmoteOpcode(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), SendAuctionHello(), and SendNotification().
Definition at line 1108 of file WorldSession.h.
Referenced by HandleTutorialFlag().
| void WorldSession::Handle_EarlyProccess | ( | WorldPackets::Null & | null | ) |
Definition at line 811 of file WorldSession.cpp.
References WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::Handle_NULL | ( | WorldPackets::Null & | null | ) |
Definition at line 806 of file WorldSession.cpp.
References WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAcceptTradeOpcode | ( | WorldPackets::Trade::AcceptTrade & | acceptTrade | ) |
Definition at line 235 of file TradeHandler.cpp.
References _player, WorldPackets::Trade::TradeStatus::BagResult, Player::CanStoreItems(), CharacterDatabase, Spell::CheckCast(), clearAcceptTradeMode(), EQUIP_ERR_CANT_TRADE_ACCOUNT_ITEM, EQUIP_ERR_NOT_ENOUGH_MONEY, EQUIP_ERR_OK, EQUIP_ERR_TOO_MUCH_GOLD, EQUIP_ERR_TRADE_BOUND_ITEM, WorldPackets::Trade::TradeStatus::FailureForYou, GetAccountId(), Map::GetDifficultyID(), BaseEntity::GetGUID(), TradeData::GetItem(), WorldObject::GetMap(), Player::GetMoney(), TradeData::GetMoney(), WorldObject::GetName(), TradeData::GetServerStateIndex(), Player::GetSession(), TradeData::GetSpell(), TradeData::GetSpellCastItem(), TradeData::GetTrader(), Player::HasEnoughMoney(), HasPermission(), TradeData::HasSpellCastItem(), TradeData::IsAccepted(), Player::IsAccountBankPos(), WorldObject::IsWithinDistInMap(), WorldPackets::Trade::TradeStatus::ItemID, Spell::m_CastItem, Spell::m_targets, Player::m_trade, MAX_MONEY_AMOUNT, Player::ModifyMoney(), Player::MoveItemFromInventory(), moveItems(), Spell::prepare(), rbac::RBAC_PERM_LOG_GM_TRADE, Player::SaveInventoryAndGoldToDB(), Spell::SendCastResult(), SendTradeStatus(), TradeData::SetAccepted(), setAcceptTradeMode(), Item::SetGiftCreator(), TradeData::SetSpell(), SpellCastTargets::SetTradeItemTarget(), sLog, SPELL_CAST_OK, sSpellMgr, WorldPackets::Trade::AcceptTrade::StateIndex, WorldPackets::Trade::TradeStatus::Status, TRADE_DISTANCE, TRADE_SLOT_NONTRADED, TRADE_SLOT_TRADED_COUNT, TRADE_STATUS_ACCEPTED, TRADE_STATUS_CANCELLED, TRADE_STATUS_COMPLETE, TRADE_STATUS_FAILED, TRADE_STATUS_STATE_CHANGED, TRADE_STATUS_TOO_FAR_AWAY, and TRIGGERED_FULL_MASK.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleActivateTaxiOpcode | ( | WorldPackets::Taxi::ActivateTaxi & | activateTaxi | ) |
Definition at line 159 of file TaxiHandler.cpp.
References Player::ActivateTaxiPathTo(), ERR_TAXINOTVISITED, ERR_TAXITOOFARAWAY, WorldPackets::Taxi::ActivateTaxi::FlyingMountID, TaxiPathGraph::GetCompleteNodeRoute(), WorldLocation::GetMapId(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldPackets::Taxi::ActivateTaxi::Node, sDB2Manager, Trinity::Containers::SelectRandomContainerElement(), SendActivateTaxiReply(), sMountStore, sObjectMgr, sTaxiNodesStore, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_FLIGHTMASTER, and WorldPackets::Taxi::ActivateTaxi::Vendor.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAddFriendOpcode | ( | WorldPackets::Social::AddFriend & | packet | ) |
Definition at line 38 of file SocialHandler.cpp.
References _player, CharacterCacheEntry::AccountId, AsyncCallbackProcessor< T >::AddCallback(), ObjectGuid::Empty, ObjectAccessor::FindPlayer(), FRIEND_ADDED_OFFLINE, FRIEND_ADDED_ONLINE, FRIEND_ALREADY, FRIEND_ENEMY, FRIEND_LIST_FULL, FRIEND_NOT_FOUND, FRIEND_SELF, BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), GetQueryProcessor(), AccountMgr::GetSecurityAsync(), Player::GetSocial(), Player::GetTeam(), CharacterCacheEntry::Guid, PlayerSocial::HasFriend(), HasPermission(), AccountMgr::IsPlayerAccount(), Player::IsVisibleGloballyFor(), m_GUIDLow, WorldPackets::Social::AddFriend::Name, normalizePlayerName(), WorldPackets::Social::AddFriend::Notes, CharacterCacheEntry::Race, rbac::RBAC_PERM_ALLOW_GM_FRIEND, rbac::RBAC_PERM_TWO_SIDE_ADD_FRIEND, sCharacterCache, PlayerSocial::SetFriendNote(), SOCIAL_FLAG_FRIEND, sRealmList, sSocialMgr, TC_LOG_DEBUG, and Player::TeamForRace().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAddIgnoreOpcode | ( | WorldPackets::Social::AddIgnore & | packet | ) |
Definition at line 129 of file SocialHandler.cpp.
References FRIEND_IGNORE_ADDED, FRIEND_IGNORE_ALREADY, FRIEND_IGNORE_FULL, FRIEND_IGNORE_NOT_FOUND, FRIEND_IGNORE_SELF, GetPlayer(), WorldPackets::Social::AddIgnore::Name, normalizePlayerName(), sCharacterCache, SOCIAL_FLAG_IGNORED, sSocialMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAddonRegisteredPrefixesOpcode | ( | WorldPackets::Chat::ChatRegisterAddonPrefixes & | packet | ) |
Definition at line 1205 of file WorldSession.cpp.
References _filterAddonMessages, _registeredAddonPrefixes, WorldPackets::Array< T, N >::begin(), WorldPackets::Array< T, N >::end(), WorldPackets::Chat::ChatRegisterAddonPrefixes::MAX_PREFIXES, and WorldPackets::Chat::ChatRegisterAddonPrefixes::Prefixes.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAddToy | ( | WorldPackets::Toy::AddToy & | packet | ) |
Definition at line 28 of file ToyHandler.cpp.
References _collectionMgr, _player, Player::CanUseItem(), Player::DestroyItem(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, Item::GetBagSlot(), Object::GetEntry(), Player::GetItemByGuid(), Item::GetSlot(), WorldPackets::Toy::AddToy::Guid, sDB2Manager, and Player::SendEquipError().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAdventureJournalOpenQuest | ( | WorldPackets::AdventureJournal::AdventureJournalOpenQuest & | openQuest | ) |
Definition at line 25 of file AdventureJournalHandler.cpp.
References _player, WorldPackets::AdventureJournal::AdventureJournalOpenQuest::AdventureJournalID, Player::CanTakeQuest(), Unit::GetClass(), BaseEntity::GetGUID(), Player::MeetPlayerCondition(), AdventureJournalEntry::PlayerConditionID, Player::PlayerTalkClass, AdventureJournalEntry::QuestID, sAdventureJournalStore, sDB2Manager, and sObjectMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAdventureJournalUpdateSuggestions | ( | WorldPackets::AdventureJournal::AdventureJournalUpdateSuggestions & | updateSuggestions | ) |
Definition at line 46 of file AdventureJournalHandler.cpp.
References _player, WorldPackets::AdventureJournal::AdventureJournalEntry::AdventureJournalID, WorldPackets::AdventureJournal::AdventureJournalDataResponse::Entries, Unit::GetClass(), Player::MeetPlayerCondition(), WorldPackets::AdventureJournal::AdventureJournalUpdateSuggestions::OnLevelUp, WorldPackets::AdventureJournal::AdventureJournalDataResponse::OnLevelUp, WorldPackets::AdventureJournal::AdventureJournalEntry::Priority, sAdventureJournalStore, sDB2Manager, SendPacket(), and WorldPackets::AdventureJournal::AdventureJournalDataResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAdventureMapStartQuest | ( | WorldPackets::AdventureMap::AdventureMapStartQuest & | startQuest | ) |
Definition at line 54 of file AdventureMapHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanTakeQuest(), WorldPackets::AdventureMap::AdventureMapStartQuest::QuestID, sAdventureMapPOIStore, and sObjectMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAlterAppearance | ( | WorldPackets::Character::AlterApperance & | packet | ) |
Definition at line 1821 of file CharacterHandler.cpp.
References _player, GameObjectTemplate::barberChair, GameObjectTemplate::chairheight, ConditionalChrModelEntry::ChrCustomizationReqID, WorldPackets::Character::AlterApperance::Customizations, WorldPackets::Character::AlterApperance::CustomizedChrModelID, WorldPackets::Character::AlterApperance::CustomizedRace, WorldObject::FindNearestGameObjectOfType(), GAMEOBJECT_TYPE_BARBER_CHAIR, Player::GetBarberShopCost(), Unit::GetClass(), DB2Manager::GetConditionalChrModel(), GameObject::GetGOInfo(), BaseEntity::GetGUID(), Player::GetNativeGender(), Unit::GetRace(), Unit::GetStandState(), GotHaircut, Player::HasEnoughMoney(), Player::InitDisplayIds(), ConditionMgr::IsPlayerMeetingCondition(), MakeChrCustomizationChoiceRange(), Trinity::Containers::MakeIteratorPair(), MeetsChrCustomizationReq(), Player::ModifyMoney(), MoneySpentAtBarberShop, WorldPackets::Character::AlterApperance::NewSex, WorldPackets::Character::BarberShopResult::NoMoney, WorldPackets::Character::BarberShopResult::NotOnChair, ConditionalChrModelEntry::PlayerConditionID, Unit::RestoreDisplayId(), sCharacterCache, sChrCustomizationReqStore, SendPacket(), Player::SetCustomizations(), Player::SetNativeGender(), Unit::SetStandState(), WorldPackets::Character::BarberShopResult::Success, UNIT_STAND_STATE_SIT_LOW_CHAIR, UNIT_STAND_STATE_STAND, Player::UpdateCriteria(), and ValidateAppearance().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAreaSpiritHealerQueryOpcode | ( | WorldPackets::Battleground::AreaSpiritHealerQuery & | areaSpiritHealerQuery | ) |
Definition at line 644 of file BattleGroundHandler.cpp.
References _player, WorldObject::CastSpell(), DIFFICULTY_NONE, Unit::GetAura(), ObjectAccessor::GetCreature(), BaseEntity::GetGUID(), GetPlayer(), WorldPackets::Battleground::AreaSpiritHealerQuery::HealerGuid, Unit::IsAreaSpiritHealer(), Unit::IsAreaSpiritHealerIndividual(), WorldObject::IsWithinDistInMap(), MAX_AREA_SPIRIT_HEALER_RANGE, Player::SendAreaSpiritHealerTime(), SPELL_SPIRIT_HEAL_CHANNEL_SELF, SPELL_SPIRIT_HEAL_PLAYER_AURA, and sSpellMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAreaSpiritHealerQueueOpcode | ( | WorldPackets::Battleground::AreaSpiritHealerQueue & | areaSpiritHealerQueue | ) |
Definition at line 674 of file BattleGroundHandler.cpp.
References _player, ObjectAccessor::GetCreature(), GetPlayer(), WorldPackets::Battleground::AreaSpiritHealerQueue::HealerGuid, Unit::IsAreaSpiritHealer(), WorldObject::IsWithinDistInMap(), MAX_AREA_SPIRIT_HEALER_RANGE, and Player::SetAreaSpiritHealer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAreaTriggerOpcode | ( | WorldPackets::AreaTrigger::AreaTrigger & | packet | ) |
Definition at line 467 of file MiscHandler.cpp.
References _player, Player::AreaExploredOrEventHappens(), AreaTriggerEntry::AreaTriggerActionSetID, WorldPackets::AreaTrigger::AreaTrigger::AreaTriggerID, Player::CanCompleteQuest(), Player::CompleteQuest(), CONDITION_SOURCE_TYPE_AREATRIGGER_CLIENT_TRIGGERED, EnterAreaTriggerWithActionSet, WorldPackets::AreaTrigger::AreaTrigger::Entered, Player::FindQuestSlot(), Player::GetCorpseLocation(), Player::GetGroup(), BaseEntity::GetGUID(), Player::GetInstanceEntrance(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Player::GetOutdoorPvP(), GetPlayer(), Player::GetRestMgr(), Player::GetSession(), Player::HasCorpse(), Quest::HasFlag(), AreaTriggerEntry::ID, Unit::IsAlive(), InnAreaTrigger::IsDBC, Player::isDebugAreaTriggers, Map::IsDungeon(), Player::IsInAreaTrigger(), Unit::IsInFlight(), Player::IsQuestObjectiveCompletable(), Player::IsQuestObjectiveComplete(), LANG_DEBUG_AREATRIGGER_ENTERED, LANG_DEBUG_AREATRIGGER_LEFT, LeaveAreaTriggerWithActionSet, WorldSafeLocsEntry::Loc, Quest::Objectives, InstanceTemplate::Parent, Map::PlayerCannotEnter(), ChatHandler::PSendSysMessage(), QUEST_FLAGS_COMPLETION_AREA_TRIGGER, QUEST_OBJECTIVE_AREATRIGGER, QUEST_STATUS_INCOMPLETE, RAID_GROUP_ERR_ONLY, Unit::RemovePvpFlag(), RestMgr::RemoveRestFlag(), REST_FLAG_IN_TAVERN, Player::ResurrectPlayer(), sAreaTriggerStore, sConditionMgr, SendPacket(), Player::SendQuestUpdateAddCreditSimple(), Player::SendRaidGroupOnlyMessage(), Player::SendTransferAborted(), RestMgr::SetInnTrigger(), Unit::SetPvpFlag(), Player::SetQuestObjectiveData(), sObjectMgr, Player::SpawnCorpseBones(), sScriptMgr, sWorld, TC_LOG_DEBUG, TELE_TO_NOT_LEAVE_TRANSPORT, Player::TeleportTo(), Player::TeleportToBGEntryPoint(), ObjectGuid::ToString(), TRANSFER_ABORT_ALREADY_COMPLETED_ENCOUNTER, TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_LOCKED_TO_DIFFERENT_INSTANCE, TRANSFER_ABORT_MAP_NOT_ALLOWED, TRANSFER_ABORT_MAX_PLAYERS, TRANSFER_ABORT_NEED_GROUP, TRANSFER_ABORT_NOT_FOUND, TRANSFER_ABORT_TOO_MANY_INSTANCES, TRANSFER_ABORT_ZONE_IN_COMBAT, UNIT_BYTE2_FLAG_FFA_PVP, Player::UpdateCriteria(), and Player::UpdateVisibleObjectInteractions().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleArtifactAddPower | ( | WorldPackets::Artifact::ArtifactAddPower & | artifactAddPower | ) |
Definition at line 29 of file ArtifactHandler.cpp.
References _player, AnyArtifactPowerRankPurchased, Player::ApplyArtifactPowerRank(), ARTIFACT_POWER_FLAG_FINAL, ARTIFACT_POWER_FLAG_MAX_RANK_WITH_TIER, ARTIFACT_POWER_FLAG_NO_LINK_REQUIRED, ARTIFACT_POWER_FLAG_SCALES_WITH_NUM_POWERS, WorldPackets::Artifact::ArtifactAddPower::ArtifactGUID, UF::ArtifactPower::ArtifactPowerID, UF::ArtifactPower::CurrentRankWithBonus, ArtifactPowerEntry::Flags, WorldPackets::Artifact::ArtifactAddPower::ForgeGUID, GAMEOBJECT_TYPE_ITEM_FORGE, ItemTemplate::GetArtifactID(), Item::GetArtifactPower(), Player::GetGameObjectIfCanInteractWith(), Player::GetItemByGuid(), Item::GetModifier(), Item::GetTemplate(), Item::GetTotalPurchasedArtifactPowers(), ArtifactPowerEntry::ID, Item::InitArtifactPowers(), Item::IsArtifactDisabled(), Item::IsEquipped(), ITEM_CHANGED, ITEM_MODIFIER_ARTIFACT_TIER, Item::m_itemData, MAX_ARTIFACT_TIER, ArtifactPowerEntry::MaxPurchasableRank, WorldPackets::Artifact::ArtifactAddPower::PowerChoices, UF::ArtifactPower::PurchasedRank, sArtifactLevelXPGameTable, sArtifactPowerStore, sArtifactTierStore, sDB2Manager, Item::SetArtifactPower(), Item::SetArtifactXP(), Item::SetModifier(), Item::SetState(), ArtifactPowerEntry::Tier, and Player::UpdateCriteria().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleArtifactSetAppearance | ( | WorldPackets::Artifact::ArtifactSetAppearance & | artifactSetAppearance | ) |
Definition at line 158 of file ArtifactHandler.cpp.
References _player, WorldPackets::Artifact::ArtifactSetAppearance::ArtifactAppearanceID, ArtifactAppearanceEntry::ArtifactAppearanceSetID, WorldPackets::Artifact::ArtifactSetAppearance::ArtifactGUID, ArtifactAppearanceSetEntry::ArtifactID, WorldPackets::Artifact::ArtifactSetAppearance::ForgeGUID, GAMEOBJECT_TYPE_ITEM_FORGE, ItemTemplate::GetArtifactID(), Item::GetChildItem(), Player::GetChildItemByGuid(), Player::GetGameObjectIfCanInteractWith(), Player::GetItemByGuid(), Unit::GetShapeshiftForm(), Item::GetSlot(), Item::GetTemplate(), ArtifactAppearanceEntry::ID, Item::IsEquipped(), Unit::IsMounted(), ConditionMgr::IsPlayerMeetingCondition(), ITEM_CHANGED, ITEM_MODIFIER_ARTIFACT_APPEARANCE_ID, ArtifactAppearanceEntry::ItemAppearanceModifierID, ArtifactAppearanceEntry::OverrideShapeshiftDisplayID, ArtifactAppearanceEntry::OverrideShapeshiftFormID, Unit::RestoreDisplayId(), sArtifactAppearanceSetStore, sArtifactAppearanceStore, Item::SetAppearanceModId(), Item::SetModifier(), Item::SetState(), Player::SetVisibleItemSlot(), and ArtifactAppearanceEntry::UnlockPlayerConditionID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAttackStopOpcode | ( | WorldPackets::Combat::AttackStop & | packet | ) |
Definition at line 63 of file CombatHandler.cpp.
References Unit::AttackStop(), and GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAttackSwingOpcode | ( | WorldPackets::Combat::AttackSwing & | packet | ) |
Client explicitly checks the following before sending CMSG_ATTACK_SWING packet, so we'll place the same check here. Note that it might be possible to reuse this snippet in other places as well.
Definition at line 28 of file CombatHandler.cpp.
References _player, ASSERT, Unit::Attack(), VehicleSeatEntry::Flags, ObjectAccessor::GetUnit(), Unit::GetVehicle(), WorldObject::IsValidAttackTarget(), Unit::SendMeleeAttackStop(), VEHICLE_SEAT_FLAG_CAN_ATTACK, and WorldPackets::Combat::AttackSwing::Victim.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionBrowseQuery | ( | WorldPackets::AuctionHouse::AuctionBrowseQuery & | browseQuery | ) |
Definition at line 37 of file AuctionHouseHandler.cpp.
References _player, AsUnderlyingType(), WorldPackets::AuctionHouse::AuctionBrowseQuery::Auctioneer, WorldPackets::AuctionHouse::AuctionListBucketsResult::BrowseMode, AuctionHouseObject::BuildListBuckets(), AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListBucketsResult::DesiredDelay, AuctionSearchClassFilters::FILTER_SKIP_SUBCLASS, WorldPackets::AuctionHouse::AuctionBrowseQuery::Filters, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionBrowseQuery::ItemClassFilters, WorldPackets::AuctionHouse::AuctionBrowseQuery::KnownPets, MAX_ITEM_CLASS, MAX_ITEM_SUBCLASS_TOTAL, WorldPackets::AuctionHouse::AuctionBrowseQuery::MaxLevel, WorldPackets::AuctionHouse::AuctionBrowseQuery::MaxPetLevel, WorldPackets::AuctionHouse::AuctionBrowseQuery::MinLevel, WorldPackets::AuctionHouse::AuctionBrowseQuery::Name, WorldPackets::AuctionHouse::AuctionBrowseQuery::Offset, Unit::RemoveAurasByType(), sAuctionMgr, Search, SendPacket(), WorldPackets::AuctionHouse::AuctionBrowseQuery::Sorts, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionBrowseQuery::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, Utf8toWStr(), and WorldPackets::AuctionHouse::AuctionListBucketsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionCancelCommoditiesPurchase | ( | WorldPackets::AuctionHouse::AuctionCancelCommoditiesPurchase & | cancelCommoditiesPurchase | ) |
Definition at line 98 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionCancelCommoditiesPurchase::Auctioneer, AuctionHouseObject::CancelCommodityQuote(), Unit::GetFaction(), BaseEntity::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), PlaceBid, Unit::RemoveAurasByType(), sAuctionMgr, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionCancelCommoditiesPurchase::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionConfirmCommoditiesPurchase | ( | WorldPackets::AuctionHouse::AuctionConfirmCommoditiesPurchase & | confirmCommoditiesPurchase | ) |
Definition at line 120 of file AuctionHouseHandler.cpp.
References _player, AddTransactionCallback(), TransactionCallback::AfterComplete(), WorldPackets::AuctionHouse::AuctionConfirmCommoditiesPurchase::Auctioneer, AuctionHouseObject::BuyCommodity(), CharacterDatabase, AuctionThrottleResult::DelayUntilNext, Unit::GetFaction(), BaseEntity::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionConfirmCommoditiesPurchase::ItemID, PlaceBid, WorldPackets::AuctionHouse::AuctionConfirmCommoditiesPurchase::Quantity, Unit::RemoveAurasByType(), sAuctionMgr, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionConfirmCommoditiesPurchase::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionGetCommodityQuote | ( | WorldPackets::AuctionHouse::AuctionGetCommodityQuote & | startCommoditiesPurchase | ) |
Definition at line 158 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionGetCommodityQuote::Auctioneer, AuctionHouseObject::CreateCommodityQuote(), AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::DesiredDelay, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionGetCommodityQuote::ItemID, WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::ItemID, GameTime::Now(), PlaceBid, WorldPackets::AuctionHouse::AuctionGetCommodityQuote::Quantity, WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::Quantity, WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::QuoteDuration, Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionGetCommodityQuote::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::TotalPrice, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionGetCommodityQuoteResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionHelloOpcode | ( | WorldPackets::AuctionHouse::AuctionHelloRequest & | hello | ) |
Definition at line 193 of file AuctionHouseHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionHelloRequest::Guid, Unit::RemoveAurasByType(), SendAuctionHello(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionListBiddedItems | ( | WorldPackets::AuctionHouse::AuctionListBiddedItems & | listBiddedItems | ) |
Definition at line 209 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionListBiddedItems::Auctioneer, AuctionHouseObject::BuildListBiddedItems(), AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListBiddedItemsResult::DesiredDelay, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionListBiddedItems::Offset, Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), WorldPackets::AuctionHouse::AuctionListBiddedItems::Sorts, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionListBiddedItems::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionListBiddedItemsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionListBucketsByBucketKeys | ( | WorldPackets::AuctionHouse::AuctionListBucketsByBucketKeys & | listBucketsByBucketKeys | ) |
Definition at line 236 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionListBucketsByBucketKeys::Auctioneer, WorldPackets::AuctionHouse::AuctionListBucketsResult::BrowseMode, WorldPackets::AuctionHouse::AuctionListBucketsByBucketKeys::BucketKeys, AuctionHouseObject::BuildListBuckets(), AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListBucketsResult::DesiredDelay, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), WorldPackets::AuctionHouse::AuctionListBucketsByBucketKeys::Sorts, SpecificKeys, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionListBucketsByBucketKeys::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionListBucketsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionListItemsByBucketKey | ( | WorldPackets::AuctionHouse::AuctionListItemsByBucketKey & | listItemsByBucketKey | ) |
Definition at line 265 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionListItemsByBucketKey::Auctioneer, WorldPackets::AuctionHouse::AuctionListItemsByBucketKey::BucketKey, WorldPackets::AuctionHouse::AuctionListItemsResult::BucketKey, AuctionHouseObject::BuildListAuctionItems(), Commodities, AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListItemsResult::DesiredDelay, Unit::GetFaction(), ItemTemplate::GetMaxStackSize(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionBucketKey::ItemID, Items, WorldPackets::AuctionHouse::AuctionListItemsResult::ListType, WorldPackets::AuctionHouse::AuctionListItemsByBucketKey::Offset, Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), sObjectMgr, WorldPackets::AuctionHouse::AuctionListItemsByBucketKey::Sorts, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionListItemsByBucketKey::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionListItemsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionListItemsByItemID | ( | WorldPackets::AuctionHouse::AuctionListItemsByItemID & | listItemsByItemID | ) |
Definition at line 295 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionListItemsByItemID::Auctioneer, WorldPackets::AuctionHouse::AuctionListItemsResult::BucketKey, AuctionHouseObject::BuildListAuctionItems(), Commodities, AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListItemsResult::DesiredDelay, Unit::GetFaction(), ItemTemplate::GetMaxStackSize(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionBucketKey::ItemID, WorldPackets::AuctionHouse::AuctionListItemsByItemID::ItemID, Items, WorldPackets::AuctionHouse::AuctionListItemsResult::ListType, WorldPackets::AuctionHouse::AuctionListItemsByItemID::Offset, Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), sObjectMgr, WorldPackets::AuctionHouse::AuctionListItemsByItemID::Sorts, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionListItemsByItemID::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionListItemsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionListOwnedItems | ( | WorldPackets::AuctionHouse::AuctionListOwnedItems & | listOwnedItems | ) |
Definition at line 326 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionListOwnedItems::Auctioneer, AuctionHouseObject::BuildListOwnedItems(), AuctionThrottleResult::DelayUntilNext, WorldPackets::AuctionHouse::AuctionListOwnedItemsResult::DesiredDelay, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::AuctionHouse::AuctionListOwnedItems::Offset, Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), WorldPackets::AuctionHouse::AuctionListOwnedItems::Sorts, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionListOwnedItems::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionListOwnedItemsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionPlaceBid | ( | WorldPackets::AuctionHouse::AuctionPlaceBid & | placeBid | ) |
Definition at line 353 of file AuctionHouseHandler.cpp.
References _player, AddTransactionCallback(), TransactionCallback::AfterComplete(), EnumFlag< T >::AsUnderlyingType(), WorldPackets::AuctionHouse::AuctionPlaceBid::Auctioneer, WorldPackets::AuctionHouse::AuctionPlaceBid::AuctionID, AuctionPosting::BidAmount, WorldPackets::AuctionHouse::AuctionPlaceBid::BidAmount, AuctionPosting::Bidder, AuctionPosting::BidderHistory, BidIncrement, BidOwn, AuctionPosting::BuyoutOrUnitPrice, AuctionPosting::CalculateMinIncrement(), CHAR_INS_AUCTION_BIDDER, CHAR_UPD_AUCTION_BID, CharacterDatabase, AuctionThrottleResult::DelayUntilNext, ObjectAccessor::FindConnectedPlayer(), GetAccountGUID(), AuctionHouseObject::GetAuction(), ObjectGuid::GetCounter(), Unit::GetFaction(), BaseEntity::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GmLogBuyer, Player::HasEnoughMoney(), HasPermission(), HigherBid, AuctionPosting::Id, AuctionPosting::IsCommodity(), ObjectGuid::IsEmpty(), ItemNotFound, AuctionPosting::MinBid, Player::ModifyMoney(), NotEnoughMoney, AuctionPosting::Owner, AuctionPosting::OwnerAccount, PlaceBid, rbac::RBAC_PERM_LOG_GM_TRADE, AuctionHouseObject::RemoveAuction(), Unit::RemoveAurasByType(), sAuctionMgr, Player::SaveInventoryAndGoldToDB(), SendAuctionCommandResult(), AuctionHouseObject::SendAuctionOutbid(), AuctionHouseObject::SendAuctionSold(), AuctionHouseObject::SendAuctionWon(), AuctionPosting::ServerFlags, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), SILVER, SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionPlaceBid::TaintedBy, TC_LOG_DEBUG, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionRemoveItem | ( | WorldPackets::AuctionHouse::AuctionRemoveItem & | removeItem | ) |
Definition at line 487 of file AuctionHouseHandler.cpp.
References _player, AddTransactionCallback(), TransactionCallback::AfterComplete(), WorldPackets::AuctionHouse::AuctionRemoveItem::Auctioneer, WorldPackets::AuctionHouse::AuctionRemoveItem::AuctionID, AuctionPosting::BidAmount, AuctionPosting::Bidder, CalculatePct(), Cancel, CharacterDatabase, DatabaseError, AuctionThrottleResult::DelayUntilNext, AuctionHouseObject::GetAuction(), Unit::GetFaction(), BaseEntity::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::HasEnoughMoney(), AuctionPosting::Id, AuctionPosting::IsCommodity(), ObjectGuid::IsEmpty(), Player::ModifyMoney(), NotEnoughMoney, AuctionPosting::Owner, AuctionHouseObject::RemoveAuction(), Unit::RemoveAurasByType(), sAuctionMgr, Player::SaveInventoryAndGoldToDB(), AuctionHouseObject::SendAuctionCancelledToBidder(), SendAuctionCommandResult(), AuctionHouseObject::SendAuctionRemoved(), SPELL_AURA_FEIGN_DEATH, WorldPackets::AuctionHouse::AuctionRemoveItem::TaintedBy, TC_LOG_DEBUG, TC_LOG_ERROR, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionReplicateItems | ( | WorldPackets::AuctionHouse::AuctionReplicateItems & | replicateItems | ) |
Definition at line 553 of file AuctionHouseHandler.cpp.
References WorldPackets::AuctionHouse::AuctionReplicateItems::Auctioneer, AuctionHouseObject::BuildReplicate(), WorldPackets::AuctionHouse::AuctionReplicateItems::ChangeNumberCursor, WorldPackets::AuctionHouse::AuctionReplicateItems::ChangeNumberGlobal, WorldPackets::AuctionHouse::AuctionReplicateItems::ChangeNumberTombstone, CONFIG_AUCTION_SEARCH_DELAY, WorldPackets::AuctionHouse::AuctionReplicateItems::Count, WorldPackets::AuctionHouse::AuctionReplicateResponse::DesiredDelay, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), WorldPackets::AuctionHouse::AuctionReplicateResponse::Result, sAuctionMgr, SendPacket(), SPELL_AURA_FEIGN_DEATH, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionReplicateResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionSellCommodity | ( | WorldPackets::AuctionHouse::AuctionSellCommodity & | sellCommodity | ) |
Definition at line 607 of file AuctionHouseHandler.cpp.
References _player, AuctionHouseObject::AddAuction(), AddTransactionCallback(), TransactionCallback::AfterComplete(), WorldPackets::AuctionHouse::AuctionSellCommodity::Auctioneer, AuctionHouseBusy, AuctionPosting::BuyoutOrUnitPrice, Item::CanBeTraded(), CharacterDatabase, Item::CloneItem(), DatabaseError, AuctionThrottleResult::DelayUntilNext, Item::DeleteFromInventoryDB(), AuctionPosting::Deposit, AuctionPosting::EndTime, AuctionsBucketKey::ForItem(), GetAccountGUID(), GetAccountId(), AuctionHouseMgr::GetAuctionHouseEntry(), AuctionHouseObject::GetAuctionHouseId(), Item::GetBagSlot(), AuctionHouseMgr::GetCommodityAuctionDeposit(), Item::GetCount(), Object::GetEntry(), Unit::GetFaction(), BaseEntity::GetGUID(), Player::GetItemByGuid(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Item::GetNameForLocaleIdx(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GetPlayerName(), Item::GetSlot(), GameTime::GetSystemTime(), Item::GetTemplate(), Player::HasEnoughMoney(), ItemTemplate::HasFlag(), HasPermission(), AuctionPosting::Id, Item::IsNotEmptyBag(), ITEM_CHANGED, ITEM_FLAG_CONJURED, ItemNotFound, Player::ItemRemovedQuestCheck(), AuctionPosting::Items, WorldPackets::AuctionHouse::AuctionSellCommodity::Items, Item::m_itemData, MAX_MONEY_AMOUNT, MIN_AUCTION_TIME, MINUTE, Player::MoveItemFromInventory(), NotEnoughMoney, AuctionPosting::Owner, AuctionPosting::OwnerAccount, RATE_AUCTION_TIME, rbac::RBAC_PERM_LOG_GM_TRADE, Unit::RemoveAurasByType(), WorldPackets::AuctionHouse::AuctionSellCommodity::RunTime, sAuctionMgr, Player::SaveInventoryAndGoldToDB(), Item::SaveToDB(), SellItem, SendAuctionCommandResult(), Item::SetCount(), Item::SetState(), SILVER, sLog, sObjectMgr, SPELL_AURA_FEIGN_DEATH, AuctionPosting::StartTime, sWorld, WorldPackets::AuctionHouse::AuctionSellCommodity::TaintedBy, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and WorldPackets::AuctionHouse::AuctionSellCommodity::UnitPrice.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionSellItem | ( | WorldPackets::AuctionHouse::AuctionSellItem & | sellItem | ) |
Definition at line 819 of file AuctionHouseHandler.cpp.
References _player, AuctionHouseObject::AddAuction(), AddTransactionCallback(), TransactionCallback::AfterComplete(), WorldPackets::AuctionHouse::AuctionSellItem::Auctioneer, AuctionHouseBusy, AuctionPosting::BidAmount, AuctionPosting::BuyoutOrUnitPrice, WorldPackets::AuctionHouse::AuctionSellItem::BuyoutPrice, Item::CanBeTraded(), CharacterDatabase, DatabaseError, AuctionThrottleResult::DelayUntilNext, Item::DeleteFromInventoryDB(), AuctionPosting::Deposit, AuctionPosting::EndTime, EQUIP_ERR_TOO_MUCH_GOLD, GetAccountGUID(), GetAccountId(), AuctionHouseMgr::GetAuctionHouseEntry(), AuctionHouseObject::GetAuctionHouseId(), Item::GetBagSlot(), Item::GetCount(), ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), Unit::GetFaction(), BaseEntity::GetGUID(), AuctionHouseMgr::GetItemAuctionDeposit(), Player::GetItemByGuid(), ItemTemplate::GetMaxStackSize(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GetPlayerName(), Item::GetSlot(), GameTime::GetSystemTime(), Item::GetTemplate(), Player::HasEnoughMoney(), ItemTemplate::HasFlag(), HasPermission(), AuctionPosting::Id, Inventory, Item::IsNotEmptyBag(), ITEM_FLAG_CONJURED, ItemNotFound, AuctionPosting::Items, WorldPackets::AuctionHouse::AuctionSellItem::Items, Item::m_itemData, MAX_MONEY_AMOUNT, MIN_AUCTION_TIME, AuctionPosting::MinBid, WorldPackets::AuctionHouse::AuctionSellItem::MinBid, MINUTE, Player::MoveItemFromInventory(), NotEnoughMoney, AuctionPosting::Owner, AuctionPosting::OwnerAccount, RATE_AUCTION_TIME, rbac::RBAC_PERM_LOG_GM_TRADE, Unit::RemoveAurasByType(), WorldPackets::AuctionHouse::AuctionSellItem::RunTime, sAuctionMgr, Player::SaveInventoryAndGoldToDB(), Item::SaveToDB(), SellItem, SendAuctionCommandResult(), SILVER, sLog, sObjectMgr, SPELL_AURA_FEIGN_DEATH, AuctionPosting::StartTime, sWorld, WorldPackets::AuctionHouse::AuctionSellItem::TaintedBy, TC_LOG_DEBUG, TC_LOG_INFO, AuctionThrottleResult::Throttled, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAuctionSetFavoriteItem | ( | WorldPackets::AuctionHouse::AuctionSetFavoriteItem & | setFavoriteItem | ) |
Definition at line 967 of file AuctionHouseHandler.cpp.
References _player, WorldPackets::AuctionHouse::AuctionFavoriteInfo::BattlePetSpeciesID, CHAR_DEL_CHARACTER_FAVORITE_AUCTION, CHAR_INS_CHARACTER_FAVORITE_AUCTION, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldPackets::AuctionHouse::AuctionSetFavoriteItem::IsNotFavorite, WorldPackets::AuctionHouse::AuctionSetFavoriteItem::Item, WorldPackets::AuctionHouse::AuctionFavoriteInfo::ItemID, WorldPackets::AuctionHouse::AuctionFavoriteInfo::ItemLevel, WorldPackets::AuctionHouse::AuctionFavoriteInfo::Order, sAuctionMgr, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), WorldPackets::AuctionHouse::AuctionFavoriteInfo::SuffixItemNameDescriptionID, and AuctionThrottleResult::Throttled.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoBankItemOpcode | ( | WorldPackets::Bank::AutoBankItem & | packet | ) |
Definition at line 30 of file BankHandler.cpp.
References _player, WorldPackets::Bank::AutoBankItem::Bag, Player::BankItem(), WorldPackets::Bank::AutoBankItem::BankType, Player::CanBankItem(), CanUseBank(), Character, EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, Item::GetCount(), Object::GetEntry(), Player::GetItemByPos(), Item::GetPos(), Player::ItemRemovedQuestCheck(), NULL_BAG, NULL_SLOT, Player::PlayerTalkClass, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Bank::AutoBankItem::Slot, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoDepositCharacterBank | ( | WorldPackets::Bank::AutoDepositCharacterBank const & | autoDepositCharacterBank | ) |
Definition at line 266 of file BankHandler.cpp.
References _player, WorldPackets::Bank::AutoDepositCharacterBank::Banker, Player::BankItem(), Player::CanBankItem(), CanUseBank(), EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, EQUIP_ERR_REAGENT_BANK_FULL, Player::GetCraftingReagentItemsToDeposit(), NULL_BAG, NULL_SLOT, Player::RemoveItem(), Player::SendEquipError(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoEquipItemOpcode | ( | WorldPackets::Item::AutoEquipItem & | autoEquipItem | ) |
Definition at line 175 of file ItemHandler.cpp.
References _player, Player::ApplyItemDependentAuras(), Player::AutoUnequipChildItem(), Player::AutoUnequipOffhandIfNeed(), Player::BankItem(), Player::CanBankItem(), Player::CanEquipChildItem(), Player::CanEquipItem(), Player::CanStoreItem(), Player::CanUnequipItem(), EQUIP_ERR_OK, Player::EquipChildItem(), Player::EquipItem(), Item::GetBagSlot(), Item::GetChildItem(), Item::GetCreator(), Player::GetItemByGuid(), Player::GetItemByPos(), Item::GetPos(), Item::GetSlot(), Item::HasItemFlag(), WorldPackets::Item::AutoEquipItem::Inv, INVENTORY_SLOT_BAG_0, Item::IsBag(), Player::IsBankPos(), ObjectGuid::IsEmpty(), Player::IsEquipmentPos(), Player::IsInventoryPos(), ITEM_FIELD_FLAG_CHILD, WorldPackets::Item::InvUpdate::Items, NULL_BAG, NULL_SLOT, WorldPackets::Item::AutoEquipItem::PackSlot, REAGENT_BAG_SLOT_END, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Item::AutoEquipItem::Slot, Player::StoreItem(), Player::SwapItem(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoEquipItemSlotOpcode | ( | WorldPackets::Item::AutoEquipItemSlot & | autoEquipItemSlot | ) |
Definition at line 114 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), Item::GetPos(), WorldPackets::Item::AutoEquipItemSlot::Inv, INVENTORY_SLOT_BAG_0, Player::IsEquipmentPos(), WorldPackets::Item::AutoEquipItemSlot::Item, WorldPackets::Item::AutoEquipItemSlot::ItemDstSlot, WorldPackets::Item::InvUpdate::Items, and Player::SwapItem().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoGuildBankItem | ( | WorldPackets::Guild::AutoGuildBankItem & | autoGuildBankItem | ) |
Definition at line 290 of file GuildHandler.cpp.
References WorldPackets::Guild::AutoGuildBankItem::Banker, WorldPackets::Guild::AutoGuildBankItem::BankSlot, WorldPackets::Guild::AutoGuildBankItem::BankTab, WorldPackets::Guild::AutoGuildBankItem::ContainerItemSlot, WorldPackets::Guild::AutoGuildBankItem::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoStoreBagItemOpcode | ( | WorldPackets::Item::AutoStoreBagItem & | packet | ) |
Definition at line 702 of file ItemHandler.cpp.
References _player, Player::CanStoreItem(), Player::CanUnequipItem(), WorldPackets::Item::AutoStoreBagItem::ContainerSlotA, WorldPackets::Item::AutoStoreBagItem::ContainerSlotB, EQUIP_ERR_INTERNAL_BAG_ERROR, EQUIP_ERR_OK, EQUIP_ERR_WRONG_SLOT, Player::GetItemByPos(), Item::GetPos(), WorldPackets::Item::AutoStoreBagItem::Inv, Player::IsBagPos(), Player::IsEquipmentPos(), Player::IsValidPos(), WorldPackets::Item::InvUpdate::Items, NULL_SLOT, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Item::AutoStoreBagItem::SlotA, Player::StoreItem(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoStoreBankItemOpcode | ( | WorldPackets::Bank::AutoStoreBankItem & | packet | ) |
Definition at line 105 of file BankHandler.cpp.
References _player, WorldPackets::Bank::AutoStoreBankItem::Bag, Player::BankItem(), Player::CanBankItem(), Player::CanStoreItem(), CanUseBank(), EQUIP_ERR_OK, Player::GetItemByPos(), Player::IsBankPos(), Player::ItemAddedQuestCheck(), NULL_BAG, NULL_SLOT, Player::PlayerTalkClass, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Bank::AutoStoreBankItem::Slot, Player::StoreItem(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutoStoreGuildBankItem | ( | WorldPackets::Guild::AutoStoreGuildBankItem & | autoStoreGuildBankItem | ) |
Definition at line 427 of file GuildHandler.cpp.
References WorldPackets::Guild::AutoStoreGuildBankItem::Banker, WorldPackets::Guild::AutoStoreGuildBankItem::BankSlot, WorldPackets::Guild::AutoStoreGuildBankItem::BankTab, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, NULL_SLOT, and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAutostoreLootItemOpcode | ( | WorldPackets::Loot::LootItem & | packet | ) |
Definition at line 77 of file LootHandler.cpp.
References DoLootRelease(), ObjectGuid::Empty, GAMEOBJECT_TYPE_FISHINGHOLE, Player::GetAELootView(), Map::GetCreature(), Map::GetGameObject(), GameObject::GetGoType(), BaseEntity::GetGUID(), GetLootByType, WorldObject::GetMap(), Loot::GetOwnerGUID(), GameObject::GetOwnerGUID(), GetPlayer(), Player::GetSession(), ObjectGuid::IsCreatureOrVehicle(), ObjectGuid::IsGameObject(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), WorldPackets::Loot::LootItem::Loot, LOOT_ERROR_NO_LOOT, LOOT_ERROR_TOO_FAR, LootAnyItem, AELootCreatureCheck::LootDistance, LootItem, Trinity::Containers::MapGetValuePtr(), PROC_FLAG_LOOTED, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, Unit::ProcSkillsAndAuras(), Player::SendLootError(), Player::SendLootRelease(), Player::SendNewItem(), Player::StoreLootItem(), and Player::UpdateCriteria().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAzeriteEmpoweredItemSelectPower | ( | WorldPackets::Azerite::AzeriteEmpoweredItemSelectPower & | azeriteEmpoweredItemSelectPower | ) |
Definition at line 184 of file AzeriteHandler.cpp.
References Player::_ApplyItemMods(), _player, Player::ApplyAzeritePower(), WorldPackets::Azerite::AzeriteEmpoweredItemSelectPower::AzeritePowerID, WorldPackets::Azerite::AzeriteEmpoweredItemSelectPower::ContainerSlot, Everywhere, Unit::GetClass(), Player::GetItemByEntry(), Player::GetItemByPos(), AzeriteEmpoweredItem::GetMaxAzeritePowerTier(), AzeriteEmpoweredItem::GetSelectedAzeritePower(), Item::GetSlot(), AzeriteEmpoweredItem::GetTierForAzeritePower(), Item::IsEquipped(), ITEM_CHANGED, ITEM_ID_HEART_OF_AZEROTH, AzeritePowerEntry::ItemBonusListID, MAX_AZERITE_EMPOWERED_TIER, sAzeritePowerStore, AzeriteEmpoweredItem::SetSelectedAzeritePower(), Item::SetState(), WorldPackets::Azerite::AzeriteEmpoweredItemSelectPower::Slot, WorldPackets::Azerite::AzeriteEmpoweredItemSelectPower::Tier, Item::ToAzeriteEmpoweredItem(), and Item::ToAzeriteItem().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAzeriteEmpoweredItemViewed | ( | WorldPackets::Azerite::AzeriteEmpoweredItemViewed & | azeriteEmpoweredItemViewed | ) |
Definition at line 174 of file AzeriteHandler.cpp.
References _player, Player::GetItemByGuid(), Item::IsAzeriteEmpoweredItem(), ITEM_CHANGED, ITEM_FIELD_FLAG_AZERITE_EMPOWERED_ITEM_VIEWED, WorldPackets::Azerite::AzeriteEmpoweredItemViewed::ItemGUID, Item::SetItemFlag(), and Item::SetState().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAzeriteEssenceActivateEssence | ( | WorldPackets::Azerite::AzeriteEssenceActivateEssence & | azeriteEssenceActivateEssence | ) |
Definition at line 59 of file AzeriteHandler.cpp.
References _player, AffectingCombat, Player::ApplyAzeriteEssence(), WorldPackets::Azerite::ActivateEssenceFailed::Arg, ASSERT_NOTNULL, AsUnderlyingType(), UF::SelectedAzeriteEssences::AzeriteEssenceID, WorldPackets::Azerite::AzeriteEssenceActivateEssence::AzeriteEssenceID, WorldPackets::Azerite::ActivateEssenceFailed::AzeriteEssenceID, CantDoThatRightNow, CantRemoveEssence, AzeriteItem::CanUseEssences(), ConditionFailed, AzeriteItem::CreateSelectedAzeriteEssences(), Equipment, EssenceNotUnlocked, AzeriteItem::GetEssenceRank(), Player::GetItemByEntry(), Player::GetPrimarySpecialization(), AzeriteItem::GetSelectedAzeriteEssences(), Unit::GetSpellHistory(), SpellHistory::HasCooldown(), Player::HasPlayerFlag(), Unit::HasUnitFlag2(), AzeriteItem::HasUnlockedEssenceSlot(), Unit::isDead(), Unit::IsInCombat(), ITEM_CHANGED, ITEM_ID_HEART_OF_AZEROTH, MajorEssence, AzeriteEssencePowerEntry::MajorPowerDescription, MAX_AZERITE_ESSENCE_RANK, MAX_AZERITE_ESSENCE_SLOT, NotEquipped, NotInRestArea, PLAYER_FLAGS_RESTING, WorldPackets::Azerite::ActivateEssenceFailed::Reason, sDB2Manager, SendPacket(), AzeriteItem::SetSelectedAzeriteEssence(), Item::SetState(), WorldPackets::Azerite::AzeriteEssenceActivateEssence::Slot, WorldPackets::Azerite::ActivateEssenceFailed::Slot, SlotLocked, Item::ToAzeriteItem(), UNIT_FLAG2_ALLOW_CHANGING_TALENTS, and WorldPackets::Azerite::ActivateEssenceFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleAzeriteEssenceUnlockMilestone | ( | WorldPackets::Azerite::AzeriteEssenceUnlockMilestone & | azeriteEssenceUnlockMilestone | ) |
Definition at line 27 of file AzeriteHandler.cpp.
References _player, AzeriteItem::AddUnlockedEssenceMilestone(), Player::ApplyAzeriteItemMilestonePower(), WorldPackets::Azerite::AzeriteEssenceUnlockMilestone::AzeriteItemMilestonePowerID, AzeriteItem::CanUseEssences(), Everywhere, AzeriteItem::FindHeartForge(), Player::GetItemByEntry(), AzeriteItem::GetLevel(), AzeriteItem::HasUnlockedEssenceMilestone(), AzeriteItemMilestonePowerEntry::ID, ITEM_CHANGED, ITEM_ID_HEART_OF_AZEROTH, AzeriteItemMilestonePowerEntry::RequiredLevel, sAzeriteItemMilestonePowerStore, sDB2Manager, Item::SetState(), and Item::ToAzeriteItem().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBankerActivateOpcode | ( | WorldPackets::Bank::BankerActivate const & | bankerActivate | ) |
Definition at line 66 of file BankHandler.cpp.
References AccountBanker, Banker, WorldPackets::Bank::BankerActivate::Banker, CharacterBanker, Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::HasNpcFlag(), WorldPackets::Bank::BankerActivate::InteractionType, Unit::RemoveAurasByType(), SendShowBank(), SPELL_AURA_FEIGN_DEATH, TC_LOG_ERROR, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_ACCOUNT_BANKER, UNIT_NPC_FLAG_BANKER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlefieldLeaveOpcode | ( | WorldPackets::Battleground::BattlefieldLeave & | battlefieldLeave | ) |
Definition at line 431 of file BattleGroundHandler.cpp.
References _player, Player::GetBattleground(), Unit::IsInCombat(), Player::LeaveBattleground(), and STATUS_WAIT_LEAVE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlefieldListOpcode | ( | WorldPackets::Battleground::BattlefieldListRequest & | battlefieldList | ) |
Definition at line 269 of file BattleGroundHandler.cpp.
References _player, ObjectGuid::Empty, BaseEntity::GetGUID(), WorldObject::GetName(), WorldPackets::Battleground::BattlefieldListRequest::ListID, sBattlegroundMgr, sBattlemasterListStore, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattleFieldPortOpcode | ( | WorldPackets::Battleground::BattlefieldPort & | battlefieldPort | ) |
Definition at line 281 of file BattleGroundHandler.cpp.
References _player, WorldPackets::Battleground::BattlefieldPort::AcceptedInvite, GroupQueueInfo::ArenaMatchmakerRating, WorldPackets::Timestamp< Underlying >::AsUnderlyingType(), BATTLEGROUND_AA, BATTLEGROUND_QUEUE_NONE, BATTLEGROUND_TYPE_NONE, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundMgr::BuildBattlegroundStatusFailed(), ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS, Player::FinishTaxiFlight(), Player::GetBattleground(), DB2Manager::GetBattlegroundBracketByLevel(), Player::GetBattlegroundQueueJoinTime(), Player::GetBattlegroundQueueTypeId(), PVPDifficultyEntry::GetBracketId(), BaseEntity::GetGUID(), Battleground::GetInstanceID(), Unit::GetLevel(), Battleground::GetMapId(), Battleground::GetMaxLevel(), WorldObject::GetName(), BattlegroundQueue::GetPlayerGroupInfoData(), GetPlayerInfo(), BattlegroundQueue::GetQueueId(), Battleground::GetTypeID(), Unit::HasAura(), WorldPackets::LFG::RideTicket::Id, Player::InBattleground(), Player::InBattlegroundQueue(), Unit::IsAlive(), Player::IsDeserter(), Player::IsInvitedForBattlegroundQueueType(), GroupQueueInfo::IsInvitedToBGInstanceGUID, BattlegroundTemplate::MapIDs, BattlegroundQueueTypeId::Rated, Player::RemoveBattlegroundQueueId(), BattlegroundQueue::RemovePlayer(), Player::ResurrectPlayer(), sBattlegroundMgr, SendPacket(), BattlegroundMgr::SendToBattleground(), Player::SetBattlegroundEntryPoint(), Player::SetBattlegroundId(), Player::SetBGTeam(), Player::SpawnCorpseBones(), TC_LOG_DEBUG, TC_LOG_ERROR, GroupQueueInfo::Team, BattlegroundQueueTypeId::TeamSize, WorldPackets::Battleground::BattlefieldStatusNone::Ticket, WorldPackets::Battleground::BattlefieldPort::Ticket, WorldPackets::LFG::RideTicket::Time, ObjectGuid::ToString(), BattlegroundQueueTypeId::Type, WorldPackets::LFG::RideTicket::Type, WorldPackets::Battleground::BattlefieldStatusNone::Write(), WorldPackets::Battleground::BattlefieldStatusActive::Write(), and WorldPackets::Battleground::BattlefieldStatusFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlemasterHelloOpcode | ( | WorldPackets::NPC::Hello & | hello | ) |
Definition at line 44 of file BattleGroundHandler.cpp.
References _player, Player::GetBGAccessByLevel(), Object::GetEntry(), CreatureMovementData::GetInteractionPauseTimer(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), LANG_YOUR_BG_LEVEL_REQ_ERROR, Unit::PauseMovement(), sBattlegroundMgr, SendNotification(), Creature::SetHomePosition(), WorldPackets::NPC::Hello::Unit, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_BATTLEMASTER.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlemasterJoinArena | ( | WorldPackets::Battleground::BattlemasterJoinArena & | packet | ) |
Definition at line 502 of file BattleGroundHandler.cpp.
References _player, Player::AddBattlegroundQueueId(), BattlegroundQueue::AddGroup(), Arena, BATTLEGROUND_AA, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BGQueueTypeId(), BattlegroundMgr::BuildBattlegroundStatusFailed(), BattlegroundMgr::BuildBattlegroundStatusQueued(), Group::CanJoinBattlegroundQueue(), Player::CanJoinToBattleground(), Group::Create(), DISABLE_TYPE_BATTLEGROUND, ERR_BATTLEGROUND_JOIN_FAILED, ERR_BATTLEGROUND_NONE, Player::GetArenaTeamId(), BattlegroundQueue::GetAverageQueueWaitTime(), DB2Manager::GetBattlegroundBracketByLevel(), PVPDifficultyEntry::GetBracketId(), Player::GetGroup(), BaseEntity::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), Group::GetMembers(), WorldObject::GetName(), Player::GetTeam(), ArenaTeam::GetTypeBySlot(), BattlegroundTemplate::Id, Player::InBattleground(), DisableMgr::IsDisabledFor(), GroupQueueInfo::JoinTime, LANG_ARENA_DISABLED, BattlegroundTemplate::MapIDs, ChatHandler::PSendSysMessage(), BattlegroundQueueTypeId::Rated, sBattlegroundMgr, Player::SendDirectMessage(), TC_LOG_DEBUG, TC_LOG_ERROR, BattlegroundQueueTypeId::TeamSize, WorldPackets::Battleground::BattlemasterJoinArena::TeamSizeIndex, ObjectGuid::ToString(), BattlegroundQueueTypeId::Type, WorldPackets::Battleground::BattlefieldStatusQueued::Write(), and WorldPackets::Battleground::BattlefieldStatusFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes(), and BattlegroundMgr::QueuePlayerForArena().
| void WorldSession::HandleBattlemasterJoinOpcode | ( | WorldPackets::Battleground::BattlemasterJoin & | battlemasterJoin | ) |
Definition at line 67 of file BattleGroundHandler.cpp.
References _player, Player::AddBattlegroundQueueId(), BattlegroundQueue::AddGroup(), ALLIANCE, Battleground, BATTLEGROUND_RANDOM_EPIC, BATTLEGROUND_RB, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BGQueueTypeId(), BattlegroundMgr::BuildBattlegroundStatusFailed(), BattlegroundMgr::BuildBattlegroundStatusQueued(), Group::CanJoinBattlegroundQueue(), Player::CanJoinToBattleground(), DISABLE_TYPE_BATTLEGROUND, WorldPackets::Array< T, N >::empty(), ERR_BATTLEGROUND_JOIN_TIMED_OUT, ERR_BATTLEGROUND_NONE, ERR_BATTLEGROUND_TOO_MANY_QUEUES, ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS, ERR_IN_NON_RANDOM_BG, ERR_IN_RANDOM_BG, ERR_LFG_CANT_USE_BATTLEGROUND, BattlegroundQueueTypeId::FromPacked(), BattlegroundQueue::GetAverageQueueWaitTime(), DB2Manager::GetBattlegroundBracketByLevel(), Player::GetBattlegroundQueueIndex(), PVPDifficultyEntry::GetBracketId(), BattlemasterListEntry::GetFlags(), Player::GetGroup(), BaseEntity::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), BattlegroundTemplate::GetMaxPlayersPerTeam(), Group::GetMembers(), Group::GetMembersCount(), BattlegroundTemplate::GetMinPlayersPerTeam(), WorldObject::GetName(), GetPlayer(), Player::GetTeam(), Unit::HasAura(), Player::HasFreeBattlegroundQueueId(), HORDE, Player::InBattleground(), Player::InBattlegroundQueue(), Player::InBattlegroundQueueForBattlegroundQueueType(), InternalOnly, BattlegroundTemplate::IsArena(), Player::IsDeserter(), DisableMgr::IsDisabledFor(), BattlegroundMgr::IsRandomBattleground(), BattlegroundMgr::IsValidQueueId(), GroupQueueInfo::JoinTime, LANG_BG_DISABLED, BattlegroundTemplate::MapIDs, PLAYER_MAX_BATTLEGROUND_QUEUES, ChatHandler::PSendSysMessage(), WorldPackets::Battleground::BattlemasterJoin::QueueIDs, BattlegroundQueueTypeId::Rated, sBattlegroundMgr, sBattlemasterListStore, Player::SendDirectMessage(), SendPacket(), SPELL_MERCENARY_CONTRACT_ALLIANCE, SPELL_MERCENARY_CONTRACT_HORDE, TC_LOG_DEBUG, TC_LOG_ERROR, BattlegroundQueueTypeId::TeamSize, ObjectGuid::ToString(), BattlegroundQueueTypeId::Type, WorldPackets::Battleground::BattlefieldStatusQueued::Write(), and WorldPackets::Battleground::BattlefieldStatusFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlenetChangeRealmTicket | ( | WorldPackets::Battlenet::ChangeRealmTicket & | changeRealmTicket | ) |
Definition at line 23 of file BattlenetHandler.cpp.
References WorldPackets::Battlenet::ChangeRealmTicketResponse::Allow, WorldPackets::Battlenet::ChangeRealmTicket::Secret, SendPacket(), SetRealmListSecret(), WorldPackets::Battlenet::ChangeRealmTicketResponse::Ticket, WorldPackets::Battlenet::ChangeRealmTicketResponse::Token, WorldPackets::Battlenet::ChangeRealmTicket::Token, and WorldPackets::Battlenet::ChangeRealmTicketResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlenetRequest | ( | WorldPackets::Battlenet::Request & | request | ) |
Definition at line 35 of file BattlenetHandler.cpp.
References WorldPackets::Battlenet::Request::Data, WorldPackets::Battlenet::MethodCall::GetMethodId(), WorldPackets::Battlenet::MethodCall::GetServiceHash(), WorldPackets::Battlenet::Request::Method, sServiceDispatcher, and WorldPackets::Battlenet::MethodCall::Token.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetClearFanfare | ( | WorldPackets::BattlePet::BattlePetClearFanfare & | battlePetClearFanfare | ) |
Definition at line 113 of file BattlePetHandler.cpp.
References BattlePets::BattlePetMgr::ClearFanfare(), GetBattlePetMgr(), and WorldPackets::BattlePet::BattlePetClearFanfare::PetGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetDeletePet | ( | WorldPackets::BattlePet::BattlePetDeletePet & | battlePetDeletePet | ) |
Definition at line 91 of file BattlePetHandler.cpp.
References GetBattlePetMgr(), WorldPackets::BattlePet::BattlePetDeletePet::PetGuid, and BattlePets::BattlePetMgr::RemovePet().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetModifyName | ( | WorldPackets::BattlePet::BattlePetModifyName & | battlePetModifyName | ) |
Definition at line 45 of file BattlePetHandler.cpp.
References WorldPackets::BattlePet::BattlePetModifyName::DeclinedNames, GetBattlePetMgr(), BattlePets::BattlePetMgr::ModifyName(), WorldPackets::BattlePet::BattlePetModifyName::Name, and WorldPackets::BattlePet::BattlePetModifyName::PetGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetRequestJournal | ( | WorldPackets::BattlePet::BattlePetRequestJournal & | battlePetRequestJournal | ) |
Definition at line 25 of file BattlePetHandler.cpp.
References GetBattlePetMgr(), and BattlePets::BattlePetMgr::SendJournal().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetRequestJournalLock | ( | WorldPackets::BattlePet::BattlePetRequestJournalLock & | battlePetRequestJournalLock | ) |
Definition at line 30 of file BattlePetHandler.cpp.
References GetBattlePetMgr(), BattlePets::BattlePetMgr::SendJournal(), and BattlePets::BattlePetMgr::SendJournalLockStatus().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetSetBattleSlot | ( | WorldPackets::BattlePet::BattlePetSetBattleSlot & | battlePetSetBattleSlot | ) |
Definition at line 38 of file BattlePetHandler.cpp.
References GetBattlePetMgr(), WorldPackets::BattlePet::BattlePetSetBattleSlot::PetGuid, and WorldPackets::BattlePet::BattlePetSetBattleSlot::Slot.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetSetFlags | ( | WorldPackets::BattlePet::BattlePetSetFlags & | battlePetSetFlags | ) |
Definition at line 96 of file BattlePetHandler.cpp.
References BattlePets::BATTLE_PET_CHANGED, BattlePets::BATTLE_PET_NEW, WorldPackets::BattlePet::BattlePetSetFlags::ControlType, WorldPackets::BattlePet::BattlePetSetFlags::Flags, BattlePets::FLAGS_CONTROL_TYPE_APPLY, GetBattlePetMgr(), and WorldPackets::BattlePet::BattlePetSetFlags::PetGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetSummon | ( | WorldPackets::BattlePet::BattlePetSummon & | battlePetSummon | ) |
Definition at line 123 of file BattlePetHandler.cpp.
References _player, BattlePets::BattlePetMgr::DismissPet(), GetBattlePetMgr(), Player::m_activePlayerData, WorldPackets::BattlePet::BattlePetSummon::PetGuid, and BattlePets::BattlePetMgr::SummonPet().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBattlePetUpdateNotify | ( | WorldPackets::BattlePet::BattlePetUpdateNotify & | battlePetUpdateNotify | ) |
Definition at line 131 of file BattlePetHandler.cpp.
References GetBattlePetMgr(), WorldPackets::BattlePet::BattlePetUpdateNotify::PetGuid, and BattlePets::BattlePetMgr::UpdateBattlePetData().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBeginTradeOpcode | ( | WorldPackets::Trade::BeginTrade & | beginTrade | ) |
Definition at line 568 of file TradeHandler.cpp.
References _player, Player::GetSession(), TradeData::GetTrader(), Player::m_trade, SendTradeStatus(), WorldPackets::Trade::TradeStatus::Status, and TRADE_STATUS_INITIATED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBinderActivateOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 316 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendBindPoint(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_INNKEEPER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBlackMarketBidOnItem | ( | WorldPackets::BlackMarket::BlackMarketBidOnItem & | blackMarketBidOnItem | ) |
Definition at line 69 of file BlackMarketHandler.cpp.
References WorldPackets::BlackMarket::BlackMarketBidOnItem::BidAmount, CharacterDatabase, ERR_BMAH_ALREADY_BID, ERR_BMAH_DATABASE_ERROR, ERR_BMAH_HIGHER_BID, ERR_BMAH_ITEM_NOT_FOUND, ERR_BMAH_NOT_ENOUGH_MONEY, ERR_BMAH_OK, BlackMarketEntry::GetBidder(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), GetPlayer(), BlackMarketEntry::GetSecondsRemaining(), WorldPackets::BlackMarket::BlackMarketBidOnItem::Guid, Player::HasEnoughMoney(), WorldPackets::BlackMarket::BlackMarketBidOnItem::Item, WorldPackets::BlackMarket::BlackMarketBidOnItem::MarketID, BlackMarketEntry::PlaceBid(), sBlackMarketMgr, SendBlackMarketBidOnItemResult(), TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_BLACK_MARKET, and BlackMarketEntry::ValidateBid().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBlackMarketOpen | ( | WorldPackets::BlackMarket::BlackMarketOpen & | blackMarketOpen | ) |
Definition at line 27 of file BlackMarketHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::BlackMarket::BlackMarketOpen::Guid, Unit::RemoveAurasByType(), SendBlackMarketOpenResult(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_BLACK_MARKET_VIEW, UNIT_NPC_FLAG_BLACK_MARKET, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBlackMarketRequestItems | ( | WorldPackets::BlackMarket::BlackMarketRequestItems & | blackMarketRequestItems | ) |
Definition at line 52 of file BlackMarketHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::BlackMarket::BlackMarketRequestItems::Guid, sBlackMarketMgr, SendPacket(), TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_BLACK_MARKET_VIEW, UNIT_NPC_FLAG_BLACK_MARKET, and WorldPackets::BlackMarket::BlackMarketRequestItemsResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBugReportOpcode | ( | WorldPackets::Ticket::BugReport & | bugReport | ) |
Definition at line 86 of file TicketHandler.cpp.
References CHAR_INS_BUG_REPORT, CharacterDatabase, WorldPackets::Ticket::BugReport::DiagInfo, PreparedStatementBase::setString(), sSupportMgr, and WorldPackets::Ticket::BugReport::Text.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBusyTradeOpcode | ( | WorldPackets::Trade::BusyTrade & | busyTrade | ) |
Definition at line 48 of file TradeHandler.cpp.
References _player, TRADE_STATUS_PLAYER_IGNORED, and Player::TradeCancel().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBuybackItem | ( | WorldPackets::Item::BuyBackItem & | packet | ) |
Definition at line 486 of file ItemHandler.cpp.
References _player, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_NOT_ENOUGHT_MONEY, BUYBACK_SLOT_START, Player::CanStoreItem(), ObjectGuid::Empty, EQUIP_ERR_OK, Item::GetCount(), Object::GetEntry(), Player::GetItemFromBuyBackSlot(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::HasEnoughMoney(), Player::ItemAddedQuestCheck(), Player::m_activePlayerData, Player::ModifyMoney(), NULL_BAG, NULL_SLOT, Unit::RemoveAurasByType(), Player::RemoveItemFromBuyBackSlot(), SELL_ERR_CANT_FIND_VENDOR, Player::SendBuyError(), Player::SendEquipError(), Player::SendSellError(), WorldPackets::Item::BuyBackItem::Slot, SPELL_AURA_FEIGN_DEATH, Player::StoreItem(), TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, and WorldPackets::Item::BuyBackItem::VendorGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBuyBankTab | ( | WorldPackets::Bank::BuyBankTab const & | buyBankTab | ) |
Definition at line 149 of file BankHandler.cpp.
References _player, Account, ACCOUNT_BANK_SLOT_BAG_START, BANK_SLOT_BAG_START, WorldPackets::Bank::BuyBankTab::Banker, BankTabPurchased, BankTabEntry::BankType, WorldPackets::Bank::BuyBankTab::BankType, Player::CanEquipNewItem(), CanUseBank(), Character, BankTabEntry::Cost, EQUIP_ERR_OK, Player::EquipNewItem(), Player::GetAccountBankTabCount(), Player::GetCharacterBankTabCount(), BaseEntity::GetGUID(), Player::HasEnoughMoney(), ITEM_ACCOUNT_BANK_TAB_BAG, ITEM_CHARACTER_BANK_TAB_BAG, LANG_BANK_TAB_NAME, Player::ModifyMoney(), NONE, None, BankTabEntry::OrderIndex, ChatHandler::PGetParseString(), sBankTabStore, Player::SendEquipError(), Player::SetAccountBankTabCount(), Player::SetAccountBankTabSettings(), Player::SetCharacterBankTabCount(), Player::SetCharacterBankTabSettings(), TC_LOG_DEBUG, TC_LOG_ERROR, and Player::UpdateCriteria().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleBuyItemOpcode | ( | WorldPackets::Item::BuyItem & | packet | ) |
Definition at line 529 of file ItemHandler.cpp.
References _player, Player::BuyCurrencyFromVendorSlot(), Player::BuyItemFromVendorSlot(), WorldPackets::Item::BuyItem::ContainerGUID, Player::GetItemByGuid(), GetPlayer(), INVENTORY_SLOT_BAG_0, WorldPackets::Item::BuyItem::Item, ITEM_VENDOR_TYPE_CURRENCY, ITEM_VENDOR_TYPE_ITEM, WorldPackets::Item::ItemInstance::ItemID, WorldPackets::Item::BuyItem::ItemType, WorldPackets::Item::BuyItem::Muid, NULL_BAG, WorldPackets::Item::BuyItem::Quantity, WorldPackets::Item::BuyItem::Slot, TC_LOG_DEBUG, and WorldPackets::Item::BuyItem::VendorGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCageBattlePet | ( | WorldPackets::BattlePet::CageBattlePet & | cageBattlePet | ) |
Definition at line 118 of file BattlePetHandler.cpp.
References BattlePets::BattlePetMgr::CageBattlePet(), GetBattlePetMgr(), and WorldPackets::BattlePet::CageBattlePet::PetGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarAddEvent | ( | WorldPackets::Calendar::CalendarAddEvent & | calendarAddEvent | ) |
Definition at line 114 of file CalendarHandler.cpp.
References _player, CALENDAR_CREATE_EVENT_COOLDOWN, CALENDAR_DEFAULT_RESPONSE_TIME, CALENDAR_ERROR_EVENT_PASSED, CALENDAR_ERROR_EVENTS_EXCEEDED, CALENDAR_ERROR_GUILD_EVENTS_EXCEEDED, CALENDAR_ERROR_GUILD_PLAYER_NOT_IN_GUILD, CALENDAR_ERROR_INTERNAL, CALENDAR_MAX_EVENTS, CALENDAR_MAX_GUILD_EVENTS, CALENDAR_RANK_PLAYER, CALENDAR_SENDTYPE_ADD, CALENDAR_STATUS_NOT_SIGNED_UP, CharacterDatabase, WorldPackets::Calendar::CalendarAddEventInfo::Description, ObjectGuid::Empty, WorldPackets::Calendar::CalendarAddEvent::EventInfo, WorldPackets::Calendar::CalendarAddEventInfo::EventType, WorldPackets::Calendar::CalendarAddEventInfo::Flags, GetCalendarEventCreationCooldown(), CalendarEvent::GetEventId(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Player::GetGuildId(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), WorldPackets::Calendar::CalendarAddEventInfo::Invites, CalendarEvent::IsGuildAnnouncement(), CalendarEvent::IsGuildEvent(), sCalendarMgr, SetCalendarEventCreationCooldown(), CalendarEvent::SetGuildId(), WorldPackets::Calendar::CalendarAddEventInfo::TextureID, WorldPackets::Calendar::CalendarAddEventInfo::Time, WorldPackets::Calendar::CalendarAddEventInfo::Title, and UI64LIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarCommunityInvite | ( | WorldPackets::Calendar::CalendarCommunityInviteRequest & | calendarCommunityInvite | ) |
Definition at line 108 of file CalendarHandler.cpp.
References _player, Player::GetGuildId(), WorldPackets::Calendar::CalendarCommunityInviteRequest::MaxLevel, WorldPackets::Calendar::CalendarCommunityInviteRequest::MaxRankOrder, WorldPackets::Calendar::CalendarCommunityInviteRequest::MinLevel, and sGuildMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarComplain | ( | WorldPackets::Calendar::CalendarComplain & | calendarComplain | ) |
Definition at line 513 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarComplain::EventID, BaseEntity::GetGUID(), WorldPackets::Calendar::CalendarComplain::InvitedByGUID, WorldPackets::Calendar::CalendarComplain::InviteID, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarCopyEvent | ( | WorldPackets::Calendar::CalendarCopyEvent & | calendarCopyEvent | ) |
Definition at line 228 of file CalendarHandler.cpp.
References _player, CALENDAR_CREATE_EVENT_COOLDOWN, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_EVENT_PASSED, CALENDAR_ERROR_EVENTS_EXCEEDED, CALENDAR_ERROR_GUILD_EVENTS_EXCEEDED, CALENDAR_ERROR_INTERNAL, CALENDAR_MAX_EVENTS, CALENDAR_MAX_GUILD_EVENTS, CALENDAR_SENDTYPE_COPY, CharacterDatabase, WorldPackets::Calendar::CalendarCopyEvent::Date, WorldPackets::Calendar::CalendarCopyEvent::EventID, GetCalendarEventCreationCooldown(), CalendarEvent::GetEventId(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Player::GetGuildId(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), sCalendarMgr, SetCalendarEventCreationCooldown(), and CalendarEvent::SetDate().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarEventRemoveInvite | ( | WorldPackets::Calendar::CalendarRemoveInvite & | calendarRemoveInvite | ) |
Definition at line 445 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_DELETE_CREATOR_FAILED, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarRemoveInvite::EventID, BaseEntity::GetGUID(), WorldPackets::Calendar::CalendarRemoveInvite::Guid, WorldPackets::Calendar::CalendarRemoveInvite::InviteID, WorldPackets::Calendar::CalendarRemoveInvite::ModeratorID, sCalendarMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarEventSignup | ( | WorldPackets::Calendar::CalendarEventSignUp & | calendarEventSignUp | ) |
Definition at line 393 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_GUILD_PLAYER_NOT_IN_GUILD, CALENDAR_RANK_PLAYER, CALENDAR_STATUS_SIGNED_UP, CALENDAR_STATUS_TENTATIVE, WorldPackets::Calendar::CalendarEventSignUp::EventID, GameTime::GetGameTime(), BaseEntity::GetGUID(), Player::GetGuildId(), sCalendarMgr, TC_LOG_DEBUG, WorldPackets::Calendar::CalendarEventSignUp::Tentative, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarGetCalendar | ( | WorldPackets::Calendar::CalendarGetCalendar & | calendarGetCalendar | ) |
Definition at line 53 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarSendCalendarEventInfo::Date, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::DifficultyID, WorldPackets::Calendar::CalendarSendCalendarEventInfo::EventClubID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::EventID, WorldPackets::Calendar::CalendarSendCalendarEventInfo::EventID, WorldPackets::Calendar::CalendarSendCalendarEventInfo::EventName, WorldPackets::Calendar::CalendarSendCalendar::Events, WorldPackets::Calendar::CalendarSendCalendarEventInfo::EventType, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::ExpireTime, WorldPackets::Calendar::CalendarSendCalendarEventInfo::Flags, BaseEntity::GetGUID(), Player::GetGuildId(), GameTime::GetSystemTime(), GetTimezoneOffset(), GameTime::GetWowTime(), WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::InstanceID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviteID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviterGuid, WorldPackets::Calendar::CalendarSendCalendar::Invites, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviteType, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::MapID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::Moderator, WorldPackets::Calendar::CalendarSendCalendarEventInfo::OwnerGuid, WorldPackets::Calendar::CalendarSendCalendar::RaidLockouts, sCalendarMgr, SendPacket(), WorldPackets::Calendar::CalendarSendCalendar::ServerTime, WowTime::SetUtcTimeFromUnixTime(), SI64LIT, sInstanceLockMgr, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::Status, WorldPackets::Calendar::CalendarSendCalendarEventInfo::TextureID, and WorldPackets::Calendar::CalendarSendCalendar::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarGetEvent | ( | WorldPackets::Calendar::CalendarGetEvent & | calendarGetEvent | ) |
Definition at line 100 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_SENDTYPE_GET, WorldPackets::Calendar::CalendarGetEvent::EventID, BaseEntity::GetGUID(), and sCalendarMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarGetNumPending | ( | WorldPackets::Calendar::CalendarGetNumPending & | calendarGetNumPending | ) |
Definition at line 522 of file CalendarHandler.cpp.
References _player, BaseEntity::GetGUID(), sCalendarMgr, SendPacket(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarInvite | ( | WorldPackets::Calendar::CalendarInvite & | calendarEventInvite | ) |
Definition at line 306 of file CalendarHandler.cpp.
References _player, CharacterCacheEntry::AccountId, AsyncCallbackProcessor< T >::AddCallback(), CALENDAR_DEFAULT_RESPONSE_TIME, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_IGNORING_YOU_S, CALENDAR_ERROR_NO_GUILD_INVITES, CALENDAR_ERROR_NOT_ALLIED, CALENDAR_ERROR_PLAYER_NOT_FOUND, CALENDAR_RANK_PLAYER, CALENDAR_STATUS_INVITED, CharacterDatabase, CONFIG_ALLOW_TWO_SIDE_INTERACTION_CALENDAR, WorldPackets::Calendar::CalendarInvite::Creating, WorldPackets::Calendar::CalendarInvite::EventID, ObjectAccessor::FindConnectedPlayerByName(), GetAccountGUID(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Player::GetGuildId(), GetQueryProcessor(), Player::GetTeam(), CharacterCacheEntry::Guid, CharacterCacheEntry::GuildId, WorldPackets::Calendar::CalendarInvite::IsSignUp, WorldPackets::Calendar::CalendarInvite::Name, normalizePlayerName(), CharacterCacheEntry::Race, sCalendarMgr, sCharacterCache, SOCIAL_FLAG_IGNORED, Trinity::StringFormat(), sWorld, and Player::TeamForRace().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarModeratorStatus | ( | WorldPackets::Calendar::CalendarModeratorStatusQuery & | calendarModeratorStatus | ) |
Definition at line 490 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarModeratorStatusQuery::EventID, BaseEntity::GetGUID(), WorldPackets::Calendar::CalendarModeratorStatusQuery::Guid, WorldPackets::Calendar::CalendarModeratorStatusQuery::InviteID, WorldPackets::Calendar::CalendarModeratorStatusQuery::ModeratorID, sCalendarMgr, WorldPackets::Calendar::CalendarModeratorStatusQuery::Status, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarRemoveEvent | ( | WorldPackets::Calendar::CalendarRemoveEvent & | calendarRemoveEvent | ) |
Definition at line 222 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarRemoveEvent::EventID, BaseEntity::GetGUID(), and sCalendarMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarRsvp | ( | WorldPackets::Calendar::CalendarRSVP & | calendarRSVP | ) |
Definition at line 416 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_EVENT_LOCKED, CALENDAR_ERROR_NO_INVITE, CALENDAR_STATUS_REMOVED, WorldPackets::Calendar::CalendarRSVP::EventID, GameTime::GetGameTime(), BaseEntity::GetGUID(), WorldPackets::Calendar::CalendarRSVP::InviteID, sCalendarMgr, and WorldPackets::Calendar::CalendarRSVP::Status.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarStatus | ( | WorldPackets::Calendar::CalendarStatus & | calendarStatus | ) |
Definition at line 466 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarStatus::EventID, BaseEntity::GetGUID(), WorldPackets::Calendar::CalendarStatus::Guid, WorldPackets::Calendar::CalendarStatus::InviteID, WorldPackets::Calendar::CalendarStatus::ModeratorID, sCalendarMgr, WorldPackets::Calendar::CalendarStatus::Status, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCalendarUpdateEvent | ( | WorldPackets::Calendar::CalendarUpdateEvent & | calendarUpdateEvent | ) |
Definition at line 196 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, WorldPackets::Calendar::CalendarUpdateEventInfo::Description, WorldPackets::Calendar::CalendarUpdateEventInfo::EventID, WorldPackets::Calendar::CalendarUpdateEvent::EventInfo, WorldPackets::Calendar::CalendarUpdateEventInfo::EventType, WorldPackets::Calendar::CalendarUpdateEventInfo::Flags, BaseEntity::GetGUID(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), sCalendarMgr, WorldPackets::Calendar::CalendarUpdateEventInfo::TextureID, WorldPackets::Calendar::CalendarUpdateEventInfo::Time, and WorldPackets::Calendar::CalendarUpdateEventInfo::Title.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelAuraOpcode | ( | WorldPackets::Spells::CancelAura & | cancelAura | ) |
Definition at line 259 of file SpellHandler.cpp.
References _player, AURA_REMOVE_BY_CANCEL, WorldPackets::Spells::CancelAura::CasterGUID, CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), Map::GetDifficultyID(), WorldObject::GetMap(), SpellInfo::HasAttribute(), Unit::InterruptSpell(), SpellInfo::IsChanneled(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveOwnedAura(), SPELL_ATTR0_NO_AURA_CANCEL, WorldPackets::Spells::CancelAura::SpellID, and sSpellMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelAutoRepeatSpellOpcode | ( | WorldPackets::Spells::CancelAutoRepeatSpell & | cancelAutoRepeatSpell | ) |
Definition at line 349 of file SpellHandler.cpp.
References _player, and Unit::CancelAutoRepeatSpell().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelCastOpcode | ( | WorldPackets::Spells::CancelCast & | packet | ) |
Definition at line 247 of file SpellHandler.cpp.
References _player, Player::CancelPendingCastRequest(), Unit::InterruptNonMeleeSpells(), Unit::IsCharmed(), Unit::IsNonMeleeSpellCast(), and WorldPackets::Spells::CancelCast::SpellID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelChanneling | ( | WorldPackets::Spells::CancelChannelling & | cancelChanneling | ) |
Definition at line 359 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::CancelChannelling::ChannelSpell, CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), Map::GetDifficultyID(), WorldObject::GetMap(), Spell::GetSpellInfo(), Unit::GetUnitBeingMoved(), SpellInfo::HasAttribute(), SpellInfo::Id, Unit::InterruptSpell(), SPELL_ATTR0_NO_AURA_CANCEL, and sSpellMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelGrowthAuraOpcode | ( | WorldPackets::Spells::CancelGrowthAura & | cancelGrowthAura | ) |
Definition at line 318 of file SpellHandler.cpp.
References _player, AuraApplication::GetBase(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveAurasByType(), SPELL_ATTR0_NO_AURA_CANCEL, and SPELL_AURA_MOD_SCALE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelModSpeedNoControlAuras | ( | WorldPackets::Spells::CancelModSpeedNoControlAuras & | cancelModSpeedNoControlAuras | ) |
Definition at line 336 of file SpellHandler.cpp.
References _player, AuraApplication::GetBase(), BaseEntity::GetGUID(), Unit::GetUnitBeingMoved(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveAurasByType(), SPELL_ATTR0_NO_AURA_CANCEL, SPELL_AURA_MOD_SPEED_NO_CONTROL, and WorldPackets::Spells::CancelModSpeedNoControlAuras::TargetGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelMountAuraOpcode | ( | WorldPackets::Spells::CancelMountAura & | cancelMountAura | ) |
Definition at line 327 of file SpellHandler.cpp.
References _player, AuraApplication::GetBase(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveAurasByType(), SPELL_ATTR0_NO_AURA_CANCEL, and SPELL_AURA_MOUNTED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelQueuedSpellOpcode | ( | WorldPackets::Spells::CancelQueuedSpell & | cancelQueuedSpell | ) |
Definition at line 354 of file SpellHandler.cpp.
References _player, and Player::CancelPendingCastRequest().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelTempEnchantmentOpcode | ( | WorldPackets::Item::CancelTempEnchantment & | cancelTempEnchantment | ) |
Definition at line 1139 of file ItemHandler.cpp.
References Player::ApplyEnchantment(), Item::ClearEnchantment(), Item::GetEnchantmentId(), Player::GetItemByPos(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsEquipmentPos(), WorldPackets::Item::CancelTempEnchantment::Slot, and TEMP_ENCHANTMENT_SLOT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCancelTradeOpcode | ( | WorldPackets::Trade::CancelTrade & | cancelTrade | ) |
Definition at line 590 of file TradeHandler.cpp.
References _player, and Player::TradeCancel().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCanDuel | ( | WorldPackets::Duel::CanDuel & | packet | ) |
Definition at line 29 of file DuelHandler.cpp.
References _player, WorldObject::CastSpell(), Player::duel, ObjectAccessor::FindPlayer(), Unit::IsMounted(), WorldPackets::Duel::CanDuelResult::Result, SendPacket(), SPELL_DUEL, SPELL_MOUNTED_DUEL, WorldPackets::Duel::CanDuel::TargetGUID, WorldPackets::Duel::CanDuelResult::TargetGUID, and WorldPackets::Duel::CanDuelResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCastSpellOpcode | ( | WorldPackets::Spells::CastSpell & | castRequest | ) |
Definition at line 228 of file SpellHandler.cpp.
References _player, Player::CanRequestSpellCast(), WorldPackets::Spells::CastSpell::Cast, WorldPackets::Spells::SpellCastRequest::CastID, CMSG_MOVE_STOP, Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), HandleMovementOpcode(), WorldPackets::Spells::SpellCastRequest::MoveUpdate, Player::RequestSpellCast(), Spell::SendCastResult(), SPELL_FAILED_SPELL_IN_PROGRESS, WorldPackets::Spells::SpellCastRequest::SpellID, sSpellMgr, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChangeBagSlotFlag | ( | WorldPackets::Item::ChangeBagSlotFlag const & | changeBagSlotFlag | ) |
Definition at line 1261 of file ItemHandler.cpp.
References _player, WorldPackets::Item::ChangeBagSlotFlag::BagIndex, WorldPackets::Item::ChangeBagSlotFlag::FlagToChange, Player::m_activePlayerData, WorldPackets::Item::ChangeBagSlotFlag::On, Player::RemoveBagSlotFlag(), and Player::SetBagSlotFlag().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChangeSubGroupOpcode | ( | WorldPackets::Party::ChangeSubGroup & | packet | ) |
Definition at line 479 of file GroupHandler.cpp.
References Group::ChangeMembersGroup(), Player::GetGroup(), BaseEntity::GetGUID(), GetPlayer(), Group::HasFreeSlotSubGroup(), Group::IsAssistant(), Group::IsLeader(), MAX_RAID_SUBGROUPS, WorldPackets::Party::ChangeSubGroup::NewSubGroup, WorldPackets::Party::ChangeSubGroup::PartyIndex, and WorldPackets::Party::ChangeSubGroup::TargetGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChannelCommand | ( | WorldPackets::Channel::ChannelCommand & | packet | ) |
Definition at line 125 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelCommand::ChannelName, CMSG_CHAT_CHANNEL_ANNOUNCEMENTS, CMSG_CHAT_CHANNEL_DECLINE_INVITE, CMSG_CHAT_CHANNEL_DISPLAY_LIST, CMSG_CHAT_CHANNEL_LIST, CMSG_CHAT_CHANNEL_OWNER, ChannelMgr::GetChannelForPlayerByNamePart(), WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChannelPassword | ( | WorldPackets::Channel::ChannelPassword & | channelPassword | ) |
Definition at line 205 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelPassword::ChannelName, ChannelMgr::GetChannelForPlayerByNamePart(), WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), MAX_CHANNEL_PASS_STR, WorldPackets::Channel::ChannelPassword::Password, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChannelPlayerCommand | ( | WorldPackets::Channel::ChannelPlayerCommand & | packet | ) |
Definition at line 153 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelPlayerCommand::ChannelName, CMSG_CHAT_CHANNEL_BAN, CMSG_CHAT_CHANNEL_INVITE, CMSG_CHAT_CHANNEL_KICK, CMSG_CHAT_CHANNEL_MODERATOR, CMSG_CHAT_CHANNEL_SET_OWNER, CMSG_CHAT_CHANNEL_SILENCE_ALL, CMSG_CHAT_CHANNEL_UNBAN, CMSG_CHAT_CHANNEL_UNMODERATOR, CMSG_CHAT_CHANNEL_UNSILENCE_ALL, ChannelMgr::GetChannelForPlayerByNamePart(), WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), MAX_CHANNEL_NAME_STR, WorldPackets::Channel::ChannelPlayerCommand::Name, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharCreateOpcode | ( | WorldPackets::Character::CreateCharacter & | charCreate | ) |
Definition at line 655 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_CREATE_DISABLED, CHAR_CREATE_EXPANSION, CHAR_CREATE_EXPANSION_CLASS, CHAR_CREATE_FAILED, CHAR_CREATE_TIMERUNNING, CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_SEL_CHECK_NAME, CharacterDatabase, ObjectMgr::CheckPlayerName(), CONFIG_CHARACTER_CREATING_DISABLED, CONFIG_CHARACTER_CREATING_DISABLED_CLASSMASK, CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK, WorldPackets::Character::CreateCharacter::CreateInfo, RaceUnlockRequirement::Expansion, GetAccountExpansion(), GetAccountId(), GetExpansion(), ChrRacesEntry::GetFlags(), GetSessionDbcLocale(), HasPermission(), LOGIN_SEL_SUM_REALM_CHARACTERS, LoginDatabase, normalizePlayerName(), NPCOnly, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_CLASSMASK, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RACEMASK, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_TEAMMASK, sChrClassesStore, sChrRacesStore, SendCharCreate(), QueryCallback::SetNextQuery(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sObjectMgr, sWorld, TC_LOG_ERROR, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, and Player::TeamIdForRace().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharCustomizeCallback | ( | std::shared_ptr< WorldPackets::Character::CharCustomizeInfo > | customizeInfo, |
| PreparedQueryResult | result | ||
| ) |
Customize
Name Change and update atLogin flags
Definition at line 1906 of file CharacterHandler.cpp.
References AT_LOGIN_CUSTOMIZE, CHAR_CREATE_ERROR, CHAR_CREATE_NAME_IN_USE, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_NAME_FAILURE, CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_UPD_CHAR_NAME_AT_LOGIN, CharacterDatabase, ObjectMgr::CheckPlayerName(), CONFIG_PREVENT_RENAME_CUSTOMIZATION, GetAccountId(), GetRemoteAddress(), GetSessionDbcLocale(), Field::GetString(), Field::GetUInt16(), HasPermission(), ObjectGuid::IsEmpty(), MakeChrCustomizationChoiceRange(), normalizePlayerName(), rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, RESPONSE_SUCCESS, Player::SaveCustomizations(), sCharacterCache, SendCharCustomize(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), sObjectMgr, sWorld, TC_LOG_INFO, and ValidateAppearance().
| void WorldSession::HandleCharCustomizeOpcode | ( | WorldPackets::Character::CharCustomize & | packet | ) |
Definition at line 1886 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHAR_CUSTOMIZE_INFO, CharacterDatabase, WorldPackets::Character::CharCustomize::CustomizeInfo, GetAccountId(), GetRemoteAddress(), IsLegitCharacterForAccount(), KickPlayer(), PreparedStatementBase::setUInt64(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharDeleteOpcode | ( | WorldPackets::Character::CharDelete & | charDelete | ) |
Definition at line 1043 of file CharacterHandler.cpp.
References CharacterCacheEntry::AccountId, CHAR_DELETE_FAILED_ARENA_CAPTAIN, CHAR_DELETE_FAILED_GUILD_LEADER, CHAR_DELETE_SUCCESS, Player::DeleteFromDB(), ObjectAccessor::FindPlayer(), GetAccountId(), ObjectGuid::GetCounter(), GetRemoteAddress(), WorldPackets::Character::CharDelete::Guid, CharacterCacheEntry::Level, LOG_LEVEL_INFO, CharacterCacheEntry::Name, sArenaTeamMgr, sCalendarMgr, sCharacterCache, SendCharDelete(), sGuildMgr, sLog, sScriptMgr, TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharEnum | ( | CharacterDatabaseQueryHolder const & | holder | ) |
Definition at line 412 of file CharacterHandler.cpp.
References _collectionMgr, _legitCharacters, AT_LOGIN_CUSTOMIZE, CHAR_UPD_ADD_AT_LOGIN_FLAG, CHARACTER_FLAG_2_CUSTOMIZE, CHARACTER_FLAG_2_FACTION_CHANGE, CHARACTER_FLAG_2_RACE_CHANGE, CHARACTER_FLAG_LOCKED_BY_BILLING, CHARACTER_FLAG_LOCKED_FOR_TRANSFER, CharacterDatabase, EnumCharactersQueryHolder::CHARACTERS, WorldPackets::Character::EnumCharactersResult::Characters, UF::ChrCustomizationChoice::ChrCustomizationChoiceID, UF::ChrCustomizationChoice::ChrCustomizationOptionID, WorldPackets::Character::EnumCharactersResult::ClassDisableMask, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::ClassID, WorldPackets::Character::EnumCharactersResult::ClassUnlock::ClassID, WorldPackets::Character::EnumCharactersResult::RaceUnlock::ClassUnlocks, CONFIG_CHARACTER_CREATING_DISABLE_ALLIED_RACE_ACHIEVEMENT_REQUIREMENT, CONFIG_CHARACTER_CREATING_DISABLED_CLASSMASK, EnumCharactersQueryHolder::CUSTOMIZATIONS, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::Customizations, WorldPackets::Character::EnumCharactersResult::RaceUnlock::DoesNotHaveAvailableClasses, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::ExperienceLevel, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::Flags, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::Flags2, GetAccountExpansion(), GetAccountId(), ObjectGuid::GetCounter(), GetExpansion(), SQLQueryHolderBase::GetPreparedResult(), Field::GetUInt32(), Field::GetUInt64(), WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::Guid, WorldPackets::Character::EnumCharactersResult::ClassUnlock::HasEntitlement, WorldPackets::Character::EnumCharactersResult::RaceUnlock::HasEntitlement, WorldPackets::Character::EnumCharactersResult::ClassUnlock::HasExpansion, WorldPackets::Character::EnumCharactersResult::ClassUnlock::HasUnlockedAchievement, WorldPackets::Character::EnumCharactersResult::RaceUnlock::HasUnlockedAchievement, WorldPackets::Character::EnumCharactersResult::RaceUnlock::HasUnlockedLicense, WorldPackets::Character::EnumCharactersResult::IsDeletedCharacters, MakeChrCustomizationChoiceRange(), Trinity::Containers::MapGetValuePtr(), MAX_CHARACTERS_PER_REALM, WorldPackets::Character::EnumCharactersResult::MaxCharacterLevel, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::Name, WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::RaceID, WorldPackets::Character::EnumCharactersResult::RaceUnlock::RaceID, WorldPackets::Character::EnumCharactersResult::RaceUnlockData, sCharacterCache, SendPacket(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), WorldPackets::Character::EnumCharactersResult::CharacterInfoBasic::SexID, sObjectMgr, WorldPackets::Character::EnumCharactersResult::Success, sWorld, TC_LOG_ERROR, TC_LOG_INFO, ObjectGuid::ToString(), ValidateAppearance(), and WorldPackets::Character::EnumCharactersResult::Write().
Referenced by HandleCharEnumOpcode(), and HandleCharUndeleteEnumOpcode().
| void WorldSession::HandleCharEnumOpcode | ( | WorldPackets::Character::EnumCharacters & | enumCharacters | ) |
get all the data necessary for loading all characters (along with their pets) on the account
Definition at line 511 of file CharacterHandler.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), CHAR_DEL_EXPIRED_BANS, CharacterDatabase, CONFIG_DECLINED_NAMES_USED, GetAccountId(), HandleCharEnum(), and sWorld.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharRaceOrFactionChangeCallback | ( | std::shared_ptr< WorldPackets::Character::CharRaceOrFactionChangeInfo > | factionChangeInfo, |
| PreparedQueryResult | result | ||
| ) |
Definition at line 2179 of file CharacterHandler.cpp.
References AT_LOGIN_CHANGE_FACTION, AT_LOGIN_CHANGE_RACE, AT_LOGIN_RESURRECT, CHAR_CREATE_CHARACTER_ARENA_LEADER, CHAR_CREATE_CHARACTER_RACE_ONLY, CHAR_CREATE_CHARACTER_SWAP_FACTION, CHAR_CREATE_ERROR, CHAR_CREATE_NAME_IN_USE, CHAR_CREATE_RESTRICTED_RACECLASS, CHAR_DEL_CHAR_ACHIEVEMENT_BY_ACHIEVEMENT, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_DEL_CHAR_QUESTSTATUS, CHAR_DEL_CHAR_QUESTSTATUS_REWARDED_BY_QUEST, CHAR_DEL_CHAR_REP_BY_FACTION, CHAR_DEL_CHAR_SKILL_LANGUAGES, CHAR_DEL_CHAR_SOCIAL_BY_FRIEND, CHAR_DEL_CHAR_SOCIAL_BY_GUID, CHAR_DEL_CHAR_SPELL_BY_SPELL, CHAR_DEL_PLAYER_HOMEBIND, CHAR_INS_CHAR_SKILL_LANGUAGE, CHAR_INS_PLAYER_HOMEBIND, CHAR_NAME_FAILURE, CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_RES_CHAR_TITLES_FACTION_CHANGE, CHAR_SEL_CHAR_REP_BY_FACTION, CHAR_UPD_CHAR_ACHIEVEMENT, CHAR_UPD_CHAR_INVENTORY_FACTION_CHANGE, CHAR_UPD_CHAR_NAME_AT_LOGIN, CHAR_UPD_CHAR_QUESTSTATUS_REWARDED_ACTIVE, CHAR_UPD_CHAR_QUESTSTATUS_REWARDED_ACTIVE_BY_QUEST, CHAR_UPD_CHAR_QUESTSTATUS_REWARDED_FACTION_CHANGE, CHAR_UPD_CHAR_RACE, CHAR_UPD_CHAR_REP_FACTION_CHANGE, CHAR_UPD_CHAR_SPELL_FACTION_CHANGE, CHAR_UPD_CHAR_TAXI_PATH, CHAR_UPD_CHAR_TAXIMASK, CHAR_UPD_CHAR_TITLES_FACTION_CHANGE, CharacterDatabase, ObjectMgr::CheckPlayerName(), CharacterCacheEntry::Class, CLASS_DEATH_KNIGHT, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK, CONFIG_PREVENT_RENAME_CUSTOMIZATION, advstd::ranges::contains, ReputationMgr::GetBaseReputation(), Field::GetInt32(), WorldLocation::GetMapId(), GetPlayerInfo(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRemoteAddress(), GetSessionDbcLocale(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), CharacterCacheEntry::GuildId, HasPermission(), ObjectGuid::IsEmpty(), Player::LeaveAllArenaTeams(), CharacterCacheEntry::Level, MakeChrCustomizationChoiceRange(), CharTitlesEntry::MaskID, CharacterCacheEntry::Name, NoRaceChangeOnThisMap, normalizePlayerName(), Player::OfflineResurrect(), PLAYER_EXTRA_HAS_RACE_CHANGED, CharacterCacheEntry::Race, RACE_BLOODELF, RACE_DARK_IRON_DWARF, RACE_DRACTHYR_ALLIANCE, RACE_DRACTHYR_HORDE, RACE_DRAENEI, RACE_DWARF, RACE_EARTHEN_DWARF_ALLIANCE, RACE_EARTHEN_DWARF_HORDE, RACE_GNOME, RACE_GOBLIN, RACE_HARANIR_ALLIANCE, RACE_HARANIR_HORDE, RACE_HIGHMOUNTAIN_TAUREN, RACE_HUMAN, RACE_KUL_TIRAN, RACE_LIGHTFORGED_DRAENEI, RACE_MAGHAR_ORC, RACE_MECHAGNOME, RACE_NIGHTBORNE, RACE_NIGHTELF, RACE_ORC, RACE_PANDAREN_ALLIANCE, RACE_PANDAREN_HORDE, RACE_PANDAREN_NEUTRAL, RACE_TAUREN, RACE_TROLL, RACE_UNDEAD_PLAYER, RACE_VOID_ELF, RACE_VULPERA, RACE_WORGEN, RACE_ZANDALARI_TROLL, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RACEMASK, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, rbac::RBAC_PERM_TWO_SIDE_ADD_FRIEND, RESPONSE_SUCCESS, sAllianceTaxiNodesMask, sArenaTeamMgr, Player::SaveCustomizations(), Player::SavePositionInDB(), sCharacterCache, sCharTitlesStore, SendCharFactionChange(), PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sFactionStore, sGroupMgr, sGuildMgr, sHordeTaxiNodesMask, TaxiMask::size(), sMapStore, sObjectMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_WARN, TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, Player::TeamIdForRace(), Trinity::Tokenize(), and WorldLocation::WorldRelocate().
| void WorldSession::HandleCharRaceOrFactionChangeOpcode | ( | WorldPackets::Character::CharRaceOrFactionChange & | packet | ) |
Definition at line 2159 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHAR_RACE_OR_FACTION_CHANGE_INFOS, CharacterDatabase, GetAccountId(), GetRemoteAddress(), IsLegitCharacterForAccount(), KickPlayer(), WorldPackets::Character::CharRaceOrFactionChange::RaceOrFactionChangeInfo, PreparedStatementBase::setUInt64(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharRenameCallBack | ( | std::shared_ptr< WorldPackets::Character::CharacterRenameInfo > | renameInfo, |
| PreparedQueryResult | result | ||
| ) |
Definition at line 1713 of file CharacterHandler.cpp.
References AT_LOGIN_RENAME, CHAR_CREATE_ERROR, CHAR_DEL_CHAR_DECLINED_NAME, CHAR_UPD_CHAR_NAME_AT_LOGIN, CharacterDatabase, GetAccountId(), GetRemoteAddress(), Field::GetString(), Field::GetUInt16(), RESPONSE_SUCCESS, sCharacterCache, SendCharRename(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt64(), and TC_LOG_INFO.
| void WorldSession::HandleCharRenameOpcode | ( | WorldPackets::Character::CharacterRenameRequest & | request | ) |
Definition at line 1670 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_SEL_FREE_NAME, CharacterDatabase, ObjectMgr::CheckPlayerName(), GetAccountId(), GetRemoteAddress(), GetSessionDbcLocale(), HasPermission(), IsLegitCharacterForAccount(), KickPlayer(), normalizePlayerName(), rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, WorldPackets::Character::CharacterRenameRequest::RenameInfo, SendCharRename(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), sObjectMgr, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharUndeleteEnumOpcode | ( | WorldPackets::Character::EnumCharacters & | enumCharacters | ) |
get all the data necessary for loading all undeleted characters (along with their pets) on the account
Definition at line 531 of file CharacterHandler.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), CharacterDatabase, CONFIG_DECLINED_NAMES_USED, GetAccountId(), HandleCharEnum(), and sWorld.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCharUndeleteOpcode | ( | WorldPackets::Character::UndeleteCharacter & | undeleteInfo | ) |
Definition at line 2814 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHAR_DEL_INFO_BY_GUID, CHARACTER_UNDELETE_RESULT_ERROR_DISABLED, CharacterDatabase, CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED, GetBattlenetAccountId(), LOGIN_SEL_LAST_CHAR_UNDELETE, LoginDatabase, SendUndeleteCharacterResponse(), QueryCallback::SetNextQuery(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sWorld, and WorldPackets::Character::UndeleteCharacter::UndeleteInfo.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatAddonMessage | ( | ChatMsg | type, |
| std::string | prefix, | ||
| std::string | text, | ||
| bool | isLogged, | ||
| std::string | target = "", |
||
| Optional< ObjectGuid > | targetGuid = {} |
||
| ) |
Definition at line 504 of file ChatHandler.cpp.
References Player::ChatFloodThrottle::ADDON, Channel::AddonSay(), Group::BroadcastAddonMessagePacket(), CanSpeak(), CHAT_MSG_CHANNEL, CHAT_MSG_GUILD, CHAT_MSG_INSTANCE_CHAT, CHAT_MSG_OFFICER, CHAT_MSG_PARTY, CHAT_MSG_RAID, CHAT_MSG_WHISPER, CONFIG_ADDON_CHANNEL, DEFAULT_LOCALE, ExtractExtendedPlayerName(), ObjectAccessor::FindConnectedPlayer(), ObjectAccessor::FindConnectedPlayerByName(), ChannelMgr::GetChannelForPlayerByGuid(), ChannelMgr::GetChannelForPlayerByNamePart(), Player::GetGroup(), BaseEntity::GetGUID(), Player::GetGuildId(), Player::GetOriginalGroup(), GetPlayer(), Player::GetSubGroup(), WorldPackets::Chat::Chat::Initialize(), LANG_ADDON, LANG_ADDON_LOGGED, ExtendedPlayerName::Name, normalizePlayerName(), AddonChannelCommandHandler::PREFIX, sGuildMgr, sWorld, TC_LOG_ERROR, Player::UpdateSpeakTime(), Player::WhisperAddon(), and WorldPackets::Chat::Chat::Write().
Referenced by HandleChatAddonMessageOpcode(), and HandleChatAddonMessageTargetedOpcode().
| void WorldSession::HandleChatAddonMessageOpcode | ( | WorldPackets::Chat::ChatAddonMessage & | chatAddonMessage | ) |
Definition at line 481 of file ChatHandler.cpp.
References HandleChatAddonMessage(), WorldPackets::Chat::ChatAddonMessageParams::IsLogged, WorldPackets::Chat::ChatAddonMessage::Params, WorldPackets::Chat::ChatAddonMessageParams::Prefix, WorldPackets::Chat::ChatAddonMessageParams::Text, and WorldPackets::Chat::ChatAddonMessageParams::Type.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatAddonMessageTargetedOpcode | ( | WorldPackets::Chat::ChatAddonMessageTargeted & | chatAddonMessageTargeted | ) |
Definition at line 486 of file ChatHandler.cpp.
References WorldPackets::Chat::ChatAddonMessageTargeted::ChannelGUID, WorldPackets::Chat::ChatAddonMessageTargeted::ChannelName, CHAT_MSG_CHANNEL, CHAT_MSG_WHISPER, HandleChatAddonMessage(), WorldPackets::Chat::ChatAddonMessageParams::IsLogged, WorldPackets::Chat::ChatAddonMessageTargeted::Params, WorldPackets::Chat::ChatAddonMessageTargeted::PlayerGUID, WorldPackets::Chat::ChatAddonMessageTargeted::PlayerName, WorldPackets::Chat::ChatAddonMessageParams::Prefix, TC_LOG_ERROR, WorldPackets::Chat::ChatAddonMessageParams::Text, and WorldPackets::Chat::ChatAddonMessageParams::Type.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatCanLocalWhisperTargetRequest | ( | WorldPackets::Chat::CanLocalWhisperTargetRequest const & | canLocalWhisperTargetRequest | ) |
Definition at line 791 of file ChatHandler.cpp.
References CanWhisper, ObjectAccessor::FindConnectedPlayer(), Player::GetEffectiveTeam(), BaseEntity::GetGUID(), GetPlayer(), Player::GetSession(), HasPermission(), Player::isAcceptWhispers(), Player::IsGameMasterAcceptingWhispers(), Player::IsInWhisperWhiteList(), Offline, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT, SendPacket(), WorldPackets::Chat::CanLocalWhisperTargetResponse::Status, WorldPackets::Chat::CanLocalWhisperTargetRequest::WhisperTarget, WorldPackets::Chat::CanLocalWhisperTargetResponse::WhisperTarget, WorldPackets::Chat::CanLocalWhisperTargetResponse::Write(), and WrongFaction.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatIgnoredOpcode | ( | WorldPackets::Chat::ChatReportIgnored & | chatReportIgnored | ) |
Definition at line 763 of file ChatHandler.cpp.
References _player, CHAT_MSG_IGNORED, ObjectAccessor::FindConnectedPlayer(), GetPlayer(), Player::GetSession(), WorldPackets::Chat::ChatReportIgnored::IgnoredGUID, WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, Player::SendDirectMessage(), and WorldPackets::Chat::Chat::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| ChatMessageResult WorldSession::HandleChatMessage | ( | ChatMsg | type, |
| Language | lang, | ||
| std::string | msg, | ||
| std::string | target = "", |
||
| Optional< ObjectGuid > | targetGuid = {} |
||
| ) |
Definition at line 145 of file ChatHandler.cpp.
References Player::AddWhisperWhiteList(), Group::BroadcastPacket(), CanSpeak(), ChannelIsReadOnly, CHAT_MSG_AFK, CHAT_MSG_CHANNEL, CHAT_MSG_DND, CHAT_MSG_EMOTE, CHAT_MSG_GUILD, CHAT_MSG_INSTANCE_CHAT, CHAT_MSG_INSTANCE_CHAT_LEADER, CHAT_MSG_OFFICER, CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER, CHAT_MSG_RAID, CHAT_MSG_RAID_LEADER, CHAT_MSG_RAID_WARNING, CHAT_MSG_SAY, CHAT_MSG_WHISPER, CHAT_MSG_YELL, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, CONFIG_CHAT_CHANNEL_LEVEL_REQ, CONFIG_CHAT_EMOTE_LEVEL_REQ, CONFIG_CHAT_PARTY_RAID_WARNINGS, CONFIG_CHAT_SAY_LEVEL_REQ, CONFIG_CHAT_WHISPER_LEVEL_REQ, CONFIG_CHAT_YELL_LEVEL_REQ, DisallowedLanguage, ExtractExtendedPlayerName(), ObjectAccessor::FindConnectedPlayer(), ObjectAccessor::FindConnectedPlayerByName(), Unit::GetAuraEffectsByType(), ChannelMgr::GetChannelForPlayerByGuid(), ChannelMgr::GetChannelForPlayerByNamePart(), Channel::GetChannelId(), Player::GetEffectiveTeam(), GameTime::GetGameTime(), Player::GetGroup(), BaseEntity::GetGUID(), Player::GetGuildId(), Unit::GetLevel(), Group::GetMemberGroup(), WorldObject::GetName(), Player::GetOriginalGroup(), GetPlayer(), GetPlayerInfo(), Player::GetSession(), GetTrinityString(), GM_SILENCE_AURA, HandledCommand, HasAura, Unit::HasAura(), Unit::HasAuraTypeWithMiscvalue(), HasPermission(), WorldPackets::Chat::Chat::Initialize(), InvalidLanguage, Player::isAcceptWhispers(), Unit::IsAlive(), Group::IsAssistant(), Group::isBGGroup(), Player::IsGameMaster(), Player::IsGameMasterAcceptingWhispers(), Player::IsInWhisperWhiteList(), Group::IsLeader(), Group::isRaidGroup(), LANG_ADDON, LANG_CHANNEL_REQ, LANG_GM_SILENCE, LANG_NOT_LEARNED_LANGUAGE, LANG_SAY_REQ, LANG_UNIVERSAL, LANG_UNKNOWN_LANGUAGE, LANG_WAIT_BEFORE_SPEAKING, LANG_WHISPER_REQ, LanguageNotLearned, LevelTooLow, m_muteTime, MalformedHyperlinks, MessageEmpty, MessageHasInvalidCharacters, MessageTooLong, Muted, ExtendedPlayerName::Name, normalizePlayerName(), NotInGroup, NotLeaderOrAssistant, NoWhisperTarget, Ok, PlayerDead, RaidWarningInPartyDisabled, rbac::RBAC_PERM_CAN_FILTER_WHISPERS, rbac::RBAC_PERM_SKIP_CHECK_CHAT_CHANNEL_REQ, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT, ReadOnly, Player::ChatFloodThrottle::REGULAR, Channel::Say(), Player::Say(), sChatChannelsStore, secsToTimeString(), SendChatPlayerNotfoundNotice(), SendNotification(), sGuildMgr, SilencedByGM, sLanguageMgr, SPELL_AURA_COMPREHEND_LANGUAGE, SPELL_AURA_MOD_LANGUAGE, sScriptMgr, sWorld, TC_LOG_ERROR, Player::TextEmote(), Player::UpdateSpeakTime(), ValidateHyperlinksAndMaybeKick(), ValidateMessage(), Player::Whisper(), WhisperTargetWrongFaction, WorldPackets::Chat::Chat::Write(), and Player::Yell().
Referenced by HandleChatMessageChannelOpcode(), HandleChatMessageEmoteOpcode(), HandleChatMessageOpcode(), HandleChatMessageWhisperOpcode(), and Battlenet::Services::ClubService::HandleCreateMessage().
| void WorldSession::HandleChatMessageAFKOpcode | ( | WorldPackets::Chat::ChatMessageAFK & | chatMessageAFK | ) |
Definition at line 601 of file ChatHandler.cpp.
References Player::autoReplyMsg, CHAT_MSG_AFK, BaseEntity::GetGUID(), Player::GetGuild(), WorldObject::GetName(), GetPlayer(), GetTrinityString(), GM_SILENCE_AURA, Unit::HasAura(), Player::isAFK(), Player::isDND(), Unit::IsInCombat(), LANG_GM_SILENCE, LANG_PLAYER_AFK_DEFAULT, LANG_UNIVERSAL, SendNotification(), sScriptMgr, WorldPackets::Chat::ChatMessageAFK::Text, Player::ToggleAFK(), Player::ToggleDND(), ValidateHyperlinksAndMaybeKick(), and ValidateMessage().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatMessageChannelOpcode | ( | WorldPackets::Chat::ChatMessageChannel & | chatMessageChannel | ) |
Definition at line 135 of file ChatHandler.cpp.
References WorldPackets::Chat::ChatMessageChannel::ChannelGUID, CHAT_MSG_CHANNEL, HandleChatMessage(), WorldPackets::Chat::ChatMessageChannel::Language, WorldPackets::Chat::ChatMessageChannel::Target, and WorldPackets::Chat::ChatMessageChannel::Text.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatMessageDNDOpcode | ( | WorldPackets::Chat::ChatMessageDND & | chatMessageDND | ) |
Definition at line 647 of file ChatHandler.cpp.
References Player::autoReplyMsg, CHAT_MSG_DND, BaseEntity::GetGUID(), Player::GetGuild(), WorldObject::GetName(), GetPlayer(), GetTrinityString(), GM_SILENCE_AURA, Unit::HasAura(), Player::isAFK(), Player::isDND(), Unit::IsInCombat(), LANG_GM_SILENCE, LANG_PLAYER_DND_DEFAULT, LANG_UNIVERSAL, SendNotification(), sScriptMgr, WorldPackets::Chat::ChatMessageDND::Text, Player::ToggleAFK(), Player::ToggleDND(), ValidateHyperlinksAndMaybeKick(), and ValidateMessage().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatMessageEmoteOpcode | ( | WorldPackets::Chat::ChatMessageEmote & | chatMessageEmote | ) |
Definition at line 140 of file ChatHandler.cpp.
References CHAT_MSG_EMOTE, HandleChatMessage(), LANG_UNIVERSAL, and WorldPackets::Chat::ChatMessageEmote::Text.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatMessageOpcode | ( | WorldPackets::Chat::ChatMessage & | chatMessage | ) |
Definition at line 92 of file ChatHandler.cpp.
References CHAT_MSG_GUILD, CHAT_MSG_INSTANCE_CHAT, CHAT_MSG_OFFICER, CHAT_MSG_PARTY, CHAT_MSG_RAID, CHAT_MSG_RAID_WARNING, CHAT_MSG_SAY, CHAT_MSG_YELL, CMSG_CHAT_MESSAGE_GUILD, CMSG_CHAT_MESSAGE_INSTANCE_CHAT, CMSG_CHAT_MESSAGE_OFFICER, CMSG_CHAT_MESSAGE_PARTY, CMSG_CHAT_MESSAGE_RAID, CMSG_CHAT_MESSAGE_RAID_WARNING, CMSG_CHAT_MESSAGE_SAY, CMSG_CHAT_MESSAGE_YELL, WorldPackets::ClientPacket::GetOpcode(), HandleChatMessage(), WorldPackets::Chat::ChatMessage::Language, TC_LOG_ERROR, and WorldPackets::Chat::ChatMessage::Text.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatMessageWhisperOpcode | ( | WorldPackets::Chat::ChatMessageWhisper & | chatMessageWhisper | ) |
Definition at line 130 of file ChatHandler.cpp.
References CHAT_MSG_WHISPER, HandleChatMessage(), WorldPackets::Chat::ChatMessageWhisper::Language, WorldPackets::Chat::ChatMessageWhisper::Target, WorldPackets::Chat::ChatMessageWhisper::TargetGUID, and WorldPackets::Chat::ChatMessageWhisper::Text.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleChatUpdateAADCStatus | ( | WorldPackets::Chat::UpdateAADCStatus const & | updateAADCStatus | ) |
Definition at line 813 of file ChatHandler.cpp.
References WorldPackets::Chat::UpdateAADCStatusResponse::ChatDisabled, SendPacket(), WorldPackets::Chat::UpdateAADCStatusResponse::Success, and WorldPackets::Chat::UpdateAADCStatusResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCheckCharacterNameAvailability | ( | WorldPackets::Character::CheckCharacterNameAvailability & | checkCharacterNameAvailability | ) |
Definition at line 1636 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_SEL_CHECK_NAME, CharacterDatabase, ObjectMgr::CheckPlayerName(), GetSessionDbcLocale(), HasPermission(), WorldPackets::Character::CheckCharacterNameAvailability::Name, normalizePlayerName(), rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, SendPacket(), WorldPackets::Character::CheckCharacterNameAvailability::SequenceIndex, PreparedStatementBase::setString(), sObjectMgr, and WorldPackets::Character::CheckCharacterNameAvailabilityResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCheckIsAdventureMapPoiValid | ( | WorldPackets::AdventureMap::CheckIsAdventureMapPoiValid & | CheckIsAdventureMapPoiValid | ) |
Definition at line 24 of file AdventureMapHandler.cpp.
References _player, WorldPackets::AdventureMap::CheckIsAdventureMapPoiValid::AdventureMapPoiID, WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::AdventureMapPoiID, AdventureMapPOIEntry::ID, WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::IsVisible, Player::MeetPlayerCondition(), AdventureMapPOIEntry::PlayerConditionID, AdventureMapPOIEntry::QuestID, sAdventureMapPOIStore, SendPacket(), sObjectMgr, and WorldPackets::AdventureMap::PlayerIsAdventureMapPoiValid::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClassTalentsDeleteConfig | ( | WorldPackets::Traits::ClassTalentsDeleteConfig const & | classTalentsDeleteConfig | ) |
Definition at line 207 of file TraitHandler.cpp.
References _player, WorldPackets::Traits::ClassTalentsDeleteConfig::ConfigID, and Player::DeleteTraitConfig().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClassTalentsRenameConfig | ( | WorldPackets::Traits::ClassTalentsRenameConfig & | classTalentsRenameConfig | ) |
Definition at line 202 of file TraitHandler.cpp.
References _player, WorldPackets::Traits::ClassTalentsRenameConfig::ConfigID, WorldPackets::Traits::ClassTalentsRenameConfig::Name, and Player::RenameTraitConfig().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClassTalentsRequestNewConfig | ( | WorldPackets::Traits::ClassTalentsRequestNewConfig & | classTalentsRequestNewConfig | ) |
Definition at line 147 of file TraitHandler.cpp.
References _player, ActiveForSpec, AsUnderlyingType(), WorldPackets::Traits::TraitConfig::ChrSpecializationID, Combat, WorldPackets::Traits::TraitConfig::CombatConfigFlags, WorldPackets::Traits::ClassTalentsRequestNewConfig::Config, Player::CreateTraitConfig(), WorldPackets::Traits::TraitConfig::Entries, TraitMgr::GetGrantedTraitEntriesForConfig(), Player::GetPrimarySpecialization(), WorldPackets::Traits::TraitEntry::GrantedRanks, WorldPackets::Traits::TraitConfig::LocalIdentifier, Player::m_activePlayerData, TraitMgr::MAX_COMBAT_TRAIT_CONFIGS, None, TraitMgr::Ok, WorldPackets::Traits::TraitEntry::Rank, sTraitNodeEntryStore, WorldPackets::Traits::TraitEntry::TraitNodeEntryID, WorldPackets::Traits::TraitEntry::TraitNodeID, WorldPackets::Traits::TraitConfig::Type, and TraitMgr::ValidateConfig().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClassTalentsSetStarterBuildActive | ( | WorldPackets::Traits::ClassTalentsSetStarterBuildActive const & | classTalentsSetStarterBuildActive | ) |
Definition at line 212 of file TraitHandler.cpp.
References _player, WorldPackets::Traits::ClassTalentsSetStarterBuildActive::Active, ActiveForSpec, Combat, UF::TraitConfig::CombatConfigFlags, WorldPackets::Traits::TraitConfig::CombatConfigFlags, WorldPackets::Traits::ClassTalentsSetStarterBuildActive::ConfigID, Player::GetTraitConfig(), EnumFlag< T >::HasFlag(), TraitMgr::InitializeStarterBuildTraitConfig(), WorldPackets::Traits::TraitConfig::LocalIdentifier, Player::m_activePlayerData, Player::SetTraitConfigUseStarterBuild(), StarterBuild, UF::TraitConfig::Type, and Player::UpdateTraitConfig().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClassTalentsSetUsesSharedActionBars | ( | WorldPackets::Traits::ClassTalentsSetUsesSharedActionBars const & | classTalentsSetUsesSharedActionBars | ) |
Definition at line 252 of file TraitHandler.cpp.
References _player, WorldPackets::Traits::ClassTalentsSetUsesSharedActionBars::ConfigID, WorldPackets::Traits::ClassTalentsSetUsesSharedActionBars::IsLastSelectedSavedConfig, Player::SetTraitConfigUseSharedActionBars(), and WorldPackets::Traits::ClassTalentsSetUsesSharedActionBars::UsesShared.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClearRaidMarker | ( | WorldPackets::Party::ClearRaidMarker & | packet | ) |
Definition at line 642 of file GroupHandler.cpp.
References Group::DeleteRaidMarker(), Player::GetGroup(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), Group::isRaidGroup(), and WorldPackets::Party::ClearRaidMarker::MarkerId.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleClearTradeItemOpcode | ( | WorldPackets::Trade::ClearTradeItem & | clearTradeItem | ) |
Definition at line 775 of file TradeHandler.cpp.
References _player, Player::m_trade, TradeData::SetItem(), TRADE_SLOT_COUNT, WorldPackets::Trade::ClearTradeItem::TradeSlot, and TradeData::UpdateClientStateIndex().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCloseInteraction | ( | WorldPackets::Misc::CloseInteraction & | closeInteraction | ) |
Definition at line 1175 of file MiscHandler.cpp.
References _player, ObjectGuid::Empty, Player::GetStableMaster(), Player::PlayerTalkClass, Player::SetStableMaster(), and WorldPackets::Misc::CloseInteraction::SourceGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCollectionItemSetFavorite | ( | WorldPackets::Collections::CollectionItemSetFavorite & | collectionItemSetFavorite | ) |
Definition at line 22 of file CollectionsHandler.cpp.
References GetCollectionMgr(), CollectionMgr::HasItemAppearance(), WorldPackets::Collections::CollectionItemSetFavorite::ID, WorldPackets::Collections::CollectionItemSetFavorite::IsFavorite, CollectionMgr::SetAppearanceIsFavorite(), CollectionMgr::SetWarbandSceneIsFavorite(), Toy, CollectionMgr::ToySetFavorite(), Transmog, TransmogSetFavorite, WorldPackets::Collections::CollectionItemSetFavorite::Type, and WarbandScene.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCommerceTokenGetLog | ( | WorldPackets::Token::CommerceTokenGetLog & | updateListedAuctionableTokens | ) |
Definition at line 21 of file TokenHandler.cpp.
References WorldPackets::Token::CommerceTokenGetLog::ClientToken, WorldPackets::Token::CommerceTokenGetLogResponse::ClientToken, WorldPackets::Token::CommerceTokenGetLogResponse::Result, SendPacket(), TOKEN_RESULT_ERROR_DISABLED, and WorldPackets::Token::CommerceTokenGetLogResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCommerceTokenGetMarketPrice | ( | WorldPackets::Token::CommerceTokenGetMarketPrice & | requestWowTokenMarketPrice | ) |
Definition at line 31 of file TokenHandler.cpp.
References WorldPackets::Token::CommerceTokenGetMarketPrice::ClientToken, WorldPackets::Token::CommerceTokenGetMarketPriceResponse::ClientToken, WorldPackets::Token::CommerceTokenGetMarketPriceResponse::Price, WorldPackets::Token::CommerceTokenGetMarketPriceResponse::Result, SendPacket(), TOKEN_RESULT_ERROR_DISABLED, and WorldPackets::Token::CommerceTokenGetMarketPriceResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleComplaint | ( | WorldPackets::Ticket::Complaint & | packet | ) |
Definition at line 98 of file TicketHandler.cpp.
References WorldPackets::Ticket::Complaint::ComplaintType, WorldPackets::Ticket::ComplaintResult::ComplaintType, WorldPackets::Ticket::ComplaintResult::Result, SendPacket(), and WorldPackets::Ticket::ComplaintResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCompleteCinematic | ( | WorldPackets::Misc::CompleteCinematic & | packet | ) |
Definition at line 776 of file MiscHandler.cpp.
References CinematicMgr::EndCinematic(), Player::GetCinematicMgr(), and GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCompleteMovie | ( | WorldPackets::Misc::CompleteMovie & | packet | ) |
Definition at line 788 of file MiscHandler.cpp.
References _player, Player::GetMovie(), Player::SetMovie(), and sScriptMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleConfirmArtifactRespec | ( | WorldPackets::Artifact::ConfirmArtifactRespec & | confirmArtifactRespec | ) |
Definition at line 201 of file ArtifactHandler.cpp.
References _player, Player::ApplyArtifactPowerRank(), ARTIFACT_POWER_FLAG_SCALES_WITH_NUM_POWERS, WorldPackets::Artifact::ConfirmArtifactRespec::ArtifactGUID, ArtifactPowerEntry::Flags, Player::GetItemByGuid(), Item::GetModifier(), Player::GetNPCIfCanInteractWith(), Item::GetTotalPurchasedArtifactPowers(), ArtifactPowerEntry::ID, Item::IsArtifactDisabled(), Item::IsEquipped(), ITEM_CHANGED, ITEM_MODIFIER_ARTIFACT_TIER, Item::m_itemData, WorldPackets::Artifact::ConfirmArtifactRespec::NpcGUID, sArtifactLevelXPGameTable, sArtifactPowerStore, sDB2Manager, Item::SetArtifactPower(), Item::SetArtifactXP(), Item::SetState(), UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_ARTIFACT_POWER_RESPEC.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleConfirmRespecWipeOpcode | ( | WorldPackets::Talent::ConfirmRespecWipe & | confirmRespecWipe | ) |
Definition at line 77 of file SkillHandler.cpp.
References _player, Creature::CanResetTalents(), WorldObject::CastSpell(), ObjectGuid::Empty, Player::GetNextResetTalentsCost(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::HasEnoughMoney(), Player::IncreaseResetTalentsCostAndCounters(), Player::ModifyMoney(), Unit::RemoveAurasByType(), Player::ResetTalents(), WorldPackets::Talent::ConfirmRespecWipe::RespecMaster, WorldPackets::Talent::ConfirmRespecWipe::RespecType, Player::SendRespecWipeConfirm(), Player::SendTalentsInfoData(), SPEC_RESET_TALENTS, SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRAINER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleContactListOpcode | ( | WorldPackets::Social::SendContactList & | packet | ) |
Definition at line 32 of file SocialHandler.cpp.
References _player, WorldPackets::Social::SendContactList::Flags, Player::GetSocial(), PlayerSocial::SendSocialList(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleContinuePlayerLogin | ( | ) |
Definition at line 1131 of file CharacterHandler.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), CharacterDatabase, ObjectGuid::Clear(), CONNECTION_TYPE_INSTANCE, GetAccountId(), GetPlayer(), HandlePlayerLogin(), KickPlayer(), m_playerLoading, PlayerLoading(), RegisterTimeSync(), SendPacket(), and SPECIAL_RESUME_COMMS_TIME_SYNC_COUNTER.
Referenced by AddInstanceConnection().
| void WorldSession::HandleConversationLineStarted | ( | WorldPackets::Misc::ConversationLineStarted & | conversationLineStarted | ) |
Definition at line 1186 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::ConversationLineStarted::ConversationGUID, ObjectAccessor::GetConversation(), and WorldPackets::Misc::ConversationLineStarted::LineID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleConvertRaidOpcode | ( | WorldPackets::Party::ConvertRaid & | packet | ) |
Definition at line 446 of file GroupHandler.cpp.
References _player, Group::ConvertToGroup(), Group::ConvertToRaid(), ERR_PARTY_RESULT_OK, Player::GetGroup(), Group::GetMembersCount(), GetPlayer(), Player::InBattleground(), Group::IsLeader(), PARTY_OP_INVITE, WorldPackets::Party::ConvertRaid::Raid, and SendPartyResult().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleCreatureQuery | ( | WorldPackets::Query::QueryCreature & | packet | ) |
Only static data is sent in this packet !!!
Definition at line 72 of file QueryHandler.cpp.
References _player, WorldPackets::Query::QueryCreature::CreatureID, WorldPackets::Query::QueryCreatureResponse::CreatureID, DIFFICULTY_NONE, Map::GetDifficultyID(), WorldObject::GetMap(), GetSessionDbLocaleIndex(), SendPacket(), sObjectMgr, TC_LOG_DEBUG, and WorldPackets::Query::QueryCreatureResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDBQueryBulk | ( | WorldPackets::Hotfix::DBQueryBulk & | dbQuery | ) |
Definition at line 25 of file HotfixHandler.cpp.
References ByteBuffer::append(), WorldPackets::Hotfix::DBReply::Data, GameTime::GetGameTime(), GetPlayerInfo(), GetSessionDbcLocale(), DB2StorageBase::HasRecord(), WorldPackets::Hotfix::DBQueryBulk::Queries, WorldPackets::Hotfix::DBReply::RecordID, sDB2Manager, SendPacket(), WorldPackets::Hotfix::DBReply::Status, WorldPackets::Hotfix::DBQueryBulk::TableHash, WorldPackets::Hotfix::DBReply::TableHash, TC_LOG_TRACE, WorldPackets::Hotfix::DBReply::Timestamp, DB2Manager::HotfixRecord::Valid, WorldPackets::Hotfix::DBReply::Write(), and DB2StorageBase::WriteRecord().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDeclineGuildInvites | ( | WorldPackets::Guild::DeclineGuildInvites & | packet | ) |
Definition at line 537 of file GuildHandler.cpp.
References WorldPackets::Guild::DeclineGuildInvites::Allow, GetPlayer(), PLAYER_FLAGS_AUTO_DECLINE_GUILD, Player::RemovePlayerFlag(), and Player::SetPlayerFlag().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDeclineNeighborhoodInvites | ( | WorldPackets::Housing::DeclineNeighborhoodInvites const & | declineNeighborhoodInvites | ) |
Definition at line 22 of file HousingHandler.cpp.
References WorldPackets::Housing::DeclineNeighborhoodInvites::Allow, GetPlayer(), PLAYER_FLAGS_EX_AUTO_DECLINE_NEIGHBORHOOD, Player::RemovePlayerFlagEx(), and Player::SetPlayerFlagEx().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDeclinePetition | ( | WorldPackets::Petition::DeclinePetition & | packet | ) |
Definition at line 303 of file PetitionsHandler.cpp.
References _player, BaseEntity::GetGUID(), WorldPackets::Petition::DeclinePetition::PetitionGUID, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDeleteEquipmentSet | ( | WorldPackets::EquipmentSet::DeleteEquipmentSet & | deleteEquipmentSet | ) |
Definition at line 2097 of file CharacterHandler.cpp.
References _player, Player::DeleteEquipmentSet(), and WorldPackets::EquipmentSet::DeleteEquipmentSet::ID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDelFriendOpcode | ( | WorldPackets::Social::DelFriend & | packet | ) |
Definition at line 119 of file SocialHandler.cpp.
References FRIEND_REMOVED, GetPlayer(), Player::GetSocial(), WorldPackets::Social::QualifiedGUID::Guid, WorldPackets::Social::DelFriend::Player, PlayerSocial::RemoveFromSocialList(), SOCIAL_FLAG_FRIEND, sSocialMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDelIgnoreOpcode | ( | WorldPackets::Social::DelIgnore & | packet | ) |
Definition at line 161 of file SocialHandler.cpp.
References FRIEND_IGNORE_REMOVED, GetPlayer(), Player::GetSocial(), WorldPackets::Social::QualifiedGUID::Guid, WorldPackets::Social::DelIgnore::Player, PlayerSocial::RemoveFromSocialList(), SOCIAL_FLAG_IGNORED, sSocialMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDestroyItemOpcode | ( | WorldPackets::Item::DestroyItem & | destroyItem | ) |
Definition at line 313 of file ItemHandler.cpp.
References _player, Player::CanUnequipItem(), WorldPackets::Item::DestroyItem::ContainerId, WorldPackets::Item::DestroyItem::Count, Player::DestroyItem(), Player::DestroyItemCount(), EQUIP_ERR_DROP_BOUND_ITEM, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, Player::GetItemByPos(), Item::GetTemplate(), ItemTemplate::HasFlag(), Player::IsBagPos(), Player::IsEquipmentPos(), ITEM_FLAG_NO_USER_DESTROY, Player::SendEquipError(), WorldPackets::Item::DestroyItem::SlotNum, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDFGetJoinStatus | ( | WorldPackets::LFG::DFGetJoinStatus & | dfGetJoinStatus | ) |
Definition at line 116 of file LFGHandler.cpp.
References lfg::LfgUpdateData::dungeons, BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), SendLfgUpdateStatus(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDFGetSystemInfo | ( | WorldPackets::LFG::DFGetSystemInfo & | dfGetSystemInfo | ) |
Definition at line 106 of file LFGHandler.cpp.
References GetPlayerInfo(), WorldPackets::LFG::DFGetSystemInfo::Player, SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDismissCritter | ( | WorldPackets::Pet::DismissCritter & | dismissCritter | ) |
Definition at line 41 of file PetHandler.cpp.
References _player, WorldPackets::Pet::DismissCritter::CritterGUID, GetAccountId(), Unit::GetBattlePetCompanionGUID(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Unit::GetCritterGUID(), BaseEntity::GetGUID(), GetPlayer(), Player::GetSummonedBattlePetGUID(), BaseEntity::GetTypeId(), ObjectGuid::IsEmpty(), Unit::IsSummon(), Player::SetBattlePetData(), TC_LOG_DEBUG, ObjectGuid::ToString(), Unit::ToTempSummon(), TYPEID_UNIT, and TempSummon::UnSummon().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDoReadyCheckOpcode | ( | WorldPackets::Party::DoReadyCheck & | packet | ) |
error handling
Definition at line 551 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), WorldPackets::Party::DoReadyCheck::PartyIndex, and Group::StartReadyCheck().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleDuelAccepted | ( | ObjectGuid | arbiterGuid | ) |
Definition at line 58 of file DuelHandler.cpp.
References Player::duel, DUEL_STATE_CHALLENGED, DUEL_STATE_COUNTDOWN, Player::EnablePvpRules(), GameTime::GetGameTime(), BaseEntity::GetGUID(), WorldObject::GetName(), GetPlayer(), Player::GetSession(), Player::m_playerData, SendPacket(), TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Duel::DuelCountdown::Write().
Referenced by HandleDuelResponseOpcode().
| void WorldSession::HandleDuelCancelled | ( | ) |
Definition at line 86 of file DuelHandler.cpp.
References WorldObject::CastSpell(), Unit::CombatStopWithPets(), Player::duel, DUEL_INTERRUPTED, DUEL_STATE_COMPLETED, DUEL_STATE_IN_PROGRESS, DUEL_WON, Player::DuelComplete(), and GetPlayer().
Referenced by HandleDuelResponseOpcode().
| void WorldSession::HandleDuelResponseOpcode | ( | WorldPackets::Duel::DuelResponse & | duelResponse | ) |
Definition at line 50 of file DuelHandler.cpp.
References WorldPackets::Duel::DuelResponse::Accepted, WorldPackets::Duel::DuelResponse::ArbiterGUID, WorldPackets::Duel::DuelResponse::Forfeited, HandleDuelAccepted(), and HandleDuelCancelled().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleEjectPassenger | ( | WorldPackets::Vehicle::EjectPassenger & | ejectPassenger | ) |
Definition at line 148 of file VehicleHandler.cpp.
References _player, ASSERT, Unit::ExitVehicle(), Vehicle::GetBase(), GetPlayer(), Vehicle::GetSeatForPassenger(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), VehicleSeatEntry::IsEjectable(), Unit::IsOnVehicle(), ObjectGuid::IsUnit(), WorldPackets::Vehicle::EjectPassenger::Passenger, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleEmoteOpcode | ( | WorldPackets::Chat::EmoteClient & | packet | ) |
Definition at line 693 of file ChatHandler.cpp.
References _player, EMOTE_ONESHOT_NONE, GetPlayer(), Unit::SetEmoteState(), sScriptMgr, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleEnableTaxiNodeOpcode | ( | WorldPackets::Taxi::EnableTaxiNode & | enableTaxiNode | ) |
Definition at line 35 of file TaxiHandler.cpp.
References GetPlayer(), SendLearnNewTaxiNode(), WorldPackets::Taxi::EnableTaxiNode::Unit, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleEquipmentSetSave | ( | WorldPackets::EquipmentSet::SaveEquipmentSet & | saveEquipmentSet | ) |
cheating check 1 (item equipped but sent empty guid)
cheating check 2 (sent guid does not match equipped item)
clear invalid bits (i > EQUIPMENT_SLOT_END)
Definition at line 2009 of file CharacterHandler.cpp.
References _player, EquipmentSetInfo::EquipmentSetData::Appearances, EquipmentSetInfo::EquipmentSetData::Enchants, EquipmentSetInfo::EQUIPMENT, EQUIPMENT_SLOT_END, Unit::GetClass(), GetCollectionMgr(), BaseEntity::GetGUID(), Player::GetItemByPos(), TransmogMgr::GetTransmogIllusionForSpellItemEnchantment(), CollectionMgr::HasItemAppearance(), EquipmentSetInfo::EquipmentSetData::IgnoreMask, INVENTORY_SLOT_BAG_0, ObjectGuid::IsEmpty(), ConditionMgr::IsPlayerMeetingCondition(), MAX_EQUIPMENT_SET_INDEX, EquipmentSetInfo::EquipmentSetData::Pieces, SpellItemEnchantmentEntry::ScalingClassRestricted, WorldPackets::EquipmentSet::SaveEquipmentSet::Set, Player::SetEquipmentSet(), EquipmentSetInfo::EquipmentSetData::SetID, sItemModifiedAppearanceStore, sSpellItemEnchantmentStore, EquipmentSetInfo::TRANSMOG, SpellItemEnchantmentEntry::TransmogUseConditionID, and EquipmentSetInfo::EquipmentSetData::Type.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleFarSightOpcode | ( | WorldPackets::Misc::FarSight & | packet | ) |
Definition at line 871 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::FarSight::Enable, BaseEntity::GetGUID(), WorldObject::GetName(), GetPlayer(), Player::GetViewpoint(), Player::m_activePlayerData, Player::SetSeer(), TC_LOG_DEBUG, ObjectGuid::ToString(), and Player::UpdateVisibilityForPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleForceSpeedChangeAck | ( | WorldPackets::Movement::MovementSpeedAck & | packet | ) |
Definition at line 644 of file MovementHandler.cpp.
References _player, WorldPackets::Movement::MovementSpeedAck::Ack, CMSG_MOVE_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_FLIGHT_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_PITCH_RATE_CHANGE_ACK, CMSG_MOVE_FORCE_RUN_BACK_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_RUN_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_SWIM_BACK_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_SWIM_SPEED_CHANGE_ACK, CMSG_MOVE_FORCE_TURN_RATE_CHANGE_ACK, CMSG_MOVE_FORCE_WALK_SPEED_CHANGE_ACK, GetAccountId(), WorldObject::GetName(), WorldPackets::ClientPacket::GetOpcode(), Player::GetSession(), Unit::GetSpeed(), Unit::GetSpeedRate(), WorldObject::GetTransport(), MovementInfo::guid, KickPlayer(), Player::m_forced_speed_changes, MAX_MOVE_TYPE, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_PITCH_RATE, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_TURN_RATE, MOVE_WALK, Unit::SetSpeedRate(), WorldPackets::Movement::MovementSpeedAck::Speed, WorldPackets::Movement::MovementAck::Status, TC_LOG_DEBUG, TC_LOG_ERROR, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGameObjectQueryOpcode | ( | WorldPackets::Query::QueryGameObject & | packet | ) |
Only static data is sent in this packet !!!
Definition at line 102 of file QueryHandler.cpp.
References WorldPackets::Query::QueryGameObject::GameObjectID, WorldPackets::Query::QueryGameObjectResponse::GameObjectID, GetSessionDbLocaleIndex(), WorldPackets::Query::QueryGameObject::Guid, WorldPackets::Query::QueryGameObjectResponse::Guid, SendPacket(), sObjectMgr, TC_LOG_DEBUG, and WorldPackets::Query::QueryGameObjectResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGameobjectReportUse | ( | WorldPackets::GameObject::GameObjReportUse & | packet | ) |
Definition at line 213 of file SpellHandler.cpp.
References _player, GetPlayer(), WorldPackets::GameObject::GameObjReportUse::Guid, Unit::IsCharmed(), Player::UpdateCriteria(), and UseGameobject.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGameObjectUseOpcode | ( | WorldPackets::GameObject::GameObjUse & | packet | ) |
Definition at line 200 of file SpellHandler.cpp.
References GetPlayer(), WorldPackets::GameObject::GameObjUse::Guid, and IsMounted.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGarrisonCancelConstruction | ( | WorldPackets::Garrison::GarrisonCancelConstruction & | garrisonCancelConstruction | ) |
Definition at line 43 of file GarrisonHandler.cpp.
References _player, Player::GetGarrison(), Player::GetNPCIfCanInteractWith(), WorldPackets::Garrison::GarrisonCancelConstruction::NpcGUID, WorldPackets::Garrison::GarrisonCancelConstruction::PlotInstanceID, UNIT_NPC_FLAG_2_GARRISON_ARCHITECT, and UNIT_NPC_FLAG_NONE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGarrisonGetMapData | ( | WorldPackets::Garrison::GarrisonGetMapData & | garrisonGetMapData | ) |
Definition at line 58 of file GarrisonHandler.cpp.
References _player, and Player::GetGarrison().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGarrisonPurchaseBuilding | ( | WorldPackets::Garrison::GarrisonPurchaseBuilding & | garrisonPurchaseBuilding | ) |
Definition at line 34 of file GarrisonHandler.cpp.
References _player, WorldPackets::Garrison::GarrisonPurchaseBuilding::BuildingID, Player::GetGarrison(), Player::GetNPCIfCanInteractWith(), WorldPackets::Garrison::GarrisonPurchaseBuilding::NpcGUID, WorldPackets::Garrison::GarrisonPurchaseBuilding::PlotInstanceID, UNIT_NPC_FLAG_2_GARRISON_ARCHITECT, and UNIT_NPC_FLAG_NONE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGarrisonRequestBlueprintAndSpecializationData | ( | WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationData & | garrisonRequestBlueprintAndSpecializationData | ) |
Definition at line 52 of file GarrisonHandler.cpp.
References _player, and Player::GetGarrison().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGetGarrisonInfo | ( | WorldPackets::Garrison::GetGarrisonInfo & | getGarrisonInfo | ) |
Definition at line 23 of file GarrisonHandler.cpp.
References _player, WorldPackets::Garrison::GetGarrisonInfoResult::FactionIndex, WorldPackets::Garrison::GetGarrisonInfoResult::Garrisons, Garrison::GetFaction(), Player::GetGarrison(), Player::GetTeam(), SendPacket(), and WorldPackets::Garrison::GetGarrisonInfoResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGetItemPurchaseData | ( | WorldPackets::Item::GetItemPurchaseData & | packet | ) |
Definition at line 1157 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), GetPlayer(), WorldPackets::Item::GetItemPurchaseData::ItemGUID, Player::SendRefundInfo(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGetMailList | ( | WorldPackets::Mail::MailGetList & | getList | ) |
Definition at line 559 of file MailHandler.cpp.
References _player, CanOpenMailBox(), GameTime::GetGameTime(), Player::GetMails(), MAIL_STATE_DELETED, WorldPackets::Mail::MailGetList::Mailbox, MailInfo, WorldPackets::Mail::MailListResult::Mails, Player::PlayerTalkClass, SendPacket(), WorldPackets::Mail::MailListResult::TotalNumRecords, Player::UpdateNextMailTimeAndUnreads(), and WorldPackets::Mail::MailListResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGetPVPOptionsEnabled | ( | WorldPackets::Battleground::GetPVPOptionsEnabled & | getPvPOptionsEnabled | ) |
Definition at line 623 of file BattleGroundHandler.cpp.
References WorldPackets::Battleground::PVPOptionsEnabled::ArenaSkirmish, WorldPackets::Battleground::PVPOptionsEnabled::BattlegroundBlitz, WorldPackets::Battleground::PVPOptionsEnabled::PugBattlegrounds, WorldPackets::Battleground::PVPOptionsEnabled::RatedArenas, WorldPackets::Battleground::PVPOptionsEnabled::RatedBattlegroundBlitz, WorldPackets::Battleground::PVPOptionsEnabled::RatedBattlegrounds, WorldPackets::Battleground::PVPOptionsEnabled::RatedSoloShuffle, SendPacket(), WorldPackets::Battleground::PVPOptionsEnabled::SoloShuffle, WorldPackets::Battleground::PVPOptionsEnabled::WargameArenas, WorldPackets::Battleground::PVPOptionsEnabled::WargameBattlegrounds, and WorldPackets::Battleground::PVPOptionsEnabled::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGetUndeleteCooldownStatus | ( | WorldPackets::Character::GetUndeleteCharacterCooldownStatus & | ) |
Definition at line 2788 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), GetBattlenetAccountId(), LOGIN_SEL_LAST_CHAR_UNDELETE, LoginDatabase, and PreparedStatementBase::setUInt32().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGMTicketGetCaseStatusOpcode | ( | WorldPackets::Ticket::GMTicketGetCaseStatus & | packet | ) |
Definition at line 24 of file TicketHandler.cpp.
References SendPacket(), and WorldPackets::Ticket::GMTicketCaseStatus::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGMTicketSystemStatusOpcode | ( | WorldPackets::Ticket::GMTicketGetSystemStatus & | packet | ) |
Definition at line 31 of file TicketHandler.cpp.
References GMTICKET_QUEUE_STATUS_DISABLED, GMTICKET_QUEUE_STATUS_ENABLED, SendPacket(), sSupportMgr, WorldPackets::Ticket::GMTicketSystemStatus::Status, and WorldPackets::Ticket::GMTicketSystemStatus::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGossipHelloOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 158 of file NPCHandler.cpp.
References _player, Creature::AI(), Unit::GetFaction(), Player::GetGossipMenuForSource(), CreatureMovementData::GetInteractionPauseTimer(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), Player::GetReputationMgr(), Interacting, Unit::IsAreaSpiritHealer(), CreatureAI::OnGossipHello(), Unit::PauseMovement(), Player::PlayerTalkClass, Player::PrepareGossipMenu(), Unit::RemoveAurasWithInterruptFlags(), Player::SendAreaSpiritHealerTime(), Player::SendPreparedGossip(), Player::SetAreaSpiritHealer(), Creature::SetHomePosition(), ReputationMgr::SetVisible(), sFactionTemplateStore, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_GOSSIP.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGossipSelectOptionOpcode | ( | WorldPackets::NPC::GossipSelectOption & | packet | ) |
Definition at line 193 of file NPCHandler.cpp.
References _player, Creature::AI(), GameObject::AI(), Player::GetGameObjectIfCanInteractWith(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Creature::GetScriptId(), GameObject::GetScriptId(), Gossip, WorldPackets::NPC::GossipSelectOption::GossipID, WorldPackets::NPC::GossipSelectOption::GossipOptionID, WorldPackets::NPC::GossipSelectOption::GossipUnit, ObjectGuid::IsCreatureOrVehicle(), ObjectGuid::IsGameObject(), WorldObject::LastUsedScriptID, GameObjectAI::OnGossipSelect(), CreatureAI::OnGossipSelect(), Player::OnGossipSelect(), GameObjectAI::OnGossipSelectCode(), CreatureAI::OnGossipSelectCode(), GossipMenuItem::OrderIndex, Player::PlayerTalkClass, WorldPackets::NPC::GossipSelectOption::PromotionCode, Unit::RemoveAurasByType(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_GOSSIP, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildAcceptInvite | ( | WorldPackets::Guild::AcceptGuildInvite & | invite | ) |
Definition at line 64 of file GuildHandler.cpp.
References GetPlayer(), and sGuildMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildAddRank | ( | WorldPackets::Guild::GuildAddRank & | packet | ) |
Definition at line 153 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildAddRank::Name, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildAssignRank | ( | WorldPackets::Guild::GuildAssignMemberRank & | packet | ) |
Definition at line 103 of file GuildHandler.cpp.
References BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildAssignMemberRank::Member, WorldPackets::Guild::GuildAssignMemberRank::RankOrder, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankActivate | ( | WorldPackets::Guild::GuildBankActivate & | packet | ) |
Definition at line 237 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankActivate::Banker, ERR_GUILD_PLAYER_NOT_IN_GUILD, WorldPackets::Guild::GuildBankActivate::FullUpdate, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGameObjectIfCanInteractWith(), Player::GetGuild(), GetPlayer(), GetPlayerInfo(), GUILD_COMMAND_VIEW_TAB, GuildBanker, Player::PlayerTalkClass, Guild::SendBankList(), Guild::SendCommandResult(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankBuyTab | ( | WorldPackets::Guild::GuildBankBuyTab & | packet | ) |
Definition at line 466 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankBuyTab::Banker, WorldPackets::Guild::GuildBankBuyTab::BankTab, GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankDepositMoney | ( | WorldPackets::Guild::GuildBankDepositMoney & | packet | ) |
Definition at line 269 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankDepositMoney::Banker, GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankDepositMoney::Money, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankLogQuery | ( | WorldPackets::Guild::GuildBankLogQuery & | packet | ) |
Definition at line 486 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankLogQuery::Tab, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankMoneyWithdrawn | ( | WorldPackets::Guild::GuildBankRemainingWithdrawMoneyQuery & | packet | ) |
Definition at line 224 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankQueryTab | ( | WorldPackets::Guild::GuildBankQueryTab & | packet | ) |
Definition at line 259 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankQueryTab::Banker, WorldPackets::Guild::GuildBankQueryTab::FullUpdate, GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankQueryTab::Tab, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankSetTabText | ( | WorldPackets::Guild::GuildBankSetTabText & | packet | ) |
Definition at line 502 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankSetTabText::Tab, WorldPackets::Guild::GuildBankSetTabText::TabText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankTextQuery | ( | WorldPackets::Guild::GuildBankTextQuery & | packet | ) |
Definition at line 494 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankTextQuery::Tab, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankUpdateTab | ( | WorldPackets::Guild::GuildBankUpdateTab & | packet | ) |
Definition at line 475 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankUpdateTab::Banker, WorldPackets::Guild::GuildBankUpdateTab::BankTab, WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::empty(), GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankUpdateTab::Icon, WorldPackets::Guild::GuildBankUpdateTab::Name, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildBankWithdrawMoney | ( | WorldPackets::Guild::GuildBankWithdrawMoney & | packet | ) |
Definition at line 280 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankWithdrawMoney::Banker, GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankWithdrawMoney::Money, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildChallengeUpdateRequest | ( | WorldPackets::Guild::GuildChallengeUpdateRequest & | packet | ) |
Definition at line 531 of file GuildHandler.cpp.
References _player, and Player::GetGuild().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildDeclineInvitation | ( | WorldPackets::Guild::GuildDeclineInvitation & | decline | ) |
Definition at line 71 of file GuildHandler.cpp.
References GetPlayer(), Player::SetGuildIdInvited(), and UI64LIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildDelete | ( | WorldPackets::Guild::GuildDelete & | packet | ) |
Definition at line 120 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildDeleteRank | ( | WorldPackets::Guild::GuildDeleteRank & | packet | ) |
Definition at line 161 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildDeleteRank::RankOrder, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildDemoteMember | ( | WorldPackets::Guild::GuildDemoteMember & | demote | ) |
Definition at line 95 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildDemoteMember::Demotee, GetPlayer(), GetPlayerInfo(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildEventLogQuery | ( | WorldPackets::Guild::GuildEventLogQuery & | packet | ) |
Definition at line 216 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildGetAchievementMembers | ( | WorldPackets::Achievement::GuildGetAchievementMembers & | getAchievementMembers | ) |
Definition at line 605 of file GuildHandler.cpp.
References WorldPackets::Achievement::GuildGetAchievementMembers::AchievementID, and GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildGetRanks | ( | WorldPackets::Guild::GuildGetRanks & | packet | ) |
Definition at line 143 of file GuildHandler.cpp.
References _player, BaseEntity::GetGUID(), GetPlayerInfo(), WorldPackets::Guild::GuildGetRanks::GuildGUID, sGuildMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildGetRoster | ( | WorldPackets::Guild::GuildGetRoster & | packet | ) |
Definition at line 79 of file GuildHandler.cpp.
References ERR_GUILD_PLAYER_NOT_IN_GUILD, GetPlayer(), GUILD_COMMAND_GET_ROSTER, and Guild::SendCommandResult().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildInviteByName | ( | WorldPackets::Guild::GuildInviteByName & | packet | ) |
Definition at line 48 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildInviteByName::Name, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildLeave | ( | WorldPackets::Guild::GuildLeave & | leave | ) |
Definition at line 114 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildNewsUpdateSticky | ( | WorldPackets::Guild::GuildNewsUpdateSticky & | packet | ) |
Definition at line 578 of file GuildHandler.cpp.
References GetPlayer(), WorldPackets::Guild::GuildNewsUpdateSticky::NewsID, and WorldPackets::Guild::GuildNewsUpdateSticky::Sticky.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildOfficerRemoveMember | ( | WorldPackets::Guild::GuildOfficerRemoveMember & | packet | ) |
Definition at line 56 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildOfficerRemoveMember::Removee, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildPermissionsQuery | ( | WorldPackets::Guild::GuildPermissionsQuery & | packet | ) |
Definition at line 230 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildPromoteMember | ( | WorldPackets::Guild::GuildPromoteMember & | promote | ) |
Definition at line 87 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildPromoteMember::Promotee, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildQueryNews | ( | WorldPackets::Guild::GuildQueryNews & | newsQuery | ) |
Definition at line 571 of file GuildHandler.cpp.
References GetPlayer(), and WorldPackets::Guild::GuildQueryNews::GuildGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildQueryOpcode | ( | WorldPackets::Guild::QueryGuildInfo & | query | ) |
Definition at line 30 of file GuildHandler.cpp.
References GetPlayerInfo(), WorldPackets::Guild::QueryGuildInfo::GuildGuid, WorldPackets::Guild::QueryGuildInfoResponse::GuildGuid, WorldPackets::Guild::QueryGuildInfo::PlayerGuid, SendPacket(), sGuildMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Guild::QueryGuildInfoResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildReplaceGuildMaster | ( | WorldPackets::Guild::GuildReplaceGuildMaster & | replaceGuildMaster | ) |
Definition at line 584 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildRequestPartyState | ( | WorldPackets::Guild::RequestGuildPartyState & | packet | ) |
Definition at line 525 of file GuildHandler.cpp.
References WorldPackets::Guild::RequestGuildPartyState::GuildGUID, and sGuildMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildSetAchievementTracking | ( | WorldPackets::Guild::GuildSetAchievementTracking & | packet | ) |
Definition at line 599 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildSetAchievementTracking::AchievementIDs, WorldPackets::Array< T, N >::data(), GetPlayer(), and WorldPackets::Array< T, N >::size().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildSetFocusedAchievement | ( | WorldPackets::Achievement::GuildSetFocusedAchievement & | setFocusedAchievement | ) |
Definition at line 1070 of file MiscHandler.cpp.
References _player, WorldPackets::Achievement::GuildSetFocusedAchievement::AchievementID, Player::GetGuildId(), and sGuildMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildSetGuildMaster | ( | WorldPackets::Guild::GuildSetGuildMaster & | packet | ) |
Definition at line 590 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildSetGuildMaster::NewMasterName, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildSetMemberNote | ( | WorldPackets::Guild::GuildSetMemberNote & | packet | ) |
Definition at line 134 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildSetMemberNote::IsPublic, WorldPackets::Guild::GuildSetMemberNote::Note, WorldPackets::Guild::GuildSetMemberNote::NoteeGUID, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildSetRankPermissions | ( | WorldPackets::Guild::GuildSetRankPermissions & | packet | ) |
Definition at line 510 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildSetRankPermissions::Flags, Player::GetGuild(), GetPlayer(), GetPlayerInfo(), GUILD_BANK_MAX_TABS, Guild::HandleSetRankInfo(), WorldPackets::Guild::GuildSetRankPermissions::RankID, WorldPackets::Guild::GuildSetRankPermissions::RankName, WorldPackets::Guild::GuildSetRankPermissions::RankOrder, WorldPackets::Guild::GuildSetRankPermissions::TabFlags, WorldPackets::Guild::GuildSetRankPermissions::TabWithdrawItemLimit, TC_LOG_DEBUG, and WorldPackets::Guild::GuildSetRankPermissions::WithdrawGoldLimit.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildShiftRank | ( | WorldPackets::Guild::GuildShiftRank & | shiftRank | ) |
Definition at line 169 of file GuildHandler.cpp.
References Player::GetGuild(), GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildShiftRank::RankOrder, WorldPackets::Guild::GuildShiftRank::ShiftUp, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildUpdateInfoText | ( | WorldPackets::Guild::GuildUpdateInfoText & | packet | ) |
Definition at line 177 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildUpdateInfoText::InfoText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleGuildUpdateMotdText | ( | WorldPackets::Guild::GuildUpdateMotdText & | packet | ) |
Definition at line 126 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildUpdateMotdText::MotdText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleHearthAndResurrect | ( | WorldPackets::Battleground::HearthAndResurrect & | hearthAndResurrect | ) |
Definition at line 689 of file BattleGroundHandler.cpp.
References _player, AllowHearthAndRessurectFromArea, Player::BuildPlayerRepop(), WorldObject::GetAreaId(), AreaTableEntry::GetFlags(), WorldObject::GetMap(), WorldObject::GetZoneId(), Unit::IsInFlight(), Player::m_homebind, Player::ResurrectPlayer(), sAreaTableStore, sBattlefieldMgr, and Player::TeleportTo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleHotfixRequest | ( | WorldPackets::Hotfix::HotfixRequest & | hotfixQuery | ) |
Definition at line 75 of file HotfixHandler.cpp.
References ByteBuffer::append(), GetSessionDbcLocale(), DB2StorageBase::HasRecord(), WorldPackets::Hotfix::HotfixConnect::HotfixContent, WorldPackets::Hotfix::HotfixRequest::Hotfixes, WorldPackets::Hotfix::HotfixConnect::Hotfixes, DB2Manager::HotfixRecord::HotfixStatus, DB2Manager::HotfixRecord::Invalid, Trinity::Containers::MapGetValuePtr(), WorldPackets::Hotfix::HotfixConnect::HotfixData::Record, DB2Manager::HotfixRecord::RecordRemoved, sDB2Manager, SendPacket(), WorldPackets::Hotfix::HotfixConnect::HotfixData::Size, ByteBuffer::size(), DB2Manager::HotfixRecord::Valid, WorldPackets::Hotfix::HotfixConnect::Write(), and DB2StorageBase::WriteRecord().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleIgnoreTradeOpcode | ( | WorldPackets::Trade::IgnoreTrade & | ignoreTrade | ) |
Definition at line 43 of file TradeHandler.cpp.
References _player, TRADE_STATUS_PLAYER_BUSY, and Player::TradeCancel().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleInitiateRolePoll | ( | WorldPackets::Party::InitiateRolePoll & | packet | ) |
Definition at line 614 of file GroupHandler.cpp.
References Group::BroadcastPacket(), WorldPackets::Party::RolePollInform::From, Player::GetGroup(), Group::GetGroupCategory(), BaseEntity::GetGUID(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), WorldPackets::Party::InitiateRolePoll::PartyIndex, WorldPackets::Party::RolePollInform::PartyIndex, and WorldPackets::Party::RolePollInform::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleInitiateTradeOpcode | ( | WorldPackets::Trade::InitiateTrade & | initiateTrade | ) |
Definition at line 597 of file TradeHandler.cpp.
References _player, CONFIG_ALLOW_TWO_SIDE_TRADE, CONFIG_TRADE_LEVEL_REQ, ObjectAccessor::FindPlayer(), BaseEntity::GetGUID(), Unit::GetLevel(), GetPlayer(), Player::GetSession(), Player::GetTeam(), GetTrinityString(), WorldPackets::Trade::InitiateTrade::Guid, HasPermission(), Player::HasPlayerFlagEx(), Unit::HasUnitState(), Unit::IsAlive(), Unit::IsInFlight(), isLogingOut(), WorldObject::IsWithinDistInMap(), LANG_TRADE_OTHER_REQ, LANG_TRADE_REQ, Player::m_trade, WorldPackets::Trade::TradeStatus::Partner, PLAYER_FLAGS_EX_MERCENARY_MODE, rbac::RBAC_PERM_ALLOW_TWO_SIDE_TRADE, SendNotification(), SendTradeStatus(), WorldPackets::Trade::TradeStatus::Status, sWorld, TRADE_DISTANCE, TRADE_STATUS_DEAD, TRADE_STATUS_FAILED, TRADE_STATUS_LOGGING_OUT, TRADE_STATUS_NO_TARGET, TRADE_STATUS_PLAYER_BUSY, TRADE_STATUS_PROPOSED, TRADE_STATUS_STUNNED, TRADE_STATUS_TARGET_DEAD, TRADE_STATUS_TARGET_LOGGING_OUT, TRADE_STATUS_TARGET_STUNNED, TRADE_STATUS_TOO_FAR_AWAY, TRADE_STATUS_WRONG_FACTION, and UNIT_STATE_STUNNED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleInspectOpcode | ( | WorldPackets::Inspect::Inspect & | inspect | ) |
Definition at line 29 of file InspectHandler.cpp.
References _player, WorldPackets::Inspect::TraitInspectInfo::ActiveCombatTraits, AsUnderlyingType(), WorldPackets::Inspect::InspectResult::AzeriteLevel, CONFIG_TALENTS_INSPECTING, WorldPackets::Inspect::InspectResult::DisplayInfo, Everywhere, Player::GetActiveTalentGroup(), Player::GetAverageItemLevel(), Player::GetEffectiveTeam(), Player::GetGuildId(), Player::GetItemByEntry(), Unit::GetLevel(), GetPlayer(), ObjectAccessor::GetPlayer(), Player::GetPrimarySpecialization(), Player::GetPvpTalentMap(), Player::GetTalentMap(), Player::GetTraitConfig(), WorldPackets::Inspect::InspectResult::GuildData, WorldPackets::Inspect::InspectResult::HonorLevel, WorldPackets::Inspect::PlayerModelDisplayInfo::Initialize(), INSPECT_DISTANCE, ITEM_ID_HEART_OF_AZEROTH, WorldPackets::Inspect::InspectResult::ItemLevel, WorldPackets::Inspect::InspectResult::LifetimeHK, WorldPackets::Inspect::InspectResult::LifetimeMaxRank, Player::m_activePlayerData, Player::m_playerData, WorldPackets::Inspect::TraitInspectInfo::PlayerLevel, PLAYERSPELL_REMOVED, WorldPackets::Inspect::InspectResult::PvpTalents, SendPacket(), sGuildMgr, WorldPackets::Inspect::TraitInspectInfo::SpecID, sWorld, WorldPackets::Inspect::InspectResult::Talents, WorldPackets::Inspect::Inspect::Target, TC_LOG_DEBUG, Item::ToAzeriteItem(), WorldPackets::Inspect::InspectResult::TodayHK, ObjectGuid::ToString(), WorldPackets::Inspect::InspectResult::TraitsInfo, WorldPackets::Inspect::InspectResult::Write(), and WorldPackets::Inspect::InspectResult::YesterdayHK.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleInstanceLockResponse | ( | WorldPackets::Instance::InstanceLockResponse & | packet | ) |
Definition at line 1083 of file MiscHandler.cpp.
References _player, WorldPackets::Instance::InstanceLockResponse::AcceptLock, Player::ConfirmPendingBind(), BaseEntity::GetGUID(), WorldObject::GetName(), Player::HasPendingBind(), Player::RepopAtGraveyard(), Player::SetPendingBind(), TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleItemRefund | ( | WorldPackets::Item::ItemPurchaseRefund & | packet | ) |
Definition at line 1171 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), Player::GetLootGUID(), GetPlayer(), WorldPackets::Item::ItemPurchaseRefund::ItemGUID, Player::RefundItem(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleItemTextQuery | ( | WorldPackets::Query::ItemTextQuery & | itemTextQuery | ) |
Handles the packet sent by the client when requesting information about item text.
This function is called when player clicks on item which has some flag set
Definition at line 311 of file QueryHandler.cpp.
References _player, Player::GetItemByGuid(), WorldPackets::Query::ItemTextQuery::Id, WorldPackets::Query::QueryItemTextResponse::Id, WorldPackets::Query::QueryItemTextResponse::Item, SendPacket(), WorldPackets::Query::ItemTextCache::Text, WorldPackets::Query::QueryItemTextResponse::Valid, and WorldPackets::Query::QueryItemTextResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleJoinChannel | ( | WorldPackets::Channel::JoinChannel & | packet | ) |
Definition at line 31 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelNotify::_Channel, WorldPackets::Channel::JoinChannel::ChannelName, CHAT_INVALID_NAME_NOTICE, WorldPackets::Channel::JoinChannel::ChatChannelId, ChannelMgr::CreateCustomChannel(), WorldPackets::Channel::JoinChannel::CreateVoiceSession, DisallowHyperlinksAndMaybeKick(), ChannelMgr::ForTeam(), ChannelMgr::GetCustomChannel(), GetPlayer(), GetPlayerInfo(), ChannelMgr::GetSystemChannel(), WorldPackets::Channel::JoinChannel::Internal, MAX_CHANNEL_NAME_STR, MAX_CHANNEL_PASS_STR, WorldPackets::Channel::JoinChannel::Password, sAreaTableStore, sChatChannelsStore, SendPacket(), TC_LOG_DEBUG, TC_LOG_ERROR, WorldPackets::Channel::ChannelNotify::Type, utf8length(), and WorldPackets::Channel::ChannelNotify::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleKeyboundOverride | ( | WorldPackets::Spells::KeyboundOverride & | keyboundOverride | ) |
Definition at line 609 of file SpellHandler.cpp.
References WorldObject::CastSpell(), SpellKeyboundOverrideEntry::Data, GetPlayer(), Unit::HasAuraTypeWithMiscvalue(), WorldPackets::Spells::KeyboundOverride::OverrideID, SPELL_AURA_KEYBOUND_OVERRIDE, and sSpellKeyboundOverrideStore.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLearnPvpTalentsOpcode | ( | WorldPackets::Talent::LearnPvpTalents & | packet | ) |
Definition at line 53 of file SkillHandler.cpp.
References _player, Player::LearnPvpTalent(), WorldPackets::Talent::LearnPvpTalentFailed::Reason, SendPacket(), Player::SendTalentsInfoData(), WorldPackets::Talent::LearnPvpTalentFailed::SpellID, WorldPackets::Talent::LearnPvpTalents::Talents, WorldPackets::Talent::LearnPvpTalentFailed::Talents, and WorldPackets::Talent::LearnPvpTalentFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLearnTalentsOpcode | ( | WorldPackets::Talent::LearnTalents & | packet | ) |
Definition at line 29 of file SkillHandler.cpp.
References _player, Player::LearnTalent(), WorldPackets::Talent::LearnTalentFailed::Reason, SendPacket(), Player::SendTalentsInfoData(), WorldPackets::Talent::LearnTalentFailed::SpellID, WorldPackets::Talent::LearnTalents::Talents, WorldPackets::Talent::LearnTalentFailed::Talents, and WorldPackets::Talent::LearnTalentFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLeaveChannel | ( | WorldPackets::Channel::LeaveChannel & | packet | ) |
Definition at line 96 of file ChannelHandler.cpp.
References WorldPackets::Channel::LeaveChannel::ChannelName, ChannelMgr::ForTeam(), GetPlayer(), GetPlayerInfo(), sAreaTableStore, sChatChannelsStore, TC_LOG_DEBUG, and WorldPackets::Channel::LeaveChannel::ZoneChannelID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLeaveGroupOpcode | ( | WorldPackets::Party::LeaveGroup & | packet | ) |
error handling
Definition at line 334 of file GroupHandler.cpp.
References _player, Group::Disband(), ERR_PARTY_RESULT_OK, Player::GetGroup(), Player::GetGroupInvite(), Group::GetLeaderGUID(), GetPlayer(), GROUP_REMOVEMETHOD_LEAVE, Player::InBattleground(), PARTY_OP_LEAVE, WorldPackets::Party::LeaveGroup::PartyIndex, Player::RemoveFromGroup(), and SendPartyResult().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgJoinOpcode | ( | WorldPackets::LFG::DFJoin & | dfJoin | ) |
Definition at line 30 of file LFGHandler.cpp.
References WorldPackets::Array< T, N >::empty(), GetPlayer(), GetPlayerInfo(), lfg::LFG_OPTION_ENABLE_DUNGEON_FINDER, lfg::LFG_OPTION_ENABLE_RAID_BROWSER, MAX_GROUP_SIZE, WorldPackets::LFG::DFJoin::Roles, sLFGDungeonsStore, sLFGMgr, WorldPackets::LFG::DFJoin::Slots, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgLeaveOpcode | ( | WorldPackets::LFG::DFLeave & | dfLeave | ) |
Definition at line 56 of file LFGHandler.cpp.
References Player::GetGroup(), Group::GetLeaderGUID(), GetPlayer(), GetPlayerInfo(), WorldPackets::LFG::RideTicket::RequesterGuid, sLFGMgr, TC_LOG_DEBUG, WorldPackets::LFG::DFLeave::Ticket, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgProposalResultOpcode | ( | WorldPackets::LFG::DFProposalResponse & | dfProposalResponse | ) |
Definition at line 68 of file LFGHandler.cpp.
References WorldPackets::LFG::DFProposalResponse::Accepted, BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), WorldPackets::LFG::DFProposalResponse::ProposalID, sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgSetBootVoteOpcode | ( | WorldPackets::LFG::DFBootPlayerVote & | dfBootPlayerVote | ) |
Definition at line 91 of file LFGHandler.cpp.
References BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), sLFGMgr, TC_LOG_DEBUG, and WorldPackets::LFG::DFBootPlayerVote::Vote.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgSetRolesOpcode | ( | WorldPackets::LFG::DFSetRoles & | dfSetRoles | ) |
Definition at line 75 of file LFGHandler.cpp.
References Player::GetGroup(), BaseEntity::GetGUID(), Group::GetGUID(), GetPlayer(), GetPlayerInfo(), WorldPackets::LFG::DFSetRoles::RolesDesired, sLFGMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLfgTeleportOpcode | ( | WorldPackets::LFG::DFTeleport & | dfTeleport | ) |
Definition at line 99 of file LFGHandler.cpp.
References GetPlayer(), GetPlayerInfo(), sLFGMgr, TC_LOG_DEBUG, and WorldPackets::LFG::DFTeleport::TeleportOut.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleListInventoryOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 564 of file ItemHandler.cpp.
References GetPlayer(), SendListInventory(), and WorldPackets::NPC::Hello::Unit.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLoadScreenOpcode | ( | WorldPackets::Character::LoadingScreenNotify & | loadingScreenNotify | ) |
Definition at line 1169 of file CharacterHandler.cpp.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLogoutCancelOpcode | ( | WorldPackets::Character::LogoutCancel & | logoutCancel | ) |
we can move again
Stand Up
DISABLE_ROTATE
Definition at line 278 of file MiscHandler.cpp.
References GetPlayer(), Unit::RemoveUnitFlag(), SendPacket(), SetLogoutStartTime(), Unit::SetRooted(), Unit::SetStandState(), UNIT_FLAG_STUNNED, and UNIT_STAND_STATE_STAND.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLogoutRequestOpcode | ( | WorldPackets::Character::LogoutRequest & | logoutRequest | ) |
TODO: Possibly add RBAC permission to log out in combat
Definition at line 227 of file MiscHandler.cpp.
References GameTime::GetGameTime(), GetPlayer(), HasAura, HasPermission(), Player::HasPlayerFlag(), WorldPackets::Character::LogoutRequest::IdleLogout, WorldPackets::Character::LogoutResponse::Instant, Unit::IsInCombat(), Unit::IsInFlight(), LogoutPlayer(), WorldPackets::Character::LogoutResponse::LogoutResult, PLAYER_FLAGS_RESTING, rbac::RBAC_PERM_INSTANT_LOGOUT, Player::SendLootReleaseAll(), SendPacket(), SetLogoutStartTime(), Unit::SetRooted(), Unit::SetStandState(), Unit::SetUnitFlag(), UNIT_FLAG_STUNNED, UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_STAND, and WorldPackets::Character::LogoutResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLootMasterGiveOpcode | ( | WorldPackets::Loot::MasterLootItem & | masterLootItem | ) |
Definition at line 407 of file LootHandler.cpp.
References _player, AELootResult::Add(), Player::ApplyItemLootedSpell(), LootItem::BonusListIDs, Player::CanStoreNewItem(), LootItem::context, LootItem::count, ObjectGuid::Empty, EQUIP_ERR_CANT_EQUIP_EVER, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, Player::GetAELootView(), LootItem::GetAllowedLooters(), Loot::GetDungeonEncounterId(), Player::GetGroup(), BaseEntity::GetGUID(), GetLootByType, Loot::GetLootMethod(), Group::GetMasterLooterGuid(), WorldObject::GetName(), Loot::GetOwnerGUID(), GetPlayer(), ObjectAccessor::GetPlayer(), LootItem::HasAllowedLooter(), Loot::HasAllowedLooter(), LootItem::is_looted, WorldObject::IsInMap(), Unit::IsInRaidWith(), Item, LootItem::itemid, Loot::items, WorldPackets::Loot::MasterLootItem::Loot, LOOT_ERROR_DIDNT_KILL, LOOT_ERROR_MASTER_INV_FULL, LOOT_ERROR_MASTER_OTHER, LOOT_ERROR_MASTER_UNIQUE_ITEM, LOOT_ERROR_PLAYER_NOT_FOUND, Loot::loot_type, LootAnyItem, LootItem, Trinity::Containers::MapGetValuePtr(), MASTER_LOOT, Loot::NotifyItemRemoved(), NULL_BAG, NULL_SLOT, LootItem::randomBonusListId, Player::SendLootError(), Player::SendNewItem(), sObjectMgr, Player::StoreNewItem(), WorldPackets::Loot::MasterLootItem::Target, TC_LOG_DEBUG, TC_LOG_INFO, LootItem::type, Loot::unlootedCount, and Player::UpdateCriteria().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLootMoneyOpcode | ( | WorldPackets::Loot::LootMoney & | packet | ) |
Definition at line 142 of file LootHandler.cpp.
References CalculatePct(), DoLootRelease(), Player::GetAELootView(), ObjectGuid::GetCounter(), Player::GetGroup(), BaseEntity::GetGUID(), WorldObject::GetMap(), Group::GetMembers(), Loot::GetOwnerGUID(), GetPlayer(), Player::GetSession(), Unit::GetTotalAuraModifierByMiscValue(), Loot::gold, Loot::HasAllowedLooter(), Player::IsAtGroupRewardDistance(), ObjectGuid::IsItem(), Loot::isLooted(), LOOT_CORPSE, LOOT_ITEM, Loot::loot_type, Loot::LootMoney(), Player::ModifyMoney(), WorldPackets::Loot::LootMoneyNotify::Money, MoneyLootedFromCreatures, WorldPackets::Loot::LootMoneyNotify::MoneyMod, Loot::NotifyMoneyRemoved(), SendPacket(), sLootItemStorage, WorldPackets::Loot::LootMoneyNotify::SoleLooter, SPELL_AURA_MOD_MONEY_GAIN, Player::UpdateCriteria(), and WorldPackets::Loot::LootMoneyNotify::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLootOpcode | ( | WorldPackets::Loot::LootUnit & | packet | ) |
Definition at line 213 of file LootHandler.cpp.
References _player, CONFIG_ENABLE_AE_LOOT, ObjectAccessor::GetCreature(), Creature::GetLootForPlayer(), GetPlayer(), Unit::InterruptNonMeleeSpells(), ObjectGuid::IsCreatureOrVehicle(), AELootCreatureCheck::IsValidLootTarget(), AELootCreatureCheck::LootDistance, Looting, Unit::RemoveAurasWithInterruptFlags(), Player::SendLoot(), SendPacket(), sWorld, WorldPackets::Loot::LootUnit::Unit, Cell::VisitGridObjects(), and WorldPackets::Loot::AELootTargets::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLootReleaseOpcode | ( | WorldPackets::Loot::LootRelease & | packet | ) |
Definition at line 261 of file LootHandler.cpp.
References DoLootRelease(), GetPlayer(), and WorldPackets::Loot::LootRelease::Unit.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleLootRoll | ( | WorldPackets::Loot::LootRoll & | packet | ) |
Definition at line 500 of file LootHandler.cpp.
References Player::GetLootRoll(), GetPlayer(), WorldPackets::Loot::LootRoll::LootListID, WorldPackets::Loot::LootRoll::LootObj, LootRoll::PlayerVote(), and WorldPackets::Loot::LootRoll::RollType.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailCreateTextItem | ( | WorldPackets::Mail::MailCreateTextItem & | createTextItem | ) |
Definition at line 590 of file MailHandler.cpp.
References _player, ASSERT, MailTemplateEntry::Body, Mail::body, CanOpenMailBox(), Player::CanStoreItem(), Mail::checked, Item::CreateItem(), Mail::deliver_time, EQUIP_ERR_OK, GameTime::GetGameTime(), Player::GetMail(), GetSessionDbcLocale(), ITEM_FIELD_FLAG_READABLE, Player::m_mailsUpdated, MAIL_BODY_ITEM_TEMPLATE, MAIL_CHECK_MASK_COPIED, MAIL_ERR_EQUIP_ERROR, MAIL_ERR_INTERNAL_ERROR, MAIL_MADE_PERMANENT, MAIL_NORMAL, MAIL_OK, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, WorldPackets::Mail::MailCreateTextItem::Mailbox, WorldPackets::Mail::MailCreateTextItem::MailID, Mail::mailTemplateId, Mail::messageType, NONE, NULL_BAG, NULL_SLOT, Mail::sender, Player::SendMailResult(), Item::SetCreator(), Item::SetItemFlag(), Item::SetText(), sMailTemplateStore, Mail::state, and Player::StoreItem().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailDelete | ( | WorldPackets::Mail::MailDelete & | mailDelete | ) |
Definition at line 355 of file MailHandler.cpp.
References _player, CanOpenMailBox(), Mail::COD, Player::GetMail(), Player::m_mailsUpdated, MAIL_DELETED, MAIL_ERR_INTERNAL_ERROR, MAIL_OK, MAIL_STATE_DELETED, WorldPackets::Mail::MailDelete::MailID, Player::PlayerTalkClass, Player::SendMailResult(), and Mail::state.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailMarkAsRead | ( | WorldPackets::Mail::MailMarkAsRead & | markAsRead | ) |
Definition at line 337 of file MailHandler.cpp.
References _player, CanOpenMailBox(), Mail::checked, Player::GetMail(), Player::m_mailsUpdated, MAIL_CHECK_MASK_READ, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, WorldPackets::Mail::MailMarkAsRead::Mailbox, WorldPackets::Mail::MailMarkAsRead::MailID, Mail::state, and Player::unReadMails.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailReturnToSender | ( | WorldPackets::Mail::MailReturnToSender & | returnToSender | ) |
Definition at line 377 of file MailHandler.cpp.
References _player, MailDraft::AddItem(), MailDraft::AddMoney(), Mail::body, CanOpenMailBox(), CHAR_DEL_MAIL_BY_ID, CHAR_DEL_MAIL_ITEM_BY_ID, CharacterDatabase, Mail::deliver_time, GetAccountId(), ObjectGuid::GetCounter(), GameTime::GetGameTime(), Player::GetMail(), Player::GetMItem(), Mail::HasItems(), Mail::items, MAIL_ERR_INTERNAL_ERROR, MAIL_NORMAL, MAIL_OK, MAIL_RETURNED_TO_SENDER, MAIL_STATE_DELETED, WorldPackets::Mail::MailReturnToSender::MailID, Mail::mailTemplateId, Mail::messageType, Mail::money, Player::PlayerTalkClass, Mail::receiver, Player::RemoveMail(), Player::RemoveMItem(), Mail::sender, WorldPackets::Mail::MailReturnToSender::SenderGUID, Player::SendMailResult(), MailDraft::SendReturnToSender(), PreparedStatementBase::setUInt64(), Mail::state, and Mail::subject.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailTakeItem | ( | WorldPackets::Mail::MailTakeItem & | takeItem | ) |
Definition at line 428 of file MailHandler.cpp.
References _player, Player::_SaveMail(), MailDraft::AddMoney(), WorldPackets::Mail::MailTakeItem::AttachID, CanOpenMailBox(), Player::CanStoreItem(), CharacterDatabase, Mail::COD, Mail::deliver_time, EQUIP_ERR_OK, ObjectAccessor::FindConnectedPlayer(), GetAccountId(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Player::GetMail(), Player::GetMItem(), WorldObject::GetName(), Item::GetNameForLocaleIdx(), GetPlayerName(), Player::GetSession(), Player::HasEnoughMoney(), HasPermission(), MailItemInfo::item_guid, ITEM_UNCHANGED, Mail::items, LANG_UNKNOWN, Player::m_mailsUpdated, MAIL_CHECK_MASK_COD_PAYMENT, MAIL_ERR_EQUIP_ERROR, MAIL_ERR_INTERNAL_ERROR, MAIL_ERR_NOT_ENOUGH_MONEY, MAIL_ITEM_TAKEN, MAIL_NORMAL, MAIL_OK, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, WorldPackets::Mail::MailTakeItem::Mailbox, WorldPackets::Mail::MailTakeItem::MailID, Player::ModifyMoney(), Player::MoveItemToInventory(), NULL_BAG, NULL_SLOT, rbac::RBAC_PERM_LOG_GM_TRADE, Mail::receiver, Mail::removedItems, Mail::RemoveItem(), Player::RemoveMItem(), Player::SaveInventoryAndGoldToDB(), sCharacterCache, Mail::sender, Player::SendMailResult(), MailDraft::SendMailTo(), Item::SetState(), sLog, sObjectMgr, Mail::state, Mail::subject, and sWorld.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMailTakeMoney | ( | WorldPackets::Mail::MailTakeMoney & | takeMoney | ) |
Definition at line 524 of file MailHandler.cpp.
References _player, Player::_SaveMail(), CanOpenMailBox(), CharacterDatabase, Mail::deliver_time, EQUIP_ERR_TOO_MUCH_GOLD, GameTime::GetGameTime(), Player::GetMail(), Player::m_mailsUpdated, MAIL_ERR_EQUIP_ERROR, MAIL_ERR_INTERNAL_ERROR, MAIL_MONEY_TAKEN, MAIL_OK, MAIL_STATE_CHANGED, MAIL_STATE_DELETED, WorldPackets::Mail::MailTakeMoney::Mailbox, WorldPackets::Mail::MailTakeMoney::MailID, Player::ModifyMoney(), Mail::money, WorldPackets::Mail::MailTakeMoney::Money, Player::SaveInventoryAndGoldToDB(), Player::SendMailResult(), and Mail::state.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMergeGuildBankItemWithGuildBankItem | ( | WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem & | mergeGuildBankItemWithGuildBankItem | ) |
Definition at line 440 of file GuildHandler.cpp.
References WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::Banker, WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::BankSlot, WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::BankSlot1, WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::BankTab, WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::BankTab1, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), WorldPackets::Guild::MergeGuildBankItemWithGuildBankItem::StackCount, and Guild::SwapItems().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMergeGuildBankItemWithItem | ( | WorldPackets::Guild::MergeGuildBankItemWithItem & | mergeGuildBankItemWithItem | ) |
Definition at line 395 of file GuildHandler.cpp.
References WorldPackets::Guild::MergeGuildBankItemWithItem::Banker, WorldPackets::Guild::MergeGuildBankItemWithItem::BankSlot, WorldPackets::Guild::MergeGuildBankItemWithItem::BankTab, WorldPackets::Guild::MergeGuildBankItemWithItem::ContainerItemSlot, WorldPackets::Guild::MergeGuildBankItemWithItem::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), WorldPackets::Guild::MergeGuildBankItemWithItem::StackCount, and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMergeItemWithGuildBankItem | ( | WorldPackets::Guild::MergeItemWithGuildBankItem & | mergeItemWithGuildBankItem | ) |
Definition at line 363 of file GuildHandler.cpp.
References WorldPackets::Guild::MergeItemWithGuildBankItem::Banker, WorldPackets::Guild::MergeItemWithGuildBankItem::BankSlot, WorldPackets::Guild::MergeItemWithGuildBankItem::BankTab, WorldPackets::Guild::MergeItemWithGuildBankItem::ContainerItemSlot, WorldPackets::Guild::MergeItemWithGuildBankItem::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), WorldPackets::Guild::MergeItemWithGuildBankItem::StackCount, and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMinimapPingOpcode | ( | WorldPackets::Party::MinimapPingClient & | packet | ) |
Definition at line 399 of file GroupHandler.cpp.
References Group::BroadcastPacket(), Player::GetGroup(), BaseEntity::GetGUID(), GetPlayer(), WorldPackets::Party::MinimapPingClient::PartyIndex, WorldPackets::Party::MinimapPingClient::PositionX, WorldPackets::Party::MinimapPing::PositionX, WorldPackets::Party::MinimapPingClient::PositionY, WorldPackets::Party::MinimapPing::PositionY, WorldPackets::Party::MinimapPing::Sender, and WorldPackets::Party::MinimapPing::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMirrorImageDataRequest | ( | WorldPackets::Spells::GetMirrorImageData & | getMirrorImageData | ) |
Definition at line 465 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::MirrorImageComponentedData::ChrModelID, WorldPackets::Spells::MirrorImageComponentedData::ClassID, WorldPackets::Spells::MirrorImageComponentedData::Customizations, WorldPackets::Spells::MirrorImageCreatureData::DisplayID, WorldPackets::Spells::MirrorImageComponentedData::DisplayScale, ObjectGuid::Empty, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, WorldPackets::Spells::MirrorImageComponentedData::Gender, Unit::GetAuraEffectsByType(), Unit::GetClass(), Unit::GetDisplayId(), Unit::GetDisplayScale(), Unit::GetGender(), Guild::GetGUID(), Unit::GetRace(), ObjectAccessor::GetUnit(), WorldPackets::Spells::MirrorImageComponentedData::GuildGUID, Unit::HasAuraType(), INVENTORY_SLOT_BAG_0, WorldPackets::Spells::MirrorImageComponentedData::ItemDisplayID, WorldPackets::Spells::MirrorImageComponentedData::RaceID, sDB2Manager, SendPacket(), SPELL_AURA_CLONE_CASTER, Object::ToPlayer(), WorldPackets::Spells::GetMirrorImageData::UnitGUID, WorldPackets::Spells::MirrorImageComponentedData::UnitGUID, WorldPackets::Spells::MirrorImageCreatureData::UnitGUID, WorldPackets::Spells::MirrorImageComponentedData::Write(), and WorldPackets::Spells::MirrorImageCreatureData::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMissileTrajectoryCollision | ( | WorldPackets::Spells::MissileTrajectoryCollision & | packet | ) |
Definition at line 536 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::NotifyMissileTrajectoryCollision::Caster, WorldPackets::Spells::MissileTrajectoryCollision::CastID, WorldPackets::Spells::NotifyMissileTrajectoryCollision::CastID, WorldPackets::Spells::MissileTrajectoryCollision::CollisionPos, WorldPackets::Spells::NotifyMissileTrajectoryCollision::CollisionPos, Unit::FindCurrentSpellBySpellId(), ObjectAccessor::GetUnit(), SpellCastTargets::HasDst(), Spell::m_targets, SpellCastTargets::ModDst(), Spell::RecalculateDelayMomentForDst(), WorldObject::SendMessageToSet(), WorldPackets::Spells::MissileTrajectoryCollision::SpellID, WorldPackets::Spells::MissileTrajectoryCollision::Target, and WorldPackets::Spells::NotifyMissileTrajectoryCollision::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMountSetFavorite | ( | WorldPackets::Misc::MountSetFavorite & | mountSetFavorite | ) |
Definition at line 1170 of file MiscHandler.cpp.
References _collectionMgr, WorldPackets::Misc::MountSetFavorite::IsFavorite, and WorldPackets::Misc::MountSetFavorite::MountSpellID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMountSpecialAnimOpcode | ( | WorldPackets::Misc::MountSpecial & | mountSpecial | ) |
Definition at line 1161 of file MiscHandler.cpp.
References _player, WorldPackets::Array< T, N >::begin(), WorldPackets::Array< T, N >::end(), BaseEntity::GetGUID(), GetPlayer(), Player::SendMessageToSet(), WorldPackets::Misc::MountSpecial::SequenceVariation, WorldPackets::Misc::SpecialMountAnim::SequenceVariation, WorldPackets::Misc::MountSpecial::SpellVisualKitIDs, WorldPackets::Misc::SpecialMountAnim::SpellVisualKitIDs, WorldPackets::Misc::SpecialMountAnim::UnitGUID, and WorldPackets::Misc::SpecialMountAnim::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveApplyInertiaAck | ( | WorldPackets::Movement::MoveApplyInertiaAck & | moveApplyInertiaAck | ) |
Definition at line 856 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveApplyInertiaAck::Ack, AdjustClientMovementTime(), WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MoveApplyInertiaAck::InertiaID, WorldPackets::Movement::MoveUpdateApplyInertia::InertiaID, WorldPackets::Movement::MoveApplyInertiaAck::LifetimeMs, WorldPackets::Movement::MoveUpdateApplyInertia::LifetimeMs, WorldObject::m_movementInfo, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateApplyInertia::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateApplyInertia::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveApplyMovementForceAck | ( | WorldPackets::Movement::MoveApplyMovementForceAck & | moveApplyMovementForceAck | ) |
Definition at line 785 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveApplyMovementForceAck::Ack, AdjustClientMovementTime(), WorldPackets::Movement::MoveApplyMovementForceAck::Force, WorldPackets::Movement::MoveUpdateApplyMovementForce::Force, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateApplyMovementForce::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateApplyMovementForce::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveChangeVehicleSeats | ( | WorldPackets::Vehicle::MoveChangeVehicleSeats & | moveChangeVehicleSeats | ) |
Definition at line 77 of file VehicleHandler.cpp.
References VehicleSeatEntry::CanSwitchFromSeat(), Unit::ChangeSeat(), WorldPackets::Vehicle::MoveChangeVehicleSeats::DstSeatIndex, WorldPackets::Vehicle::MoveChangeVehicleSeats::DstVehicle, VehicleSeatEntry::Flags, WorldPackets::ClientPacket::GetOpcode(), GetPlayer(), Vehicle::GetSeatForPassenger(), ObjectAccessor::GetUnit(), Unit::GetVehicle(), MovementInfo::guid, Vehicle::HasEmptySeat(), ObjectGuid::IsEmpty(), WorldObject::m_movementInfo, WorldPackets::Vehicle::MoveChangeVehicleSeats::Status, TC_LOG_ERROR, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveDismissVehicle | ( | WorldPackets::Vehicle::MoveDismissVehicle & | moveDismissVehicle | ) |
Definition at line 27 of file VehicleHandler.cpp.
References _player, AdjustClientMovementTime(), Unit::ExitVehicle(), WorldPackets::ClientPacket::GetOpcode(), Unit::GetVehicleBase(), MovementInfo::guid, WorldObject::m_movementInfo, WorldPackets::Vehicle::MoveDismissVehicle::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveForceGravityModifierChangeAck | ( | WorldPackets::Movement::MoveForceGravityModifierChangeAck & | moveForceGravityModifierChangeAck | ) |
Definition at line 893 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveForceGravityModifierChangeAck::Ack, AdjustClientMovementTime(), WorldPackets::ClientPacket::GetOpcode(), MovementInfo::gravityModifier, WorldPackets::Movement::MoveForceGravityModifierChangeAck::GravityModifier, WorldPackets::Movement::MoveUpdateSetGravityModifier::GravityModifier, MovementInfo::guid, WorldObject::m_movementInfo, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateSetGravityModifier::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateSetGravityModifier::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveGuildBankItem | ( | WorldPackets::Guild::MoveGuildBankItem & | moveGuildBankItem | ) |
Definition at line 351 of file GuildHandler.cpp.
References WorldPackets::Guild::MoveGuildBankItem::Banker, WorldPackets::Guild::MoveGuildBankItem::BankSlot, WorldPackets::Guild::MoveGuildBankItem::BankSlot1, WorldPackets::Guild::MoveGuildBankItem::BankTab, WorldPackets::Guild::MoveGuildBankItem::BankTab1, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), and Guild::SwapItems().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveInitActiveMoverComplete | ( | WorldPackets::Movement::MoveInitActiveMoverComplete const & | moveInitActiveMoverComplete | ) |
Definition at line 1020 of file MovementHandler.cpp.
References _player, WorldPackets::Packet::GetRawPacket(), WorldPacket::GetReceivedTime(), HandleTimeSync(), SPECIAL_INIT_ACTIVE_MOVER_TIME_SYNC_COUNTER, WorldPackets::Movement::MoveInitActiveMoverComplete::Ticks, and Player::UpdateObjectVisibility().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveKnockBackAck | ( | WorldPackets::Movement::MoveKnockBackAck & | movementAck | ) |
Definition at line 742 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveKnockBackAck::Ack, AdjustClientMovementTime(), WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldObject::m_movementInfo, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateKnockBack::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateKnockBack::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMovementAckMessage | ( | WorldPackets::Movement::MovementAckMessage & | movementAck | ) |
Definition at line 759 of file MovementHandler.cpp.
References WorldPackets::Movement::MovementAckMessage::Ack, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MovementAck::Status, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMovementOpcode | ( | OpcodeClient | opcode, |
| MovementInfo & | movementInfo | ||
| ) |
Definition at line 476 of file MovementHandler.cpp.
References _player, TransportBase::AddPassenger(), AdjustClientMovementTime(), CMSG_MOVE_FALL_LAND, CMSG_MOVE_JUMP, CMSG_MOVE_SET_ADV_FLY, CMSG_MOVE_SET_FLY, CMSG_MOVE_START_SWIM, CMSG_MOVE_STOP, CMSG_MOVE_STOP_ASCEND, CMSG_MOVE_STOP_PITCH, CMSG_MOVE_STOP_STRAFE, CMSG_MOVE_STOP_SWIM, CMSG_MOVE_STOP_TURN, DAMAGE_FALL_TO_VOID, EMOTE_ONESHOT_NONE, Player::EnvironmentalDamage(), MovementInfo::flags, Player::GetBattleground(), Player::GetDebugInfo(), Unit::GetEmoteState(), Position::GetExactDist2d(), Map::GetGameObject(), BaseEntity::GetGUID(), WorldObject::GetMap(), Map::GetMinHeight(), WorldObject::GetName(), GetOpcodeNameForLogging(), Position::GetOrientation(), WorldObject::GetPhaseShift(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), TransportBase::GetTransportGUID(), Unit::GetVehicle(), MovementInfo::guid, MovementInfo::TransportInfo::guid, Player::HandleFall(), Battleground::HandlePlayerUnderMap(), Unit::IsAlive(), Player::IsBeingTeleported(), ObjectGuid::IsEmpty(), Unit::IsInFlight(), Unit::IsSitState(), Trinity::IsValidMapCoord(), Jump, Player::KillPlayer(), LandingOrFlight, WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_MASK_TURNING, Unit::movespline, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, MovementInfo::pos, MovementInfo::TransportInfo::pos, PROC_FLAG_JUMP, PROC_FLAG_NONE, PROC_HIT_NONE, PROC_SPELL_PHASE_NONE, PROC_SPELL_TYPE_MASK_ALL, Unit::ProcSkillsAndAuras(), Unit::RemoveAurasWithInterruptFlags(), TransportBase::RemovePassenger(), Player::RemovePlayerFlag(), MovementInfo::TransportInfo::Reset(), MovementInfo::ResetTransport(), WorldObject::SendMessageToSet(), Unit::SetEmoteState(), Position::SetOrientation(), Player::SetPlayerFlag(), Unit::SetStandState(), SIZE_OF_GRIDS, WorldPackets::Movement::MoveUpdate::Status, TC_LOG_DEBUG, TC_LOG_TRACE, MovementInfo::time, Object::ToPlayer(), MovementInfo::transport, Turning, UNIT_STAND_STATE_STAND, Player::UnsummonBattlePetTemporaryIfAny(), Player::UnsummonPetTemporaryIfAny(), Player::UpdateFallInformationIfNeed(), Player::UpdateIndoorsOutdoorsAuras(), Unit::UpdatePosition(), Player::UpdateTavernRestingState(), Player::UpdateZoneAndAreaId(), ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), VEHICLE_SEAT_FLAG_ALLOW_TURNING, and WorldPackets::Movement::MoveUpdate::Write().
Referenced by HandleCastSpellOpcode(), HandleMovementOpcodes(), HandlePetCastSpellOpcode(), and HandleUpdateMissileTrajectory().
| void WorldSession::HandleMovementOpcodes | ( | WorldPackets::Movement::ClientPlayerMovement & | packet | ) |
Definition at line 471 of file MovementHandler.cpp.
References WorldPackets::ClientPacket::GetOpcode(), HandleMovementOpcode(), and WorldPackets::Movement::ClientPlayerMovement::Status.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveRemoveInertiaAck | ( | WorldPackets::Movement::MoveRemoveInertiaAck & | moveRemoveInertiaAck | ) |
Definition at line 875 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveRemoveInertiaAck::Ack, AdjustClientMovementTime(), WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MoveRemoveInertiaAck::InertiaID, WorldPackets::Movement::MoveUpdateRemoveInertia::InertiaID, WorldObject::m_movementInfo, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateRemoveInertia::Status, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateRemoveInertia::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveRemoveMovementForceAck | ( | WorldPackets::Movement::MoveRemoveMovementForceAck & | moveRemoveMovementForceAck | ) |
Definition at line 802 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveRemoveMovementForceAck::Ack, AdjustClientMovementTime(), WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MoveRemoveMovementForceAck::ID, WorldObject::SendMessageToSet(), WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateRemoveMovementForce::Status, MovementInfo::time, WorldPackets::Movement::MoveUpdateRemoveMovementForce::TriggerGUID, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateRemoveMovementForce::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveSetModMovementForceMagnitudeAck | ( | WorldPackets::Movement::MovementSpeedAck & | setModMovementForceMagnitudeAck | ) |
Definition at line 819 of file MovementHandler.cpp.
References _player, WorldPackets::Movement::MovementSpeedAck::Ack, AdjustClientMovementTime(), GetAccountId(), Unit::GetMovementForces(), WorldObject::GetName(), WorldPackets::ClientPacket::GetOpcode(), Player::GetSession(), MovementInfo::guid, KickPlayer(), Player::m_movementForceModMagnitudeChanges, WorldObject::SendMessageToSet(), SMSG_MOVE_UPDATE_MOD_MOVEMENT_FORCE_MAGNITUDE, WorldPackets::Movement::MoveUpdateSpeed::Speed, WorldPackets::Movement::MovementSpeedAck::Speed, WorldPackets::Movement::MovementAck::Status, WorldPackets::Movement::MoveUpdateSpeed::Status, TC_LOG_DEBUG, MovementInfo::time, ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), and WorldPackets::Movement::MoveUpdateSpeed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveSetVehicleRecAck | ( | WorldPackets::Vehicle::MoveSetVehicleRecIdAck & | setVehicleRecIdAck | ) |
Definition at line 199 of file VehicleHandler.cpp.
References WorldPackets::Vehicle::MoveSetVehicleRecIdAck::Data, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MovementAck::Status, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveSplineDoneOpcode | ( | WorldPackets::Movement::MoveSplineDone & | moveSplineDone | ) |
Definition at line 912 of file MovementHandler.cpp.
References WorldObject::CastSpell(), Player::CleanupAfterTaxiFlight(), TaxiNodesEntry::ContinentID, TaxiPathNodeEntry::Flags, FLIGHT_MOTION_TYPE, WorldLocation::GetMapId(), WorldPackets::ClientPacket::GetOpcode(), GetPlayer(), PlayerTaxi::GetTaxiDestination(), MovementInfo::guid, TaxiPathNodeEntry::Loc, Player::m_taxi, Player::SetFallInformation(), WorldPackets::Movement::MoveSplineDone::Status, sTaxiNodesStore, TAXI_PATH_NODE_FLAG_TELEPORT, Player::TeleportTo(), ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveTeleportAck | ( | WorldPackets::Movement::MoveTeleportAck & | packet | ) |
Definition at line 413 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveTeleportAck::AckIndex, WorldObject::CastSpell(), Map::GetGameObject(), WorldObject::GetMap(), WorldPackets::ClientPacket::GetOpcode(), GetPlayer(), Player::GetTeleportDest(), Player::GetTeleportState(), WorldObject::GetZoneAndAreaId(), WorldObject::GetZoneId(), Player::HasPlayerFlag(), PvPInfo::IsHostile, Unit::IsPvP(), TeleportLocation::Location, WorldObject::m_movementInfo, WorldPackets::Movement::MoveTeleportAck::MoverGUID, WorldPackets::Movement::MoveTeleportAck::MoveTime, NotTeleporting, PLAYER_FLAGS_IN_PVP, MovementInfo::TransportInfo::pos, Player::ProcessDelayedOperations(), Player::pvpInfo, Position::Relocate(), Player::ResummonPetTemporaryUnSummonedIfAny(), Player::SetFallInformation(), Player::SetTeleportState(), TC_LOG_DEBUG, Object::ToPlayer(), ObjectGuid::ToString(), MovementInfo::transport, TeleportLocation::TransportGuid, Player::UpdatePosition(), Player::UpdatePvP(), Player::UpdateZone(), ValidateAndGetUnitBeingMoved(), and WaitingForTeleportAck.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveTimeSkippedOpcode | ( | WorldPackets::Movement::MoveTimeSkipped & | moveTimeSkipped | ) |
Definition at line 968 of file MovementHandler.cpp.
References _player, WorldPackets::ClientPacket::GetOpcode(), WorldObject::m_movementInfo, WorldPackets::Movement::MoveTimeSkipped::MoverGUID, WorldPackets::Movement::MoveSkipTime::MoverGUID, WorldObject::SendMessageToSet(), MovementInfo::time, WorldPackets::Movement::MoveTimeSkipped::TimeSkipped, WorldPackets::Movement::MoveSkipTime::TimeSkipped, ValidateAndGetUnitBeingMoved(), and WorldPackets::Movement::MoveSkipTime::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleMoveWorldportAck | ( | ) |
Definition at line 189 of file MovementHandler.cpp.
References Map::AddPlayerToMap(), BATTLEGROUND_QUEUE_NONE, BATTLEGROUND_TYPE_NONE, Map::CannotEnter(), WorldObject::CastSpell(), Player::CheckInstanceValidity(), WorldPackets::Instance::RaidInstanceMessage::DifficultyID, WorldPackets::Instance::RaidInstanceMessage::Extended, Player::FinishTaxiFlight(), Player::GetBattleground(), Player::GetBattlegroundId(), Player::GetCorpseLocation(), MotionMaster::GetCurrentMovementGenerator(), Map::GetDifficultyID(), Player::GetGarrison(), BaseEntity::GetGUID(), Unit::GetHoverOffset(), Map::GetId(), WorldObject::GetMap(), WorldLocation::GetMapId(), Map::GetMapName(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeleportDest(), Player::GetTeleportOptions(), WorldObject::GetTransport(), Map::GetTransport(), WorldObject::GetZoneAndAreaId(), Player::HasPlayerFlag(), MapEntry::ID, Player::InBattleground(), MovementGenerator::Initialize(), TeleportLocation::InstanceId, Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), MapEntry::IsDungeon(), PvPInfo::IsHostile, Unit::IsInFlight(), Player::IsInvitedForBattlegroundInstance(), BaseEntity::IsInWorld(), Unit::IsPvP(), MapManager::IsValidMapCoord(), TeleportLocation::LfgDungeonsId, TeleportLocation::Location, WorldPackets::Instance::RaidInstanceMessage::Locked, LogoutPlayer(), Player::m_bgData, Player::m_homebind, Player::m_InstanceValid, Unit::m_movementCounter, Player::m_teleport_dest, WorldPackets::Instance::RaidInstanceMessage::MapID, NotTeleporting, PLAYER_FLAGS_IN_PVP, Player::ProcessDelayedOperations(), Player::pvpInfo, BGData::queueId, RAID_INSTANCE_WELCOME, WorldPackets::Movement::ResumeToken::Reason, Position::Relocate(), Map::RemovePlayerFromMap(), Player::ResetMap(), Player::ResummonBattlePetTemporaryUnSummonedIfAny(), Player::ResummonPetTemporaryUnSummonedIfAny(), Player::ResurrectPlayer(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), SendPacket(), WorldPackets::Movement::ResumeToken::SequenceIndex, Player::SetBattlegroundId(), Player::SetBGTeam(), Player::SetFallInformation(), Player::SetMap(), Player::SetTeleportState(), sInstanceLockMgr, sMapMgr, sMapStore, Player::SpawnCorpseBones(), TC_LOG_ERROR, TEAM_OTHER, TELE_REVIVE_AT_TELEPORT, TELE_TO_SEAMLESS, Player::TeleportTo(), ObjectGuid::ToString(), TeleportLocation::TransportGuid, WorldPackets::Instance::RaidInstanceMessage::Type, WorldObject::UpdatePositionData(), Player::UpdatePvP(), Player::UpdateVisibilityForPlayer(), Player::UpdateZone(), WorldPackets::Instance::RaidInstanceMessage::Write(), and WorldPackets::Movement::ResumeToken::Write().
Referenced by HandleMoveWorldportAckOpcode(), HandleSuspendTokenResponse(), and LogoutPlayer().
| void WorldSession::HandleMoveWorldportAckOpcode | ( | WorldPackets::Movement::WorldPortResponse & | packet | ) |
Definition at line 181 of file MovementHandler.cpp.
References _player, Player::GetTeleportState(), HandleMoveWorldportAck(), and WaitingForWorldPortAck.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleNextCinematicCamera | ( | WorldPackets::Misc::NextCinematicCamera & | packet | ) |
Definition at line 782 of file MiscHandler.cpp.
References Player::GetCinematicMgr(), GetPlayer(), and CinematicMgr::NextCinematicCamera().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleNpcTextQueryOpcode | ( | WorldPackets::Query::QueryNPCText & | packet | ) |
Definition at line 176 of file QueryHandler.cpp.
References WorldPackets::Query::QueryNPCTextResponse::Allow, NpcTextData::BroadcastTextID, WorldPackets::Query::QueryNPCTextResponse::BroadcastTextID, NpcText::Data, MAX_NPC_TEXT_OPTIONS, WorldPackets::Query::QueryNPCTextResponse::Probabilities, NpcTextData::Probability, SendPacket(), sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, WorldPackets::Query::QueryNPCText::TextID, WorldPackets::Query::QueryNPCTextResponse::TextID, and WorldPackets::Query::QueryNPCTextResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleObjectUpdateFailedOpcode | ( | WorldPackets::Misc::ObjectUpdateFailed & | objectUpdateFailed | ) |
Definition at line 1105 of file MiscHandler.cpp.
References _player, BaseEntity::GetGUID(), GetPlayerName(), LogoutPlayer(), Player::m_clientGUIDs, WorldPackets::Misc::ObjectUpdateFailed::ObjectGUID, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleObjectUpdateRescuedOpcode | ( | WorldPackets::Misc::ObjectUpdateRescued & | objectUpdateRescued | ) |
Definition at line 1120 of file MiscHandler.cpp.
References _player, BaseEntity::GetGUID(), GetPlayerName(), Player::m_clientGUIDs, WorldPackets::Misc::ObjectUpdateRescued::ObjectGUID, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleOfferPetition | ( | WorldPackets::Petition::OfferPetition & | packet | ) |
Definition at line 323 of file PetitionsHandler.cpp.
References _player, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_GUILD_S, ERR_ALREADY_INVITED_TO_GUILD_S, ERR_GUILD_NOT_ALLIED, ObjectAccessor::FindConnectedPlayer(), Player::GetGuildId(), Player::GetGuildIdInvited(), WorldObject::GetName(), GetPlayer(), Player::GetTeam(), GUILD_COMMAND_CREATE_GUILD, GUILD_COMMAND_INVITE_PLAYER, WorldPackets::Petition::OfferPetition::ItemGUID, Guild::SendCommandResult(), SendPetitionSigns(), sPetitionMgr, sWorld, WorldPackets::Petition::OfferPetition::TargetPlayer, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleOpeningCinematic | ( | WorldPackets::Misc::OpeningCinematic & | packet | ) |
Definition at line 2773 of file CharacterHandler.cpp.
References _player, Unit::GetClass(), Unit::GetRace(), Player::m_activePlayerData, sChrClassesStore, sChrRacesStore, and Player::SendCinematicStart().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleOpenItemOpcode | ( | WorldPackets::Spells::OpenItem & | packet | ) |
Definition at line 65 of file SpellHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHARACTER_GIFT_BY_ITEM, CharacterDatabase, ObjectGuid::Empty, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_ITEM_LOCKED, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_PLAYER_DEAD, Loot::FillLoot(), Loot::generateMoneyLoot(), ObjectGuid::GetCounter(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetId(), Player::GetItemByPos(), ItemTemplate::GetLockID(), WorldObject::GetMap(), WorldObject::GetName(), GetPlayer(), Item::GetPos(), Item::GetTemplate(), Loot::gold, ItemTemplate::HasFlag(), Unit::IsAlive(), Unit::IsCharmed(), Item::IsLocked(), Item::IsWrapped(), ITEM_FLAG_HAS_LOOT, LOOT_ERROR_NO_LOOT, LOOT_ITEM, LootTemplates_Item, Item::m_loot, Item::m_lootGenerated, ItemTemplate::MaxMoneyLoot, ItemTemplate::MinMoneyLoot, WorldPackets::Spells::OpenItem::PackSlot, Player::SendEquipError(), Player::SendLoot(), Player::SendLootError(), PreparedStatementBase::setUInt64(), sLockStore, sLootItemStorage, WorldPackets::Spells::OpenItem::Slot, TC_LOG_ERROR, TC_LOG_INFO, ObjectGuid::ToString(), and Loot::unlootedCount.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleOpenWrappedItemCallback | ( | uint16 | pos, |
| ObjectGuid | itemGuid, | ||
| PreparedQueryResult | result | ||
| ) |
Definition at line 160 of file SpellHandler.cpp.
References CHAR_DEL_GIFT, CharacterDatabase, Player::DestroyItem(), ObjectGuid::Empty, flags, Item::GetBagSlot(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Player::GetItemByPos(), GetPlayer(), Item::GetSlot(), Item::GetTemplate(), Field::GetUInt32(), Item::IsWrapped(), ITEM_CHANGED, ItemTemplate::MaxDurability, Item::ReplaceAllItemFlags(), Player::SaveInventoryAndGoldToDB(), Object::SetEntry(), Item::SetGiftCreator(), Item::SetMaxDurability(), Item::SetState(), PreparedStatementBase::setUInt64(), TC_LOG_ERROR, and ObjectGuid::ToString().
| void WorldSession::HandleOptOutOfLootOpcode | ( | WorldPackets::Party::OptOutOfLoot & | packet | ) |
Definition at line 601 of file GroupHandler.cpp.
References GetPlayer(), WorldPackets::Party::OptOutOfLoot::PassOnLoot, Player::SetPassOnGroupLoot(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePartyInviteOpcode | ( | WorldPackets::Party::PartyInviteClient & | packet | ) |
Definition at line 59 of file GroupHandler.cpp.
References Group::AddInvite(), Group::AddLeaderInvite(), CONFIG_ALLOW_GM_GROUP, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CONFIG_PARTY_LEVEL_REQ, ERR_ALREADY_IN_GROUP_S, ERR_BAD_PLAYER_NAME_S, ERR_GROUP_FULL, ERR_IGNORING_YOU_S, ERR_INVITE_RESTRICTED, ERR_NOT_LEADER, ERR_PARTY_RESULT_OK, ERR_PLAYER_WRONG_FACTION, ERR_TARGET_NOT_IN_INSTANCE_S, ObjectAccessor::FindPlayerByName(), GetAccountGUID(), Player::GetDungeonDifficultyID(), Player::GetGroup(), Player::GetGroupInvite(), BaseEntity::GetGUID(), WorldObject::GetInstanceId(), Unit::GetLevel(), WorldLocation::GetMapId(), WorldObject::GetName(), GetPlayer(), Player::GetSession(), Player::GetSocial(), Player::GetTeam(), PlayerSocial::HasFriend(), PlayerSocial::HasIgnore(), WorldPackets::Party::PartyInvite::Initialize(), Group::IsAssistant(), Group::IsCreated(), Group::IsFull(), Player::IsGameMaster(), Group::IsLeader(), PARTY_OP_INVITE, WorldPackets::Party::PartyInviteClient::PartyIndex, WorldPackets::Party::PartyInviteClient::ProposedRoles, Group::RemoveAllInvites(), Player::SendDirectMessage(), SendPartyResult(), sWorld, WorldPackets::Party::PartyInviteClient::TargetName, and WorldPackets::Party::PartyInvite::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePartyInviteResponseOpcode | ( | WorldPackets::Party::PartyInviteResponse & | packet | ) |
Definition at line 188 of file GroupHandler.cpp.
References WorldPackets::Party::PartyInviteResponse::Accept, Group::AddMember(), ASSERT, Group::BroadcastGroupUpdate(), Group::Create(), ERR_GROUP_FULL, ObjectAccessor::FindConnectedPlayer(), ObjectAccessor::FindPlayer(), Group::GetGroupCategory(), Player::GetGroupInvite(), Group::GetLeaderGUID(), GetPlayer(), Player::GetSession(), Group::IsCreated(), Group::IsFull(), PARTY_OP_INVITE, WorldPackets::Party::PartyInviteResponse::PartyIndex, Group::RemoveAllInvites(), Group::RemoveInvite(), Player::SendDirectMessage(), SendPartyResult(), sGroupMgr, TC_LOG_ERROR, Player::UninviteFromGroup(), and WorldPackets::Party::GroupDecline::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePartyUninviteOpcode | ( | WorldPackets::Party::PartyUninvite & | packet | ) |
Definition at line 258 of file GroupHandler.cpp.
References ASSERT, Player::CanUninviteFromGroup(), ERR_PARTY_RESULT_OK, ERR_TARGET_NOT_IN_GROUP_S, Player::GetGroup(), Group::GetInvited(), GetPlayer(), GROUP_REMOVEMETHOD_KICK, Group::IsMember(), PARTY_OP_UNINVITE, WorldPackets::Party::PartyUninvite::PartyIndex, WorldPackets::Party::PartyUninvite::Reason, Player::RemoveFromGroup(), SendPartyResult(), WorldPackets::Party::PartyUninvite::TargetGUID, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetAbandon | ( | WorldPackets::Pet::PetAbandon & | packet | ) |
Definition at line 605 of file PetHandler.cpp.
References _player, ObjectAccessor::GetCreatureOrPetOrVehicle(), Pet::getPetType(), HUNTER_PET, WorldPackets::Pet::PetAbandon::Pet, PET_SAVE_AS_DELETED, Player::RemovePet(), and Unit::ToPet().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetAbandonByNumber | ( | WorldPackets::Pet::PetAbandonByNumber const & | petAbandonByNumber | ) |
Definition at line 615 of file PetHandler.cpp.
References _player, Player::DeletePetFromDB(), Player::GetPet(), PET_SAVE_AS_DELETED, WorldPackets::Pet::PetAbandonByNumber::PetNumber, and Player::RemovePet().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetAction | ( | WorldPackets::Pet::PetAction & | packet | ) |
Definition at line 64 of file PetHandler.cpp.
References _player, ACT_COMMAND, ACT_ENABLED, ACT_PASSIVE, WorldPackets::Pet::PetAction::Action, WorldPackets::Pet::PetAction::ActionPosition, COMMAND_ATTACK, Map::GetDifficultyID(), Object::GetEntry(), WorldObject::GetMap(), GetPlayer(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), HandlePetActionHelper(), SpellInfo::HasAttribute(), Unit::IsAlive(), Unit::IsMounted(), Unit::m_Controlled, WorldPackets::Pet::PetAction::PetGUID, SPELL_ATTR0_ALLOW_CAST_WHILE_DEAD, sSpellMgr, WorldPackets::Pet::PetAction::TargetGUID, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEID_PLAYER, UNIT_ACTION_BUTTON_ACTION, and UNIT_ACTION_BUTTON_TYPE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetActionHelper | ( | Unit * | pet, |
| ObjectGuid | guid1, | ||
| uint32 | spellid, | ||
| uint16 | flag, | ||
| ObjectGuid | guid2, | ||
| Position const & | pos | ||
| ) |
Definition at line 141 of file PetHandler.cpp.
References _player, ACT_COMMAND, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, ACT_REACTION, Creature::AI(), ASSERT, Unit::Attack(), CreatureAI::AttackStart(), Unit::AttackStop(), Spell::CheckPetCast(), MotionMaster::Clear(), COMMAND_ABANDON, COMMAND_ATTACK, COMMAND_FOLLOW, COMMAND_MOVE_TO, COMMAND_STAY, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, Spell::finish(), Unit::GetCharmerGUID(), Unit::GetCharmerOrOwner(), Unit::GetCharmInfo(), Unit::GetCurrentSpell(), Map::GetDifficultyID(), SpellInfo::GetEffects(), Unit::GetFollowAngle(), BaseEntity::GetGUID(), WorldObject::GetMap(), Unit::GetMotionMaster(), WorldObject::GetOwner(), Unit::GetOwnerGUID(), Pet::getPetType(), GetPlayer(), Unit::GetSpellHistory(), BaseEntity::GetTypeId(), ObjectAccessor::GetUnit(), SpellCastTargets::GetUnitTarget(), Unit::GetVictim(), SpellHistory::HasCooldown(), Unit::HasSpell(), Unit::HasSpellFocus(), Unit::HasUnitTypeMask(), HUNTER_PET, Unit::InterruptSpell(), Unit::IsAIEnabled(), CharmInfo::IsCommandAttack(), ObjectGuid::IsEmpty(), SpellInfo::IsPassive(), Unit::IsPet(), Unit::isPossessed(), Unit::IsVehicle(), Spell::m_castId, Spell::m_SpellVisual, Spell::m_targets, MOTION_PRIORITY_NORMAL, MotionMaster::MoveFollow(), MotionMaster::MoveIdle(), MotionMaster::MovePoint(), PET_ACTION_ATTACK, PET_ACTION_SPECIAL_SPELL, PET_FOLLOW_DIST, PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, Spell::prepare(), REACT_AGGRESSIVE, REACT_DEFENSIVE, REACT_PASSIVE, Player::RemovePet(), SpellHistory::ResetCooldown(), roll_chance(), CharmInfo::SaveStayPosition(), Spell::SendCastResult(), Unit::SendPetActionSound(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), Unit::SendPetDismissSound(), BaseEntity::SendUpdateToPlayer(), CharmInfo::SetCommandState(), Unit::SetInFront(), CharmInfo::SetIsAtStay(), CharmInfo::SetIsCommandAttack(), CharmInfo::SetIsCommandFollow(), CharmInfo::SetIsFollowing(), CharmInfo::SetIsReturning(), Creature::SetReactState(), SPELL_ATTR9_CHANNEL_PERSISTS_ON_PET_FOLLOW, SPELL_CAST_OK, SPELL_FAILED_UNIT_NOT_INFRONT, sSpellMgr, Player::StopCastingCharm(), Unit::StopMoving(), SUMMON_PET, TARGET_DEST_DYNOBJ_ENEMY, TARGET_UNIT_DEST_AREA_ENEMY, TARGET_UNIT_SRC_AREA_ENEMY, TC_LOG_DEBUG, TC_LOG_ERROR, Object::ToCreature(), Unit::ToPet(), Object::ToPlayer(), ObjectGuid::ToString(), TRIGGERED_NONE, TYPEID_PLAYER, TYPEID_UNIT, and UNIT_MASK_MINION.
Referenced by HandlePetAction().
| void WorldSession::HandlePetCancelAuraOpcode | ( | WorldPackets::Spells::PetCancelAura & | packet | ) |
Definition at line 287 of file SpellHandler.cpp.
References _player, AURA_REMOVE_BY_CANCEL, Dead, DIFFICULTY_NONE, ObjectGuid::Empty, ObjectAccessor::GetCreatureOrPetOrVehicle(), GetPlayer(), Unit::IsAlive(), WorldPackets::Spells::PetCancelAura::PetGUID, Unit::RemoveOwnedAura(), Unit::SendPetActionFeedback(), WorldPackets::Spells::PetCancelAura::SpellID, sSpellMgr, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetCastSpellOpcode | ( | WorldPackets::Spells::PetCastSpell & | petCastSpell | ) |
Definition at line 678 of file PetHandler.cpp.
References _player, WorldPackets::Spells::PetCastSpell::Cast, WorldPackets::Spells::SpellCastRequest::CastID, Spell::CheckPetCast(), WorldPackets::Spells::SpellPrepare::ClientCastID, CMSG_MOVE_STOP, Spell::Data, Spell::finish(), Unit::GetCharmed(), Map::GetDifficultyID(), Unit::GetGuardianPet(), WorldObject::GetMap(), GetPlayer(), Unit::GetSpellHistory(), ObjectAccessor::GetUnit(), HandleMovementOpcode(), Unit::HasAuraTypeWithTriggerSpell(), SpellHistory::HasCooldown(), Unit::HasSpell(), SpellInfo::Id, Spell::InitExplicitTargets(), SpellInfo::IsPassive(), Spell::m_castId, Spell::m_fromClient, Spell::m_misc, WorldPackets::Spells::SpellCastRequest::Misc, WorldPackets::Spells::SpellCastRequest::MoveUpdate, PET_ACTION_SPECIAL_SPELL, WorldPackets::Spells::PetCastSpell::PetGUID, Spell::prepare(), Spell::Raw, SpellHistory::ResetCooldown(), roll_chance(), SendPacket(), Spell::SendPetCastResult(), WorldPackets::Spells::SpellPrepare::ServerCastID, SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT, SPELL_CAST_OK, WorldPackets::Spells::SpellCastRequest::SpellID, sSpellMgr, SUMMON_PET, TC_LOG_ERROR, Object::ToCreature(), Unit::ToPet(), ObjectGuid::ToString(), TRIGGERED_FULL_MASK, TRIGGERED_NONE, and WorldPackets::Spells::SpellPrepare::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetitionBuy | ( | WorldPackets::Petition::PetitionBuy & | packet | ) |
Definition at line 38 of file PetitionsHandler.cpp.
References _player, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_NOT_ENOUGHT_MONEY, Player::CanStoreNewItem(), CONFIG_CHARTER_COST_GUILD, EQUIP_ERR_OK, ERR_GUILD_NAME_EXISTS_S, ERR_GUILD_NAME_INVALID, ItemTemplate::GetBuyCount(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Player::GetGuildId(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GUILD_CHARTER_ITEM_ID, GUILD_COMMAND_CREATE_GUILD, Player::HasEnoughMoney(), ObjectMgr::IsValidCharterName(), ITEM_CHANGED, Player::ModifyMoney(), NULL_BAG, NULL_SLOT, Unit::RemoveAurasByType(), Player::SendBuyError(), Guild::SendCommandResult(), Player::SendEquipError(), Player::SendNewItem(), Item::SetPetitionId(), Item::SetState(), sGuildMgr, sObjectMgr, SPELL_AURA_FEIGN_DEATH, sPetitionMgr, Player::StoreNewItem(), sWorld, TC_LOG_DEBUG, WorldPackets::Petition::PetitionBuy::Title, ObjectGuid::ToString(), WorldPackets::Petition::PetitionBuy::Unit, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_PETITIONER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetitionRenameGuild | ( | WorldPackets::Petition::PetitionRenameGuild & | packet | ) |
Definition at line 189 of file PetitionsHandler.cpp.
References _player, ERR_GUILD_NAME_EXISTS_S, ERR_GUILD_NAME_INVALID, Player::GetItemByGuid(), GUILD_COMMAND_CREATE_GUILD, ObjectMgr::IsValidCharterName(), WorldPackets::Petition::PetitionRenameGuild::NewGuildName, WorldPackets::Petition::PetitionRenameGuildResponse::NewGuildName, WorldPackets::Petition::PetitionRenameGuild::PetitionGuid, WorldPackets::Petition::PetitionRenameGuildResponse::PetitionGuid, Guild::SendCommandResult(), SendPacket(), sGuildMgr, sObjectMgr, sPetitionMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), Petition::UpdateName(), and WorldPackets::Petition::PetitionRenameGuildResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetitionShowList | ( | WorldPackets::Petition::PetitionShowList & | packet | ) |
Definition at line 445 of file PetitionsHandler.cpp.
References WorldPackets::Petition::PetitionShowList::PetitionUnit, and SendPetitionShowList().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetitionShowSignatures | ( | WorldPackets::Petition::PetitionShowSignatures & | packet | ) |
Definition at line 117 of file PetitionsHandler.cpp.
References _player, Player::GetGuildId(), GetPlayer(), WorldPackets::Petition::PetitionShowSignatures::Item, SendPetitionSigns(), sPetitionMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetRename | ( | WorldPackets::Pet::PetRename & | packet | ) |
Definition at line 526 of file PetHandler.cpp.
References _player, CHAR_DEL_CHAR_PET_DECLINEDNAME, CHAR_INS_CHAR_PET_DECLINEDNAME, CHAR_UPD_CHAR_PET_NAME, CharacterDatabase, ObjectMgr::CheckDeclinedNames(), ObjectMgr::CheckPetName(), WorldPackets::Pet::PetRenameData::DeclinedNames, Unit::GetCharmInfo(), ObjectGuid::GetCounter(), PetStable::GetCurrentPet(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetOwnerGUID(), ObjectAccessor::GetPet(), CharmInfo::GetPetNumber(), Player::GetPetStable(), GROUP_UPDATE_FLAG_PET_NAME, Unit::HasPetFlag(), HUNTER_PET, Unit::IsPet(), PetStable::PetInfo::Name, WorldPackets::Pet::PetRenameData::NewName, PET_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME, PET_NAME_RESERVED, PET_NAME_SUCCESS, WorldPackets::Pet::PetRenameData::PetGUID, PetStable::PetInfo::PetNumber, Unit::RemovePetFlag(), WorldPackets::Pet::PetRename::RenameData, SendPetNameInvalid(), Pet::SetGroupUpdateFlag(), WorldObject::SetName(), Unit::SetPetNameTimestamp(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sObjectMgr, UNIT_PET_FLAG_CAN_BE_RENAMED, Utf8toWStr(), and PetStable::PetInfo::WasRenamed.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetSetAction | ( | WorldPackets::Pet::PetSetAction & | packet | ) |
Definition at line 460 of file PetHandler.cpp.
References _player, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, WorldPackets::Pet::PetSetAction::Action, Unit::GetCharmInfo(), Object::GetEntry(), Unit::GetFirstControlled(), BaseEntity::GetGUID(), WorldObject::GetName(), GetPlayer(), ObjectAccessor::GetUnit(), WorldPackets::Pet::PetSetAction::Index, Unit::m_Controlled, WorldPackets::Pet::PetSetAction::PetGUID, CharmInfo::SetActionBar(), sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), TYPEID_UNIT, UNIT_ACTION_BUTTON_ACTION, and UNIT_ACTION_BUTTON_TYPE.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetSpellAutocastOpcode | ( | WorldPackets::Pet::PetSpellAutocast & | packet | ) |
Definition at line 628 of file PetHandler.cpp.
References _player, WorldPackets::Pet::PetSpellAutocast::AutocastEnabled, Unit::GetCharmed(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Map::GetDifficultyID(), Object::GetEntry(), Unit::GetGuardianPet(), WorldObject::GetMap(), GetPlayer(), SpellInfo::IsAutocastable(), Unit::m_Controlled, WorldPackets::Pet::PetSpellAutocast::PetGUID, CharmInfo::SetSpellAutocast(), WorldPackets::Pet::PetSpellAutocast::SpellID, sSpellMgr, TC_LOG_ERROR, CharmInfo::ToggleCreatureAutocast(), and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePetStopAttack | ( | WorldPackets::Pet::PetStopAttack & | packet | ) |
Definition at line 118 of file PetHandler.cpp.
References _player, Unit::AttackStop(), ObjectAccessor::GetCreatureOrPetOrVehicle(), GetPlayer(), Unit::IsAlive(), WorldPackets::Pet::PetStopAttack::PetGUID, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePlayedTime | ( | WorldPackets::Character::RequestPlayedTime & | packet | ) |
Definition at line 810 of file MiscHandler.cpp.
References _player, Player::GetLevelPlayedTime(), Player::GetTotalPlayedTime(), WorldPackets::Character::PlayedTime::LevelTime, SendPacket(), WorldPackets::Character::PlayedTime::TotalTime, WorldPackets::Character::PlayedTime::TriggerEvent, WorldPackets::Character::RequestPlayedTime::TriggerScriptEvent, and WorldPackets::Character::PlayedTime::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePlayerChoiceResponse | ( | WorldPackets::Quest::ChoiceResponse const & | choiceResponse | ) |
Definition at line 760 of file QuestHandler.cpp.
References _player, WorldPackets::Quest::ChoiceResponse::ChoiceID, DisabledButton, DisabledOption, PlayerChoiceData::FindIdByClientIdentifier(), PlayerChoiceResponse::Flags, PlayerChoiceData::GetChoiceId(), PlayerChoiceData::GetExpireTime(), GetPlayerInfo(), PlayerChoice::GetResponse(), GameTime::GetSystemTime(), ObjectAccessor::GetWorldObject(), EnumFlag< T >::HasFlag(), HideButtonShowText, Player::PlayerTalkClass, WorldPackets::Quest::ChoiceResponse::ResponseIdentifier, sObjectMgr, sScriptMgr, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePlayerLogin | ( | LoginQueryHolder const & | holder | ) |
Definition at line 1174 of file CharacterHandler.cpp.
References _player, _timeSyncClockDelta, _timeSyncClockDeltaQueue, Player::AddExploredZones(), ObjectAccessor::AddObject(), Map::AddPlayerToMap(), ALL_ACCOUNT_DATA_CACHE_MASK, ALLIANCE, AsUnderlyingType(), AT_LOGIN_FIRST, AT_LOGIN_RESET_PET_TALENTS, AT_LOGIN_RESET_SPELLS, AT_LOGIN_RESET_TALENTS, Player::CalculateCorpseReclaimDelay(), WorldObject::CastSpell(), PlayerInfo::castSpells, CHAR_DEL_ALL_PET_SPELLS_BY_OWNER, CHAR_UPD_CHAR_ONLINE, CHAR_UPD_PET_SPECS_BY_OWNER, CharacterDatabase, ObjectGuid::Clear(), CONFIG_ALL_TAXI_PATHS, CONFIG_ARENA_SEASON_ID, CONFIG_ARENA_SEASON_IN_PROGRESS, CONFIG_ENABLE_SINFO_LOGIN, CONFIG_START_ALL_EXPLORED, CONFIG_START_ALL_REP, Player::ContinueTaxiFlight(), WorldPackets::Battleground::SeasonInfo::CurrentArenaSeason, DEAD, ObjectGuid::Empty, FRIEND_ONLINE, GetAccountId(), GetBattlePetMgr(), Player::getCinematic(), Unit::GetClass(), ObjectGuid::GetCounter(), Player::GetCreateMode(), GitRevision::GetFullVersion(), GameTime::GetGameTimeMS(), Player::GetGroup(), BaseEntity::GetGUID(), LoginQueryHolder::GetGuid(), Player::GetGuildId(), Unit::GetLevel(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetPosition(), SQLQueryHolderBase::GetPreparedResult(), Unit::GetRace(), GetRemoteAddress(), Player::GetReputationMgr(), Player::GetSceneMgr(), Player::GetSession(), Player::GetTeam(), GetVirtualRealmAddress(), Player::GetXP(), Player::GetXPForNextLevel(), GLOBAL_CACHE_MASK, Player::HasAtLoginFlag(), Unit::HasAura(), Player::HasPlayerFlag(), Unit::HasUnitState(), HORDE, MotionMaster::Initialize(), Player::IsGameMaster(), Unit::IsStandState(), KickPlayer(), LANG_GM_ON, LANG_RESET_SPELLS, LoadAccountData(), Player::LoadCorpse(), Player::LoadFromDB(), Login, LOGIN_UPD_ACCOUNT_ONLINE, LoginDatabase, Unit::m_deathState, Player::m_homebind, m_playerLoading, WorldPackets::Character::LoginVerifyWorld::MapID, Normal, NPE, PER_CHARACTER_CACHE_MASK, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FLAGS_CONTESTED_PVP, PLAYER_FLAGS_RESTING, PLAYER_LOCAL_FLAG_OVERRIDE_TRANSPORT_SERVER_TIME, PLAYER_LOGIN_QUERY_LOAD_ACCOUNT_DATA, PLAYER_LOGIN_QUERY_LOAD_CORPSE_LOCATION, PLAYER_LOGIN_QUERY_LOAD_GUILD, SceneMgr::PlayScene(), WorldPackets::Character::LoginVerifyWorld::Pos, WorldPackets::Battleground::SeasonInfo::PreviousArenaSeason, ChatHandler::PSendSysMessage(), RACE_NIGHTELF, Player::RemoveAtLoginFlag(), Unit::RemoveAurasWithInterruptFlags(), Player::ResetSpells(), Player::ResetTalents(), Player::ResetTalentSpecialization(), Player::ResummonPetTemporaryUnSummonedIfAny(), sChrClassesStore, sChrRacesStore, SendAccountDataTimes(), SendAuctionFavoriteList(), Player::SendCinematicStart(), Player::SendCorpseReclaimDelay(), Player::SendDungeonDifficulty(), SendFeatureSystemStatus(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), BattlePets::BattlePetMgr::SendJournalLockStatus(), Player::SendMovieStart(), SendNotification(), SendPacket(), Player::SendRaidDifficulty(), SendSetTimeZoneInformation(), ReputationMgr::SendState(), Player::SendTalentsInfoData(), SendTutorialsData(), Player::setCinematic(), Player::SetContestedPvP(), Player::SetGuildLevel(), Player::SetGuildRank(), Player::SetInGameTime(), Player::SetInGuild(), ReputationMgr::SetOneFactionReputation(), SetPlayer(), Player::SetPlayerLocalFlag(), Unit::SetPvpFlag(), Unit::SetStandState(), Player::SetTaxiCheater(), Player::SetTransportServerTime(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), Player::SetVirtualPlayerRealm(), Unit::SetWaterWalking(), sFactionStore, sGuildMgr, sObjectMgr, sScriptMgr, sSocialMgr, sWorld, TC_LOG_ERROR, TC_LOG_INFO, TC_METRIC_EVENT, Player::TeleportTo(), WorldPackets::System::MOTD::Text, ObjectGuid::ToString(), UI64LIT, UNIT_BYTE2_FLAG_FFA_PVP, UNIT_STAND_STATE_STAND, UNIT_STATE_STUNNED, Player::UpdateAverageItemLevelEquipped(), Player::UpdateAverageItemLevelTotal(), Player::UpdateCriteria(), Unit::UpdateMountCapability(), WorldPackets::Battleground::SeasonInfo::Write(), WorldPackets::Character::LoginVerifyWorld::Write(), and WorldPackets::System::MOTD::Write().
Referenced by HandleContinuePlayerLogin().
| void WorldSession::HandlePlayerLoginOpcode | ( | WorldPackets::Character::PlayerLogin & | playerLogin | ) |
Definition at line 1108 of file CharacterHandler.cpp.
References GetAccountId(), GetPlayer(), WorldPackets::Character::PlayerLogin::Guid, IsLegitCharacterForAccount(), KickPlayer(), m_playerLoading, PlayerLoading(), SendConnectToInstance(), TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), and WorldPackets::Auth::WorldAttempt1.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePortGraveyard | ( | WorldPackets::Misc::PortGraveyard & | packet | ) |
Definition at line 343 of file MiscHandler.cpp.
References GetPlayer(), PLAYER_FLAGS_GHOST, and Player::RepopAtGraveyard().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePushQuestToParty | ( | WorldPackets::Quest::PushQuestToParty & | packet | ) |
Definition at line 571 of file QuestHandler.cpp.
References _player, Accepted, Player::AddQuestAndCheckCompletion(), AlreadyDone, AlreadyDoneToRecipient, Busy, Player::CanAddQuest(), Player::CanCompleteRepeatableQuest(), Player::CanShareQuest(), Player::CanTakeQuest(), Class, ClassToRecipient, Player::ClearQuestSharingInfo(), Dead, DeadToRecipient, Expansion, ExpansionToRecipient, Player::GetGroup(), BaseEntity::GetGUID(), Group::GetMembers(), GetPlayer(), Player::GetPlayerSharingQuest(), Quest::GetQuestId(), Player::GetQuestStatus(), HighFaction, HighFactionToRecipient, HighLevel, HighLevelToRecipient, Invalid, InvalidToRecipient, Unit::IsAlive(), Quest::IsAutoAccept(), Quest::IsDailyOrWeekly(), ObjectGuid::IsEmpty(), Quest::IsRepeatable(), Quest::IsTurnIn(), LogFull, LogFullToRecipient, LowFaction, LowFactionToRecipient, LowLevel, LowLevelToRecipient, NotAllowed, NotDaily, NotInParty, OnQuest, OnQuestToRecipient, Player::PlayerTalkClass, Prerequisite, PrerequisiteToRecipient, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_REWARDED, WorldPackets::Quest::PushQuestToParty::QuestID, Race, RaceToRecipient, Player::SatisfyQuestClass(), Player::SatisfyQuestDay(), Player::SatisfyQuestDependentQuests(), Player::SatisfyQuestExpansion(), Player::SatisfyQuestLog(), Player::SatisfyQuestMaxLevel(), Player::SatisfyQuestMaxReputation(), Player::SatisfyQuestMinLevel(), Player::SatisfyQuestMinReputation(), Player::SatisfyQuestRace(), Player::SendPushToPartyResponse(), Player::SetQuestSharingInfo(), sObjectMgr, sQuestPoolMgr, and Success.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandlePVPLogDataOpcode | ( | WorldPackets::Battleground::PVPLogDataRequest & | pvpLogDataRequest | ) |
Definition at line 254 of file BattleGroundHandler.cpp.
References _player, Battleground::BuildPvPLogDataPacket(), WorldPackets::Battleground::PVPMatchStatisticsMessage::Data, Player::GetBattleground(), Battleground::isArena(), SendPacket(), and WorldPackets::Battleground::PVPMatchStatisticsMessage::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryBattlePetName | ( | WorldPackets::BattlePet::QueryBattlePetName & | queryBattlePetName | ) |
Definition at line 50 of file BattlePetHandler.cpp.
References _player, WorldPackets::BattlePet::QueryBattlePetNameResponse::Allow, WorldPackets::BattlePet::QueryBattlePetName::BattlePetID, WorldPackets::BattlePet::QueryBattlePetNameResponse::BattlePetID, WorldPackets::BattlePet::QueryBattlePetNameResponse::CreatureID, BattlePets::BattlePet::DeclinedName, WorldPackets::BattlePet::QueryBattlePetNameResponse::DeclinedNames, Unit::GetBattlePetCompanionNameTimestamp(), GetBattlePetMgr(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), BattlePets::BattlePetMgr::GetPet(), Player::GetSession(), TempSummon::GetSummonerUnit(), WorldPackets::BattlePet::QueryBattlePetNameResponse::HasDeclined, BaseEntity::IsPlayer(), Unit::IsSummon(), WorldPackets::BattlePet::BattlePet::Name, WorldPackets::BattlePet::QueryBattlePetNameResponse::Name, BattlePets::BattlePet::PacketInfo, SendPacket(), WorldPackets::BattlePet::QueryBattlePetNameResponse::Timestamp, Object::ToPlayer(), Unit::ToTempSummon(), WorldPackets::BattlePet::QueryBattlePetName::UnitGUID, and WorldPackets::BattlePet::QueryBattlePetNameResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryCorpseLocation | ( | WorldPackets::Query::QueryCorpseLocationFromClient & | packet | ) |
Definition at line 127 of file QueryHandler.cpp.
References _player, WorldPackets::Query::CorpseLocation::ActualMapID, ObjectGuid::Empty, ObjectAccessor::FindConnectedPlayer(), Player::GetCorpseLocation(), WorldLocation::GetMapId(), WorldObject::GetPhaseShift(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::HasCorpse(), Player::IsInSameRaidWith(), WorldPackets::Query::CorpseLocation::MapID, MAX_HEIGHT, WorldPackets::Query::QueryCorpseLocationFromClient::Player, WorldPackets::Query::CorpseLocation::Player, WorldPackets::Query::CorpseLocation::Position, SendPacket(), sMapStore, sTerrainMgr, WorldPackets::Query::CorpseLocation::Transport, WorldPackets::Query::CorpseLocation::Valid, and WorldPackets::Query::CorpseLocation::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryCorpseTransport | ( | WorldPackets::Query::QueryCorpseTransport & | packet | ) |
Definition at line 236 of file QueryHandler.cpp.
References _player, WorldPackets::Query::CorpseTransportQuery::Facing, ObjectAccessor::FindConnectedPlayer(), Player::GetCorpse(), Player::IsInSameRaidWith(), WorldPackets::Query::QueryCorpseTransport::Player, WorldPackets::Query::CorpseTransportQuery::Player, WorldPackets::Query::CorpseTransportQuery::Position, SendPacket(), WorldPackets::Query::QueryCorpseTransport::Transport, and WorldPackets::Query::CorpseTransportQuery::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryCountdownTimer | ( | WorldPackets::Misc::QueryCountdownTimer & | queryCountdownTimer | ) |
Definition at line 1208 of file MiscHandler.cpp.
References _player, Group::GetCountdownInfo(), Player::GetGroup(), Group::CountdownInfo::GetTimeLeft(), Group::CountdownInfo::GetTotalTime(), Player::SendDirectMessage(), WorldPackets::Misc::StartTimer::TimeLeft, WorldPackets::Misc::QueryCountdownTimer::TimerType, WorldPackets::Misc::StartTimer::TotalTime, WorldPackets::Misc::StartTimer::Type, and WorldPackets::Misc::StartTimer::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryInspectAchievements | ( | WorldPackets::Inspect::QueryInspectAchievements & | inspect | ) |
Definition at line 88 of file InspectHandler.cpp.
References _player, GetPlayer(), ObjectAccessor::GetPlayer(), WorldPackets::Inspect::QueryInspectAchievements::Guid, INSPECT_DISTANCE, Player::SendRespondInspectAchievements(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryNextMailTime | ( | WorldPackets::Mail::MailQueryNextMailTime & | queryNextMailTime | ) |
Definition at line 641 of file MailHandler.cpp.
References _player, DAY, GameTime::GetGameTime(), Player::GetMails(), MAIL_CHECK_MASK_READ, WorldPackets::Mail::MailQueryNextTimeResult::Next, WorldPackets::Mail::MailQueryNextTimeResult::NextMailTime, SendPacket(), Player::unReadMails, and WorldPackets::Mail::MailQueryNextTimeResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryPageText | ( | WorldPackets::Query::QueryPageText & | packet | ) |
Only static data is sent in this packet !!!
Definition at line 203 of file QueryHandler.cpp.
References WorldPackets::Query::QueryPageTextResponse::Allow, PageText::Flags, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::Flags, ObjectMgr::GetLocaleString(), GetSessionDbLocaleIndex(), WorldPackets::Query::QueryPageTextResponse::PageTextInfo::ID, LOCALE_enUS, PageText::NextPageID, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::NextPageID, WorldPackets::Query::QueryPageTextResponse::Pages, WorldPackets::Query::QueryPageText::PageTextID, WorldPackets::Query::QueryPageTextResponse::PageTextID, PageText::PlayerConditionID, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::PlayerConditionID, SendPacket(), sObjectMgr, PageText::Text, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::Text, and WorldPackets::Query::QueryPageTextResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryPetition | ( | WorldPackets::Petition::QueryPetition & | packet | ) |
Definition at line 154 of file PetitionsHandler.cpp.
References WorldPackets::Petition::QueryPetition::ItemGUID, WorldPackets::Petition::QueryPetition::PetitionID, SendPetitionQueryOpcode(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryPetName | ( | WorldPackets::Query::QueryPetName & | packet | ) |
Definition at line 407 of file PetHandler.cpp.
References SendQueryPetNameResponse(), and WorldPackets::Query::QueryPetName::UnitGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryPlayerNames | ( | WorldPackets::Query::QueryPlayerNames & | queryPlayerNames | ) |
Definition at line 50 of file QueryHandler.cpp.
References BuildNameQueryData(), WorldPackets::Query::QueryPlayerNames::Players, WorldPackets::Query::QueryPlayerNamesResponse::Players, SendPacket(), and WorldPackets::Query::QueryPlayerNamesResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryQuestCompletionNPCs | ( | WorldPackets::Query::QueryQuestCompletionNPCs & | queryQuestCompletionNPCs | ) |
Definition at line 258 of file QueryHandler.cpp.
References _player, BaseEntity::GetGUID(), WorldPackets::Query::QuestCompletionNPC::NPCs, WorldPackets::Query::QueryQuestCompletionNPCs::QuestCompletionNPCs, WorldPackets::Query::QuestCompletionNPCResponse::QuestCompletionNPCs, WorldPackets::Query::QuestCompletionNPC::QuestID, SendPacket(), sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Query::QuestCompletionNPCResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryRealmName | ( | WorldPackets::Query::QueryRealmName & | queryRealmName | ) |
Definition at line 325 of file QueryHandler.cpp.
References GetVirtualRealmAddress(), WorldPackets::Auth::VirtualRealmNameInfo::IsInternalRealm, WorldPackets::Auth::VirtualRealmNameInfo::IsLocal, WorldPackets::Query::RealmQueryResponse::LookupState, WorldPackets::Query::RealmQueryResponse::NameInfo, WorldPackets::Auth::VirtualRealmNameInfo::RealmNameActual, WorldPackets::Auth::VirtualRealmNameInfo::RealmNameNormalized, RESPONSE_FAILURE, RESPONSE_SUCCESS, SendPacket(), sRealmList, WorldPackets::Query::QueryRealmName::VirtualRealmAddress, WorldPackets::Query::RealmQueryResponse::VirtualRealmAddress, and WorldPackets::Query::RealmQueryResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryScenarioPOI | ( | WorldPackets::Scenario::QueryScenarioPOI & | queryScenarioPOI | ) |
Definition at line 22 of file ScenarioHandler.cpp.
References WorldPackets::Scenario::ScenarioPOIData::CriteriaTreeID, WorldPackets::Scenario::QueryScenarioPOI::MissingScenarioPOIs, WorldPackets::Scenario::ScenarioPOIs::ScenarioPOIDataStats, WorldPackets::Scenario::ScenarioPOIData::ScenarioPOIs, SendPacket(), WorldPackets::Array< T, N >::size(), sScenarioMgr, and WorldPackets::Scenario::ScenarioPOIs::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryTimeOpcode | ( | WorldPackets::Query::QueryTime & | queryTime | ) |
Definition at line 59 of file QueryHandler.cpp.
References SendQueryTimeResponse().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueryTreasurePicker | ( | WorldPackets::Query::QueryTreasurePicker const & | queryTreasurePicker | ) |
Definition at line 344 of file QueryHandler.cpp.
References WorldPackets::Query::QueryTreasurePicker::QuestID, WorldPackets::Query::TreasurePickerResponse::QuestID, SendPacket(), sObjectMgr, WorldPackets::Query::QueryTreasurePicker::TreasurePickerID, WorldPackets::Query::TreasurePickerResponse::TreasurePickerID, and WorldPackets::Query::TreasurePickerResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestConfirmAccept | ( | WorldPackets::Quest::QuestConfirmAccept & | packet | ) |
Definition at line 467 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanTakeQuest(), WorldObject::CastSpell(), Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetPlayerSharingQuest(), Player::GetSharedQuestID(), Quest::GetSrcSpell(), Player::IsActiveQuest(), Player::IsInSameRaidWith(), WorldPackets::Quest::QuestConfirmAccept::QuestID, sObjectMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverAcceptQuestOpcode | ( | WorldPackets::Quest::QuestGiverAcceptQuest & | packet | ) |
Definition at line 89 of file QuestHandler.cpp.
References _player, Accepted, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanInteractWithQuestGiver(), Player::CanTakeQuest(), Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetGossipMenuForSource(), Player::GetGroup(), BaseEntity::GetGUID(), ObjectAccessor::GetObjectByTypeMask(), GetPlayer(), Player::GetPlayerSharingQuest(), Quest::GetQuestId(), Quest::HasFlag(), Quest::HasFlagEx(), Object::hasQuest(), ObjectGuid::IsEmpty(), WorldObject::IsInMap(), Player::IsInSameRaidWith(), ObjectGuid::IsPlayer(), Quest::IsPushedToPartyOnAccept(), Trinity::make_unique_ptr_with_deleter(), Player::PlayerTalkClass, Player::PrepareGossipMenu(), QUEST_FLAGS_EX_SUPPRESS_GOSSIP_ACCEPT, QUEST_FLAGS_LAUNCH_GOSSIP_ACCEPT, QuestGiver, WorldPackets::Quest::QuestGiverAcceptQuest::QuestGiverGUID, WorldPackets::Quest::QuestGiverAcceptQuest::QuestID, Player::SendPreparedGossip(), Player::SendPushToPartyResponse(), Player::SendQuestConfirmAccept(), Player::SetQuestSharingInfo(), sObjectMgr, WorldPackets::Quest::QuestGiverAcceptQuest::StartCheat, TC_LOG_DEBUG, Object::ToCreature(), Object::ToGameObject(), Object::ToPlayer(), ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverChooseRewardOpcode | ( | WorldPackets::Quest::QuestGiverChooseReward & | packet | ) |
Definition at line 239 of file QuestHandler.cpp.
References _player, Player::CanInteractWithQuestGiver(), Player::CanRewardQuest(), Player::CanSeeStartQuest(), Player::CanSelectQuestPackageItem(), WorldPackets::Quest::QuestGiverChooseReward::Choice, Currency, BaseEntity::GetGUID(), WorldObject::GetName(), ObjectAccessor::GetObjectByTypeMask(), Quest::GetQuestPackageID(), Player::GetQuestStatus(), Quest::GetRewChoiceItemsCount(), Quest::HasFlag(), Object::hasInvolvedQuest(), Quest::IsTurnIn(), Item, WorldPackets::Quest::QuestChoiceItem::Item, WorldPackets::Item::ItemInstance::ItemID, WorldPackets::Quest::QuestChoiceItem::LootItemType, Player::PlayerTalkClass, QUEST_FLAGS_AUTO_COMPLETE, QUEST_STATUS_COMPLETE, QUEST_STATUS_NONE, WorldPackets::Quest::QuestGiverChooseReward::QuestGiverGUID, WorldPackets::Quest::QuestGiverChooseReward::QuestID, Quest::RewardChoiceItemId, Quest::RewardChoiceItemType, Player::RewardQuest(), sCurrencyTypesStore, sDB2Manager, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverCloseQuest | ( | WorldPackets::Quest::QuestGiverCloseQuest & | questGiverCloseQuest | ) |
Definition at line 559 of file QuestHandler.cpp.
References _player, Player::FindQuestSlot(), MAX_QUEST_LOG_SIZE, WorldPackets::Quest::QuestGiverCloseQuest::QuestID, sObjectMgr, and sScriptMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverCompleteQuest | ( | WorldPackets::Quest::QuestGiverCompleteQuest & | packet | ) |
Definition at line 501 of file QuestHandler.cpp.
References _player, Player::CanCompleteRepeatableQuest(), Player::CanInteractWithQuestGiver(), Player::CanRewardQuest(), Player::CanSeeStartQuest(), WorldPackets::Quest::QuestGiverCompleteQuest::FromScript, BaseEntity::GetGUID(), WorldObject::GetName(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestStatus(), Object::hasInvolvedQuest(), Player::PlayerTalkClass, QUEST_FLAGS_AUTO_COMPLETE, QUEST_OBJECTIVE_ITEM, QUEST_STATUS_COMPLETE, QUEST_STATUS_NONE, WorldPackets::Quest::QuestGiverCompleteQuest::QuestGiverGUID, WorldPackets::Quest::QuestGiverCompleteQuest::QuestID, sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverHelloOpcode | ( | WorldPackets::Quest::QuestGiverHello & | packet | ) |
Definition at line 60 of file QuestHandler.cpp.
References _player, Creature::AI(), BaseEntity::GetGUID(), CreatureMovementData::GetInteractionPauseTimer(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), CreatureAI::OnGossipHello(), Unit::PauseMovement(), Player::PlayerTalkClass, Player::PrepareQuestMenu(), WorldPackets::Quest::QuestGiverHello::QuestGiverGUID, Unit::RemoveAurasByType(), Player::SendPreparedQuest(), Creature::SetHomePosition(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_QUESTGIVER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverQueryQuestOpcode | ( | WorldPackets::Quest::QuestGiverQueryQuest & | packet | ) |
Definition at line 198 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanCompleteQuest(), Player::CanTakeQuest(), BaseEntity::GetGUID(), ObjectAccessor::GetObjectByTypeMask(), Object::hasInvolvedQuest(), Object::hasQuest(), Player::PlayerTalkClass, WorldPackets::Quest::QuestGiverQueryQuest::QuestGiverGUID, WorldPackets::Quest::QuestGiverQueryQuest::QuestID, WorldPackets::Quest::QuestGiverQueryQuest::RespondToGiver, sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverRequestRewardOpcode | ( | WorldPackets::Quest::QuestGiverRequestReward & | packet | ) |
Definition at line 377 of file QuestHandler.cpp.
References _player, Player::CanCompleteQuest(), Player::CanInteractWithQuestGiver(), Player::CompleteQuest(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestStatus(), Quest::HasFlag(), Object::hasInvolvedQuest(), Player::PlayerTalkClass, QUEST_FLAGS_AUTO_COMPLETE, QUEST_STATUS_COMPLETE, WorldPackets::Quest::QuestGiverRequestReward::QuestGiverGUID, WorldPackets::Quest::QuestGiverRequestReward::QuestID, sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverStatusMultipleQuery | ( | WorldPackets::Quest::QuestGiverStatusMultipleQuery & | packet | ) |
Definition at line 745 of file QuestHandler.cpp.
References _player, and Player::SendQuestGiverStatusMultiple().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestgiverStatusQueryOpcode | ( | WorldPackets::Quest::QuestGiverStatusQuery & | packet | ) |
Definition at line 45 of file QuestHandler.cpp.
References _player, ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestDialogStatus(), Player::PlayerTalkClass, WorldPackets::Quest::QuestGiverStatusQuery::QuestGiverGUID, TC_LOG_INFO, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestLogRemoveQuest | ( | WorldPackets::Quest::QuestLogRemoveQuest & | packet | ) |
Definition at line 406 of file QuestHandler.cpp.
References _player, AbandonAnyQuest, Player::AbandonQuest(), CHAR_UPD_QUEST_TRACK_ABANDON_TIME, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, Player::DespawnPersonalSummonsForQuest(), WorldPackets::Quest::QuestLogRemoveQuest::Entry, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Quest::GetLimitTime(), Player::GetQuestSlotQuestId(), Player::GetQuestStatus(), Quest::HasFlag(), Quest::HasFlagEx(), Player::HasPvPForcingQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, Player::IsQuestObjectiveComplete(), MAX_QUEST_LOG_SIZE, Quest::Objectives, Player::pvpInfo, QUEST_FLAGS_EX_NO_ABANDON_ONCE_BEGUN, QUEST_FLAGS_FLAGS_PVP, QUEST_STATUS_NONE, Player::RemoveActiveQuest(), Player::RemoveTimedQuest(), Player::SendForceSpawnTrackingUpdate(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sObjectMgr, sScriptMgr, sWorld, Player::TakeQuestSourceItem(), TC_LOG_DEBUG, TC_LOG_INFO, ObjectGuid::ToString(), Player::UpdateCriteria(), and Player::UpdatePvPState().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestPOIQuery | ( | WorldPackets::Query::QuestPOIQuery & | questPoiQuery | ) |
Definition at line 286 of file QueryHandler.cpp.
References _player, Player::FindQuestSlot(), MAX_QUEST_LOG_SIZE, WorldPackets::Query::QuestPOIQuery::MissingQuestCount, WorldPackets::Query::QuestPOIQuery::MissingQuestPOIs, WorldPackets::Query::QuestPOIQueryResponse::QuestPOIDataStats, SendPacket(), sObjectMgr, and WorldPackets::Query::QuestPOIQueryResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestPushResult | ( | WorldPackets::Quest::QuestPushResult & | packet | ) |
Definition at line 733 of file QuestHandler.cpp.
References _player, Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetPlayerSharingQuest(), ObjectGuid::IsEmpty(), WorldPackets::Quest::QuestPushResult::Result, and WorldPackets::Quest::QuestPushResult::SenderGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQuestQueryOpcode | ( | WorldPackets::Quest::QueryQuestInfo & | packet | ) |
Definition at line 225 of file QuestHandler.cpp.
References _player, Player::PlayerTalkClass, WorldPackets::Quest::QueryQuestInfo::QuestID, WorldPackets::Quest::QueryQuestInfoResponse::QuestID, SendPacket(), sObjectMgr, TC_LOG_DEBUG, and WorldPackets::Quest::QueryQuestInfoResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleQueuedMessagesEnd | ( | WorldPackets::Auth::QueuedMessagesEnd const & | queuedMessagesEnd | ) |
Definition at line 1015 of file MovementHandler.cpp.
References WorldPackets::Packet::GetRawPacket(), WorldPacket::GetReceivedTime(), HandleTimeSync(), SPECIAL_RESUME_COMMS_TIME_SYNC_COUNTER, and WorldPackets::Auth::QueuedMessagesEnd::Timestamp.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRandomizeCharNameOpcode | ( | WorldPackets::Character::GenerateRandomCharacterName & | packet | ) |
Definition at line 2736 of file CharacterHandler.cpp.
References GetAccountId(), Player::IsValidGender(), Player::IsValidRace(), WorldPackets::Character::GenerateRandomCharacterNameResult::Name, WorldPackets::Character::GenerateRandomCharacterName::Race, sDB2Manager, SendPacket(), WorldPackets::Character::GenerateRandomCharacterName::Sex, WorldPackets::Character::GenerateRandomCharacterNameResult::Success, TC_LOG_ERROR, and WorldPackets::Character::GenerateRandomCharacterNameResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRandomRollOpcode | ( | WorldPackets::Misc::RandomRollClient & | packet | ) |
error handling
Definition at line 412 of file GroupHandler.cpp.
References Player::DoRandomRoll(), GetPlayer(), WorldPackets::Misc::RandomRollClient::Max, and WorldPackets::Misc::RandomRollClient::Min.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleReadItem | ( | WorldPackets::Item::ReadItem & | readItem | ) |
Definition at line 350 of file ItemHandler.cpp.
References _player, Player::CanUseItem(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, BaseEntity::GetGUID(), Player::GetItemByPos(), ItemTemplate::GetPageText(), Item::GetTemplate(), WorldPackets::Item::ReadItemResultOK::Item, WorldPackets::Item::ReadItem::PackSlot, Player::SendEquipError(), SendPacket(), WorldPackets::Item::ReadItem::Slot, TC_LOG_INFO, and WorldPackets::Item::ReadItemResultOK::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleReadyCheckResponseOpcode | ( | WorldPackets::Party::ReadyCheckResponseClient & | packet | ) |
Definition at line 566 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), WorldPackets::Party::ReadyCheckResponseClient::IsReady, WorldPackets::Party::ReadyCheckResponseClient::PartyIndex, and Group::SetMemberReadyCheck().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleReclaimCorpse | ( | WorldPackets::Misc::ReclaimCorpse & | packet | ) |
Definition at line 405 of file MiscHandler.cpp.
References _player, CORPSE_RECLAIM_RADIUS, CORPSE_RESURRECTABLE_PVP, Player::GetCorpse(), Player::GetCorpseReclaimDelay(), GameTime::GetGameTime(), Corpse::GetGhostTime(), Corpse::GetType(), Player::HasPlayerFlag(), Player::InArena(), Player::InBattleground(), Unit::IsAlive(), WorldObject::IsWithinDistInMap(), PLAYER_FLAGS_GHOST, Player::ResurrectPlayer(), and Player::SpawnCorpseBones().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRemoveNewItem | ( | WorldPackets::Item::RemoveNewItem & | removeNewItem | ) |
Definition at line 1245 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), GetPlayerInfo(), Item::HasItemFlag(), ITEM_CHANGED, ITEM_FIELD_FLAG_NEW_ITEM, WorldPackets::Item::RemoveNewItem::ItemGuid, Item::RemoveItemFlag(), Item::SetState(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleReorderCharacters | ( | WorldPackets::Character::ReorderCharacters & | reorderChars | ) |
Definition at line 2757 of file CharacterHandler.cpp.
References CHAR_UPD_CHAR_LIST_SLOT, CharacterDatabase, WorldPackets::Character::ReorderCharacters::Entries, GetAccountId(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRepairItemOpcode | ( | WorldPackets::Item::RepairItem & | packet | ) |
Definition at line 389 of file NPCHandler.cpp.
References _player, Player::DurabilityRepair(), Player::DurabilityRepairAll(), Player::GetItemByGuid(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Item::GetPos(), Player::GetReputationPriceDiscount(), ObjectGuid::IsEmpty(), WorldPackets::Item::RepairItem::ItemGUID, WorldPackets::Item::RepairItem::NpcGUID, Unit::RemoveAurasByType(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_REPAIR, UNIT_STATE_DIED, and WorldPackets::Item::RepairItem::UseGuildBank.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRepopRequest | ( | WorldPackets::Misc::RepopRequest & | packet | ) |
Definition at line 60 of file MiscHandler.cpp.
References Player::BuildPlayerRepop(), GetPlayer(), JUST_DIED, Player::KillPlayer(), PET_SAVE_NOT_IN_SLOT, PLAYER_FLAGS_GHOST, Player::RemovePet(), Player::RepopAtGraveyard(), SPELL_AURA_PREVENT_RESURRECTION, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleReportPvPAFK | ( | WorldPackets::Battleground::ReportPvPPlayerAFK & | reportPvPPlayerAFK | ) |
Definition at line 603 of file BattleGroundHandler.cpp.
References _player, ObjectAccessor::FindPlayer(), WorldObject::GetName(), GetRemoteAddress(), Player::GetSession(), WorldPackets::Battleground::ReportPvPPlayerAFK::Offender, Player::ReportedAfkBy(), TC_LOG_DEBUG, TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestAccountData | ( | WorldPackets::ClientConfig::RequestAccountData & | request | ) |
Definition at line 733 of file MiscHandler.cpp.
References _player, WorldPackets::ClientConfig::UpdateAccountData::CompressedData, AccountData::Data, WorldPackets::ClientConfig::RequestAccountData::DataType, WorldPackets::ClientConfig::UpdateAccountData::DataType, ObjectGuid::Empty, GetAccountData(), BaseEntity::GetGUID(), NUM_ACCOUNT_DATA_TYPES, WorldPackets::ClientConfig::UpdateAccountData::Player, SendPacket(), WorldPackets::ClientConfig::UpdateAccountData::Size, TC_LOG_DEBUG, TC_LOG_ERROR, WorldPackets::ClientConfig::UpdateAccountData::Time, AccountData::Time, and WorldPackets::ClientConfig::UpdateAccountData::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestBattlefieldStatusOpcode | ( | WorldPackets::Battleground::RequestBattlefieldStatus & | requestBattlefieldStatus | ) |
Definition at line 442 of file BattleGroundHandler.cpp.
References _player, BATTLEGROUND_QUEUE_NONE, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundMgr::BuildBattlegroundStatusNeedConfirmation(), BattlegroundMgr::BuildBattlegroundStatusQueued(), BattlegroundQueue::GetAverageQueueWaitTime(), Player::GetBattleground(), DB2Manager::GetBattlegroundBracketByLevel(), Battleground::GetBattlegroundPlayerData(), Player::GetBattlegroundQueueJoinTime(), Player::GetBattlegroundQueueTypeId(), PVPDifficultyEntry::GetBracketId(), GameTime::GetGameTimeMS(), BaseEntity::GetGUID(), Unit::GetLevel(), getMSTimeDiff(), BattlegroundQueue::GetPlayerGroupInfoData(), GroupQueueInfo::IsInvitedToBGInstanceGUID, BattlegroundTemplate::MapIDs, PLAYER_MAX_BATTLEGROUND_QUEUES, GroupQueueInfo::Players, BattlegroundPlayer::queueTypeId, GroupQueueInfo::RemoveInviteTime, sBattlegroundMgr, SendPacket(), WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Write(), WorldPackets::Battleground::BattlefieldStatusActive::Write(), and WorldPackets::Battleground::BattlefieldStatusQueued::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestCemeteryList | ( | WorldPackets::Misc::RequestCemeteryList & | packet | ) |
Definition at line 350 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::RequestCemeteryListResponse::CemeteryID, BaseEntity::GetGUID(), Player::GetTeam(), WorldObject::GetZoneId(), WorldPackets::Misc::RequestCemeteryListResponse::IsGossipTriggered, SendPacket(), sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Misc::RequestCemeteryListResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestGuildRewardsList | ( | WorldPackets::Guild::RequestGuildRewardsList & | packet | ) |
Definition at line 545 of file GuildHandler.cpp.
References _player, WorldPackets::Guild::GuildRewardItem::AchievementsRequired, WorldPackets::Guild::GuildRewardItem::Cost, Player::GetGuildId(), GameTime::GetSystemTime(), WorldPackets::Guild::GuildRewardItem::ItemID, WorldPackets::Guild::GuildRewardItem::MinGuildLevel, WorldPackets::Guild::GuildRewardItem::MinGuildRep, WorldPackets::Guild::GuildRewardItem::RaceMask, WorldPackets::Guild::GuildRewardList::RewardItems, SendPacket(), sGuildMgr, WorldPackets::Guild::GuildRewardList::Version, and WorldPackets::Guild::GuildRewardList::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestLatestSplashScreen | ( | WorldPackets::Misc::RequestLatestSplashScreen & | requestLatestSplashScreen | ) |
Definition at line 1192 of file MiscHandler.cpp.
References _player, UISplashScreenEntry::ID, ConditionMgr::IsPlayerMeetingCondition(), SendPacket(), sUISplashScreenStore, WorldPackets::Misc::SplashScreenShowLatest::UISplashScreenID, and WorldPackets::Misc::SplashScreenShowLatest::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestPartyJoinUpdates | ( | WorldPackets::Party::RequestPartyJoinUpdates & | packet | ) |
Definition at line 469 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), WorldPackets::Party::RequestPartyJoinUpdates::PartyIndex, Group::SendRaidMarkersChanged(), and Group::SendTargetIconList().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestPartyMemberStatsOpcode | ( | WorldPackets::Party::RequestPartyMemberStats & | packet | ) |
Definition at line 576 of file GroupHandler.cpp.
References ObjectAccessor::FindConnectedPlayer(), GetPlayer(), WorldPackets::Party::PartyMemberFullState::Initialize(), MEMBER_STATUS_OFFLINE, WorldPackets::Party::PartyMemberFullState::MemberGuid, WorldPackets::Party::PartyMemberFullState::MemberStats, SendPacket(), WorldPackets::Party::PartyMemberStats::Status, WorldPackets::Party::RequestPartyMemberStats::Targets, and WorldPackets::Party::PartyMemberFullState::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestPetInfo | ( | WorldPackets::Pet::RequestPetInfo & | requestPetInfo | ) |
Definition at line 779 of file PetHandler.cpp.
References _player, Player::CharmSpellInitialize(), Unit::GetCharmed(), Player::GetPet(), Player::PetSpellInitialize(), Player::PossessSpellInitialize(), UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_POSSESSED, UNIT_STATE_POSSESSED, and Player::VehicleSpellInitialize().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestPvpReward | ( | WorldPackets::Battleground::RequestPVPRewards & | packet | ) |
Definition at line 639 of file BattleGroundHandler.cpp.
References _player, and Player::SendPvpRewards().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestRaidInfoOpcode | ( | WorldPackets::Party::RequestRaidInfo & | packet | ) |
Definition at line 595 of file GroupHandler.cpp.
References _player, and Player::SendRaidInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestRatedPvpInfo | ( | WorldPackets::Battleground::RequestRatedPvpInfo & | packet | ) |
Definition at line 617 of file BattleGroundHandler.cpp.
References SendPacket(), and WorldPackets::Battleground::RatedPvpInfo::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestStabledPets | ( | WorldPackets::NPC::RequestStabledPets & | packet | ) |
Definition at line 349 of file NPCHandler.cpp.
References _player, CheckStableMaster(), GetPlayer(), IsMounted, Unit::RemoveAurasByType(), Player::SetStableMaster(), SPELL_AURA_FEIGN_DEATH, SPELL_AURA_MOUNTED, WorldPackets::NPC::RequestStabledPets::StableMaster, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestVehicleExit | ( | WorldPackets::Vehicle::RequestVehicleExit & | requestVehicleExit | ) |
Definition at line 183 of file VehicleHandler.cpp.
References Unit::ExitVehicle(), GetPlayer(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestVehicleNextSeat | ( | WorldPackets::Vehicle::RequestVehicleNextSeat & | requestVehicleNextSeat | ) |
Definition at line 60 of file VehicleHandler.cpp.
References VehicleSeatEntry::CanSwitchFromSeat(), Unit::ChangeSeat(), VehicleSeatEntry::Flags, GetPlayer(), Vehicle::GetSeatForPassenger(), Unit::GetVehicle(), Unit::GetVehicleBase(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestVehiclePrevSeat | ( | WorldPackets::Vehicle::RequestVehiclePrevSeat & | requestVehiclePrevSeat | ) |
Definition at line 43 of file VehicleHandler.cpp.
References VehicleSeatEntry::CanSwitchFromSeat(), Unit::ChangeSeat(), VehicleSeatEntry::Flags, GetPlayer(), Vehicle::GetSeatForPassenger(), Unit::GetVehicle(), Unit::GetVehicleBase(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestVehicleSwitchSeat | ( | WorldPackets::Vehicle::RequestVehicleSwitchSeat & | requestVehicleSwitchSeat | ) |
Definition at line 108 of file VehicleHandler.cpp.
References VehicleSeatEntry::CanSwitchFromSeat(), Unit::ChangeSeat(), VehicleSeatEntry::Flags, BaseEntity::GetGUID(), GetPlayer(), Vehicle::GetSeatForPassenger(), ObjectAccessor::GetUnit(), Unit::GetVehicle(), Unit::GetVehicleBase(), WorldPackets::Vehicle::RequestVehicleSwitchSeat::SeatIndex, TC_LOG_ERROR, and WorldPackets::Vehicle::RequestVehicleSwitchSeat::Vehicle.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRequestWorldQuestUpdate | ( | WorldPackets::Quest::RequestWorldQuestUpdate & | packet | ) |
Definition at line 750 of file QuestHandler.cpp.
References SendPacket(), and WorldPackets::Quest::WorldQuestUpdateResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleResetInstancesOpcode | ( | WorldPackets::Instance::ResetInstances & | packet | ) |
Definition at line 904 of file MiscHandler.cpp.
References _player, WorldObject::FindMap(), Player::GetGroup(), BaseEntity::GetGUID(), Map::Instanceable(), Manual, and Player::ResetInstances().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleResurrectResponse | ( | WorldPackets::Misc::ResurrectResponse & | packet | ) |
Definition at line 436 of file MiscHandler.cpp.
References Player::ClearResurrectRequestData(), GetPlayer(), ObjectAccessor::GetPlayer(), WorldPackets::Misc::ResurrectResponse::Response, WorldPackets::Misc::ResurrectResponse::Resurrecter, and Player::ResurrectUsingRequestData().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleRideVehicleInteract | ( | WorldPackets::Vehicle::RideVehicleInteract & | rideVehicleInteract | ) |
Definition at line 130 of file VehicleHandler.cpp.
References _player, Unit::EnterVehicle(), WorldObject::FindMap(), ObjectAccessor::GetPlayer(), INTERACTION_DISTANCE, Map::IsBattleArena(), and WorldPackets::Vehicle::RideVehicleInteract::Vehicle.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSaveCUFProfiles | ( | WorldPackets::Misc::SaveCUFProfiles & | packet | ) |
Definition at line 1129 of file MiscHandler.cpp.
References WorldPackets::Misc::SaveCUFProfiles::CUFProfiles, GetPlayer(), GetPlayerName(), MAX_CUF_PROFILES, Player::SaveCUFProfile(), WorldPackets::Array< T, N >::size(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSaveGuildEmblem | ( | WorldPackets::Guild::SaveGuildEmblem & | packet | ) |
Definition at line 185 of file GuildHandler.cpp.
References ERR_GUILDEMBLEM_INVALID_TABARD_COLORS, ERR_GUILDEMBLEM_INVALIDVENDOR, ERR_GUILDEMBLEM_NOGUILD, EmblemInfo::GetBackgroundColor(), EmblemInfo::GetBorderColor(), EmblemInfo::GetBorderStyle(), EmblemInfo::GetColor(), GetPlayer(), GetPlayerInfo(), EmblemInfo::GetStyle(), EmblemInfo::ReadPacket(), Unit::RemoveAurasByType(), Guild::SendSaveEmblemResult(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_STATE_DIED, EmblemInfo::ValidateEmblemColors(), and WorldPackets::Guild::SaveGuildEmblem::Vendor.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSavePersonalEmblem | ( | WorldPackets::Character::SavePersonalEmblem const & | savePersonalEmblem | ) |
Definition at line 2913 of file CharacterHandler.cpp.
References _player, WorldPackets::Character::CustomTabardInfo::BackgroundColor, WorldPackets::Character::CustomTabardInfo::BorderColor, WorldPackets::Character::CustomTabardInfo::BorderStyle, WorldPackets::Character::CustomTabardInfo::EmblemColor, WorldPackets::Character::CustomTabardInfo::EmblemStyle, ERR_GUILDEMBLEM_INVALID_TABARD_COLORS, ERR_GUILDEMBLEM_INVALIDVENDOR, ERR_GUILDEMBLEM_SUCCESS, Player::GetNPCIfCanInteractWith(), WorldPackets::Character::SavePersonalEmblem::PersonalTabard, SendPacket(), Player::SetPersonalTabard(), UNIT_NPC_FLAG_2_PERSONAL_TABARD_DESIGNER, UNIT_NPC_FLAG_NONE, EmblemInfo::ValidateEmblemColors(), and WorldPackets::Character::SavePersonalEmblem::Vendor.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleScenePlaybackCanceled | ( | WorldPackets::Scenes::ScenePlaybackCanceled & | scenePlaybackCanceled | ) |
Definition at line 38 of file SceneHandler.cpp.
References GetPlayer(), Player::GetSceneMgr(), SceneMgr::OnSceneCancel(), WorldPackets::Scenes::ScenePlaybackCanceled::SceneInstanceID, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleScenePlaybackComplete | ( | WorldPackets::Scenes::ScenePlaybackComplete & | scenePlaybackComplete | ) |
Definition at line 31 of file SceneHandler.cpp.
References GetPlayer(), Player::GetSceneMgr(), SceneMgr::OnSceneComplete(), WorldPackets::Scenes::ScenePlaybackComplete::SceneInstanceID, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSceneTriggerEvent | ( | WorldPackets::Scenes::SceneTriggerEvent & | sceneTriggerEvent | ) |
Definition at line 24 of file SceneHandler.cpp.
References WorldPackets::Scenes::SceneTriggerEvent::Event, GetPlayer(), Player::GetSceneMgr(), SceneMgr::OnSceneTrigger(), WorldPackets::Scenes::SceneTriggerEvent::SceneInstanceID, and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSelfResOpcode | ( | WorldPackets::Spells::SelfRes & | selfRes | ) |
Definition at line 434 of file SpellHandler.cpp.
References _player, WorldObject::CastSpell(), Map::GetDifficultyID(), WorldObject::GetMap(), SpellInfo::HasAttribute(), Unit::HasAuraType(), Player::m_activePlayerData, Player::RemoveSelfResSpell(), SPELL_ATTR7_BYPASS_NO_RESURRECT_AURA, SPELL_AURA_PREVENT_RESURRECTION, WorldPackets::Spells::SelfRes::SpellID, and sSpellMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSellAllJunkItems | ( | WorldPackets::Item::SellAllJunkItems const & | sellAllJunkItems | ) |
Definition at line 427 of file ItemHandler.cpp.
References _player, Player::CanSellItemToVendor(), Continue, CREATURE_FLAG_EXTRA_NO_SELL_VENDOR, ObjectGuid::Empty, ExcludeJunkSell, CreatureTemplate::flags_extra, Player::ForEachItem(), Item::GetBagSlot(), Player::GetBagSlotFlags(), Item::GetCount(), Creature::GetCreatureTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Item::GetQuality(), Inventory, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_START, Player::IsBackpackSellJunkDisabled(), Item::IsRefundable(), ITEM_QUALITY_POOR, Unit::RemoveAurasByType(), SELL_ERR_CANT_FIND_VENDOR, SELL_ERR_CANT_SELL_TO_THIS_MERCHANT, Player::SellItemToVendor(), Player::SendSellError(), SPELL_AURA_FEIGN_DEATH, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, and WorldPackets::Item::SellAllJunkItems::VendorGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSellItemOpcode | ( | WorldPackets::Item::SellItem const & | sellItem | ) |
Definition at line 381 of file ItemHandler.cpp.
References _player, WorldPackets::Item::SellItem::Amount, Player::CanSellItemToVendor(), CREATURE_FLAG_EXTRA_NO_SELL_VENDOR, CreatureTemplate::flags_extra, Item::GetCount(), Creature::GetCreatureTemplate(), Player::GetItemByGuid(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Item::IsRefundable(), WorldPackets::Item::SellItem::ItemGUID, Unit::RemoveAurasByType(), SELL_ERR_CANT_FIND_ITEM, SELL_ERR_CANT_FIND_VENDOR, SELL_ERR_CANT_SELL_TO_THIS_MERCHANT, Player::SellItemToVendor(), Player::SendSellError(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, and WorldPackets::Item::SellItem::VendorGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSendMail | ( | WorldPackets::Mail::SendMail & | sendMail | ) |
Definition at line 64 of file MailHandler.cpp.
References _player, AsyncCallbackProcessor< T >::AddCallback(), MailDraft::AddCOD(), MailDraft::AddItem(), MailDraft::AddMoney(), WorldPackets::Mail::SendMail::StructSendMail::Attachments, WorldPackets::Mail::SendMail::StructSendMail::Body, Item::CanBeTraded(), CanOpenMailBox(), CHAR_SEL_MAIL_COUNT, CharacterDatabase, WorldPackets::Mail::SendMail::StructSendMail::Cod, CONFIG_MAIL_DELIVERY_DELAY, CONFIG_MAIL_LEVEL_REQ, EQUIP_ERR_DESTROY_NONEMPTY_BAG, EQUIP_ERR_MAIL_BOUND_ITEM, EQUIP_ERR_NOT_SAME_ACCOUNT, ObjectAccessor::FindConnectedPlayer(), GetAccountId(), GetBattlenetAccountId(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), Player::GetGuildId(), Battlenet::AccountMgr::GetIdByGameAccountAsync(), Player::GetItemByGuid(), Unit::GetLevel(), GetPlayer(), GetPlayerInfo(), GetPlayerName(), GetQueryProcessor(), Player::GetTeam(), Item::GetTemplate(), GetTrinityString(), Player::HasEnoughMoney(), ItemTemplate::HasFlag(), HasPermission(), WorldPackets::Mail::SendMail::Info, Item::IsBattlenetAccountBound(), Item::IsBoundAccountWide(), Player::IsGameMaster(), Item::IsNotEmptyBag(), Item::IsSoulBound(), Item::IsWrapped(), ITEM_CHANGED, ITEM_FLAG_CONJURED, ITEM_FLAG_IS_BOUND_TO_ACCOUNT, LANG_MAIL_RECEIVER_REQ, LANG_MAIL_SENDER_REQ, Item::m_itemData, MAIL_CHECK_MASK_COPIED, MAIL_CHECK_MASK_HAS_BODY, MAIL_CHECK_MASK_NOT_RETURNABLE, MAIL_ERR_CANNOT_SEND_TO_SELF, MAIL_ERR_CANT_SEND_WRAPPED_COD, MAIL_ERR_EQUIP_ERROR, MAIL_ERR_INTERNAL_ERROR, MAIL_ERR_MAIL_ATTACHMENT_INVALID, MAIL_ERR_NOT_ENOUGH_MONEY, MAIL_ERR_NOT_YOUR_TEAM, MAIL_ERR_RECIPIENT_CAP_REACHED, MAIL_ERR_RECIPIENT_NOT_FOUND, MAIL_ERR_TOO_MANY_ATTACHMENTS, MAIL_OK, MAIL_SEND, WorldPackets::Mail::SendMail::StructSendMail::Mailbox, MAX_CLIENT_MAIL_ITEMS, Player::ModifyMoney(), MoneySpentOnPostage, Player::MoveItemFromInventory(), normalizePlayerName(), rbac::RBAC_PERM_LOG_GM_TRADE, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_MAIL, Player::SaveInventoryAndGoldToDB(), sCharacterCache, Player::SendMailResult(), MailDraft::SendMailTo(), WorldPackets::Mail::SendMail::StructSendMail::SendMoney, SendNotification(), PreparedStatementBase::setUInt64(), sGuildMgr, sLog, WorldPackets::Mail::SendMail::StructSendMail::StationeryID, WorldPackets::Mail::SendMail::StructSendMail::Subject, sWorld, WorldPackets::Mail::SendMail::StructSendMail::Target, TC_LOG_INFO, TC_LOG_WARN, ObjectGuid::ToString(), and Player::UpdateCriteria().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSendPingCooldown | ( | WorldPackets::Party::SendPingCooldown const & | pingCooldown | ) |
Definition at line 765 of file GroupHandler.cpp.
References _player, WorldPackets::Party::SendPingCooldown::Duration, WorldPackets::Party::ReceivePingCooldown::Duration, BaseEntity::GetGUID(), Group::GetMembers(), WorldPackets::Packet::GetRawPacket(), WorldObject::IsInMap(), WorldPackets::Party::SendPingCooldown::ItemID, WorldPackets::Party::ReceivePingCooldown::ItemID, WorldPackets::Party::SendPingCooldown::PinFrameID, WorldPackets::Party::ReceivePingCooldown::PinFrameID, WorldPackets::Party::SendPingCooldown::Remaining, WorldPackets::Party::ReceivePingCooldown::Remaining, Player::SendDirectMessage(), WorldPackets::Party::ReceivePingCooldown::SenderGUID, WorldPackets::Party::SendPingCooldown::SpellCategoryID, WorldPackets::Party::ReceivePingCooldown::SpellCategoryID, WorldPackets::Party::SendPingCooldown::SpellID, WorldPackets::Party::ReceivePingCooldown::SpellID, WorldPackets::Party::SendPingCooldown::Type, WorldPackets::Party::ReceivePingCooldown::Type, and WorldPackets::Party::ReceivePingCooldown::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSendPingUnit | ( | WorldPackets::Party::SendPingUnit const & | pingUnit | ) |
Definition at line 703 of file GroupHandler.cpp.
References _player, WorldPackets::Party::SendPingUnit::CreatureID, WorldPackets::Party::ReceivePingUnit::CreatureID, BaseEntity::GetGUID(), Group::GetMembers(), WorldPackets::Packet::GetRawPacket(), ObjectAccessor::GetUnit(), Player::HaveAtClient(), WorldPackets::Party::SendPingUnit::Health, WorldPackets::Party::ReceivePingUnit::Health, WorldObject::IsInMap(), WorldPackets::Party::SendPingUnit::IsUnitFrameStatusTextPing, WorldPackets::Party::ReceivePingUnit::IsUnitFrameStatusTextPing, WorldPackets::Party::SendPingUnit::Mana, WorldPackets::Party::ReceivePingUnit::Mana, WorldPackets::Party::SendPingUnit::PinFrameID, WorldPackets::Party::ReceivePingUnit::PinFrameID, WorldPackets::Party::SendPingUnit::PingDuration, WorldPackets::Party::ReceivePingUnit::PingDuration, Player::SendDirectMessage(), WorldPackets::Party::ReceivePingUnit::SenderGUID, WorldPackets::Party::SendPingUnit::SpellOverrideNameID, WorldPackets::Party::ReceivePingUnit::SpellOverrideNameID, WorldPackets::Party::SendPingUnit::TargetGUID, WorldPackets::Party::ReceivePingUnit::TargetGUID, WorldPackets::Party::SendPingUnit::Type, WorldPackets::Party::ReceivePingUnit::Type, and WorldPackets::Party::ReceivePingUnit::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSendPingWorldPoint | ( | WorldPackets::Party::SendPingWorldPoint const & | pingWorldPoint | ) |
Definition at line 736 of file GroupHandler.cpp.
References _player, BaseEntity::GetGUID(), WorldLocation::GetMapId(), Group::GetMembers(), WorldPackets::Packet::GetRawPacket(), WorldObject::IsInMap(), WorldPackets::Party::SendPingWorldPoint::MapID, WorldPackets::Party::ReceivePingWorldPoint::MapID, WorldPackets::Party::SendPingWorldPoint::PinFrameID, WorldPackets::Party::ReceivePingWorldPoint::PinFrameID, WorldPackets::Party::SendPingWorldPoint::PingDuration, WorldPackets::Party::ReceivePingWorldPoint::PingDuration, WorldPackets::Party::SendPingWorldPoint::Point, WorldPackets::Party::ReceivePingWorldPoint::Point, Player::SendDirectMessage(), WorldPackets::Party::ReceivePingWorldPoint::SenderGUID, WorldPackets::Party::SendPingWorldPoint::Transport, WorldPackets::Party::ReceivePingWorldPoint::Transport, WorldPackets::Party::SendPingWorldPoint::Type, WorldPackets::Party::ReceivePingWorldPoint::Type, and WorldPackets::Party::ReceivePingWorldPoint::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleServerTimeOffsetRequest | ( | WorldPackets::Misc::ServerTimeOffsetRequest & | ) |
Definition at line 1076 of file MiscHandler.cpp.
References GameTime::GetSystemTime(), SendPacket(), WorldPackets::Misc::ServerTimeOffset::Time, and WorldPackets::Misc::ServerTimeOffset::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetActionBarToggles | ( | WorldPackets::Character::SetActionBarToggles & | packet | ) |
Definition at line 798 of file MiscHandler.cpp.
References GetPlayer(), WorldPackets::Character::SetActionBarToggles::Mask, Player::SetMultiActionBars(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetActionButtonOpcode | ( | WorldPackets::Spells::SetActionButton & | packet | ) |
Definition at line 763 of file MiscHandler.cpp.
References WorldPackets::Spells::SetActionButton::Action, ACTION_BUTTON_ACTION, ACTION_BUTTON_TYPE, Player::AddActionButton(), GetPlayer(), WorldPackets::Spells::SetActionButton::Index, Player::RemoveActionButton(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetActiveMoverOpcode | ( | WorldPackets::Movement::SetActiveMover & | packet | ) |
Definition at line 735 of file MovementHandler.cpp.
References _player, WorldPackets::Movement::SetActiveMover::ActiveMover, BaseEntity::GetGUID(), GetPlayer(), Unit::GetUnitBeingMoved(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetAdvancedCombatLogging | ( | WorldPackets::ClientConfig::SetAdvancedCombatLogging & | setAdvancedCombatLogging | ) |
Definition at line 1156 of file MiscHandler.cpp.
References _player, WorldPackets::ClientConfig::SetAdvancedCombatLogging::Enable, and Player::SetAdvancedCombatLogging().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetAdvFlyingSpeedAck | ( | WorldPackets::Movement::MovementSpeedAck & | speedAck | ) |
Definition at line 717 of file MovementHandler.cpp.
References WorldPackets::Movement::MovementSpeedAck::Ack, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MovementAck::Status, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetAdvFlyingSpeedRangeAck | ( | WorldPackets::Movement::MovementSpeedRangeAck & | speedRangeAck | ) |
Definition at line 726 of file MovementHandler.cpp.
References WorldPackets::Movement::MovementSpeedRangeAck::Ack, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MovementAck::Status, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetAssistantLeaderOpcode | ( | WorldPackets::Party::SetAssistantLeader & | packet | ) |
Definition at line 512 of file GroupHandler.cpp.
References WorldPackets::Party::SetAssistantLeader::Apply, Player::GetGroup(), GetPlayer(), Group::IsLeader(), MEMBER_FLAG_ASSISTANT, WorldPackets::Party::SetAssistantLeader::PartyIndex, Group::SetGroupMemberFlag(), and WorldPackets::Party::SetAssistantLeader::Target.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetBackpackAutosortDisabled | ( | WorldPackets::Item::SetBackpackAutosortDisabled const & | setBackpackAutosortDisabled | ) |
Definition at line 1272 of file ItemHandler.cpp.
References _player, WorldPackets::Item::SetBackpackAutosortDisabled::Disable, and Player::SetBackpackAutoSortDisabled().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetBackpackSellJunkDisabled | ( | WorldPackets::Item::SetBackpackSellJunkDisabled const & | setBackpackSellJunkDisabled | ) |
Definition at line 1277 of file ItemHandler.cpp.
References _player, WorldPackets::Item::SetBackpackSellJunkDisabled::Disable, and Player::SetBackpackSellJunkDisabled().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetBankAutosortDisabled | ( | WorldPackets::Item::SetBankAutosortDisabled const & | setBankAutosortDisabled | ) |
Definition at line 1282 of file ItemHandler.cpp.
References _player, WorldPackets::Item::SetBankAutosortDisabled::Disable, and Player::SetBankAutoSortDisabled().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetCollisionHeightAck | ( | WorldPackets::Movement::MoveSetCollisionHeightAck & | setCollisionHeightAck | ) |
Definition at line 776 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveSetCollisionHeightAck::Data, WorldPackets::ClientPacket::GetOpcode(), MovementInfo::guid, WorldPackets::Movement::MovementAck::Status, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetContactNotesOpcode | ( | WorldPackets::Social::SetContactNotes & | packet | ) |
Definition at line 171 of file SocialHandler.cpp.
References _player, Player::GetSocial(), WorldPackets::Social::QualifiedGUID::Guid, WorldPackets::Social::SetContactNotes::Notes, WorldPackets::Social::SetContactNotes::Player, PlayerSocial::SetFriendNote(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetCurrencyFlags | ( | WorldPackets::Misc::SetCurrencyFlags const & | setCurrenctFlags | ) |
Definition at line 1226 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetCurrencyFlags::CurrencyID, WorldPackets::Misc::SetCurrencyFlags::Flags, and Player::SetCurrencyFlagsFromClient().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetDungeonDifficultyOpcode | ( | WorldPackets::Misc::SetDungeonDifficulty & | setDungeonDifficulty | ) |
Definition at line 924 of file MiscHandler.cpp.
References _player, DIFFICULTY_FLAG_CAN_SELECT, WorldPackets::Misc::SetDungeonDifficulty::DifficultyID, WorldObject::FindMap(), DifficultyEntry::Flags, Player::GetDungeonDifficultyID(), Group::GetDungeonDifficultyID(), Player::GetGroup(), BaseEntity::GetGUID(), WorldObject::GetName(), DifficultyEntry::ID, Map::Instanceable(), DifficultyEntry::InstanceType, Group::IsLeader(), Group::isLFGGroup(), MAP_INSTANCE, OnChangeDifficulty, Player::ResetInstances(), Group::ResetInstances(), sDifficultyStore, Player::SendDungeonDifficulty(), Group::SetDungeonDifficultyID(), Player::SetDungeonDifficultyID(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetEmpowerMinHoldStagePercent | ( | WorldPackets::Spells::SetEmpowerMinHoldStagePercent const & | setEmpowerMinHoldStagePercent | ) |
Definition at line 381 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::SetEmpowerMinHoldStagePercent::MinHoldStagePercent, and Player::SetEmpowerMinHoldStagePercent().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetEveryoneIsAssistant | ( | WorldPackets::Party::SetEveryoneIsAssistant & | packet | ) |
Definition at line 630 of file GroupHandler.cpp.
References WorldPackets::Party::SetEveryoneIsAssistant::EveryoneIsAssistant, Player::GetGroup(), GetPlayer(), Group::IsLeader(), WorldPackets::Party::SetEveryoneIsAssistant::PartyIndex, and Group::SetEveryoneIsAssistant().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetFactionAtWar | ( | WorldPackets::Character::SetFactionAtWar & | packet | ) |
Definition at line 1585 of file CharacterHandler.cpp.
References WorldPackets::Character::SetFactionAtWar::FactionIndex, GetPlayer(), Player::GetReputationMgr(), and ReputationMgr::SetAtWar().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetFactionInactiveOpcode | ( | WorldPackets::Character::SetFactionInactive & | packet | ) |
Definition at line 1631 of file CharacterHandler.cpp.
References _player, Player::GetReputationMgr(), WorldPackets::Character::SetFactionInactive::Index, ReputationMgr::SetInactive(), and WorldPackets::Character::SetFactionInactive::State.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetFactionNotAtWar | ( | WorldPackets::Character::SetFactionNotAtWar & | packet | ) |
Definition at line 1590 of file CharacterHandler.cpp.
References WorldPackets::Character::SetFactionNotAtWar::FactionIndex, GetPlayer(), Player::GetReputationMgr(), and ReputationMgr::SetAtWar().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetLootMethodOpcode | ( | WorldPackets::Party::SetLootMethod & | packet | ) |
Definition at line 360 of file GroupHandler.cpp.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetLootSpecialization | ( | WorldPackets::Loot::SetLootSpecialization & | packet | ) |
Definition at line 509 of file LootHandler.cpp.
References GetPlayer(), sChrSpecializationStore, Player::SetLootSpecId(), and WorldPackets::Loot::SetLootSpecialization::SpecID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetPartyAssignment | ( | WorldPackets::Party::SetPartyAssignment & | packet | ) |
Definition at line 524 of file GroupHandler.cpp.
References WorldPackets::Party::SetPartyAssignment::Assignment, Player::GetGroup(), BaseEntity::GetGUID(), GetPlayer(), GROUP_ASSIGN_MAINASSIST, GROUP_ASSIGN_MAINTANK, Group::IsAssistant(), Group::IsLeader(), MEMBER_FLAG_MAINASSIST, MEMBER_FLAG_MAINTANK, WorldPackets::Party::SetPartyAssignment::PartyIndex, Group::RemoveUniqueGroupMemberFlag(), Group::SendUpdate(), WorldPackets::Party::SetPartyAssignment::Set, Group::SetGroupMemberFlag(), and WorldPackets::Party::SetPartyAssignment::Target.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetPartyLeaderOpcode | ( | WorldPackets::Party::SetPartyLeader & | packet | ) |
Definition at line 294 of file GroupHandler.cpp.
References Group::ChangeLeader(), ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), GetPlayer(), Group::IsLeader(), WorldPackets::Party::SetPartyLeader::PartyIndex, Group::SendUpdate(), and WorldPackets::Party::SetPartyLeader::TargetGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetPetSlot | ( | WorldPackets::NPC::SetPetSlot & | setPetSlot | ) |
Definition at line 372 of file NPCHandler.cpp.
References _player, CheckStableMaster(), WorldPackets::NPC::SetPetSlot::DestSlot, InvalidSlot, NotStableMaster, PET_SAVE_LAST_STABLE_SLOT, WorldPackets::NPC::SetPetSlot::PetNumber, SendPetStableResult(), Player::SetPetSlot(), and WorldPackets::NPC::SetPetSlot::StableMaster.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetPlayerDeclinedNames | ( | WorldPackets::Character::SetPlayerDeclinedNames & | packet | ) |
Definition at line 1761 of file CharacterHandler.cpp.
References CHAR_DEL_CHAR_DECLINED_NAME, CHAR_INS_CHAR_DECLINED_NAME, CharacterDatabase, ObjectMgr::CheckDeclinedNames(), DECLINED_NAMES_RESULT_ERROR, DECLINED_NAMES_RESULT_SUCCESS, WorldPackets::Character::SetPlayerDeclinedNames::DeclinedNames, ObjectGuid::GetCounter(), isCyrillicCharacter(), MAX_DECLINED_NAME_CASES, DeclinedName::name, normalizePlayerName(), WorldPackets::Character::SetPlayerDeclinedNames::Player, sCharacterCache, SendSetPlayerDeclinedNamesResult(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), and Utf8toWStr().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetPvP | ( | WorldPackets::Misc::SetPvP & | packet | ) |
Definition at line 320 of file MiscHandler.cpp.
References WorldPackets::Misc::SetPvP::EnablePVP, PvPInfo::EndTimer, GameTime::GetGameTime(), GetPlayer(), PLAYER_FLAGS_IN_PVP, PLAYER_FLAGS_PVP_TIMER, Player::pvpInfo, Player::RemovePlayerFlag(), Player::SetPlayerFlag(), and Player::UpdatePvP().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetRaidDifficultyOpcode | ( | WorldPackets::Misc::SetRaidDifficulty & | setRaidDifficulty | ) |
Definition at line 986 of file MiscHandler.cpp.
References _player, DIFFICULTY_FLAG_CAN_SELECT, DIFFICULTY_FLAG_LEGACY, WorldPackets::Misc::SetRaidDifficulty::DifficultyID, WorldObject::FindMap(), DifficultyEntry::Flags, Player::GetGroup(), BaseEntity::GetGUID(), Player::GetLegacyRaidDifficultyID(), Group::GetLegacyRaidDifficultyID(), WorldObject::GetName(), Player::GetRaidDifficultyID(), Group::GetRaidDifficultyID(), DifficultyEntry::ID, Map::Instanceable(), DifficultyEntry::InstanceType, Group::IsLeader(), Group::isLFGGroup(), WorldPackets::Misc::SetRaidDifficulty::Legacy, MAP_RAID, OnChangeDifficulty, Player::ResetInstances(), Group::ResetInstances(), sDifficultyStore, Player::SendRaidDifficulty(), Group::SetLegacyRaidDifficultyID(), Player::SetLegacyRaidDifficultyID(), Group::SetRaidDifficultyID(), Player::SetRaidDifficultyID(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetRestrictPingsToAssistants | ( | WorldPackets::Party::SetRestrictPingsToAssistants const & | setRestrictPingsToAssistants | ) |
Definition at line 691 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), Group::IsLeader(), WorldPackets::Party::SetRestrictPingsToAssistants::PartyIndex, WorldPackets::Party::SetRestrictPingsToAssistants::RestrictTo, and Group::SetRestrictPingsTo().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetRoleOpcode | ( | WorldPackets::Party::SetRole & | packet | ) |
Definition at line 310 of file GroupHandler.cpp.
References Group::BroadcastPacket(), WorldPackets::Party::RoleChangedInform::ChangedUnit, WorldPackets::Party::RoleChangedInform::From, Player::GetGroup(), Group::GetGroupCategory(), BaseEntity::GetGUID(), Group::GetLfgRoles(), GetPlayer(), WorldPackets::Party::RoleChangedInform::NewRole, WorldPackets::Party::RoleChangedInform::OldRole, WorldPackets::Party::SetRole::PartyIndex, WorldPackets::Party::RoleChangedInform::PartyIndex, WorldPackets::Party::SetRole::Role, SendPacket(), Group::SetLfgRoles(), WorldPackets::Party::SetRole::TargetGUID, and WorldPackets::Party::RoleChangedInform::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetSavedInstanceExtend | ( | WorldPackets::Calendar::SetSavedInstanceExtend & | setSavedInstanceExtend | ) |
Definition at line 532 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::SetSavedInstanceExtend::DifficultyID, WorldPackets::Calendar::CalendarRaidLockoutUpdated::DifficultyID, WorldPackets::Calendar::SetSavedInstanceExtend::Extend, BaseEntity::GetGUID(), WorldLocation::GetMapId(), GameTime::GetSystemTime(), GameTime::GetWowTime(), WorldPackets::Calendar::SetSavedInstanceExtend::MapID, WorldPackets::Calendar::CalendarRaidLockoutUpdated::MapID, WorldPackets::Calendar::CalendarRaidLockoutUpdated::NewTimeRemaining, WorldPackets::Calendar::CalendarRaidLockoutUpdated::OldTimeRemaining, SendPacket(), WorldPackets::Calendar::CalendarRaidLockoutUpdated::ServerTime, SI64LIT, sInstanceLockMgr, TC_LOG_DEBUG, and WorldPackets::Calendar::CalendarRaidLockoutUpdated::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetSelectionOpcode | ( | WorldPackets::Misc::SetSelection & | packet | ) |
Definition at line 384 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetSelection::Selection, and Player::SetSelection().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetSheathedOpcode | ( | WorldPackets::Combat::SetSheathed & | packet | ) |
Definition at line 68 of file CombatHandler.cpp.
References WorldPackets::Combat::SetSheathed::CurrentSheathState, GetPlayer(), MAX_SHEATH_STATE, Unit::SetSheath(), and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetTaxiBenchmark | ( | WorldPackets::Misc::SetTaxiBenchmarkMode & | packet | ) |
Definition at line 1062 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetTaxiBenchmarkMode::Enable, PLAYER_FLAGS_TAXI_BENCHMARK, Player::RemovePlayerFlag(), and Player::SetPlayerFlag().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetTitleOpcode | ( | WorldPackets::Character::SetTitle & | packet | ) |
Definition at line 890 of file MiscHandler.cpp.
References GetPlayer(), HasTitle, Player::SetChosenTitle(), and WorldPackets::Character::SetTitle::TitleID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetTradeCurrencyOpcode | ( | WorldPackets::Trade::SetTradeCurrency & | setTradeCurrency | ) |
Definition at line 790 of file TradeHandler.cpp.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetTradeGoldOpcode | ( | WorldPackets::Trade::SetTradeGold & | setTradeGold | ) |
Definition at line 717 of file TradeHandler.cpp.
References _player, WorldPackets::Trade::SetTradeGold::Coinage, Player::GetTradeData(), TradeData::SetMoney(), and TradeData::UpdateClientStateIndex().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetTradeItemOpcode | ( | WorldPackets::Trade::SetTradeItem & | setTradeItem | ) |
Definition at line 727 of file TradeHandler.cpp.
References _player, Item::CanBeTraded(), BaseEntity::GetGUID(), Player::GetItemByPos(), Player::GetTradeData(), TradeData::GetTrader(), TradeData::HasItem(), Item::IsBindedNotWith(), WorldPackets::Trade::SetTradeItem::ItemSlotInPack, WorldPackets::Trade::SetTradeItem::PackSlot, SendTradeStatus(), TradeData::SetItem(), WorldPackets::Trade::TradeStatus::Status, TRADE_SLOT_COUNT, TRADE_SLOT_NONTRADED, TRADE_STATUS_CANCELLED, TRADE_STATUS_NOT_ON_TAPLIST, WorldPackets::Trade::SetTradeItem::TradeSlot, WorldPackets::Trade::TradeStatus::TradeSlot, and TradeData::UpdateClientStateIndex().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetWarMode | ( | WorldPackets::Misc::SetWarMode & | packet | ) |
Definition at line 338 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetWarMode::Enable, and Player::SetWarModeDesired().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSetWatchedFactionOpcode | ( | WorldPackets::Character::SetWatchedFaction & | packet | ) |
Definition at line 1626 of file CharacterHandler.cpp.
References WorldPackets::Character::SetWatchedFaction::FactionIndex, GetPlayer(), and Player::SetWatchedFactionIndex().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSignPetition | ( | WorldPackets::Petition::SignPetition & | packet | ) |
Definition at line 225 of file PetitionsHandler.cpp.
References _player, Petition::AddSignature(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_GUILD_S, ERR_ALREADY_INVITED_TO_GUILD_S, ERR_GUILD_NOT_ALLIED, WorldPackets::Petition::PetitionSignResults::Error, ObjectAccessor::FindConnectedPlayer(), GetAccountId(), BaseEntity::GetGUID(), Player::GetGuildId(), Player::GetGuildIdInvited(), Player::GetItemByGuid(), WorldObject::GetName(), GetPlayer(), WorldPackets::Packet::GetRawPacket(), GUILD_COMMAND_CREATE_GUILD, GUILD_COMMAND_INVITE_PLAYER, Petition::IsPetitionSignedByAccount(), WorldPackets::Petition::PetitionSignResults::Item, ITEM_CHANGED, Petition::OwnerGuid, PETITION_SIGN_ALREADY_SIGNED, PETITION_SIGN_OK, WorldPackets::Petition::SignPetition::PetitionGUID, WorldPackets::Petition::PetitionSignResults::Player, sCharacterCache, Guild::SendCommandResult(), SendPacket(), Petition::Signatures, sPetitionMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), and WorldPackets::Petition::PetitionSignResults::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSocialContractRequest | ( | WorldPackets::Social::SocialContractRequest & | socialContractRequest | ) |
Definition at line 178 of file SocialHandler.cpp.
References SendPacket(), WorldPackets::Social::SocialContractRequestResponse::ShowSocialContract, and WorldPackets::Social::SocialContractRequestResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSocketGems | ( | WorldPackets::Item::SocketGems & | socketGems | ) |
Definition at line 910 of file ItemHandler.cpp.
References Player::_ApplyItemMods(), _player, BonusData::AddBonusList(), Player::ApplyEnchantment(), BONUS_ENCHANTMENT_SLOT, UF::SocketedGem::BonusListIDs, Player::CanEquipUniqueItem(), Item::ClearSoulboundTradeable(), ItemDynamicFieldGems::Context, Player::DestroyItemCount(), GemPropertiesEntry::EnchantId, EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED, WorldPackets::Item::SocketGems::GemItem, Item::GemsFitSockets(), Item::GetChildItem(), Player::GetChildItemByGuid(), Item::GetEnchantmentId(), Object::GetEntry(), Item::GetGem(), BaseEntity::GetGUID(), ItemTemplate::GetId(), Player::GetItemByGuid(), Item::GetItemLimitCategory(), Player::GetItemLimitCategoryQuantity(), Unit::GetLevel(), Item::GetSlot(), ItemTemplate::GetSocketBonus(), Item::GetSocketColor(), Item::GetTemplate(), ItemTemplate::HasFlag(), BonusData::Initialize(), Item::IsEquipped(), ITEM_FLAG_UNIQUE_EQUIPPABLE, ITEM_MODIFIER_TIMEWALKER_LEVEL, WorldPackets::Item::SocketGems::ItemGuid, ItemDynamicFieldGems::ItemId, UF::SocketedGem::ItemID, BonusData::LimitCategory, MAX_GEM_SOCKETS, NULL_SLOT, PRISMATIC_ENCHANTMENT_SLOT, Player::RemoveTradeableItem(), Player::SendEquipError(), Item::SendUpdateSockets(), Item::SetEnchantment(), Item::SetGem(), sGemPropertiesStore, sItemLimitCategoryStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCKET_COLOR_BLUE, SOCKET_COLOR_RED, SOCKET_COLOR_YELLOW, SocketColorToGemTypeMask, and Player::ToggleMetaGemsActive().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSortAccountBankBags | ( | WorldPackets::Item::SortAccountBankBags & | sortBankBags | ) |
Definition at line 1224 of file ItemHandler.cpp.
References SendPacket().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSortBags | ( | WorldPackets::Item::SortBags & | sortBags | ) |
Definition at line 1231 of file ItemHandler.cpp.
References SendPacket().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSortBankBags | ( | WorldPackets::Item::SortBankBags & | sortBankBags | ) |
Definition at line 1238 of file ItemHandler.cpp.
References SendPacket().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSpawnTrackingUpdate | ( | WorldPackets::Quest::SpawnTrackingUpdate & | spawnTrackingUpdate | ) |
Definition at line 861 of file QuestHandler.cpp.
References _player, AsUnderlyingType(), Player::GetActiveQuestObjectiveForSpawnTracking(), WorldLocation::GetMapId(), Player::GetSpawnTrackingStateByObjectives(), SpawnData::id, SpawnTrackingTemplateData::MapId, NUM_SPAWN_TYPES, WorldPackets::Quest::SpawnTrackingResponseInfo::ObjectID, SpawnTrackingTemplateData::PhaseGroup, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseGroupID, SpawnTrackingTemplateData::PhaseId, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseID, SpawnTrackingTemplateData::PhaseUseFlags, WorldPackets::Quest::SpawnTrackingResponseInfo::PhaseUseFlags, SendPacket(), sObjectMgr, SPAWN_TYPE_CREATURE, SPAWN_TYPE_GAMEOBJECT, WorldPackets::Quest::SpawnTrackingResponseInfo::SpawnTrackingID, WorldPackets::Quest::SpawnTrackingUpdate::SpawnTrackingRequests, WorldPackets::Quest::QuestPOIUpdateResponse::SpawnTrackingResponses, SpawnMetadata::ToSpawnData(), TYPEMASK_GAMEOBJECT, TYPEMASK_UNIT, WorldPackets::Quest::SpawnTrackingResponseInfo::Visible, and WorldPackets::Quest::QuestPOIUpdateResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSpellClick | ( | WorldPackets::Spells::SpellClick & | spellClick | ) |
Definition at line 450 of file SpellHandler.cpp.
References _player, ObjectAccessor::GetCreatureOrPetOrVehicle(), Unit::HandleSpellClick(), BaseEntity::IsInWorld(), and WorldPackets::Spells::SpellClick::SpellClickUnitGuid.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSpellEmpowerRelease | ( | WorldPackets::Spells::SpellEmpowerRelease const & | spellEmpowerRelease | ) |
Definition at line 386 of file SpellHandler.cpp.
References _player, CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), Spell::GetSpellInfo(), Unit::GetUnitBeingMoved(), SpellInfo::Id, Spell::IsEmpowerSpell(), Spell::SetEmpowerReleasedByClient(), and WorldPackets::Spells::SpellEmpowerRelease::SpellID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSpellEmpowerRestart | ( | WorldPackets::Spells::SpellEmpowerRestart const & | spellEmpowerRestart | ) |
Definition at line 400 of file SpellHandler.cpp.
References _player, CURRENT_CHANNELED_SPELL, Unit::GetCurrentSpell(), Spell::GetSpellInfo(), Unit::GetUnitBeingMoved(), SpellInfo::Id, Spell::IsEmpowerSpell(), Spell::SetEmpowerReleasedByClient(), and WorldPackets::Spells::SpellEmpowerRestart::SpellID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSpiritHealerActivate | ( | WorldPackets::NPC::SpiritHealerActivate & | packet | ) |
Definition at line 274 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), WorldPackets::NPC::SpiritHealerActivate::Healer, Unit::RemoveAurasByType(), SendSpiritResurrect(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_SPIRIT_HEALER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSplitGuildBankItem | ( | WorldPackets::Guild::SplitGuildBankItem & | splitGuildBankItem | ) |
Definition at line 453 of file GuildHandler.cpp.
References WorldPackets::Guild::SplitGuildBankItem::Banker, WorldPackets::Guild::SplitGuildBankItem::BankSlot, WorldPackets::Guild::SplitGuildBankItem::BankSlot1, WorldPackets::Guild::SplitGuildBankItem::BankTab, WorldPackets::Guild::SplitGuildBankItem::BankTab1, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), WorldPackets::Guild::SplitGuildBankItem::StackCount, and Guild::SwapItems().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSplitGuildBankItemToInventory | ( | WorldPackets::Guild::SplitGuildBankItemToInventory & | splitGuildBankItemToInventory | ) |
Definition at line 411 of file GuildHandler.cpp.
References WorldPackets::Guild::SplitGuildBankItemToInventory::Banker, WorldPackets::Guild::SplitGuildBankItemToInventory::BankSlot, WorldPackets::Guild::SplitGuildBankItemToInventory::BankTab, WorldPackets::Guild::SplitGuildBankItemToInventory::ContainerItemSlot, WorldPackets::Guild::SplitGuildBankItemToInventory::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), WorldPackets::Guild::SplitGuildBankItemToInventory::StackCount, and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSplitItemOpcode | ( | WorldPackets::Item::SplitItem & | splitItem | ) |
Definition at line 33 of file ItemHandler.cpp.
References _player, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, WorldPackets::Item::SplitItem::FromPackSlot, WorldPackets::Item::SplitItem::FromSlot, WorldPackets::Item::SplitItem::Inv, Player::IsValidPos(), WorldPackets::Item::InvUpdate::Items, WorldPackets::Item::SplitItem::Quantity, Player::SendEquipError(), Player::SplitItem(), TC_LOG_DEBUG, TC_LOG_ERROR, WorldPackets::Item::SplitItem::ToPackSlot, and WorldPackets::Item::SplitItem::ToSlot.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSplitItemToGuildBank | ( | WorldPackets::Guild::SplitItemToGuildBank & | splitItemToGuildBank | ) |
Definition at line 379 of file GuildHandler.cpp.
References WorldPackets::Guild::SplitItemToGuildBank::Banker, WorldPackets::Guild::SplitItemToGuildBank::BankSlot, WorldPackets::Guild::SplitItemToGuildBank::BankTab, WorldPackets::Guild::SplitItemToGuildBank::ContainerItemSlot, WorldPackets::Guild::SplitItemToGuildBank::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), WorldPackets::Guild::SplitItemToGuildBank::StackCount, and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleStandStateChangeOpcode | ( | WorldPackets::Misc::StandStateChange & | packet | ) |
Definition at line 389 of file MiscHandler.cpp.
References _player, Unit::SetStandState(), WorldPackets::Misc::StandStateChange::StandState, UNIT_STAND_STATE_KNEEL, UNIT_STAND_STATE_SIT, UNIT_STAND_STATE_SLEEP, and UNIT_STAND_STATE_STAND.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleStoreGuildBankItem | ( | WorldPackets::Guild::StoreGuildBankItem & | storeGuildBankItem | ) |
Definition at line 306 of file GuildHandler.cpp.
References WorldPackets::Guild::StoreGuildBankItem::Banker, WorldPackets::Guild::StoreGuildBankItem::BankSlot, WorldPackets::Guild::StoreGuildBankItem::BankTab, WorldPackets::Guild::StoreGuildBankItem::ContainerItemSlot, WorldPackets::Guild::StoreGuildBankItem::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSubmitUserFeedback | ( | WorldPackets::Ticket::SubmitUserFeedback & | userFeedback | ) |
Definition at line 40 of file TicketHandler.cpp.
References WorldPackets::Ticket::SupportTicketHeader::Facing, GetPlayer(), WorldPackets::Ticket::SubmitUserFeedback::Header, WorldPackets::Ticket::SubmitUserFeedback::IsSuggestion, WorldPackets::Ticket::SupportTicketHeader::MapID, WorldPackets::Ticket::SubmitUserFeedback::Note, WorldPackets::Ticket::SupportTicketHeader::Position, Ticket::SetFacing(), BugTicket::SetNote(), SuggestionTicket::SetNote(), Ticket::SetPosition(), and sSupportMgr.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSummonResponseOpcode | ( | WorldPackets::Movement::SummonResponse & | packet | ) |
Definition at line 768 of file MovementHandler.cpp.
References _player, WorldPackets::Movement::SummonResponse::Accept, Unit::IsAlive(), Unit::IsInCombat(), and Player::SummonIfPossible().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSupportTicketSubmitComplaint | ( | WorldPackets::Ticket::SupportTicketSubmitComplaint & | packet | ) |
Definition at line 68 of file TicketHandler.cpp.
References WorldPackets::Ticket::SupportTicketSubmitComplaint::ChatLog, WorldPackets::Ticket::SupportTicketHeader::Facing, GetPlayer(), WorldPackets::Ticket::SupportTicketSubmitComplaint::Header, WorldPackets::Ticket::SupportTicketSubmitComplaint::MajorCategory, WorldPackets::Ticket::SupportTicketHeader::MapID, WorldPackets::Ticket::SupportTicketSubmitComplaint::MinorCategoryFlags, WorldPackets::Ticket::SupportTicketSubmitComplaint::Note, WorldPackets::Ticket::SupportTicketHeader::Position, WorldPackets::Ticket::SupportTicketSubmitComplaint::ReportType, ComplaintTicket::SetChatLog(), Ticket::SetFacing(), ComplaintTicket::SetMajorCategory(), ComplaintTicket::SetMinorCategoryFlags(), ComplaintTicket::SetNote(), Ticket::SetPosition(), ComplaintTicket::SetReportType(), ComplaintTicket::SetTargetCharacterGuid(), sSupportMgr, and WorldPackets::Ticket::SupportTicketSubmitComplaint::TargetCharacterGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSuspendTokenResponse | ( | WorldPackets::Movement::SuspendTokenResponse & | suspendTokenResponse | ) |
Definition at line 386 of file MovementHandler.cpp.
References _player, WorldPackets::Movement::NewWorld::Counter, WorldLocation::GetMapId(), Player::GetNewWorldCounter(), GetPlayer(), Player::GetTeleportDest(), Player::GetTeleportOptions(), Player::GetTeleportState(), HandleMoveWorldportAck(), WorldPackets::Movement::NewWorld::Loc, TeleportLocation::Location, WorldPackets::Instance::UpdateLastInstance::MapID, WorldPackets::Movement::NewWorld::MapID, NEW_WORLD_NORMAL, NEW_WORLD_SEAMLESS, WorldPackets::Movement::TeleportLocation::Pos, WorldPackets::Movement::NewWorld::Reason, SendPacket(), Player::SetTeleportState(), sMapStore, TELE_TO_SEAMLESS, WaitingForSuspendTokenResponse, WaitingForWorldPortAck, WorldPackets::Instance::UpdateLastInstance::Write(), and WorldPackets::Movement::NewWorld::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSwapGuildBankItemWithGuildBankItem | ( | WorldPackets::Guild::SwapGuildBankItemWithGuildBankItem & | swapGuildBankItemWithGuildBankItem | ) |
Definition at line 338 of file GuildHandler.cpp.
References WorldPackets::Guild::SwapGuildBankItemWithGuildBankItem::Banker, WorldPackets::Guild::SwapGuildBankItemWithGuildBankItem::BankSlot, WorldPackets::Guild::SwapGuildBankItemWithGuildBankItem::BankTab, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), and Guild::SwapItems().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSwapInvItemOpcode | ( | WorldPackets::Item::SwapInvItem & | swapInvItem | ) |
Definition at line 69 of file ItemHandler.cpp.
References _player, CanUseBank(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, WorldPackets::Item::SwapInvItem::Inv, INVENTORY_SLOT_BAG_0, Player::IsBankPos(), Player::IsValidPos(), WorldPackets::Item::InvUpdate::Items, Player::PlayerTalkClass, Player::SendEquipError(), WorldPackets::Item::SwapInvItem::Slot1, WorldPackets::Item::SwapInvItem::Slot2, Player::SwapItem(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSwapItem | ( | WorldPackets::Item::SwapItem & | swapItem | ) |
Definition at line 130 of file ItemHandler.cpp.
References _player, CanUseBank(), WorldPackets::Item::SwapItem::ContainerSlotA, WorldPackets::Item::SwapItem::ContainerSlotB, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, WorldPackets::Item::SwapItem::Inv, Player::IsBankPos(), Player::IsValidPos(), WorldPackets::Item::InvUpdate::Items, Player::PlayerTalkClass, Player::SendEquipError(), WorldPackets::Item::SwapItem::SlotA, WorldPackets::Item::SwapItem::SlotB, Player::SwapItem(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSwapItemWithGuildBankItem | ( | WorldPackets::Guild::SwapItemWithGuildBankItem & | swapItemWithGuildBankItem | ) |
Definition at line 322 of file GuildHandler.cpp.
References WorldPackets::Guild::SwapItemWithGuildBankItem::Banker, WorldPackets::Guild::SwapItemWithGuildBankItem::BankSlot, WorldPackets::Guild::SwapItemWithGuildBankItem::BankTab, WorldPackets::Guild::SwapItemWithGuildBankItem::ContainerItemSlot, WorldPackets::Guild::SwapItemWithGuildBankItem::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsInventoryPos(), Player::SendEquipError(), and Guild::SwapItemsWithInventory().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleSwapSubGroupsOpcode | ( | WorldPackets::Party::SwapSubGroups & | packet | ) |
Definition at line 499 of file GroupHandler.cpp.
References WorldPackets::Party::SwapSubGroups::FirstTarget, Player::GetGroup(), BaseEntity::GetGUID(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), WorldPackets::Party::SwapSubGroups::PartyIndex, WorldPackets::Party::SwapSubGroups::SecondTarget, and Group::SwapMembersGroups().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTabardVendorActivateOpcode | ( | WorldPackets::NPC::TabardVendorActivate const & | tabardVendorActivate | ) |
Definition at line 48 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Guild, Personal, Unit::RemoveAurasByType(), SendTabardVendorActivate(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::TabardVendorActivate::Type, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_STATE_DIED, and WorldPackets::NPC::TabardVendorActivate::Vendor.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTaxiNodeStatusQueryOpcode | ( | WorldPackets::Taxi::TaxiNodeStatusQuery & | taxiNodeStatusQuery | ) |
Definition at line 41 of file TaxiHandler.cpp.
References SendTaxiStatus(), and WorldPackets::Taxi::TaxiNodeStatusQuery::UnitGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTaxiQueryAvailableNodesOpcode | ( | WorldPackets::Taxi::TaxiQueryAvailableNodes & | taxiQueryAvailableNodes | ) |
Definition at line 72 of file TaxiHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendLearnNewTaxiNode(), SendTaxiMenu(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::Taxi::TaxiQueryAvailableNodes::Unit, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_FLIGHTMASTER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTaxiRequestEarlyLanding | ( | WorldPackets::Taxi::TaxiRequestEarlyLanding & | taxiRequestEarlyLanding | ) |
Definition at line 218 of file TaxiHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTextEmoteOpcode | ( | WorldPackets::Chat::CTextEmote & | packet | ) |
Definition at line 703 of file ChatHandler.cpp.
References _player, Anim, CanSpeak(), CONFIG_LISTEN_RANGE_TEXTEMOTE, WorldPackets::Array< T, N >::data(), DoEmote, EMOTE_ONESHOT_NONE, EMOTE_STATE_DANCE, EMOTE_STATE_KNEEL, EMOTE_STATE_LEAN, EMOTE_STATE_READ, EMOTE_STATE_SIT, EMOTE_STATE_SLEEP, EmotesTextEntry::EmoteID, WorldPackets::Chat::CTextEmote::EmoteID, WorldPackets::Chat::STextEmote::EmoteID, GetAccountGUID(), GameTime::GetGameTime(), BaseEntity::GetGUID(), GetTrinityString(), ObjectAccessor::GetUnit(), Unit::HandleEmoteCommand(), Unit::HasUnitState(), Unit::IsAlive(), LANG_WAIT_BEFORE_SPEAKING, m_muteTime, Unit::RemoveAurasWithInterruptFlags(), secsToTimeString(), sEmotesTextStore, Player::SendMessageToSetInRange(), SendNotification(), WorldPackets::Chat::CTextEmote::SequenceVariation, Unit::SetEmoteState(), WorldPackets::Array< T, N >::size(), WorldPackets::Chat::CTextEmote::SoundIndex, WorldPackets::Chat::STextEmote::SoundIndex, WorldPackets::Chat::STextEmote::SourceAccountGUID, WorldPackets::Chat::STextEmote::SourceGUID, WorldPackets::Chat::CTextEmote::SpellVisualKitIDs, sScriptMgr, sWorld, WorldPackets::Chat::CTextEmote::Target, WorldPackets::Chat::STextEmote::TargetGUID, Object::ToCreature(), UNIT_STATE_DIED, Player::UpdateCriteria(), and WorldPackets::Chat::STextEmote::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTimeSync | ( | uint32 | counter, |
| int64 | clientTime, | ||
| TimePoint | responseReceiveTime | ||
| ) |
Definition at line 982 of file MovementHandler.cpp.
References _pendingTimeSyncRequests, _timeSyncClockDeltaQueue, ComputeNewClockDelta(), and getMSTimeDiff().
Referenced by HandleMoveInitActiveMoverComplete(), HandleQueuedMessagesEnd(), and HandleTimeSyncResponse().
| void WorldSession::HandleTimeSyncResponse | ( | WorldPackets::Misc::TimeSyncResponse const & | timeSyncResponse | ) |
Definition at line 1010 of file MovementHandler.cpp.
References WorldPackets::Misc::TimeSyncResponse::ClientTime, WorldPackets::Misc::TimeSyncResponse::GetReceivedTime(), HandleTimeSync(), and WorldPackets::Misc::TimeSyncResponse::SequenceIndex.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTogglePvP | ( | WorldPackets::Misc::TogglePvP & | packet | ) |
Definition at line 302 of file MiscHandler.cpp.
References PvPInfo::EndTimer, GameTime::GetGameTime(), GetPlayer(), PLAYER_FLAGS_IN_PVP, PLAYER_FLAGS_PVP_TIMER, Player::pvpInfo, Player::RemovePlayerFlag(), Player::SetPlayerFlag(), and Player::UpdatePvP().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTotemDestroyed | ( | WorldPackets::Totem::TotemDestroyed & | totemDestroyed | ) |
Definition at line 414 of file SpellHandler.cpp.
References _player, Creature::DespawnOrUnsummon(), ObjectAccessor::GetCreature(), BaseEntity::GetGUID(), Unit::IsCharmed(), ObjectGuid::IsEmpty(), Unit::IsTotem(), Unit::m_SummonSlot, MAX_TOTEM_SLOT, WorldPackets::Totem::TotemDestroyed::Slot, SUMMON_SLOT_TOTEM, and WorldPackets::Totem::TotemDestroyed::TotemGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleToyClearFanfare | ( | WorldPackets::Toy::ToyClearFanfare & | toyClearFanfare | ) |
Definition at line 98 of file ToyHandler.cpp.
References _collectionMgr, and WorldPackets::Toy::ToyClearFanfare::ItemID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTradeSkillSetFavorite | ( | WorldPackets::Spells::TradeSkillSetFavorite const & | tradeSkillSetFavorite | ) |
Definition at line 125 of file SkillHandler.cpp.
References _player, Player::HasSpell(), WorldPackets::Spells::TradeSkillSetFavorite::IsFavorite, WorldPackets::Spells::TradeSkillSetFavorite::RecipeID, and Player::SetSpellFavorite().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTrainerBuySpellOpcode | ( | WorldPackets::NPC::TrainerBuySpell & | packet | ) |
Definition at line 130 of file NPCHandler.cpp.
References _player, Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::PlayerTalkClass, Unit::RemoveAurasByType(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, WorldPackets::NPC::TrainerBuySpell::SpellID, TC_LOG_DEBUG, Trainer::Trainer::TeachSpell(), ObjectGuid::ToString(), Trainer, WorldPackets::NPC::TrainerBuySpell::TrainerGUID, WorldPackets::NPC::TrainerBuySpell::TrainerID, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRAINER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTrainerListOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 97 of file NPCHandler.cpp.
References Object::GetEntry(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Creature::GetTrainerId(), SendTrainerList(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, UNIT_NPC_FLAG_2_NONE, and UNIT_NPC_FLAG_TRAINER.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTraitsCommitConfig | ( | WorldPackets::Traits::TraitsCommitConfig const & | traitsCommitConfig | ) |
Definition at line 26 of file TraitHandler.cpp.
References _player, AsUnderlyingType(), CannotRefund, Combat, WorldPackets::Traits::TraitsCommitConfig::Config, WorldPackets::Traits::TraitConfig::Entries, Player::GetBattleground(), TraitTreeEntry::GetFlags(), Unit::GetSpellHistory(), Battleground::GetStatus(), Player::GetTraitConfig(), SpellHistory::HasCooldown(), WorldPackets::Traits::TraitConfig::ID, Unit::IsInCombat(), WorldPackets::Traits::TraitConfig::LocalIdentifier, TraitMgr::Ok, WorldPackets::Traits::TraitEntry::Rank, WorldPackets::Traits::TraitsCommitConfig::SavedConfigID, WorldPackets::Traits::TraitsCommitConfig::SavedLocalIdentifier, SendPacket(), TraitDefinitionEntry::SpellID, STATUS_IN_PROGRESS, sTraitDefinitionStore, sTraitNodeEntryStore, sTraitNodeStore, sTraitTreeStore, TALENT_FAILED_AFFECTING_COMBAT, TALENT_FAILED_CANT_REMOVE_TALENT, TALENT_FAILED_IN_PVP_MATCH, TALENT_FAILED_UNKNOWN, TraitNodeEntryEntry::TraitDefinitionID, TraitNodeEntry::TraitTreeID, WorldPackets::Traits::TraitConfig::Type, Player::UpdateTraitConfig(), TraitMgr::ValidateConfig(), TraitDefinitionEntry::VisibleSpellID, and WorldPackets::Traits::TraitConfigCommitFailed::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTransmogOutfitNew | ( | WorldPackets::Transmogrification::TransmogOutfitNew const & | transmogOutfitNew | ) |
Definition at line 330 of file TransmogrificationHandler.cpp.
References _player, CollectionMgr::AddTransmogOutfit(), TransmogOutfitEntryEntry::Cost, Player::CreateTransmogOutfit(), GetCollectionMgr(), TransmogMgr::GetNextOutfitToUnlock(), Player::GetNPCIfCanInteractWith(), GetPlayerInfo(), Player::HasEnoughMoney(), TransmogOutfitEntryEntry::ID, WorldPackets::Transmogrification::TransmogOutfitNew::Info, Interacting, Player::ModifyMoney(), WorldPackets::Transmogrification::TransmogOutfitNew::Npc, Outfit, PlayerPurchased, Unit::RemoveAurasWithInterruptFlags(), SendPacket(), WorldPackets::Transmogrification::TransmogOutfitDataInfo::SetType, WorldPackets::Transmogrification::TransmogOutfitNew::Source, TC_LOG_ERROR, WorldPackets::Transmogrification::TransmogOutfitNewEntryAdded::TransmogOutfitID, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRANSMOGRIFIER, and WorldPackets::Transmogrification::TransmogOutfitNewEntryAdded::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTransmogOutfitUpdateInfo | ( | WorldPackets::Transmogrification::TransmogOutfitUpdateInfo const & | transmogOutfitUpdateInfo | ) |
Definition at line 379 of file TransmogrificationHandler.cpp.
References _player, Player::ValuesUpdateForPlayerWithMaskSender::ActivePlayerMask, Player::GetNPCIfCanInteractWith(), GetPlayerInfo(), WorldPackets::Transmogrification::TransmogOutfitUpdateInfo::Info, Interacting, UF::HasChangesMask< Bits >::MarkChanged(), WorldPackets::Transmogrification::TransmogOutfitUpdateInfo::Npc, WorldPackets::Transmogrification::TransmogOutfitUpdateInfo::OutfitID, WorldPackets::Transmogrification::TransmogOutfitInfoUpdated::OutfitInfo, Unit::RemoveAurasWithInterruptFlags(), SendPacket(), TC_LOG_ERROR, WorldPackets::Transmogrification::TransmogOutfitInfoUpdated::TransmogOutfitID, UF::ActivePlayerData::TransmogOutfits, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRANSMOGRIFIER, Player::UpdateTransmogOutfit(), and WorldPackets::Transmogrification::TransmogOutfitInfoUpdated::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTransmogOutfitUpdateSituations | ( | WorldPackets::Transmogrification::TransmogOutfitUpdateSituations const & | transmogOutfitUpdateSituations | ) |
Definition at line 408 of file TransmogrificationHandler.cpp.
References _player, Player::ValuesUpdateForPlayerWithMaskSender::ActivePlayerMask, Player::GetNPCIfCanInteractWith(), GetPlayerInfo(), Interacting, Player::m_activePlayerData, UF::HasChangesMask< Bits >::MarkChanged(), WorldPackets::Transmogrification::TransmogOutfitUpdateSituations::Npc, WorldPackets::Transmogrification::TransmogOutfitUpdateSituations::OutfitID, Unit::RemoveAurasWithInterruptFlags(), SendPacket(), WorldPackets::Transmogrification::TransmogOutfitUpdateSituations::Situations, WorldPackets::Transmogrification::TransmogOutfitSituationsUpdated::Situations, WorldPackets::Transmogrification::TransmogOutfitUpdateSituations::SituationsEnabled, WorldPackets::Transmogrification::TransmogOutfitSituationsUpdated::SituationsEnabled, TC_LOG_ERROR, WorldPackets::Transmogrification::TransmogOutfitSituationsUpdated::TransmogOutfitID, UF::ActivePlayerData::TransmogOutfits, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRANSMOGRIFIER, Player::UpdateTransmogOutfitSituations(), TransmogMgr::ValidateSituations(), and WorldPackets::Transmogrification::TransmogOutfitSituationsUpdated::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTransmogOutfitUpdateSlots | ( | WorldPackets::Transmogrification::TransmogOutfitUpdateSlots const & | transmogOutfitUpdateSlots | ) |
Definition at line 448 of file TransmogrificationHandler.cpp.
References _player, CollectionMgr::AddItemAppearance(), Assigned, AsUnderlyingType(), UF::DynamicUpdateFieldBase< T >::begin(), WorldPackets::Transmogrification::TransmogOutfitUpdateSlots::Cost, UF::DynamicUpdateFieldBase< T >::end(), Player::EquipTransmogOutfit(), GetCollectionMgr(), Player::GetItemByGuid(), CollectionMgr::GetItemsProvidingTemporaryAppearance(), Unit::GetLevel(), Player::GetNPCIfCanInteractWith(), GetPlayerInfo(), Unit::GetRace(), TransmogMgr::GetSlotAndOption(), TransmogMgr::GetTransmogIllusionForSpellItemEnchantment(), Unit::HasAuraType(), Player::HasEnoughMoney(), TransmogOutfitEntryEntry::HasFlag(), CollectionMgr::HasItemAppearance(), Player::HasPlayerLocalFlag(), TransmogIllusionEntry::ID, Interacting, ItemModifiedAppearanceEntry::ItemID, Player::m_activePlayerData, Player::ModifyMoney(), WorldPackets::Transmogrification::TransmogOutfitUpdateSlots::Npc, WorldPackets::Transmogrification::TransmogOutfitUpdateSlots::OutfitID, TransmogOutfitEntryEntry::OverrideCostModifier, PLAYER_LOCAL_FLAG_FREE_TRANSMOG_CLAIMED, Unit::RemoveAurasWithInterruptFlags(), sChrRacesStore, sDB2Manager, SendPacket(), Player::SetHasClaimedFreeTransmog(), Player::SetPlayerLocalFlag(), sItemModifiedAppearanceStore, UF::TransmogOutfitData::Slots, WorldPackets::Transmogrification::TransmogOutfitUpdateSlots::Slots, WorldPackets::Transmogrification::TransmogOutfitSlotsUpdated::Slots, SPELL_AURA_MOD_TRANSMOG_OUTFIT_UPDATE_COST, sTransmogHolidayStore, sTransmogOutfitEntryStore, TC_LOG_ERROR, TransmogCost, WorldPackets::Transmogrification::TransmogOutfitSlotsUpdated::TransmogOutfitID, TransmogUpdate, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRANSMOGRIFIER, Player::UpdateTransmogOutfitSlots(), WorldPackets::Transmogrification::TransmogOutfitUpdateSlots::UseAvailableDiscount, UseOverrideCostModifier, TransmogMgr::ValidateSlots(), VoidVendorDiscount, and WorldPackets::Transmogrification::TransmogOutfitSlotsUpdated::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTransmogrifyItems | ( | WorldPackets::Transmogrification::TransmogrifyItems & | transmogrifyItems | ) |
Definition at line 29 of file TransmogrificationHandler.cpp.
References _player, CollectionMgr::AddItemAppearance(), AppearanceModifierSlotBySpec, Item::CanTransmogrifyItemWithItem(), Player::CanUseItem(), Item::ClearSoulboundTradeable(), WorldPackets::Transmogrification::TransmogrifyItems::CurrentSpecOnly, EQUIP_ERR_OK, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Player::GetActiveTalentGroup(), GetCollectionMgr(), Object::GetEntry(), BaseEntity::GetGUID(), ItemTemplate::GetInventoryType(), Player::GetItemByGuid(), Player::GetItemByPos(), CollectionMgr::GetItemsProvidingTemporaryAppearance(), Item::GetModifier(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Item::GetSellPrice(), Item::GetSlot(), Item::GetTemplate(), TransmogMgr::GetTransmogIllusionForSpellItemEnchantment(), Unit::HasAuraType(), Player::HasEnoughMoney(), CollectionMgr::HasItemAppearance(), IllusionModifierSlotBySpec, INVENTORY_SLOT_BAG_0, INVTYPE_SHOULDERS, ConditionMgr::IsPlayerMeetingCondition(), ITEM_CHANGED, ITEM_MODIFIER_ENCHANT_ILLUSION_ALL_SPECS, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_1, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_2, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_3, ITEM_MODIFIER_ENCHANT_ILLUSION_SPEC_4, ITEM_MODIFIER_TRANSMOG_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_APPEARANCE_SPEC_4, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_ALL_SPECS, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_1, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_2, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_3, ITEM_MODIFIER_TRANSMOG_SECONDARY_APPEARANCE_SPEC_4, ItemModifiedAppearanceEntry::ItemID, WorldPackets::Transmogrification::TransmogrifyItems::Items, Player::ModifyMoney(), WorldPackets::Transmogrification::TransmogrifyItems::Npc, SecondaryAppearanceModifierSlotBySpec, Item::SetModifier(), Item::SetNotRefundable(), Item::SetState(), Player::SetVisibleItemSlot(), sItemModifiedAppearanceStore, sObjectMgr, SPELL_AURA_REMOVE_TRANSMOG_COST, TC_LOG_DEBUG, ObjectGuid::ToString(), TransmogIllusionEntry::TransmogCost, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_TRANSMOGRIFIER, and TransmogIllusionEntry::UnlockConditionID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTurnInPetition | ( | WorldPackets::Petition::TurnInPetition & | packet | ) |
Definition at line 356 of file PetitionsHandler.cpp.
References _player, Guild::AddMember(), CharacterDatabase, CONFIG_MIN_PETITION_SIGNS, Guild::Create(), Player::DestroyItem(), ERR_GUILD_COMMAND_SUCCESS, ERR_GUILD_NAME_EXISTS_S, Item::GetBagSlot(), BaseEntity::GetGUID(), Player::GetGuildId(), Player::GetItemByGuid(), WorldObject::GetName(), Item::GetSlot(), GUILD_COMMAND_CREATE_GUILD, WorldPackets::Petition::TurnInPetition::Item, Petition::OwnerGuid, PETITION_TURN_ALREADY_IN_GUILD, PETITION_TURN_NEED_MORE_SIGNATURES, PETITION_TURN_OK, Petition::PetitionName, WorldPackets::Petition::TurnInPetitionResult::Result, Guild::SendCommandResult(), SendPacket(), sGuildMgr, Petition::Signatures, sPetitionMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), and WorldPackets::Petition::TurnInPetitionResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleTutorialFlag | ( | WorldPackets::Misc::TutorialSetFlag & | packet | ) |
Definition at line 1595 of file CharacterHandler.cpp.
References WorldPackets::Misc::TutorialSetFlag::Action, GetTutorialInt(), MAX_ACCOUNT_TUTORIAL_VALUES, SetTutorialInt(), TC_LOG_ERROR, TUTORIAL_ACTION_CLEAR, TUTORIAL_ACTION_RESET, TUTORIAL_ACTION_UPDATE, and WorldPackets::Misc::TutorialSetFlag::TutorialBit.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUiMapQuestLinesRequest | ( | WorldPackets::Quest::UiMapQuestLinesRequest & | uiMapQuestLinesRequest | ) |
Definition at line 815 of file QuestHandler.cpp.
References _player, Player::CanTakeQuest(), Player::GetQuestRewardStatus(), QuestMgr::GetQuestsForQuestLine(), UiMapEntry::ID, WorldPackets::Quest::UiMapQuestLinesResponse::QuestIDs, WorldPackets::Quest::UiMapQuestLinesResponse::QuestLineIDs, WorldPackets::Quest::UiMapQuestLinesResponse::QuestLineXQuestIDs, SendPacket(), sObjectMgr, sUiMapStore, WorldPackets::Quest::UiMapQuestLinesResponse::UiMapID, WorldPackets::Quest::UiMapQuestLinesRequest::UiMapID, and WorldPackets::Quest::UiMapQuestLinesResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUnacceptTradeOpcode | ( | WorldPackets::Trade::UnacceptTrade & | unacceptTrade | ) |
Definition at line 559 of file TradeHandler.cpp.
References _player, Player::GetTradeData(), and TradeData::SetAccepted().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUndeleteCooldownStatusCallback | ( | PreparedQueryResult | result | ) |
Definition at line 2799 of file CharacterHandler.cpp.
References CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_COOLDOWN, GameTime::GetGameTime(), SendUndeleteCooldownStatusResponse(), and sWorld.
| void WorldSession::HandleUnlearnSkillOpcode | ( | WorldPackets::Spells::UnlearnSkill & | packet | ) |
Definition at line 116 of file SkillHandler.cpp.
References SkillRaceClassInfoEntry::Flags, GetPlayer(), sDB2Manager, Player::SetSkill(), SKILL_FLAG_UNLEARNABLE, and WorldPackets::Spells::UnlearnSkill::SkillLine.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUnregisterAllAddonPrefixesOpcode | ( | WorldPackets::Chat::ChatUnregisterAllAddonPrefixes & | packet | ) |
Definition at line 1200 of file WorldSession.cpp.
References _registeredAddonPrefixes.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateAccountData | ( | WorldPackets::ClientConfig::UserClientUpdateAccountData & | packet | ) |
Definition at line 687 of file MiscHandler.cpp.
References WorldPackets::Timestamp< Underlying >::AsUnderlyingType(), WorldPackets::ClientConfig::UserClientUpdateAccountData::CompressedData, WorldPackets::ClientConfig::UserClientUpdateAccountData::DataType, WorldPackets::ClientConfig::UpdateAccountDataComplete::DataType, NUM_ACCOUNT_DATA_TYPES, WorldPackets::ClientConfig::UpdateAccountDataComplete::Player, WorldPackets::ClientConfig::UserClientUpdateAccountData::PlayerGuid, WorldPackets::ClientConfig::UpdateAccountDataComplete::Result, SendPacket(), SetAccountData(), WorldPackets::ClientConfig::UserClientUpdateAccountData::Size, TC_LOG_DEBUG, TC_LOG_ERROR, WorldPackets::ClientConfig::UserClientUpdateAccountData::Time, and WorldPackets::ClientConfig::UpdateAccountDataComplete::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateAreaTriggerVisual | ( | WorldPackets::AreaTrigger::UpdateAreaTriggerVisual const & | updateAreaTriggerVisual | ) |
Definition at line 593 of file SpellHandler.cpp.
References _player, ObjectAccessor::GetAreaTrigger(), AreaTrigger::GetCasterGuid(), Unit::GetCastSpellXSpellVisualId(), Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), AreaTrigger::m_areaTriggerData, AreaTrigger::SetSpellVisual(), sSpellMgr, and WorldPackets::AreaTrigger::UpdateAreaTriggerVisual::TargetGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateAuraVisual | ( | WorldPackets::Spells::UpdateAuraVisual const & | updateAuraVisual | ) |
Definition at line 574 of file SpellHandler.cpp.
References _player, Unit::GetAppliedAuras(), Unit::GetCastSpellXSpellVisualId(), Unit::GetChannelSpellId(), Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), ObjectAccessor::GetUnit(), SpellInfo::Id, Trinity::Containers::MapEqualRange(), Unit::SetChannelVisual(), WorldPackets::Spells::UpdateAuraVisual::SpellID, sSpellMgr, and WorldPackets::Spells::UpdateAuraVisual::TargetGUID.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateBankTabSettings | ( | WorldPackets::Bank::UpdateBankTabSettings const & | updateBankTabSettings | ) |
Definition at line 228 of file BankHandler.cpp.
References _player, Account, WorldPackets::Bank::UpdateBankTabSettings::Banker, WorldPackets::Bank::UpdateBankTabSettings::BankType, CanUseBank(), Character, WorldPackets::Bank::BankTabSettings::DepositFlags, WorldPackets::Bank::BankTabSettings::Description, BaseEntity::GetGUID(), WorldPackets::Bank::BankTabSettings::Icon, Player::m_activePlayerData, WorldPackets::Bank::BankTabSettings::Name, Player::SetAccountBankTabSettings(), Player::SetCharacterBankTabSettings(), WorldPackets::Bank::UpdateBankTabSettings::Settings, WorldPackets::Bank::UpdateBankTabSettings::Tab, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateMissileTrajectory | ( | WorldPackets::Spells::UpdateMissileTrajectory & | packet | ) |
Definition at line 558 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::UpdateMissileTrajectory::CastID, CMSG_MOVE_STOP, CURRENT_GENERIC_SPELL, WorldPackets::Spells::UpdateMissileTrajectory::FirePos, Unit::GetCurrentSpell(), ObjectAccessor::GetUnit(), WorldPackets::Spells::UpdateMissileTrajectory::Guid, HandleMovementOpcode(), SpellCastTargets::HasDst(), SpellCastTargets::HasSrc(), SpellInfo::Id, WorldPackets::Spells::UpdateMissileTrajectory::ImpactPos, Spell::m_castId, Spell::m_spellInfo, Spell::m_targets, SpellCastTargets::ModDst(), SpellCastTargets::ModSrc(), WorldPackets::Spells::UpdateMissileTrajectory::Pitch, SpellCastTargets::SetPitch(), SpellCastTargets::SetSpeed(), WorldPackets::Spells::UpdateMissileTrajectory::Speed, WorldPackets::Spells::UpdateMissileTrajectory::SpellID, and WorldPackets::Spells::UpdateMissileTrajectory::Status.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUpdateRaidTargetOpcode | ( | WorldPackets::Party::UpdateRaidTarget & | packet | ) |
Definition at line 422 of file GroupHandler.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), GetPlayer(), Group::IsAssistant(), WorldObject::IsHostileTo(), Group::IsLeader(), ObjectGuid::IsPlayer(), Group::isRaidGroup(), WorldPackets::Party::UpdateRaidTarget::PartyIndex, Group::SendTargetIconList(), Group::SetTargetIcon(), WorldPackets::Party::UpdateRaidTarget::Symbol, and WorldPackets::Party::UpdateRaidTarget::Target.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUseCritterItem | ( | WorldPackets::Item::UseCritterItem & | packet | ) |
Definition at line 1205 of file ItemHandler.cpp.
References _player, BattlePets::BattlePetMgr::AddPet(), Player::DestroyItem(), Item::GetBagSlot(), GetBattlePetMgr(), BattlePets::BattlePetMgr::GetBattlePetSpeciesBySpell(), BattlePets::BattlePetMgr::GetDefaultPetQuality(), Item::GetEffects(), Player::GetItemByGuid(), Item::GetSlot(), ITEM_SPELLTRIGGER_ON_LEARN, WorldPackets::Item::UseCritterItem::ItemGuid, BattlePets::BattlePetMgr::RollPetBreed(), and BattlePets::BattlePetMgr::SelectPetDisplay().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUseEquipmentSet | ( | WorldPackets::EquipmentSet::UseEquipmentSet & | useEquipmentSet | ) |
Definition at line 2102 of file CharacterHandler.cpp.
References _player, Player::CanEquipItem(), Player::CanStoreItem(), Player::CanUnequipItem(), WorldPackets::EquipmentSet::UseEquipmentSet::EquipmentSetItem::ContainerSlot, EQUIP_ERR_OK, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, Player::GetItemByGuid(), Player::GetItemByPos(), Item::GetPos(), WorldPackets::EquipmentSet::UseEquipmentSet::GUID, WorldPackets::EquipmentSet::UseEquipmentSetResult::GUID, INVENTORY_SLOT_BAG_0, Unit::IsInCombat(), WorldPackets::EquipmentSet::UseEquipmentSet::EquipmentSetItem::Item, WorldPackets::EquipmentSet::UseEquipmentSet::Items, NULL_BAG, NULL_SLOT, WorldPackets::EquipmentSet::UseEquipmentSetResult::Reason, Player::RemoveItem(), Player::SendEquipError(), SendPacket(), ObjectGuid::SetRawValue(), WorldPackets::EquipmentSet::UseEquipmentSet::EquipmentSetItem::Slot, Player::StoreItem(), Player::SwapItem(), TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::EquipmentSet::UseEquipmentSetResult::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUseItemOpcode | ( | WorldPackets::Spells::UseItem & | packet | ) |
Definition at line 49 of file SpellHandler.cpp.
References _player, Player::CanRequestSpellCast(), WorldPackets::Spells::UseItem::Cast, WorldPackets::Spells::SpellCastRequest::CastID, WorldPackets::Spells::UseItem::CastItem, Map::GetDifficultyID(), BaseEntity::GetGUID(), WorldObject::GetMap(), WorldPackets::Spells::UseItem::PackSlot, Player::RequestSpellCast(), Spell::SendCastResult(), WorldPackets::Spells::UseItem::Slot, SPELL_FAILED_SPELL_IN_PROGRESS, WorldPackets::Spells::SpellCastRequest::SpellID, sSpellMgr, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleUseToy | ( | WorldPackets::Toy::UseToy & | packet | ) |
Definition at line 54 of file ToyHandler.cpp.
References _collectionMgr, _player, WorldPackets::Toy::UseToy::Cast, CAST_FLAG_EX_USE_TOY_SPELL, WorldPackets::Spells::SpellCastRequest::CastID, WorldPackets::Spells::SpellPrepare::ClientCastID, Spell::Data, DIFFICULTY_NONE, ItemTemplate::Effects, Unit::isPossessing(), Spell::m_castFlagsEx, Spell::m_castId, Spell::m_castItemEntry, Spell::m_fromClient, Spell::m_misc, WorldPackets::Spells::SpellCastRequest::Misc, Spell::prepare(), Spell::Raw, SendPacket(), WorldPackets::Spells::SpellPrepare::ServerCastID, sObjectMgr, WorldPackets::Spells::SpellCastRequest::SpellID, sSpellMgr, TC_LOG_ERROR, TRIGGERED_NONE, and WorldPackets::Spells::SpellPrepare::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleViolenceLevel | ( | WorldPackets::Misc::ViolenceLevel & | violenceLevel | ) |
Definition at line 1100 of file MiscHandler.cpp.
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleWhoIsOpcode | ( | WorldPackets::Who::WhoIsRequest & | packet | ) |
Definition at line 819 of file MiscHandler.cpp.
References WorldPackets::Who::WhoIsResponse::AccountName, WorldPackets::Who::WhoIsRequest::CharName, ObjectAccessor::FindConnectedPlayerByName(), GetAccountId(), GetPlayer(), Player::GetSession(), Field::GetString(), HasPermission(), LANG_ACCOUNT_FOR_PLAYER_NOT_FOUND, LANG_NEED_CHARACTER_NAME, LANG_PLAYER_NOT_EXIST_OR_OFFLINE, LANG_YOU_NOT_HAVE_PERMISSION, LOGIN_SEL_ACCOUNT_WHOIS, LoginDatabase, normalizePlayerName(), rbac::RBAC_PERM_OPCODE_WHOIS, SendNotification(), SendPacket(), PreparedStatementBase::setUInt32(), TC_LOG_DEBUG, and WorldPackets::Who::WhoIsResponse::Write().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleWhoOpcode | ( | WorldPackets::Who::WhoRequestPkt & | whoRequest | ) |
Definition at line 86 of file MiscHandler.cpp.
References _player, WorldPackets::Who::WhoEntry::AreaID, WorldPackets::Who::WhoRequestPkt::Areas, WorldPackets::Who::WhoRequest::ClassFilter, CONFIG_GM_LEVEL_IN_WHO_LIST, CONFIG_MAX_WHO, WorldPackets::Array< T, N >::empty(), WorldPackets::Array< T, N >::end(), WorldPackets::Who::WhoResponse::Entries, BaseEntity::GetGUID(), GetSecurity(), Player::GetSession(), GetSessionDbcLocale(), Player::GetTeam(), GetVirtualRealmAddress(), WorldPackets::Who::WhoRequest::Guild, WorldPackets::Who::WhoEntry::GuildGUID, WorldPackets::Who::WhoEntry::GuildName, WorldPackets::Who::WhoEntry::GuildVirtualRealmAddress, WorldPackets::Who::WhoRequest::GuildVirtualRealmName, HasPermission(), Trinity::RaceMask< T, N >::HasRace(), WorldPackets::Query::PlayerGuidLookupData::Initialize(), WorldPackets::Who::WhoEntry::IsGM, AccountMgr::IsPlayerAccount(), MAX_LEVEL, WorldPackets::Who::WhoRequest::MaxLevel, WorldPackets::Who::WhoRequest::MinLevel, WorldPackets::Who::WhoRequest::Name, WorldPackets::Who::WhoEntry::PlayerData, WorldPackets::Who::WhoRequest::RaceFilter, Trinity::RaceMask< T, N >::RawValue, rbac::RBAC_PERM_TWO_SIDE_WHO_LIST, rbac::RBAC_PERM_WHO_SEE_ALL_SEC_LEVELS, WorldPackets::Who::WhoRequestPkt::Request, WorldPackets::Who::WhoResponsePkt::Response, sAreaTableStore, SendPacket(), WorldPackets::Array< T, N >::size(), STRONG_MAX_LEVEL, sWhoListStorageMgr, sWorld, TC_LOG_DEBUG, WorldPackets::Who::WhoRequestPkt::Token, WorldPackets::Who::WhoResponsePkt::Token, Utf8FitTo(), Utf8toWStr(), WorldPackets::Who::WhoRequest::VirtualRealmName, WorldPackets::Who::WhoRequest::Words, WorldPackets::Who::WhoResponsePkt::Write(), and wstrToLower().
Referenced by OpcodeTable::InitializeClientOpcodes().
| void WorldSession::HandleWrapItem | ( | WorldPackets::Item::WrapItem & | packet | ) |
Definition at line 778 of file ItemHandler.cpp.
References _player, CHAR_INS_CHAR_GIFT, CharacterDatabase, Player::DestroyItemCount(), EQUIP_ERR_CANT_WRAP_BAGS, EQUIP_ERR_CANT_WRAP_BOUND, EQUIP_ERR_CANT_WRAP_EQUIPPED, EQUIP_ERR_CANT_WRAP_STACKABLE, EQUIP_ERR_CANT_WRAP_UNIQUE, EQUIP_ERR_CANT_WRAP_WRAPPED, EQUIP_ERR_ITEM_NOT_FOUND, ObjectGuid::GetCounter(), Object::GetEntry(), Item::GetGiftCreator(), BaseEntity::GetGUID(), Player::GetItemByPos(), ItemTemplate::GetMaxCount(), Item::GetMaxStackCount(), Item::GetOwnerGUID(), Item::GetState(), Item::GetTemplate(), ItemTemplate::HasFlag(), WorldPackets::Item::WrapItem::Inv, Item::IsBag(), ObjectGuid::IsEmpty(), Item::IsEquipped(), Item::IsSoulBound(), ITEM_BLUE_RIBBONED_GIFT, ITEM_BLUE_RIBBONED_HOLIDAY_GIFT, ITEM_BLUE_RIBBONED_HOLIDAY_WRAPPING_PAPER, ITEM_BLUE_RIBBONED_WRAPPING_PAPER, ITEM_CHANGED, ITEM_EMPTY_WRAPPER, ITEM_FIELD_FLAG_WRAPPED, ITEM_FLAG_IS_WRAPPER, ITEM_GREEN_RIBBONED_HOLIDAY_GIFT, ITEM_GREEN_RIBBONED_WRAPPING_PAPER, ITEM_NEW, ITEM_PURPLE_RIBBONED_HOLIDAY_GIFT, ITEM_PURPLE_RIBBONED_WRAPPING_PAPER, ITEM_RED_RIBBONED_GIFT, ITEM_RED_RIBBONED_WRAPPING_PAPER, ITEM_WRAPPED_GIFT, WorldPackets::Item::InvUpdate::Items, Item::m_itemData, RemoveItemFromUpdateQueueOf(), Item::ReplaceAllItemFlags(), Item::SaveToDB(), Player::SendEquipError(), Object::SetEntry(), Item::SetGiftCreator(), Item::SetState(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::InitializeClientOpcodes().
| bool WorldSession::HasPermission | ( | uint32 | permissionId | ) |
Definition at line 1483 of file WorldSession.cpp.
References _RBACData, rbac::RBACData::GetId(), rbac::RBACData::GetName(), rbac::RBACData::HasPermission(), LoadPermissions(), sRealmList, and TC_LOG_DEBUG.
Referenced by ChatHandler::_ParseCommands(), InstanceScript::_SkipCheckRequiredBosses(), World::AddSession_(), Channel::Announce(), SocialMgr::BroadcastToFriendListers(), AuctionHouseObject::BuyCommodity(), Player::CanBeGameMaster(), Player::CanJoinToBattleground(), CanOpenMailBox(), AchievementMgr::CanUpdateCriteriaTree(), PlayerAchievementMgr::CompletedAchievement(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Player::GetStartLevel(), HandleAcceptTradeOpcode(), HandleAddFriendOpcode(), HandleAuctionPlaceBid(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), HandleCharCreateOpcode(), HandleCharCustomizeCallback(), HandleCharRaceOrFactionChangeCallback(), HandleCharRenameOpcode(), HandleChatCanLocalWhisperTargetRequest(), HandleChatMessage(), HandleCheckCharacterNameAvailability(), group_commandscript::HandleGroupReviveCommand(), HandleInitiateTradeOpcode(), HandleLogoutRequestOpcode(), HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), WorldSocket::HandlePing(), misc_commandscript::HandleReviveCommand(), misc_commandscript::HandleSaveCommand(), HandleSendMail(), tele_commandscript::HandleTeleCommand(), misc_commandscript::HandleUnstuckCommand(), HandleWhoIsOpcode(), HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), ChatHandler::HasPermission(), Channel::Invite(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), Channel::LeaveChannel(), Channel::List(), moveItems(), Channel::Password(), BlackMarketMgr::SendAuctionWonMail(), SendAuthResponse(), World::SendGlobalGMMessage(), World::SendGMText(), Channel::SetMode(), Channel::SetOwner(), Channel::UnBan(), Update(), and CriteriaHandler::UpdateCriteria().
| void WorldSession::InitializeSession | ( | ) |
Definition at line 1392 of file WorldSession.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), Character, CharacterDatabase, ERROR_INTERNAL, GetAccountId(), GetBattlenetAccountId(), InitializeSessionCallback(), Login, LoginDatabase, and SendAuthResponse().
Referenced by World::AddSession_(), and World::RemoveQueuedPlayer().
| void WorldSession::InitializeSessionCallback | ( | LoginDatabaseQueryHolder const & | holder, |
| CharacterDatabaseQueryHolder const & | realmHolder | ||
| ) |
Definition at line 1431 of file WorldSession.cpp.
References _battlePetMgr, _collectionMgr, _realmCharacterCounts, AccountInfoQueryHolder::BATTLE_PET_SLOTS, AccountInfoQueryHolder::BATTLE_PETS, CONFIG_CLIENTCACHE_VERSION, ObjectGuid::Empty, ERROR_OK, SQLQueryHolderBase::GetPreparedResult(), Field::GetUInt32(), Field::GetUInt8(), AccountInfoQueryHolderPerRealm::GLOBAL_ACCOUNT_DATA, AccountInfoQueryHolder::GLOBAL_ACCOUNT_HEIRLOOMS, AccountInfoQueryHolder::GLOBAL_ACCOUNT_TOYS, GLOBAL_CACHE_MASK, AccountInfoQueryHolder::GLOBAL_REALM_CHARACTER_COUNTS, AccountInfoQueryHolderPerRealm::INSTANCE_TIMES, AccountInfoQueryHolder::ITEM_APPEARANCES, AccountInfoQueryHolder::ITEM_FAVORITE_APPEARANCES, LoadAccountData(), LoadInstanceTimeRestrictions(), LoadPlayerDataAccount(), LoadTutorialsData(), m_inQueue, AccountInfoQueryHolder::MOUNTS, AccountInfoQueryHolder::PLAYER_DATA_ELEMENTS_ACCOUNT, AccountInfoQueryHolder::PLAYER_DATA_FLAGS_ACCOUNT, ResetTimeOutTime(), SendAccountDataTimes(), SendAuthResponse(), SendAuthWaitQueue(), SendAvailableHotfixes(), SendClientCacheVersion(), SendFeatureSystemStatusGlueScreen(), SendPacket(), SendSetTimeZoneInformation(), SendTutorialsData(), SetInQueue(), WorldPackets::Battlenet::ConnectionStatus::State, sWorld, AccountInfoQueryHolder::TRANSMOG_ILLUSIONS, AccountInfoQueryHolder::TRANSMOG_OUTFITS, AccountInfoQueryHolderPerRealm::TUTORIALS, AccountInfoQueryHolder::WARBAND_SCENES, and WorldPackets::Battlenet::ConnectionStatus::Write().
Referenced by InitializeSession().
| void WorldSession::InvalidateRBACData | ( | ) |
Definition at line 1495 of file WorldSession.cpp.
References _RBACData, rbac::RBACData::GetId(), rbac::RBACData::GetName(), sRealmList, and TC_LOG_DEBUG.
| bool WorldSession::IsAddonRegistered | ( | std::string_view | prefix | ) | const |
Definition at line 1192 of file WorldSession.cpp.
References _filterAddonMessages, _registeredAddonPrefixes, and advstd::ranges::contains.
Referenced by Group::BroadcastAddonMessagePacket(), Guild::BroadcastAddonToGuild(), and Player::WhisperAddon().
|
inline |
Definition at line 1217 of file WorldSession.h.
Referenced by RestMgr::SetRestBonus().
| bool WorldSession::IsConnectionIdle | ( | ) | const |
Definition at line 801 of file WorldSession.cpp.
References GameTime::GetGameTime(), m_inQueue, and m_timeOutTime.
Referenced by Update().
|
inlineprivate |
Definition at line 1988 of file WorldSession.h.
Referenced by HandleCharCustomizeOpcode(), HandleCharRaceOrFactionChangeOpcode(), HandleCharRenameOpcode(), and HandlePlayerLoginOpcode().
|
inline |
Is the user engaged in a log out process?
Definition at line 1043 of file WorldSession.h.
Referenced by HandleInitiateTradeOpcode(), send_commandscript::HandleSendMessageCommand(), AuraEffect::HandleStoreTeleportReturnPoint(), and Player::SaveToDB().
| void WorldSession::KickPlayer | ( | std::string_view | reason | ) |
Kick a player out of the World.
Definition at line 710 of file WorldSession.cpp.
References forceExit, GetPlayerInfo(), m_Socket, and TC_LOG_INFO.
Referenced by AbortLogin(), World::AddSession_(), World::BanCharacter(), AccountMgr::DeleteAccount(), DisallowHyperlinksAndMaybeKick(), WorldSession::DosProtection::EvaluateOpcode(), HandleCharCustomizeOpcode(), HandleCharRaceOrFactionChangeOpcode(), HandleCharRenameOpcode(), HandleContinuePlayerLogin(), HandleForceSpeedChangeAck(), misc_commandscript::HandleKickPlayerCommand(), HandleMoveSetModMovementForceMagnitudeAck(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), World::RemoveSession(), Update(), and ValidateHyperlinksAndMaybeKick().
| void WorldSession::LoadAccountData | ( | PreparedQueryResult | result, |
| uint32 | mask | ||
| ) |
Definition at line 865 of file WorldSession.cpp.
References _accountData, AccountData::Data, Field::GetInt64(), Field::GetString(), Field::GetUInt8(), GLOBAL_CACHE_MASK, NUM_ACCOUNT_DATA_TYPES, TC_LOG_ERROR, and AccountData::Time.
Referenced by HandlePlayerLogin(), and InitializeSessionCallback().
| void WorldSession::LoadInstanceTimeRestrictions | ( | PreparedQueryResult | result | ) |
Definition at line 979 of file WorldSession.cpp.
References _instanceResetTimes, and GameTime::GetSystemTime().
Referenced by InitializeSessionCallback().
| void WorldSession::LoadPermissions | ( | ) |
Definition at line 1249 of file WorldSession.cpp.
References _accountName, _RBACData, GetAccountId(), GetSecurity(), rbac::RBACData::LoadFromDB(), sRealmList, and TC_LOG_DEBUG.
Referenced by HasPermission().
| QueryCallback WorldSession::LoadPermissionsAsync | ( | ) |
Definition at line 1261 of file WorldSession.cpp.
References _accountName, _RBACData, GetAccountId(), GetSecurity(), rbac::RBACData::LoadFromDBAsync(), sRealmList, and TC_LOG_DEBUG.
Referenced by WorldSocket::HandleAuthSessionCallback().
| void WorldSession::LoadPlayerDataAccount | ( | PreparedQueryResult const & | elementsResult, |
| PreparedQueryResult const & | flagsResult | ||
| ) |
Definition at line 1039 of file WorldSession.cpp.
References _playerDataAccount, DEFINE_FIELD_ACCESSOR_CACHE_ANONYMOUS, WorldSession::PlayerDataAccount::Elements, Trinity::Containers::EnsureWritableVectorIndex(), WorldSession::PlayerDataAccount::Flags, Float, WorldSession::PlayerDataAccount::Element::FloatValue, PlayerDataElementAccountEntry::GetType(), PlayerDataElementAccountEntry::ID, WorldSession::PlayerDataAccount::Element::Id, Int64, WorldSession::PlayerDataAccount::Element::Int64Value, WorldSession::PlayerDataAccount::Element::NeedSave, and sPlayerDataElementAccountStore.
Referenced by InitializeSessionCallback().
| void WorldSession::LoadTutorialsData | ( | PreparedQueryResult | result | ) |
Definition at line 939 of file WorldSession.cpp.
References _tutorials, _tutorialsChanged, MAX_ACCOUNT_TUTORIAL_VALUES, and TUTORIALS_FLAG_LOADED_FROM_DB.
Referenced by InitializeSessionCallback().
| void WorldSession::LogoutPlayer | ( | bool | save | ) |
Log the player out
Send update to group and reset stored max enchanting level
Broadcast a logout message to the player's friends
Call script hook before deletion
Remove the player from the world
Pointer already deleted during RemovePlayerFromMap
Send the 'logout complete' packet to the client Client will respond by sending 3x CMSG_CANCEL_TRADE, which we currently dont handle
Since each account can only have one online character at any given time, ensure all characters for active account are marked as offline
Definition at line 557 of file WorldSession.cpp.
References _battlePetMgr, _player, BATTLEGROUND_QUEUE_NONE, Player::BuildPlayerRepop(), BUYBACK_SLOT_END, BUYBACK_SLOT_START, CHAR_UPD_ACCOUNT_ONLINE, CharacterDatabase, Player::CleanupChannels(), Player::CleanupsBeforeDelete(), Player::ClearWhisperWhiteList(), Unit::CombatStop(), CONNECTION_TYPE_INSTANCE, DoLootReleaseAll(), ObjectGuid::Empty, Unit::ExitAllAreaTriggers(), Player::FailQuestsWithFlag(), WorldObject::FindMap(), FRIEND_OFFLINE, GetAccountId(), Player::GetBattleground(), Player::GetBattlegroundQueueTypeId(), Player::GetDeathTimer(), Player::GetGroup(), BaseEntity::GetGUID(), Player::GetGuildId(), Unit::GetLevel(), Player::GetLootGUID(), WorldObject::GetName(), GetRemoteAddress(), Player::GetXP(), Player::GetXPForNextLevel(), WorldObject::GetZoneId(), HandleMoveWorldportAck(), Unit::HasAuraType(), Player::HasPendingBind(), Player::IsBeingTeleportedFar(), ObjectGuid::IsEmpty(), Player::KillPlayer(), m_playerLogout, m_playerRecentlyLogout, m_playerSave, m_Socket, PET_SAVE_AS_CURRENT, PLAYER_MAX_BATTLEGROUND_QUEUES, QUEST_FLAGS_FAIL_ON_LOGOUT, Unit::RemoveAurasByType(), Player::RemoveBattlegroundQueueId(), Player::RemovePet(), BattlegroundQueue::RemovePlayer(), Player::RemoveSocial(), Player::RepopAtGraveyard(), Player::SaveToDB(), sBattlegroundMgr, SendPacket(), Player::SetBuybackPrice(), Player::SetBuybackTimestamp(), BaseEntity::SetDestroyedObject(), Player::SetInvSlot(), SetLogoutStartTime(), Player::SetPendingBind(), SetPlayer(), PreparedStatementBase::setUInt32(), sGuildMgr, sOutdoorPvPMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_SPIRIT_OF_REDEMPTION, sScriptMgr, sSocialMgr, TC_LOG_DEBUG, TC_LOG_INFO, TC_METRIC_EVENT, ObjectGuid::ToString(), and Player::UninviteFromGroup().
Referenced by AccountMgr::DeleteAccount(), HandleLogoutRequestOpcode(), HandleMoveWorldportAck(), HandleObjectUpdateFailedOpcode(), Update(), and ~WorldSession().
|
private |
Logging helper for unexpected opcodes.
Definition at line 334 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by Update().
| void WorldSession::LogUnprocessedTail | ( | WorldPacket const * | packet | ) |
Logging helper for unexpected opcodes.
Definition at line 341 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), LOG_LEVEL_TRACE, ByteBuffer::print_storage(), ByteBuffer::rpos(), sLog, TC_LOG_TRACE, and ByteBuffer::wpos().
| bool WorldSession::MeetsChrCustomizationReq | ( | ChrCustomizationReqEntry const * | req, |
| Races | race, | ||
| Classes | playerClass, | ||
| bool | checkRequiredDependentChoices, | ||
| Trinity::IteratorPair< UF::ChrCustomizationChoice const * > | selectedChoices | ||
| ) | const |
Definition at line 547 of file CharacterHandler.cpp.
References _player, ChrCustomizationReqEntry::AchievementID, Trinity::IteratorPair< iterator, end_iterator >::begin(), ChrCustomizationReqEntry::ClassMask, Trinity::IteratorPair< iterator, end_iterator >::end(), GetCollectionMgr(), ChrCustomizationReqEntry::GetFlags(), Trinity::RaceMask< T, N >::HasRace(), HasRequirements, ChrCustomizationReqEntry::ID, Trinity::RaceMask< T, N >::IsEmpty(), Player::IsQuestRewarded(), ChrCustomizationReqEntry::ItemModifiedAppearanceID, ChrCustomizationReqEntry::QuestID, RACE_NONE, ChrCustomizationReqEntry::RaceMask, and sDB2Manager.
Referenced by HandleAlterAppearance(), modify_commandscript::HandleModifyGenderCommand(), and ValidateAppearance().
Definition at line 109 of file TradeHandler.cpp.
References _player, Player::CanStoreItem(), EQUIP_ERR_OK, GetAccountId(), Item::GetCount(), ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), WorldObject::GetName(), Player::GetSession(), Item::GetTemplate(), Player::GetTotalPlayedTime(), Player::GetTrader(), HasPermission(), Item::m_itemData, Player::MoveItemToInventory(), NULL_BAG, NULL_SLOT, rbac::RBAC_PERM_LOG_GM_TRADE, Item::SetCreatePlayedTime(), sLog, TC_LOG_DEBUG, TC_LOG_ERROR, and TRADE_SLOT_TRADED_COUNT.
Referenced by HandleAcceptTradeOpcode().
|
privatedelete |
| bool WorldSession::PlayerDisconnected | ( | ) | const |
Definition at line 190 of file WorldSession.cpp.
References CONNECTION_TYPE_INSTANCE, CONNECTION_TYPE_REALM, and m_Socket.
Referenced by lfg::LFGPlayerScript::OnLogout().
|
inline |
Definition at line 988 of file WorldSession.h.
Referenced by AbortLogin(), PlayerAchievementMgr::CompletedAchievement(), WorldSocket::HandleConnectToFailed(), HandleContinuePlayerLogin(), HandlePlayerLoginOpcode(), Player::IsLoading(), ReputationMgr::SendVisible(), and Player::SetMoney().
|
inline |
Definition at line 989 of file WorldSession.h.
Referenced by OutdoorPvP::HandlePlayerLeaveZone(), BattlefieldWG::OnPlayerLeaveWar(), SendCancelTrade(), Group::SendUpdateToPlayer(), and Player::TeleportTo().
|
inline |
Definition at line 990 of file WorldSession.h.
|
inline |
Definition at line 991 of file WorldSession.h.
Referenced by SendCancelTrade().
|
private |
Definition at line 1227 of file WorldSession.cpp.
References _queryHolderProcessor, _queryProcessor, _transactionCallbacks, and AsyncCallbackProcessor< T >::ProcessReadyCallbacks().
Referenced by Update().
| void WorldSession::QueuePacket | ( | WorldPacket && | new_packet | ) |
Add an incoming packet to the queue.
Definition at line 328 of file WorldSession.cpp.
References _recvQueue, and LockedQueue< T, StorageType >::add().
Referenced by WorldSocket::ReadDataHandler().
| void WorldSession::RegisterTimeSync | ( | uint32 | counter | ) |
Definition at line 1829 of file WorldSession.cpp.
References _pendingTimeSyncRequests, and getMSTime().
Referenced by HandleContinuePlayerLogin(), Map::SendInitSelf(), and SendTimeSync().
| void WorldSession::ResetTimeOutTime | ( | bool | onlyActive | ) |
Definition at line 793 of file WorldSession.cpp.
References CONFIG_SOCKET_TIMEOUTTIME, CONFIG_SOCKET_TIMEOUTTIME_ACTIVE, GameTime::GetGameTime(), GetPlayer(), m_timeOutTime, and sWorld.
Referenced by WorldSocket::HandleKeepAlive(), InitializeSessionCallback(), WorldSocket::ReadDataHandler(), and World::RemoveQueuedPlayer().
| void WorldSession::ResetTimeSync | ( | ) |
Definition at line 1810 of file WorldSession.cpp.
References _pendingTimeSyncRequests, and _timeSyncNextCounter.
Referenced by Player::SendInitialPacketsBeforeAddToMap().
| void WorldSession::SaveInstanceTimeRestrictions | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 994 of file WorldSession.cpp.
References _instanceResetTimes, CHAR_DEL_ACCOUNT_INSTANCE_LOCK_TIMES, CHAR_INS_ACCOUNT_INSTANCE_LOCK_TIMES, CharacterDatabase, GetAccountId(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt64().
Referenced by Player::SaveToDB().
| void WorldSession::SavePlayerDataAccount | ( | LoginDatabaseTransaction const & | transaction | ) |
Definition at line 1080 of file WorldSession.cpp.
References _playerDataAccount, WorldSession::PlayerDataAccount::Elements, WorldSession::PlayerDataAccount::Flags, Float, GetBattlenetAccountId(), PlayerDataElementAccountEntry::GetType(), Int64, LOGIN_DEL_BNET_PLAYER_DATA_ELEMENTS_ACCOUNT, LOGIN_DEL_BNET_PLAYER_DATA_FLAGS_ACCOUNT, LOGIN_INS_BNET_PLAYER_DATA_ELEMENTS_ACCOUNT, LOGIN_INS_BNET_PLAYER_DATA_FLAGS_ACCOUNT, LoginDatabase, WorldSession::PlayerDataAccount::Flag::NeedSave, PreparedStatementBase::setFloat(), PreparedStatementBase::setInt64(), PreparedStatementBase::setNull(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sPlayerDataElementAccountStore, and WorldSession::PlayerDataAccount::Flag::Value.
Referenced by Player::SaveToDB().
| void WorldSession::SaveTutorialsData | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 960 of file WorldSession.cpp.
References _tutorials, _tutorialsChanged, CHAR_INS_TUTORIALS, CHAR_UPD_TUTORIALS, CharacterDatabase, GetAccountId(), MAX_ACCOUNT_TUTORIAL_VALUES, PreparedStatementBase::setUInt32(), TUTORIALS_FLAG_CHANGED, and TUTORIALS_FLAG_LOADED_FROM_DB.
Referenced by Player::SaveToDB().
| void WorldSession::SendAccountDataTimes | ( | ObjectGuid | playerGuid, |
| uint32 | mask | ||
| ) |
Definition at line 927 of file WorldSession.cpp.
References WorldPackets::ClientConfig::AccountDataTimes::AccountTimes, GetAccountData(), GameTime::GetSystemTime(), NUM_ACCOUNT_DATA_TYPES, WorldPackets::ClientConfig::AccountDataTimes::PlayerGuid, SendPacket(), WorldPackets::ClientConfig::AccountDataTimes::ServerTime, AccountData::Time, and WorldPackets::ClientConfig::AccountDataTimes::Write().
Referenced by HandlePlayerLogin(), and InitializeSessionCallback().
| void WorldSession::SendActivateTaxiReply | ( | ActivateTaxiReply | reply | ) |
Definition at line 211 of file TaxiHandler.cpp.
References WorldPackets::Taxi::ActivateTaxiReply::Reply, SendPacket(), and WorldPackets::Taxi::ActivateTaxiReply::Write().
Referenced by Player::ActivateTaxiPathTo(), and HandleActivateTaxiOpcode().
| void WorldSession::SendAuctionClosedNotification | ( | AuctionPosting const * | auction, |
| float | mailDelay, | ||
| bool | sold | ||
| ) |
Definition at line 1028 of file AuctionHouseHandler.cpp.
References WorldPackets::AuctionHouse::AuctionClosedNotification::Info, WorldPackets::AuctionHouse::AuctionOwnerNotification::Initialize(), WorldPackets::AuctionHouse::AuctionClosedNotification::ProceedsMailDelay, SendPacket(), WorldPackets::AuctionHouse::AuctionClosedNotification::Sold, and WorldPackets::AuctionHouse::AuctionClosedNotification::Write().
Referenced by AuctionHouseObject::SendAuctionExpired(), and AuctionHouseObject::SendAuctionSold().
| void WorldSession::SendAuctionCommandResult | ( | uint32 | auctionId, |
| AuctionCommand | command, | ||
| AuctionResult | errorCode, | ||
| Milliseconds | delayForNextAction, | ||
| InventoryResult | bagResult = InventoryResult(0) |
||
| ) |
Notifies the client of the result of his last auction operation. It is called when the player bids, creates, or deletes an auction.
| auctionId | The relevant auction id |
| command | The action that was performed. |
| errorCode | The resulting error code. |
| bagResult | (Optional) InventoryResult. |
Definition at line 1017 of file AuctionHouseHandler.cpp.
References AsUnderlyingType(), WorldPackets::AuctionHouse::AuctionCommandResult::AuctionID, WorldPackets::AuctionHouse::AuctionCommandResult::BagResult, WorldPackets::AuctionHouse::AuctionCommandResult::Command, WorldPackets::AuctionHouse::AuctionCommandResult::DesiredDelay, WorldPackets::AuctionHouse::AuctionCommandResult::ErrorCode, SendPacket(), and WorldPackets::AuctionHouse::AuctionCommandResult::Write().
Referenced by AuctionHouseObject::BuyCommodity(), AuctionHouseMgr::CheckThrottle(), HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), HandleAuctionSellCommodity(), and HandleAuctionSellItem().
| void WorldSession::SendAuctionFavoriteList | ( | ) |
Definition at line 578 of file AuctionHouseHandler.cpp.
References _player, AsyncCallbackProcessor< T >::AddCallback(), WorldPackets::AuctionHouse::AuctionFavoriteInfo::BattlePetSpeciesID, CHAR_SEL_CHARACTER_FAVORITE_AUCTIONS, CharacterDatabase, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetQueryProcessor(), Field::GetUInt32(), WorldPackets::AuctionHouse::AuctionFavoriteInfo::ItemID, WorldPackets::AuctionHouse::AuctionFavoriteInfo::ItemLevel, WorldPackets::AuctionHouse::AuctionFavoriteList::Items, WorldPackets::AuctionHouse::AuctionFavoriteInfo::Order, SendPacket(), PreparedStatementBase::setUInt64(), WorldPackets::AuctionHouse::AuctionFavoriteInfo::SuffixItemNameDescriptionID, and WorldPackets::AuctionHouse::AuctionFavoriteList::Write().
Referenced by HandlePlayerLogin().
| void WorldSession::SendAuctionHello | ( | ObjectGuid | guid, |
| Unit const * | unit | ||
| ) |
Definition at line 996 of file AuctionHouseHandler.cpp.
References Auctioneer, WorldPackets::AuctionHouse::AuctionHelloResponse::Auctioneer, WorldPackets::AuctionHouse::AuctionHelloResponse::AuctionHouseID, CONFIG_AUCTION_LEVEL_REQ, AuctionHouseMgr::GetAuctionHouseEntry(), Unit::GetFaction(), GetPlayer(), GetTrinityString(), AuctionHouseEntry::ID, LANG_AUCTION_REQ, WorldPackets::AuctionHouse::AuctionHelloResponse::OpenForBusiness, Player::PlayerTalkClass, SendNotification(), SendPacket(), sWorld, and WorldPackets::AuctionHouse::AuctionHelloResponse::Write().
Referenced by HandleAuctionHelloOpcode(), and Player::OnGossipSelect().
| void WorldSession::SendAuctionOwnerBidNotification | ( | AuctionPosting const * | auction | ) |
Definition at line 1037 of file AuctionHouseHandler.cpp.
References AuctionPosting::Bidder, WorldPackets::AuctionHouse::AuctionOwnerBidNotification::Bidder, AuctionPosting::CalculateMinIncrement(), WorldPackets::AuctionHouse::AuctionOwnerBidNotification::Info, WorldPackets::AuctionHouse::AuctionOwnerNotification::Initialize(), WorldPackets::AuctionHouse::AuctionOwnerBidNotification::MinIncrement, SendPacket(), and WorldPackets::AuctionHouse::AuctionOwnerBidNotification::Write().
Definition at line 33 of file AuthHandler.cpp.
References DISABLE_TYPE_MAP, ERROR_OK, GetAccountExpansion(), GetExpansion(), GameTime::GetGameTime(), HasPermission(), DisableMgr::IsDisabledFor(), rbac::RBAC_PERM_USE_CHARACTER_TEMPLATES, WorldPackets::Auth::AuthResponse::Result, sCharacterTemplateDataStore, SendPacket(), sObjectMgr, sRealmList, WorldPackets::Auth::AuthResponse::SuccessInfo, WorldPackets::Auth::AuthResponse::WaitInfo, and WorldPackets::Auth::AuthResponse::Write().
Referenced by World::AddQueuedPlayer(), InitializeSession(), and InitializeSessionCallback().
| void WorldSession::SendAuthWaitQueue | ( | uint32 | position | ) |
Handle the authentication waiting queue (to be completed)
Definition at line 73 of file AuthHandler.cpp.
References WorldPackets::Auth::AuthWaitInfo::HasFCM, SendPacket(), WorldPackets::Auth::AuthWaitInfo::WaitCount, WorldPackets::Auth::WaitQueueUpdate::WaitInfo, WorldPackets::Auth::AuthWaitInfo::WaitTime, and WorldPackets::Auth::WaitQueueUpdate::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendAvailableHotfixes | ( | ) |
Definition at line 59 of file HotfixHandler.cpp.
References GetSessionDbcLocale(), GetVirtualRealmAddress(), WorldPackets::Hotfix::AvailableHotfixes::Hotfixes, sDB2Manager, SendPacket(), WorldPackets::Hotfix::AvailableHotfixes::VirtualRealmAddress, and WorldPackets::Hotfix::AvailableHotfixes::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendAzeriteRespecNPC | ( | ObjectGuid | npc | ) |
Definition at line 238 of file AzeriteHandler.cpp.
References AzeriteRespec, WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
| void WorldSession::SendBattlenetRequest | ( | uint32 | serviceHash, |
| uint32 | methodId, | ||
| pb::Message const * | request | ||
| ) |
Definition at line 74 of file BattlenetHandler.cpp.
References _battlenetRequestToken, WorldPackets::Battlenet::Notification::Data, ByteBuffer::data(), MAKE_PAIR64(), WorldPackets::Battlenet::Notification::Method, WorldPackets::Battlenet::MethodCall::ObjectId, ByteBuffer::resize(), SendPacket(), WorldPackets::Battlenet::MethodCall::Token, WorldPackets::Battlenet::MethodCall::Type, and WorldPackets::Battlenet::Notification::Write().
| void WorldSession::SendBattlenetRequest | ( | uint32 | serviceHash, |
| uint32 | methodId, | ||
| pb::Message const * | request, | ||
| std::function< void(MessageBuffer)> | callback | ||
| ) |
Definition at line 68 of file BattlenetHandler.cpp.
References _battlenetRequestToken, _battlenetResponseCallbacks, and SendBattlenetRequest().
Referenced by SendBattlenetRequest(), Battlenet::WorldserverService< T >::SendRequest(), and Battlenet::WorldserverService< T >::SendRequest().
| void WorldSession::SendBattlenetResponse | ( | uint32 | serviceHash, |
| uint32 | methodId, | ||
| uint32 | token, | ||
| pb::Message const * | response | ||
| ) |
Definition at line 40 of file BattlenetHandler.cpp.
References WorldPackets::Battlenet::Response::BnetStatus, WorldPackets::Battlenet::Response::Data, ByteBuffer::data(), ERROR_OK, MAKE_PAIR64(), WorldPackets::Battlenet::Response::Method, WorldPackets::Battlenet::MethodCall::ObjectId, ByteBuffer::resize(), SendPacket(), WorldPackets::Battlenet::MethodCall::Token, WorldPackets::Battlenet::MethodCall::Type, and WorldPackets::Battlenet::Response::Write().
Referenced by Battlenet::WorldserverService< T >::SendResponse(), and Battlenet::WorldserverService< T >::SendResponse().
| void WorldSession::SendBattlenetResponse | ( | uint32 | serviceHash, |
| uint32 | methodId, | ||
| uint32 | token, | ||
| uint32 | status | ||
| ) |
Definition at line 57 of file BattlenetHandler.cpp.
References WorldPackets::Battlenet::Response::BnetStatus, MAKE_PAIR64(), WorldPackets::Battlenet::Response::Method, WorldPackets::Battlenet::MethodCall::ObjectId, SendPacket(), WorldPackets::Battlenet::MethodCall::Token, WorldPackets::Battlenet::MethodCall::Type, and WorldPackets::Battlenet::Response::Write().
| void WorldSession::SendBindPoint | ( | Creature * | npc | ) |
Definition at line 335 of file NPCHandler.cpp.
References _player, WorldObject::CastSpell(), GetPlayer(), and Player::PlayerTalkClass.
Referenced by HandleBinderActivateOpcode().
| void WorldSession::SendBlackMarketBidOnItemResult | ( | int32 | result, |
| int32 | marketId, | ||
| WorldPackets::Item::ItemInstance & | item | ||
| ) |
Definition at line 128 of file BlackMarketHandler.cpp.
References WorldPackets::BlackMarket::BlackMarketBidOnItemResult::Item, WorldPackets::BlackMarket::BlackMarketBidOnItemResult::MarketID, WorldPackets::BlackMarket::BlackMarketBidOnItemResult::Result, SendPacket(), and WorldPackets::BlackMarket::BlackMarketBidOnItemResult::Write().
Referenced by HandleBlackMarketBidOnItem().
| void WorldSession::SendBlackMarketOpenResult | ( | ObjectGuid | guid, |
| Creature * | auctioneer | ||
| ) |
Definition at line 43 of file BlackMarketHandler.cpp.
References BlackMarketAuctioneer, WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, sBlackMarketMgr, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
Referenced by HandleBlackMarketOpen().
| void WorldSession::SendBlackMarketOutbidNotification | ( | BlackMarketTemplate const * | templ | ) |
Definition at line 149 of file BlackMarketHandler.cpp.
References BlackMarketTemplate::Item, WorldPackets::BlackMarket::BlackMarketOutbid::Item, BlackMarketTemplate::MarketID, WorldPackets::BlackMarket::BlackMarketOutbid::MarketID, WorldPackets::BlackMarket::BlackMarketOutbid::RandomPropertiesID, SendPacket(), and WorldPackets::BlackMarket::BlackMarketOutbid::Write().
Referenced by BlackMarketMgr::SendAuctionOutbidMail().
| void WorldSession::SendBlackMarketWonNotification | ( | BlackMarketEntry const * | entry, |
| Item const * | item | ||
| ) |
Definition at line 139 of file BlackMarketHandler.cpp.
References BlackMarketEntry::GetMarketId(), WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::BlackMarket::BlackMarketWon::Item, WorldPackets::BlackMarket::BlackMarketWon::MarketID, SendPacket(), and WorldPackets::BlackMarket::BlackMarketWon::Write().
Referenced by BlackMarketMgr::SendAuctionWonMail().
| void WorldSession::SendCalendarRaidLockoutAdded | ( | InstanceLock const * | lock | ) |
Definition at line 557 of file CalendarHandler.cpp.
References WorldPackets::Calendar::CalendarRaidLockoutAdded::DifficultyID, InstanceLock::GetDifficultyId(), InstanceLock::GetEffectiveExpiryTime(), InstanceLock::GetInstanceId(), InstanceLock::GetMapId(), GameTime::GetSystemTime(), GameTime::GetWowTime(), WorldPackets::Calendar::CalendarRaidLockoutAdded::InstanceID, WorldPackets::Calendar::CalendarRaidLockoutAdded::MapID, SendPacket(), WorldPackets::Calendar::CalendarRaidLockoutAdded::ServerTime, WorldPackets::Calendar::CalendarRaidLockoutAdded::TimeRemaining, and WorldPackets::Calendar::CalendarRaidLockoutAdded::Write().
Referenced by InstanceMap::CreateInstanceLockForPlayer(), InstanceMap::UpdateInstanceLock(), and InstanceMap::UpdateInstanceLock().
| void WorldSession::SendCalendarRaidLockoutRemoved | ( | InstanceLock const * | lock | ) |
Definition at line 568 of file CalendarHandler.cpp.
References WorldPackets::Calendar::CalendarRaidLockoutRemoved::DifficultyID, InstanceLock::GetDifficultyId(), InstanceLock::GetInstanceId(), InstanceLock::GetMapId(), WorldPackets::Calendar::CalendarRaidLockoutRemoved::InstanceID, WorldPackets::Calendar::CalendarRaidLockoutRemoved::MapID, SendPacket(), and WorldPackets::Calendar::CalendarRaidLockoutRemoved::Write().
| void WorldSession::SendCancelTrade | ( | TradeStatus | status | ) |
Definition at line 580 of file TradeHandler.cpp.
References PlayerLogout(), PlayerRecentlyLoggedOut(), SendTradeStatus(), and WorldPackets::Trade::TradeStatus::Status.
Referenced by Player::TradeCancel().
| void WorldSession::SendCharCreate | ( | ResponseCodes | result, |
| ObjectGuid const & | guid = ObjectGuid::Empty |
||
| ) |
Definition at line 2936 of file CharacterHandler.cpp.
References WorldPackets::Character::CreateChar::Code, WorldPackets::Character::CreateChar::Guid, SendPacket(), and WorldPackets::Character::CreateChar::Write().
Referenced by HandleCharCreateOpcode().
| void WorldSession::SendCharCustomize | ( | ResponseCodes | result, |
| WorldPackets::Character::CharCustomizeInfo const * | customizeInfo | ||
| ) |
Definition at line 2964 of file CharacterHandler.cpp.
References WorldPackets::Character::CharCustomizeInfo::CharGUID, WorldPackets::Character::CharCustomizeFailure::CharGUID, RESPONSE_SUCCESS, WorldPackets::Character::CharCustomizeFailure::Result, SendPacket(), WorldPackets::Character::CharCustomizeSuccess::Write(), and WorldPackets::Character::CharCustomizeFailure::Write().
Referenced by HandleCharCustomizeCallback().
| void WorldSession::SendCharDelete | ( | ResponseCodes | result | ) |
Definition at line 2945 of file CharacterHandler.cpp.
References WorldPackets::Character::DeleteChar::Code, SendPacket(), and WorldPackets::Character::DeleteChar::Write().
Referenced by HandleCharDeleteOpcode().
| void WorldSession::SendCharFactionChange | ( | ResponseCodes | result, |
| WorldPackets::Character::CharRaceOrFactionChangeInfo const * | factionChangeInfo | ||
| ) |
Definition at line 2980 of file CharacterHandler.cpp.
References WorldPackets::Character::CharRaceOrFactionChangeInfo::Customizations, WorldPackets::Character::CharFactionChangeResult::Display, WorldPackets::Character::CharRaceOrFactionChangeInfo::Guid, WorldPackets::Character::CharFactionChangeResult::Guid, WorldPackets::Character::CharRaceOrFactionChangeInfo::Name, WorldPackets::Character::CharRaceOrFactionChangeInfo::RaceID, RESPONSE_SUCCESS, WorldPackets::Character::CharFactionChangeResult::Result, SendPacket(), WorldPackets::Character::CharRaceOrFactionChangeInfo::SexID, and WorldPackets::Character::CharFactionChangeResult::Write().
Referenced by HandleCharRaceOrFactionChangeCallback().
| void WorldSession::SendCharRename | ( | ResponseCodes | result, |
| WorldPackets::Character::CharacterRenameInfo const * | renameInfo | ||
| ) |
Definition at line 2953 of file CharacterHandler.cpp.
References WorldPackets::Character::CharacterRenameInfo::Guid, WorldPackets::Character::CharacterRenameResult::Guid, WorldPackets::Character::CharacterRenameResult::Name, WorldPackets::Character::CharacterRenameInfo::NewName, RESPONSE_SUCCESS, WorldPackets::Character::CharacterRenameResult::Result, SendPacket(), and WorldPackets::Character::CharacterRenameResult::Write().
Referenced by HandleCharRenameCallBack(), and HandleCharRenameOpcode().
| void WorldSession::SendChatPlayerNotfoundNotice | ( | std::string const & | name | ) |
Definition at line 774 of file ChatHandler.cpp.
References SendPacket().
Referenced by HandleChatMessage().
| void WorldSession::SendChatRestricted | ( | ChatRestrictionType | restriction | ) |
Definition at line 784 of file ChatHandler.cpp.
References WorldPackets::Chat::ChatRestricted::Reason, SendPacket(), and WorldPackets::Chat::ChatRestricted::Write().
| void WorldSession::SendClientCacheVersion | ( | uint32 | version | ) |
Definition at line 87 of file AuthHandler.cpp.
References WorldPackets::ClientConfig::ClientCacheVersion::CacheVersion, SendPacket(), and WorldPackets::ClientConfig::ClientCacheVersion::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendConnectToInstance | ( | WorldPackets::Auth::ConnectToSerial | serial | ) |
Definition at line 817 of file WorldSession.cpp.
References _instanceConnectKey, WorldSession::ConnectToKey::AccountId, WorldPackets::Auth::ConnectTo::SocketAddress::Address, WorldPackets::Auth::ConnectTo::ConnectPayload::Address, WorldPackets::Auth::ConnectTo::Con, CONFIG_PORT_WORLD, CONNECTION_TYPE_INSTANCE, WorldSession::ConnectToKey::ConnectionType, WorldSession::ConnectToKey::Fields, GetAccountId(), GetRemoteAddress(), GetVirtualRealmAddress(), WorldPackets::Auth::ConnectTo::IPv4, WorldPackets::Auth::ConnectTo::IPv6, WorldPackets::Auth::ConnectTo::Key, WorldSession::ConnectToKey::Key, WorldPackets::Auth::ConnectTo::NativeRealmAddress, WorldPackets::Auth::ConnectTo::Payload, WorldPackets::Auth::ConnectTo::ConnectPayload::Port, WorldSession::ConnectToKey::Raw, SendPacket(), WorldPackets::Auth::ConnectTo::Serial, sRealmList, sWorld, WorldPackets::Auth::ConnectTo::SocketAddress::Type, urand(), WorldPackets::Auth::ConnectTo::SocketAddress::V4, WorldPackets::Auth::ConnectTo::SocketAddress::V6, and WorldPackets::Auth::ConnectTo::Write().
Referenced by WorldSocket::HandleConnectToFailed(), and HandlePlayerLoginOpcode().
| void WorldSession::SendDiscoverNewTaxiNode | ( | uint32 | nodeid | ) |
Definition at line 153 of file TaxiHandler.cpp.
References GetPlayer(), and SendPacket().
Referenced by Spell::EffectDiscoverTaxi().
| void WorldSession::SendEnchantmentLog | ( | ObjectGuid | owner, |
| ObjectGuid | caster, | ||
| ObjectGuid | itemGuid, | ||
| uint32 | itemId, | ||
| uint32 | enchantId, | ||
| uint32 | enchantSlot | ||
| ) |
Definition at line 756 of file ItemHandler.cpp.
References WorldPackets::Item::EnchantmentLog::Caster, WorldPackets::Item::EnchantmentLog::Enchantment, WorldPackets::Item::EnchantmentLog::EnchantSlot, GetPlayer(), WorldPackets::Item::EnchantmentLog::ItemGUID, WorldPackets::Item::EnchantmentLog::ItemID, WorldPackets::Item::EnchantmentLog::Owner, Player::SendMessageToSet(), and WorldPackets::Item::EnchantmentLog::Write().
Referenced by Item::SetEnchantment().
| void WorldSession::SendFeatureSystemStatus | ( | ) |
START OF DUMMY VALUES
END OF DUMMY VALUES
Definition at line 1522 of file CharacterHandler.cpp.
References WorldPackets::System::FeatureSystemStatus::AddonChatThrottle, AsUnderlyingType(), WorldPackets::System::FeatureSystemStatus::BnetGroupsEnabled, CanSpeak(), WorldPackets::System::FeatureSystemStatus::CfgRealmID, WorldPackets::System::FeatureSystemStatus::CfgRealmRecID, WorldPackets::System::FeatureSystemStatus::CharacterCommunitiesEnabled, WorldPackets::System::FeatureSystemStatus::CharUndeleteEnabled, WorldPackets::System::FeatureSystemStatus::ClubPresenceAllowSubscribeAll, WorldPackets::System::FeatureSystemStatus::ClubPresenceUnsubscribeDelay, WorldPackets::System::FeatureSystemStatus::CommercePricePollTimeSeconds, WorldPackets::System::FeatureSystemStatus::CommunitiesEnabled, COMPLAINT_ENABLED_WITH_AUTO_IGNORE, WorldPackets::System::FeatureSystemStatus::ComplaintStatus, CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED, CONFIG_SUPPORT_BUGS_ENABLED, CONFIG_SUPPORT_COMPLAINTS_ENABLED, CONFIG_SUPPORT_SUGGESTIONS_ENABLED, CONFIG_SUPPORT_TICKETS_ENABLED, WorldPackets::System::FeatureSystemStatus::EuropaTicketSystemStatus, WorldPackets::System::FeatureSystemStatus::GameRules, WorldPackets::System::FeatureSystemStatus::GroupChatThrottle, WorldPackets::System::FeatureSystemStatus::GuildChatThrottle, WorldPackets::System::FeatureSystemStatus::IsChatMuted, WorldPackets::System::FeatureSystemStatus::ChatThrottleParams::MaxTries, WorldPackets::System::FeatureSystemStatus::NPETutorialsEnabled, WorldPackets::System::GameRuleValuePair::Rule, SendPacket(), WorldPackets::System::FeatureSystemStatus::SpeakForMeAllowed, sRealmList, sWorld, WorldPackets::System::FeatureSystemStatus::ChatThrottleParams::TriesRestoredPerSecond, WorldPackets::System::FeatureSystemStatus::TutorialEnabled, WorldPackets::System::FeatureSystemStatus::ChatThrottleParams::UsedTriesPerMessage, WorldPackets::System::GameRuleValuePair::Value, WorldPackets::System::GameRuleValuePair::ValueF, WorldPackets::System::FeatureSystemStatus::VoiceEnabled, and WorldPackets::System::FeatureSystemStatus::Write().
Referenced by HandlePlayerLogin().
| void WorldSession::SendFeatureSystemStatusGlueScreen | ( | ) |
Definition at line 108 of file AuthHandler.cpp.
References AsUnderlyingType(), WorldPackets::System::FeatureSystemStatusGlueScreen::AvailableGameModeIDs, WorldPackets::System::FeatureSystemStatusGlueScreen::BpayStoreAvailable, WorldPackets::System::FeatureSystemStatusGlueScreen::BpayStoreDisabledByParentalControls, WorldPackets::System::FeatureSystemStatusGlueScreen::CharUndeleteEnabled, CONFIG_CHARACTERS_PER_REALM, CONFIG_EXPANSION, CONFIG_FEATURE_SYSTEM_CHARACTER_UNDELETE_ENABLED, CONFIG_SUPPORT_BUGS_ENABLED, CONFIG_SUPPORT_COMPLAINTS_ENABLED, CONFIG_SUPPORT_SUGGESTIONS_ENABLED, CONFIG_SUPPORT_TICKETS_ENABLED, WorldPackets::System::FeatureSystemStatusGlueScreen::EuropaTicketSystemStatus, EXPANSION_CLASSIC, WorldPackets::System::FeatureSystemStatusGlueScreen::GameRules, WorldPackets::System::FeatureSystemStatusGlueScreen::MaxCharactersOnThisRealm, WorldPackets::System::FeatureSystemStatusGlueScreen::MaximumExpansionLevel, WorldPackets::System::FeatureSystemStatusGlueScreen::MinimumExpansionLevel, WorldPackets::System::GameRuleValuePair::Rule, SendPacket(), sWorld, WorldPackets::System::GameRuleValuePair::Value, WorldPackets::System::GameRuleValuePair::ValueF, WorldPackets::System::MirrorVars::Variables, WorldPackets::System::FeatureSystemStatusGlueScreen::Write(), and WorldPackets::System::MirrorVars::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendItemEnchantTimeUpdate | ( | ObjectGuid | Playerguid, |
| ObjectGuid | Itemguid, | ||
| uint32 | slot, | ||
| uint32 | Duration | ||
| ) |
Definition at line 768 of file ItemHandler.cpp.
References Duration, WorldPackets::Item::ItemEnchantTimeUpdate::DurationLeft, WorldPackets::Item::ItemEnchantTimeUpdate::ItemGuid, WorldPackets::Item::ItemEnchantTimeUpdate::OwnerGuid, SendPacket(), WorldPackets::Item::ItemEnchantTimeUpdate::Slot, and WorldPackets::Item::ItemEnchantTimeUpdate::Write().
Referenced by Player::AddEnchantmentDuration(), and Player::SendEnchantmentDurations().
| bool WorldSession::SendLearnNewTaxiNode | ( | Creature * | unit | ) |
Definition at line 129 of file TaxiHandler.cpp.
References BaseEntity::GetGUID(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), LearnTaxiNode, SendPacket(), sObjectMgr, WorldPackets::Taxi::TaxiNodeStatus::Status, TAXISTATUS_LEARNED, WorldPackets::Taxi::TaxiNodeStatus::Unit, Player::UpdateCriteria(), and WorldPackets::Taxi::TaxiNodeStatus::Write().
Referenced by HandleEnableTaxiNodeOpcode(), HandleTaxiQueryAvailableNodesOpcode(), and Player::PrepareGossipMenu().
| void WorldSession::SendLfgBootProposalUpdate | ( | lfg::LfgPlayerBoot const & | boot | ) |
Definition at line 411 of file LFGHandler.cpp.
References WorldPackets::LFG::LfgBootInfo::BootVotes, lfg::LfgPlayerBoot::cancelTime, GameTime::GetGameTime(), GetPlayer(), GetPlayerInfo(), WorldPackets::LFG::LfgBootPlayer::Info, lfg::LfgPlayerBoot::inProgress, lfg::LFG_ANSWER_AGREE, lfg::LFG_ANSWER_PENDING, lfg::LFG_GROUP_KICK_VOTES_NEEDED, WorldPackets::LFG::LfgBootInfo::MyVote, WorldPackets::LFG::LfgBootInfo::MyVoteCompleted, lfg::LfgPlayerBoot::reason, WorldPackets::LFG::LfgBootInfo::Reason, SendPacket(), WorldPackets::LFG::LfgBootInfo::Target, TC_LOG_DEBUG, WorldPackets::LFG::LfgBootInfo::TimeLeft, ObjectGuid::ToString(), WorldPackets::LFG::LfgBootInfo::TotalVotes, lfg::LfgPlayerBoot::victim, WorldPackets::LFG::LfgBootInfo::VoteInProgress, WorldPackets::LFG::LfgBootInfo::VotePassed, lfg::LfgPlayerBoot::votes, WorldPackets::LFG::LfgBootInfo::VotesNeeded, and WorldPackets::LFG::LfgBootPlayer::Write().
| void WorldSession::SendLfgDisabled | ( | ) |
Definition at line 492 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), and TC_LOG_DEBUG.
| void WorldSession::SendLfgJoinResult | ( | lfg::LfgJoinResultData const & | joinData | ) |
Definition at line 329 of file LFGHandler.cpp.
References WorldPackets::LFG::LFGJoinResult::BlackList, WorldPackets::LFG::LFGJoinResult::BlackListNames, GetPlayer(), GetPlayerInfo(), lfg::LFG_JOIN_NO_SLOTS, lfg::LFG_JOIN_ROLE_CHECK_FAILED, lfg::LfgJoinResultData::lockmap, WorldPackets::LFG::LFGBlackList::PlayerGuid, lfg::LfgJoinResultData::playersMissingRequirement, lfg::LfgJoinResultData::result, WorldPackets::LFG::LFGJoinResult::Result, WorldPackets::LFG::LFGJoinResult::ResultDetail, SendPacket(), sLFGMgr, WorldPackets::LFG::LFGBlackList::Slot, lfg::LfgJoinResultData::state, TC_LOG_DEBUG, TC_LOG_TRACE, WorldPackets::LFG::LFGJoinResult::Ticket, and WorldPackets::LFG::LFGJoinResult::Write().
Referenced by lfg::LFGMgr::JoinLfg().
| void WorldSession::SendLfgOfferContinue | ( | uint32 | dungeonEntry | ) |
Definition at line 498 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), sLFGMgr, TC_LOG_DEBUG, and WorldPackets::LFG::LFGOfferContinue::Write().
| void WorldSession::SendLfgPartyLockInfo | ( | ) |
Definition at line 202 of file LFGHandler.cpp.
References Player::GetGroup(), BaseEntity::GetGUID(), Group::GetMembers(), GetPlayer(), GetPlayerInfo(), WorldPackets::LFG::LfgPartyInfo::Player, WorldPackets::LFG::LFGBlackList::PlayerGuid, SendPacket(), sLFGMgr, WorldPackets::LFG::LFGBlackList::Slot, TC_LOG_DEBUG, and WorldPackets::LFG::LfgPartyInfo::Write().
Referenced by HandleDFGetSystemInfo().
| void WorldSession::SendLfgPlayerLockInfo | ( | ) |
Definition at line 140 of file LFGHandler.cpp.
References _player, WorldPackets::LFG::LfgPlayerInfo::BlackList, Player::CanRewardQuest(), WorldPackets::LFG::LfgPlayerDungeonInfo::CompletedMask, WorldPackets::LFG::LfgPlayerDungeonInfo::CompletionCurrencyID, WorldPackets::LFG::LfgPlayerDungeonInfo::CompletionLimit, WorldPackets::LFG::LfgPlayerDungeonInfo::CompletionQuantity, WorldPackets::LFG::LfgPlayerQuestReward::Currency, WorldPackets::LFG::LfgPlayerInfo::Dungeon, WorldPackets::LFG::LfgPlayerDungeonInfo::EncounterMask, WorldPackets::LFG::LfgPlayerDungeonInfo::FirstReward, GetExpansion(), BaseEntity::GetGUID(), Unit::GetLevel(), GetPlayer(), GetPlayerInfo(), Player::GetQuestMoneyReward(), Player::GetQuestXPReward(), WorldPackets::LFG::LfgPlayerQuestReward::Item, Player::m_playerData, WorldPackets::LFG::LfgPlayerDungeonInfo::OverallLimit, WorldPackets::LFG::LfgPlayerDungeonInfo::OverallQuantity, WorldPackets::LFG::LfgPlayerDungeonInfo::PurseLimit, WorldPackets::LFG::LfgPlayerDungeonInfo::PurseQuantity, WorldPackets::LFG::LfgPlayerDungeonInfo::PurseWeeklyLimit, WorldPackets::LFG::LfgPlayerDungeonInfo::PurseWeeklyQuantity, WorldPackets::LFG::LfgPlayerDungeonInfo::Quantity, QUEST_REWARD_CURRENCY_COUNT, QUEST_REWARD_ITEM_COUNT, WorldPackets::LFG::LfgPlayerQuestReward::RewardMoney, WorldPackets::LFG::LfgPlayerDungeonInfo::Rewards, WorldPackets::LFG::LfgPlayerQuestReward::RewardXP, SendPacket(), sLFGMgr, WorldPackets::LFG::LFGBlackList::Slot, WorldPackets::LFG::LfgPlayerDungeonInfo::Slot, sObjectMgr, WorldPackets::LFG::LfgPlayerDungeonInfo::SpecificLimit, WorldPackets::LFG::LfgPlayerDungeonInfo::SpecificQuantity, TC_LOG_DEBUG, and WorldPackets::LFG::LfgPlayerInfo::Write().
Referenced by HandleDFGetSystemInfo().
| void WorldSession::SendLfgPlayerReward | ( | lfg::LfgPlayerRewardData const & | lfgPlayerRewardData | ) |
Definition at line 386 of file LFGHandler.cpp.
References WorldPackets::LFG::LFGPlayerReward::ActualSlot, WorldPackets::LFG::LFGPlayerReward::AddedXP, lfg::LfgPlayerRewardData::done, GetPlayer(), GetPlayerInfo(), Player::GetQuestMoneyReward(), Player::GetQuestXPReward(), lfg::LfgPlayerRewardData::quest, QUEST_REWARD_CURRENCY_COUNT, QUEST_REWARD_ITEM_COUNT, WorldPackets::LFG::LFGPlayerReward::QueuedSlot, lfg::LfgPlayerRewardData::rdungeonEntry, Quest::RewardCurrencyCount, Quest::RewardCurrencyId, Quest::RewardItemCount, Quest::RewardItemId, WorldPackets::LFG::LFGPlayerReward::RewardMoney, WorldPackets::LFG::LFGPlayerReward::Rewards, lfg::LfgPlayerRewardData::sdungeonEntry, SendPacket(), TC_LOG_DEBUG, and WorldPackets::LFG::LFGPlayerReward::Write().
Referenced by lfg::LFGMgr::FinishDungeon().
| void WorldSession::SendLfgQueueStatus | ( | lfg::LfgQueueStatusData const & | queueData | ) |
Definition at line 361 of file LFGHandler.cpp.
References WorldPackets::LFG::LFGQueueStatus::AvgWaitTime, WorldPackets::LFG::LFGQueueStatus::AvgWaitTimeByRole, WorldPackets::LFG::LFGQueueStatus::AvgWaitTimeMe, lfg::LfgQueueStatusData::dps, lfg::LfgQueueStatusData::dungeonId, GetPlayer(), GetPlayerInfo(), lfg::GetStateString(), lfg::LfgQueueStatusData::healers, WorldPackets::LFG::LFGQueueStatus::LastNeeded, lfg::LfgQueueStatusData::queuedTime, WorldPackets::LFG::LFGQueueStatus::QueuedTime, SendPacket(), sLFGMgr, WorldPackets::LFG::LFGQueueStatus::Slot, lfg::LfgQueueStatusData::tanks, TC_LOG_DEBUG, WorldPackets::LFG::LFGQueueStatus::Ticket, lfg::LfgQueueStatusData::waitTime, lfg::LfgQueueStatusData::waitTimeAvg, lfg::LfgQueueStatusData::waitTimeDps, lfg::LfgQueueStatusData::waitTimeHealer, lfg::LfgQueueStatusData::waitTimeTank, and WorldPackets::LFG::LFGQueueStatus::Write().
| void WorldSession::SendLfgRoleCheckUpdate | ( | lfg::LfgRoleCheck const & | pRoleCheck | ) |
Definition at line 293 of file LFGHandler.cpp.
References ASSERT_NOTNULL, lfg::LfgRoleCheck::dungeons, GetPlayerInfo(), WorldPackets::LFG::LFGRoleCheckUpdate::GroupFinderActivityID, WorldPackets::LFG::LFGRoleCheckUpdate::JoinSlots, lfg::LfgRoleCheck::leader, WorldPackets::LFG::LFGRoleCheckUpdate::Members, WorldPackets::LFG::LFGRoleCheckUpdate::PartyIndex, lfg::LfgRoleCheck::rDungeonId, WorldPackets::LFG::LFGRoleCheckUpdate::RoleCheckStatus, lfg::LfgRoleCheck::roles, sCharacterCache, SendPacket(), lfg::LfgRoleCheck::state, TC_LOG_DEBUG, and WorldPackets::LFG::LFGRoleCheckUpdate::Write().
| void WorldSession::SendLfgRoleChosen | ( | ObjectGuid | guid, |
| uint8 | roles | ||
| ) |
Definition at line 281 of file LFGHandler.cpp.
References WorldPackets::LFG::RoleChosen::Accepted, GetPlayerInfo(), WorldPackets::LFG::RoleChosen::Player, WorldPackets::LFG::RoleChosen::RoleMask, SendPacket(), TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::LFG::RoleChosen::Write().
Referenced by lfg::LFGMgr::SendLfgRoleChosen().
| void WorldSession::SendLfgTeleportError | ( | lfg::LfgTeleportResult | err | ) |
Definition at line 505 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), and TC_LOG_DEBUG.
Referenced by lfg::LFGMgr::TeleportPlayer().
| void WorldSession::SendLfgUpdateProposal | ( | lfg::LfgProposal const & | proposal | ) |
Definition at line 447 of file LFGHandler.cpp.
References WorldPackets::LFG::LFGProposalUpdate::CompletedMask, lfg::LfgProposal::dungeonId, lfg::LfgProposal::encounters, WorldPackets::LFG::LFGProposalUpdate::FailedByMyParty, BaseEntity::GetGUID(), GetPlayer(), GetPlayerInfo(), lfg::LfgProposal::group, lfg::LfgProposal::id, WorldPackets::LFG::LFGProposalUpdate::InstanceID, ObjectGuid::IsEmpty(), lfg::LfgProposal::isNew, lfg::LFG_ANSWER_AGREE, lfg::LFG_ANSWER_PENDING, lfg::LfgProposal::players, WorldPackets::LFG::LFGProposalUpdate::Players, WorldPackets::LFG::LFGProposalUpdate::ProposalID, WorldPackets::LFG::LFGProposalUpdate::ProposalSilent, SendPacket(), sLFGMgr, WorldPackets::LFG::LFGProposalUpdate::Slot, lfg::LfgProposal::state, WorldPackets::LFG::LFGProposalUpdate::State, TC_LOG_DEBUG, WorldPackets::LFG::LFGProposalUpdate::Ticket, WorldPackets::LFG::LFGProposalUpdate::ValidCompletedMask, and WorldPackets::LFG::LFGProposalUpdate::Write().
| void WorldSession::SendLfgUpdateStatus | ( | lfg::LfgUpdateData const & | updateData, |
| bool | party | ||
| ) |
Definition at line 230 of file LFGHandler.cpp.
References _player, lfg::LfgUpdateData::dungeons, BaseEntity::GetGUID(), GetPlayerInfo(), lfg::LFG_QUEUE_DUNGEON, lfg::LFG_STATE_NONE, lfg::LFG_STATE_QUEUED, lfg::LFG_STATE_ROLECHECK, lfg::LFG_UPDATETYPE_ADDED_TO_QUEUE, lfg::LFG_UPDATETYPE_JOIN_QUEUE, lfg::LFG_UPDATETYPE_JOIN_QUEUE_INITIAL, lfg::LFG_UPDATETYPE_PROPOSAL_BEGIN, lfg::LFG_UPDATETYPE_REMOVED_FROM_QUEUE, lfg::LFG_UPDATETYPE_UPDATE_STATUS, SendPacket(), sLFGMgr, lfg::LfgUpdateData::state, TC_LOG_DEBUG, WorldPackets::LFG::LFGUpdateStatus::Ticket, and lfg::LfgUpdateData::updateType.
Referenced by HandleDFGetJoinStatus(), and lfg::LFGMgr::JoinLfg().
| void WorldSession::SendListInventory | ( | ObjectGuid | guid | ) |
Definition at line 572 of file ItemHandler.cpp.
References _player, ALLIANCE, AsUnderlyingType(), BIND_ON_ACQUIRE, VendorItem::BonusListIDs, CalculatePct(), WorldPackets::NPC::VendorItem::DoNotFilterOnVendor, Empty, ObjectGuid::Empty, VendorItem::ExtendedCost, WorldPackets::NPC::VendorItem::ExtendedCostID, ItemTemplate::GetAllowableClass(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), Object::GetEntry(), BaseEntity::GetGUID(), CreatureMovementData::GetInteractionPauseTimer(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), ItemTemplate::GetMaxStackSize(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), Player::GetReputationPriceDiscount(), Player::GetTeam(), Unit::GetTotalAuraModifier(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), ItemTemplate::HasFlag(), HORDE, VendorItem::IgnoreFiltering, Player::IsGameMaster(), ConditionMgr::IsPlayerMeetingCondition(), VendorItem::item, WorldPackets::NPC::VendorItem::Item, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, ITEM_FLAG_ITEM_PURCHASE_RECORD, ITEM_VENDOR_TYPE_CURRENCY, ITEM_VENDOR_TYPE_ITEM, WorldPackets::Item::ItemInstance::ItemBonus, WorldPackets::Item::ItemInstance::ItemID, WorldPackets::NPC::VendorInventory::Items, MAX_VENDOR_ITEMS, VendorItem::maxcount, WorldPackets::NPC::VendorItem::MuID, None, Unit::PauseMovement(), WorldPackets::NPC::VendorItem::PlayerConditionFailed, VendorItem::PlayerConditionId, Player::PlayerTalkClass, WorldPackets::NPC::VendorItem::Price, WorldPackets::NPC::VendorItem::Quantity, WorldPackets::NPC::VendorInventory::Reason, WorldPackets::NPC::VendorItem::Refundable, Unit::RemoveAurasByType(), sConditionMgr, sCurrencyTypesStore, SELL_ERR_CANT_FIND_VENDOR, SendPacket(), Player::SendSellError(), Creature::SetHomePosition(), sItemExtendedCostStore, sObjectMgr, SPELL_AURA_FEIGN_DEATH, SPELL_AURA_MOD_VENDOR_ITEMS_PRICES, WorldPackets::NPC::VendorItem::StackCount, TC_LOG_DEBUG, ObjectGuid::ToString(), VendorItem::Type, WorldPackets::NPC::VendorItem::Type, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, Vendor, WorldPackets::NPC::VendorInventory::Vendor, and WorldPackets::NPC::VendorInventory::Write().
Referenced by HandleListInventoryOpcode(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), npc_zm_field_scout::OnGossipSelect(), and Player::OnGossipSelect().
| void WorldSession::SendLoadCUFProfiles | ( | ) |
Definition at line 1144 of file MiscHandler.cpp.
References WorldPackets::Misc::LoadCUFProfiles::CUFProfiles, Player::GetCUFProfile(), GetPlayer(), MAX_CUF_PROFILES, SendPacket(), and WorldPackets::Misc::LoadCUFProfiles::Write().
Referenced by Player::SendInitialPacketsAfterAddToMap().
| void WorldSession::SendNotification | ( | char const * | format, |
| ... | |||
| ) |
Definition at line 752 of file WorldSession.cpp.
References SendPacket().
Referenced by Spell::EffectPlaySound(), HandleBattlemasterHelloOpcode(), HandleChatMessage(), HandleChatMessageAFKOpcode(), HandleChatMessageDNDOpcode(), misc_commandscript::HandleDevCommand(), gm_commandscript::HandleGMOffCommand(), gm_commandscript::HandleGMOnCommand(), gm_commandscript::HandleGMVisibleCommand(), HandleInitiateTradeOpcode(), HandlePlayerLogin(), HandleSendMail(), send_commandscript::HandleSendMessageCommand(), HandleTextEmoteOpcode(), HandleWhoIsOpcode(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), Player::Satisfy(), and SendAuctionHello().
| void WorldSession::SendNotification | ( | uint32 | stringId, |
| ... | |||
| ) |
Definition at line 767 of file WorldSession.cpp.
References GetTrinityString(), and SendPacket().
| void WorldSession::SendOpenTransmogrifier | ( | ObjectGuid const & | guid | ) |
Definition at line 611 of file TransmogrificationHandler.cpp.
References WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, Transmogrifier, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
| void WorldSession::SendPacket | ( | WorldPacket const * | packet, |
| bool | forced = false |
||
| ) |
Send a packet to the client.
Definition at line 223 of file WorldSession.cpp.
References CONNECTION_TYPE_DEFAULT, CONNECTION_TYPE_INSTANCE, ServerOpcodeHandler::ConnectionIndex, WorldPacket::GetConnection(), GameTime::GetGameTime(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), IsInstanceOnlyOpcode(), OpcodeTable::IsValid(), m_Socket, opcodeTable, ByteBuffer::size(), sScriptMgr, ServerOpcodeHandler::Status, STATUS_UNHANDLED, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_TRACE, UNKNOWN_OPCODE, and ByteBuffer::wpos().
Referenced by Guild::_SendBankContentUpdate(), AbortLogin(), InstanceMap::AddPlayerToMap(), SocialMgr::BroadcastToFriendListers(), BattlePets::BattlePetMgr::CageBattlePet(), Unit::DestroyForPlayer(), HandleAdventureJournalUpdateSuggestions(), HandleAlterAppearance(), HandleAreaTriggerOpcode(), HandleAuctionBrowseQuery(), HandleAuctionGetCommodityQuote(), HandleAuctionListBiddedItems(), HandleAuctionListBucketsByBucketKeys(), HandleAuctionListItemsByBucketKey(), HandleAuctionListItemsByItemID(), HandleAuctionListOwnedItems(), HandleAuctionReplicateItems(), HandleAzeriteEssenceActivateEssence(), HandleBattleFieldPortOpcode(), HandleBattlemasterJoinOpcode(), HandleBattlenetChangeRealmTicket(), HandleBlackMarketRequestItems(), HandleCalendarGetCalendar(), HandleCalendarGetNumPending(), HandleCanDuel(), HandleCharEnum(), HandleChatCanLocalWhisperTargetRequest(), HandleChatUpdateAADCStatus(), HandleCheckCharacterNameAvailability(), HandleCheckIsAdventureMapPoiValid(), HandleCommerceTokenGetLog(), HandleCommerceTokenGetMarketPrice(), HandleComplaint(), HandleContinuePlayerLogin(), HandleCreatureQuery(), HandleDBQueryBulk(), debug_commandscript::HandleDebugSendChannelNotifyCommand(), debug_commandscript::HandleDebugSendChatMsgCommand(), debug_commandscript::HandleDebugSendOpcodeCommand(), debug_commandscript::HandleDebugSendSpellFailCommand(), HandleDuelAccepted(), HandleGameObjectQueryOpcode(), HandleGetGarrisonInfo(), HandleGetMailList(), HandleGetPVPOptionsEnabled(), HandleGMTicketGetCaseStatusOpcode(), HandleGMTicketSystemStatusOpcode(), Guild::HandleGuildPartyRequest(), HandleGuildQueryOpcode(), Guild::HandleGuildRequestChallengeUpdate(), HandleHotfixRequest(), HandleInspectOpcode(), HandleItemTextQuery(), HandleJoinChannel(), HandleLearnPvpTalentsOpcode(), HandleLearnTalentsOpcode(), HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), HandleLootMoneyOpcode(), HandleLootOpcode(), HandleMirrorImageDataRequest(), HandleMoveWorldportAck(), Guild::HandleNewsSetSticky(), HandleNpcTextQueryOpcode(), HandlePetCastSpellOpcode(), HandlePetitionRenameGuild(), HandlePlayedTime(), HandlePlayerLogin(), HandlePVPLogDataOpcode(), Guild::HandleQuery(), HandleQueryBattlePetName(), HandleQueryCorpseLocation(), HandleQueryCorpseTransport(), HandleQueryNextMailTime(), HandleQueryPageText(), HandleQueryPlayerNames(), HandleQueryQuestCompletionNPCs(), HandleQueryRealmName(), HandleQueryScenarioPOI(), HandleQueryTreasurePicker(), HandleQuestPOIQuery(), HandleQuestQueryOpcode(), HandleRandomizeCharNameOpcode(), HandleReadItem(), HandleRequestAccountData(), HandleRequestBattlefieldStatusOpcode(), HandleRequestCemeteryList(), HandleRequestGuildRewardsList(), HandleRequestLatestSplashScreen(), HandleRequestPartyMemberStatsOpcode(), HandleRequestRatedPvpInfo(), HandleRequestWorldQuestUpdate(), Guild::HandleRoster(), HandleSavePersonalEmblem(), HandleServerTimeOffsetRequest(), HandleSetRoleOpcode(), HandleSetSavedInstanceExtend(), HandleSignPetition(), HandleSocialContractRequest(), HandleSortAccountBankBags(), HandleSortBags(), HandleSortBankBags(), HandleSpawnTrackingUpdate(), HandleSuspendTokenResponse(), HandleTraitsCommitConfig(), HandleTransmogOutfitNew(), HandleTransmogOutfitUpdateInfo(), HandleTransmogOutfitUpdateSituations(), HandleTransmogOutfitUpdateSlots(), HandleTurnInPetition(), HandleUiMapQuestLinesRequest(), HandleUpdateAccountData(), HandleUseEquipmentSet(), HandleUseToy(), HandleWhoIsOpcode(), HandleWhoOpcode(), InitializeSessionCallback(), Pet::learnSpells(), LogoutPlayer(), Guild::MassInviteToEvent(), Guild::ResetTimes(), AddonChannelCommandHandler::Send(), SendAccountDataTimes(), SendActivateTaxiReply(), SendAuctionClosedNotification(), SendAuctionCommandResult(), SendAuctionFavoriteList(), SendAuctionHello(), SendAuctionOwnerBidNotification(), SendAuthResponse(), SendAuthWaitQueue(), SendAvailableHotfixes(), SendAzeriteRespecNPC(), Guild::SendBankList(), Guild::SendBankLog(), SendBattlenetRequest(), SendBattlenetResponse(), SendBattlenetResponse(), SendBlackMarketBidOnItemResult(), SendBlackMarketOpenResult(), SendBlackMarketOutbidNotification(), SendBlackMarketWonNotification(), SendCalendarRaidLockoutAdded(), SendCalendarRaidLockoutRemoved(), SendCharCreate(), SendCharCustomize(), SendCharDelete(), SendCharFactionChange(), SendCharRename(), SendChatPlayerNotfoundNotice(), SendChatRestricted(), SendClientCacheVersion(), PlayerMenu::SendCloseGossip(), Guild::SendCommandResult(), SendConnectToInstance(), Player::SendDirectMessage(), SendDiscoverNewTaxiNode(), Unit::SendDurabilityLoss(), BattlePets::BattlePetMgr::SendError(), Guild::SendEventLog(), Guild::SendEventMOTD(), Guild::SendEventPresenceChanged(), CollectionMgr::SendFavoriteAppearances(), SendFeatureSystemStatus(), SendFeatureSystemStatusGlueScreen(), World::SendGlobalGMMessage(), PlayerMenu::SendGossipMenu(), Guild::SendGuildRankInfo(), SendItemEnchantTimeUpdate(), BattlePets::BattlePetMgr::SendJournal(), BattlePets::BattlePetMgr::SendJournalLockStatus(), SendLearnNewTaxiNode(), SendLfgBootProposalUpdate(), SendLfgDisabled(), SendLfgJoinResult(), SendLfgOfferContinue(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgRoleCheckUpdate(), SendLfgRoleChosen(), SendLfgTeleportError(), SendLfgUpdateProposal(), SendLfgUpdateStatus(), SendListInventory(), SendLoadCUFProfiles(), Guild::SendLoginInfo(), Guild::SendMoneyInfo(), Unit::SendMoveKnockBack(), Guild::SendNewsUpdate(), SendNotification(), SendNotification(), SendOpenTransmogrifier(), SendPartyResult(), Guild::SendPermissions(), SendPetitionQueryOpcode(), SendPetitionShowList(), SendPetNameInvalid(), SendPetStableResult(), SendPlayerAmbiguousNotice(), PlayerMenu::SendPointOfInterest(), SendQueryTimeResponse(), PlayerMenu::SendQuestGiverQuestListMessage(), PlayerMenu::SendQuestGiverStatus(), PlayerMenu::SendQuestQueryResponse(), Group::SendRaidMarkersChanged(), Guild::SendSaveEmblemResult(), SendSetPlayerDeclinedNamesResult(), SendSetTimeZoneInformation(), SendShowBank(), SendShowMailBox(), ArenaTeam::SendStats(), ChatHandler::SendSysMessage(), SendTabardVendorActivate(), Group::SendTargetIconList(), SendTaxiMenu(), SendTaxiStatus(), Guild::BankTab::SendText(), SendTimeSync(), SendTradeStatus(), SendTutorialsData(), SendUndeleteCharacterResponse(), SendUndeleteCooldownStatusResponse(), BattlePets::BattlePetMgr::SendUpdates(), SendUpdateTrade(), Map::SendUpdateTransportVisibility(), CollectionMgr::SendWarbandSceneCollectionData(), CollectionMgr::SetAppearanceIsFavorite(), Pet::SetSpecialization(), Pet::unlearnSpells(), and BattlePets::BattlePetMgr::UnlockSlot().
| void WorldSession::SendPartyResult | ( | PartyOperation | operation, |
| std::string const & | member, | ||
| PartyResult | res, | ||
| uint32 | val = 0 |
||
| ) |
Definition at line 46 of file GroupHandler.cpp.
References WorldPackets::Party::PartyCommandResult::Command, ObjectGuid::Empty, WorldPackets::Party::PartyCommandResult::Name, WorldPackets::Party::PartyCommandResult::Result, WorldPackets::Party::PartyCommandResult::ResultData, WorldPackets::Party::PartyCommandResult::ResultGUID, SendPacket(), and WorldPackets::Party::PartyCommandResult::Write().
Referenced by HandleConvertRaidOpcode(), HandleLeaveGroupOpcode(), HandlePartyInviteOpcode(), HandlePartyInviteResponseOpcode(), and HandlePartyUninviteOpcode().
| void WorldSession::SendPetitionQueryOpcode | ( | ObjectGuid | petitionguid | ) |
Definition at line 161 of file PetitionsHandler.cpp.
References WorldPackets::Petition::QueryPetitionResponse::Allow, CONFIG_MIN_PETITION_SIGNS, ObjectGuid::GetCounter(), WorldPackets::Petition::QueryPetitionResponse::Info, WorldPackets::Petition::PetitionInfo::MaxSignatures, WorldPackets::Petition::PetitionInfo::MinSignatures, Petition::OwnerGuid, WorldPackets::Petition::PetitionInfo::Petitioner, WorldPackets::Petition::PetitionInfo::PetitionID, WorldPackets::Petition::QueryPetitionResponse::PetitionID, Petition::PetitionName, SendPacket(), sPetitionMgr, sWorld, TC_LOG_DEBUG, WorldPackets::Petition::PetitionInfo::Title, ObjectGuid::ToString(), and WorldPackets::Petition::QueryPetitionResponse::Write().
Referenced by HandleQueryPetition().
| void WorldSession::SendPetitionShowList | ( | ObjectGuid | guid | ) |
Definition at line 450 of file PetitionsHandler.cpp.
References CONFIG_CHARTER_COST_GUILD, Player::GetNPCIfCanInteractWith(), GetPlayer(), PetitionVendor, Player::PlayerTalkClass, WorldPackets::Petition::ServerPetitionShowList::Price, SendPacket(), sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::Petition::ServerPetitionShowList::Unit, UNIT_NPC_FLAG_2_NONE, UNIT_NPC_FLAG_PETITIONER, and WorldPackets::Petition::ServerPetitionShowList::Write().
Referenced by HandlePetitionShowList(), and Player::OnGossipSelect().
Definition at line 135 of file PetitionsHandler.cpp.
References WorldPackets::Petition::ServerPetitionShowSignatures::PetitionSignature::Choice, ObjectGuid::GetCounter(), WorldPackets::Petition::ServerPetitionShowSignatures::Item, WorldPackets::Petition::ServerPetitionShowSignatures::Owner, WorldPackets::Petition::ServerPetitionShowSignatures::OwnerAccountID, Petition::OwnerGuid, Petition::PetitionGuid, WorldPackets::Petition::ServerPetitionShowSignatures::PetitionID, sCharacterCache, Player::SendDirectMessage(), Petition::Signatures, WorldPackets::Petition::ServerPetitionShowSignatures::Signatures, WorldPackets::Petition::ServerPetitionShowSignatures::PetitionSignature::Signer, and WorldPackets::Petition::ServerPetitionShowSignatures::Write().
Referenced by HandleOfferPetition(), and HandlePetitionShowSignatures().
| void WorldSession::SendPetNameInvalid | ( | uint32 | error, |
| std::string const & | name, | ||
| Optional< DeclinedName > const & | declinedName | ||
| ) |
Definition at line 769 of file PetHandler.cpp.
References WorldPackets::Pet::PetRenameData::DeclinedNames, WorldPackets::Pet::PetRenameData::NewName, WorldPackets::Pet::PetNameInvalid::RenameData, WorldPackets::Pet::PetNameInvalid::Result, SendPacket(), and WorldPackets::Pet::PetNameInvalid::Write().
Referenced by HandlePetRename().
| void WorldSession::SendPetStableResult | ( | StableResult | result | ) |
Definition at line 365 of file NPCHandler.cpp.
References AsUnderlyingType(), WorldPackets::Pet::PetStableResult::Result, SendPacket(), and WorldPackets::Pet::PetStableResult::Write().
Referenced by HandleSetPetSlot(), and Player::SetPetSlot().
| void WorldSession::SendPlayerAmbiguousNotice | ( | std::string const & | name | ) |
Definition at line 779 of file ChatHandler.cpp.
References SendPacket().
| void WorldSession::SendQueryPetNameResponse | ( | ObjectGuid | guid | ) |
Definition at line 412 of file PetHandler.cpp.
References _player, WorldPackets::Query::QueryPetNameResponse::Allow, WorldPackets::Query::QueryPetNameResponse::DeclinedNames, ObjectAccessor::GetCreatureOrPetOrVehicle(), WorldPackets::Query::QueryPetNameResponse::HasDeclined, WorldPackets::Query::QueryPetNameResponse::Name, Player::SendDirectMessage(), WorldPackets::Query::QueryPetNameResponse::Timestamp, Unit::ToPet(), WorldPackets::Query::QueryPetNameResponse::UnitGUID, and WorldPackets::Query::QueryPetNameResponse::Write().
Referenced by HandleQueryPetName().
| void WorldSession::SendQueryTimeResponse | ( | ) |
Definition at line 64 of file QueryHandler.cpp.
References WorldPackets::Query::QueryTimeResponse::CurrentTime, GameTime::GetSystemTime(), SendPacket(), and WorldPackets::Query::QueryTimeResponse::Write().
Referenced by HandleQueryTimeOpcode().
| void WorldSession::SendSetPlayerDeclinedNamesResult | ( | DeclinedNameResult | result, |
| ObjectGuid | guid | ||
| ) |
Definition at line 2998 of file CharacterHandler.cpp.
References WorldPackets::Character::SetPlayerDeclinedNamesResult::Player, WorldPackets::Character::SetPlayerDeclinedNamesResult::ResultCode, SendPacket(), and WorldPackets::Character::SetPlayerDeclinedNamesResult::Write().
Referenced by HandleSetPlayerDeclinedNames().
| void WorldSession::SendSetTimeZoneInformation | ( | ) |
Definition at line 95 of file AuthHandler.cpp.
References Trinity::Timezone::FindClosestClientSupportedTimezone(), WorldPackets::System::SetTimeZoneInformation::GameTimeTZ, Trinity::Timezone::GetSystemZoneName(), Trinity::Timezone::GetSystemZoneOffset(), SendPacket(), WorldPackets::System::SetTimeZoneInformation::ServerRegionalTimeTZ, WorldPackets::System::SetTimeZoneInformation::ServerTimeTZ, and WorldPackets::System::SetTimeZoneInformation::Write().
Referenced by HandlePlayerLogin(), and InitializeSessionCallback().
| void WorldSession::SendShowBank | ( | ObjectGuid | guid, |
| PlayerInteractionType | interactionType | ||
| ) |
Definition at line 300 of file BankHandler.cpp.
References _player, WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, Player::PlayerTalkClass, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
Referenced by misc_commandscript::HandleBankCommand(), and HandleBankerActivateOpcode().
| void WorldSession::SendShowMailBox | ( | ObjectGuid | guid | ) |
Definition at line 88 of file NPCHandler.cpp.
References WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, MailInfo, WorldPackets::NPC::NPCInteractionOpenResult::Npc, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
Referenced by misc_commandscript::HandleMailBoxCommand().
| void WorldSession::SendSpiritResurrect | ( | ) |
Definition at line 290 of file NPCHandler.cpp.
References _player, Player::DurabilityLossAll(), Player::GetCorpseLocation(), Player::GetTeam(), Player::HasCorpse(), WorldSafeLocsEntry::Loc, Player::ResurrectPlayer(), sObjectMgr, Player::SpawnCorpseBones(), and Player::TeleportTo().
Referenced by HandleSpiritHealerActivate().
| void WorldSession::SendTabardVendorActivate | ( | ObjectGuid | guid, |
| TabardVendorType | type | ||
| ) |
Definition at line 68 of file NPCHandler.cpp.
References ABORT_MSG, AsUnderlyingType(), Guild, GuildTabardVendor, WorldPackets::NPC::NPCInteractionOpenResult::InteractionType, WorldPackets::NPC::NPCInteractionOpenResult::Npc, Personal, PersonalTabardVendor, SendPacket(), WorldPackets::NPC::NPCInteractionOpenResult::Success, and WorldPackets::NPC::NPCInteractionOpenResult::Write().
Referenced by HandleTabardVendorActivateOpcode().
| void WorldSession::SendTaxiMenu | ( | Creature * | unit | ) |
Definition at line 93 of file TaxiHandler.cpp.
References PlayerTaxi::AppendTaximaskTo(), WorldPackets::Taxi::ShowTaxiNodes::CanLandNodes, WorldPackets::Taxi::ShowTaxiNodes::CanUseNodes, Object::GetEntry(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), TaxiPathGraph::GetReachableNodesMask(), Player::isTaxiCheater(), Player::m_taxi, Player::PlayerTalkClass, SendPacket(), Player::SetTaxiCheater(), TaxiMask::size(), sObjectMgr, sTaxiNodesStore, TaxiNode, TC_LOG_DEBUG, WorldPackets::Taxi::ShowTaxiNodes::WindowInfo, and WorldPackets::Taxi::ShowTaxiNodes::Write().
Referenced by HandleTaxiQueryAvailableNodesOpcode(), npc_silverpine_bat_handler_maggotbreath::OnGossipSelect(), and Player::OnGossipSelect().
| void WorldSession::SendTaxiStatus | ( | ObjectGuid | guid | ) |
Definition at line 46 of file TaxiHandler.cpp.
References ObjectAccessor::GetCreature(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetReactionTo(), Player::GetTeam(), Unit::HasNpcFlag(), WorldObject::IsHostileTo(), PlayerTaxi::IsTaximaskNodeKnown(), Player::m_taxi, REP_NEUTRAL, SendPacket(), sObjectMgr, WorldPackets::Taxi::TaxiNodeStatus::Status, TAXISTATUS_LEARNED, TAXISTATUS_NONE, TAXISTATUS_NOT_ELIGIBLE, TAXISTATUS_UNLEARNED, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::Taxi::TaxiNodeStatus::Unit, UNIT_NPC_FLAG_FLIGHTMASTER, and WorldPackets::Taxi::TaxiNodeStatus::Write().
Referenced by HandleTaxiNodeStatusQueryOpcode().
| void WorldSession::SendTimeSync | ( | ) |
Definition at line 1816 of file WorldSession.cpp.
References _timeSyncNextCounter, _timeSyncTimer, RegisterTimeSync(), SendPacket(), WorldPackets::Misc::TimeSyncRequest::SequenceIndex, and WorldPackets::Misc::TimeSyncRequest::Write().
Referenced by Player::SendInitialPacketsBeforeAddToMap(), and Update().
| void WorldSession::SendTradeStatus | ( | WorldPackets::Trade::TradeStatus & | status | ) |
Definition at line 35 of file TradeHandler.cpp.
References _player, WorldPackets::ServerPacket::Clear(), GetBattlenetAccountId(), Player::GetSession(), Player::GetTrader(), WorldPackets::Trade::TradeStatus::PartnerIsSameBnetAccount, SendPacket(), and WorldPackets::Trade::TradeStatus::Write().
Referenced by HandleAcceptTradeOpcode(), HandleBeginTradeOpcode(), HandleInitiateTradeOpcode(), HandleSetTradeItemOpcode(), SendCancelTrade(), TradeData::SetAccepted(), and TradeData::SetMoney().
Definition at line 112 of file NPCHandler.cpp.
References _player, BaseEntity::GetGUID(), GetPlayer(), GetSessionDbLocaleIndex(), Player::PlayerTalkClass, Unit::RemoveAurasByType(), Trainer::Trainer::SendSpells(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), Trainer, and UNIT_STATE_DIED.
Referenced by HandleTrainerListOpcode(), and Player::OnGossipSelect().
| void WorldSession::SendTutorialsData | ( | ) |
Definition at line 953 of file WorldSession.cpp.
References _tutorials, SendPacket(), WorldPackets::Misc::TutorialFlags::TutorialData, and WorldPackets::Misc::TutorialFlags::Write().
Referenced by HandlePlayerLogin(), and InitializeSessionCallback().
| void WorldSession::SendUndeleteCharacterResponse | ( | CharacterUndeleteResult | result, |
| WorldPackets::Character::CharacterUndeleteInfo const * | undeleteInfo | ||
| ) |
Definition at line 3017 of file CharacterHandler.cpp.
References WorldPackets::Character::UndeleteCharacterResponse::Result, SendPacket(), WorldPackets::Character::UndeleteCharacterResponse::UndeleteInfo, and WorldPackets::Character::UndeleteCharacterResponse::Write().
Referenced by HandleCharUndeleteOpcode().
| void WorldSession::SendUndeleteCooldownStatusResponse | ( | uint32 | currentCooldown, |
| uint32 | maxCooldown | ||
| ) |
Definition at line 3007 of file CharacterHandler.cpp.
References WorldPackets::Character::UndeleteCooldownStatusResponse::CurrentCooldown, WorldPackets::Character::UndeleteCooldownStatusResponse::MaxCooldown, WorldPackets::Character::UndeleteCooldownStatusResponse::OnCooldown, SendPacket(), and WorldPackets::Character::UndeleteCooldownStatusResponse::Write().
Referenced by HandleUndeleteCooldownStatusCallback().
| void WorldSession::SendUpdateTrade | ( | bool | trader_data = true | ) |
Definition at line 53 of file TradeHandler.cpp.
References _player, WorldPackets::Trade::TradeUpdated::ClientStateIndex, WorldPackets::Trade::TradeUpdated::CurrentStateIndex, TradeData::GetClientStateIndex(), TradeData::GetItem(), TradeData::GetMoney(), TradeData::GetServerStateIndex(), TradeData::GetSpell(), Player::GetTradeData(), TradeData::GetTraderData(), WorldPackets::Trade::TradeItem::GiftCreator, WorldPackets::Trade::TradeUpdated::Gold, WorldPackets::Item::ItemInstance::Initialize(), WorldPackets::Item::ItemGemData::Item, WorldPackets::Trade::TradeItem::Item, WorldPackets::Trade::TradeUpdated::Items, PERM_ENCHANTMENT_SLOT, WorldPackets::Trade::TradeUpdated::ProposedEnchantment, SendPacket(), WorldPackets::Item::ItemGemData::Slot, WorldPackets::Trade::TradeItem::Slot, WorldPackets::Trade::TradeItem::StackCount, TRADE_SLOT_COUNT, WorldPackets::Trade::TradeItem::Unwrapped, USE_ENCHANTMENT_SLOT, WorldPackets::Trade::TradeUpdated::WhichPlayer, and WorldPackets::Trade::TradeUpdated::Write().
Referenced by TradeData::Update().
| void WorldSession::SetAccountData | ( | AccountDataType | type, |
| time_t | time, | ||
| std::string const & | data | ||
| ) |
Definition at line 898 of file WorldSession.cpp.
References _accountData, CHAR_REP_ACCOUNT_DATA, CHAR_REP_PLAYER_ACCOUNT_DATA, CharacterDatabase, AccountData::Data, GetAccountId(), GLOBAL_CACHE_MASK, m_GUIDLow, PreparedStatementBase::setInt64(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and AccountData::Time.
Referenced by HandleUpdateAccountData().
|
inline |
Definition at line 1230 of file WorldSession.h.
Referenced by HandleCalendarAddEvent(), and HandleCalendarCopyEvent().
|
inline |
Session in auth.queue currently.
Definition at line 1040 of file WorldSession.h.
Referenced by World::AddQueuedPlayer(), InitializeSessionCallback(), and World::RemoveQueuedPlayer().
|
inline |
Definition at line 1207 of file WorldSession.h.
Referenced by WorldSocket::HandlePing().
|
inline |
Engage the logout process for the user.
Definition at line 1046 of file WorldSession.h.
Referenced by HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), and LogoutPlayer().
| void WorldSession::SetPlayer | ( | Player * | player | ) |
Definition at line 1218 of file WorldSession.cpp.
References _player, ObjectGuid::GetCounter(), BaseEntity::GetGUID(), and m_GUIDLow.
Referenced by HandlePlayerLogin(), Player::LoadFromDB(), and LogoutPlayer().
| void WorldSession::SetPlayerDataElementAccount | ( | uint32 | dataElementId, |
| float | value | ||
| ) |
Definition at line 1148 of file WorldSession.cpp.
References _playerDataAccount, WorldSession::PlayerDataAccount::Elements, and WorldSession::PlayerDataAccount::Element::Id.
Referenced by Player::SetDataElementAccount().
Definition at line 1161 of file WorldSession.cpp.
References _playerDataAccount, WorldSession::PlayerDataAccount::Elements, and WorldSession::PlayerDataAccount::Element::Id.
| void WorldSession::SetPlayerDataFlagAccount | ( | uint32 | dataFlagId, |
| bool | on | ||
| ) |
Definition at line 1174 of file WorldSession.cpp.
References _playerDataAccount, Trinity::Containers::EnsureWritableVectorIndex(), WorldSession::PlayerDataAccount::Flags, WorldSession::PlayerDataAccount::Flag::NeedSave, PLAYER_DATA_FLAG_VALUE_BITS, sPlayerDataFlagAccountStore, PlayerDataFlagAccountEntry::StorageIndex, UI64LIT, and WorldSession::PlayerDataAccount::Flag::Value.
Referenced by Player::SetDataFlagAccount().
|
inline |
Definition at line 1896 of file WorldSession.h.
Referenced by HandleBattlenetChangeRealmTicket().
|
inline |
Definition at line 1028 of file WorldSession.h.
Definition at line 1109 of file WorldSession.h.
References TUTORIALS_FLAG_CHANGED.
Referenced by HandleTutorialFlag().
|
inline |
| bool WorldSession::Update | ( | uint32 | diff, |
| PacketFilter & | updater | ||
| ) |
Update the WorldSession (triggered by World update)
Delete packet after processing by default
If player didn't log out a while ago, it means packets are being sent while the server does not recognize the client to be in world yet. We will re-add the packets to the bottom of the queue and process them later.
Definition at line 352 of file WorldSession.cpp.
References _player, _recvQueue, _timeSyncTimer, AntiDOS, ClientOpcodeHandler::Call, CMSG_ENUM_CHARACTERS, CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, CONNECTION_TYPE_REALM, WorldSession::DosProtection::EvaluateOpcode(), expireTime, forceExit, GameTime::GetGameTime(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), WorldPackets::InvalidHyperlinkException::GetReason(), GetRemoteAddress(), HasPermission(), ByteBuffer::hexlike(), IsConnectionIdle(), ObjectGuid::IsEmpty(), BaseEntity::IsInWorld(), KickPlayer(), LogoutPlayer(), LogUnexpectedOpcode(), m_inQueue, m_playerLoading, m_playerLogout, m_playerRecentlyLogout, m_Socket, WorldPackets::InvalidHyperlinkException::Malformed, ClientOpcodeHandler::Name, LockedQueue< T, StorageType >::next(), WorldPackets::InvalidHyperlinkException::NotAllowed, opcodeTable, ProcessQueryCallbacks(), PacketFilter::ProcessUnsafe(), rbac::RBAC_PERM_IGNORE_IDLE_CONNECTION, LockedQueue< T, StorageType >::readd(), SendTimeSync(), ShouldLogOut(), sScriptMgr, ClientOpcodeHandler::Status, STATUS_AUTHED, STATUS_IGNORED, STATUS_LOGGEDIN, STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT, STATUS_NEVER, STATUS_TRANSFER, STATUS_UNHANDLED, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, TC_METRIC_DETAILED_TIMER, TC_METRIC_TAG, TC_METRIC_VALUE, and ByteBufferException::what().
Referenced by Map::Update(), and World::UpdateSessions().
| bool WorldSession::UpdateAndCheckInstanceCount | ( | uint32 | instanceId | ) |
Definition at line 1013 of file WorldSession.cpp.
References _instanceResetTimes, CONFIG_MAX_INSTANCES_PER_HOUR, sWorld, and UpdateInstanceEnterTimes().
Referenced by Map::PlayerCannotEnter().
| void WorldSession::UpdateInstanceEnterTimes | ( | ) |
Definition at line 1031 of file WorldSession.cpp.
References _instanceResetTimes, Trinity::Containers::EraseIf(), and GameTime::GetSystemTime().
Referenced by UpdateAndCheckInstanceCount().
|
private |
Definition at line 148 of file MovementHandler.cpp.
References _player, BaseEntity::GetGUID(), GetOpcodeNameForLogging(), GetPlayerInfo(), ObjectAccessor::GetUnit(), Unit::GetUnitBeingMoved(), and TC_LOG_DEBUG.
Referenced by HandleForceSpeedChangeAck(), HandleMoveApplyInertiaAck(), HandleMoveApplyMovementForceAck(), HandleMoveChangeVehicleSeats(), HandleMoveDismissVehicle(), HandleMoveForceGravityModifierChangeAck(), HandleMoveKnockBackAck(), HandleMovementAckMessage(), HandleMovementOpcode(), HandleMoveRemoveInertiaAck(), HandleMoveRemoveMovementForceAck(), HandleMoveSetModMovementForceMagnitudeAck(), HandleMoveSetVehicleRecAck(), HandleMoveSplineDoneOpcode(), HandleMoveTeleportAck(), HandleMoveTimeSkippedOpcode(), HandleSetAdvFlyingSpeedAck(), HandleSetAdvFlyingSpeedRangeAck(), and HandleSetCollisionHeightAck().
| bool WorldSession::ValidateAppearance | ( | Races | race, |
| Classes | playerClass, | ||
| Gender | gender, | ||
| Trinity::IteratorPair< UF::ChrCustomizationChoice const * > | customizations | ||
| ) |
Definition at line 604 of file CharacterHandler.cpp.
References MeetsChrCustomizationReq(), sChrCustomizationReqStore, and sDB2Manager.
Referenced by HandleAlterAppearance(), HandleCharCustomizeCallback(), and HandleCharEnum().
| bool WorldSession::ValidateHyperlinksAndMaybeKick | ( | std::string const & | str | ) |
Definition at line 724 of file WorldSession.cpp.
References Trinity::Hyperlinks::CheckAllLinks(), CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, GetPlayer(), KickPlayer(), sWorld, and TC_LOG_ERROR.
Referenced by HandleChatMessage(), HandleChatMessageAFKOpcode(), and HandleChatMessageDNDOpcode().
| bool WorldSession::ValidateMovementInfo | ( | Unit const * | mover, |
| MovementInfo * | mi | ||
| ) | const |
Anti-cheat checks. Please keep them in seperate if () blocks to maintain a clear overview. Might be subject to latency, so just remove improper flags.
This must be a packet spoofing attempt. MOVEMENTFLAG_ROOT sent from the client is not valid in conjunction with any of the moving movement flags such as MOVEMENTFLAG_FORWARD. It will freeze clients that receive this player's movement info.
Cannot hover without SPELL_AURA_HOVER
Cannot ascend and descend at the same time
Cannot move left and right at the same time
Cannot strafe left and right at the same time
Cannot pitch up and down at the same time
Cannot move forwards and backwards at the same time
Cannot walk on water without SPELL_AURA_WATER_WALK except for ghosts
Cannot feather fall without SPELL_AURA_FEATHER_FALL
Cannot fly if no fly auras present. Exception is being a GM. Note that we check for account level instead of Player::IsGameMaster() because in some situations it may be feasable to use .gm fly on as a GM without having .gm on, e.g. aerial combat.
Definition at line 49 of file MovementHandler.cpp.
References MovementInfo::AddMovementFlag(), GetPlayer(), GetSecurity(), Unit::HasAuraType(), MovementInfo::HasMovementFlag(), Position::IsPositionValid(), MOVEMENTFLAG_ASCENDING, MOVEMENTFLAG_BACKWARD, MOVEMENTFLAG_CAN_FLY, MOVEMENTFLAG_DESCENDING, MOVEMENTFLAG_DISABLE_GRAVITY, MOVEMENTFLAG_FALLING, MOVEMENTFLAG_FALLING_SLOW, MOVEMENTFLAG_FLYING, MOVEMENTFLAG_FORWARD, MOVEMENTFLAG_HOVER, MOVEMENTFLAG_LEFT, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_PITCH_DOWN, MOVEMENTFLAG_PITCH_UP, MOVEMENTFLAG_RIGHT, MOVEMENTFLAG_ROOT, MOVEMENTFLAG_SPLINE_ELEVATION, MOVEMENTFLAG_STRAFE_LEFT, MOVEMENTFLAG_STRAFE_RIGHT, MOVEMENTFLAG_WATERWALKING, MovementInfo::pos, REMOVE_VIOLATING_FLAGS, SEC_PLAYER, SPELL_AURA_ADV_FLYING, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_GHOST, SPELL_AURA_HOVER, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_WATER_WALK, MovementInfo::stepUpStartElevation, and VEHICLE_FLAG_FIXED_POSITION.
Referenced by HandleForceSpeedChangeAck(), HandleMoveApplyInertiaAck(), HandleMoveApplyMovementForceAck(), HandleMoveChangeVehicleSeats(), HandleMoveDismissVehicle(), HandleMoveForceGravityModifierChangeAck(), HandleMoveKnockBackAck(), HandleMovementAckMessage(), HandleMovementOpcode(), HandleMoveRemoveInertiaAck(), HandleMoveRemoveMovementForceAck(), HandleMoveSetModMovementForceMagnitudeAck(), HandleMoveSetVehicleRecAck(), HandleMoveSplineDoneOpcode(), HandleSetAdvFlyingSpeedAck(), HandleSetAdvFlyingSpeedRangeAck(), and HandleSetCollisionHeightAck().
|
friend |
Definition at line 1948 of file WorldSession.h.
|
private |
Definition at line 2031 of file WorldSession.h.
Referenced by LoadAccountData(), and SetAccountData().
|
private |
Definition at line 2007 of file WorldSession.h.
|
private |
Definition at line 2008 of file WorldSession.h.
Referenced by LoadPermissions(), and LoadPermissionsAsync().
|
private |
Definition at line 2009 of file WorldSession.h.
Referenced by GetBattlenetAccountGUID().
|
private |
Definition at line 2019 of file WorldSession.h.
Referenced by SendBattlenetRequest(), and SendBattlenetRequest().
|
private |
Definition at line 2018 of file WorldSession.h.
Referenced by SendBattlenetRequest().
|
private |
Definition at line 2058 of file WorldSession.h.
Referenced by InitializeSessionCallback(), and LogoutPlayer().
|
private |
Definition at line 2056 of file WorldSession.h.
|
private |
Definition at line 2013 of file WorldSession.h.
|
private |
Definition at line 2014 of file WorldSession.h.
|
private |
Definition at line 2060 of file WorldSession.h.
Referenced by HandleAddToy(), HandleCharEnum(), HandleMountSetFavorite(), HandleToyClearFanfare(), HandleUseToy(), and InitializeSessionCallback().
|
private |
Definition at line 2039 of file WorldSession.h.
Referenced by HandleAddonRegisteredPrefixesOpcode(), and IsAddonRegistered().
|
private |
Definition at line 2062 of file WorldSession.h.
Referenced by SendConnectToInstance().
|
private |
Definition at line 2035 of file WorldSession.h.
Referenced by AddInstanceEnterTime(), LoadInstanceTimeRestrictions(), SaveInstanceTimeRestrictions(), UpdateAndCheckInstanceCount(), and UpdateInstanceEnterTimes().
|
private |
Definition at line 1998 of file WorldSession.h.
Referenced by HandleCharEnum().
|
private |
Definition at line 2021 of file WorldSession.h.
|
private |
Definition at line 2012 of file WorldSession.h.
Definition at line 2051 of file WorldSession.h.
Referenced by HandleTimeSync(), RegisterTimeSync(), and ResetTimeSync().
|
private |
Definition at line 2001 of file WorldSession.h.
Referenced by CanOpenMailBox(), CanUseBank(), ComputeNewClockDelta(), DoLootReleaseAll(), GetPlayerInfo(), GetPlayerName(), HandleAcceptTradeOpcode(), HandleAddFriendOpcode(), HandleAddToy(), HandleAdventureJournalOpenQuest(), HandleAdventureJournalUpdateSuggestions(), HandleAdventureMapStartQuest(), HandleAlterAppearance(), HandleAreaSpiritHealerQueryOpcode(), HandleAreaSpiritHealerQueueOpcode(), HandleAreaTriggerOpcode(), HandleArtifactAddPower(), HandleArtifactSetAppearance(), HandleAttackSwingOpcode(), HandleAuctionBrowseQuery(), HandleAuctionCancelCommoditiesPurchase(), HandleAuctionConfirmCommoditiesPurchase(), HandleAuctionGetCommodityQuote(), HandleAuctionListBiddedItems(), HandleAuctionListBucketsByBucketKeys(), HandleAuctionListItemsByBucketKey(), HandleAuctionListItemsByItemID(), HandleAuctionListOwnedItems(), HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), HandleAuctionSellCommodity(), HandleAuctionSellItem(), HandleAuctionSetFavoriteItem(), HandleAutoBankItemOpcode(), HandleAutoDepositCharacterBank(), HandleAutoEquipItemOpcode(), HandleAutoEquipItemSlotOpcode(), HandleAutoStoreBagItemOpcode(), HandleAutoStoreBankItemOpcode(), HandleAzeriteEmpoweredItemSelectPower(), HandleAzeriteEmpoweredItemViewed(), HandleAzeriteEssenceActivateEssence(), HandleAzeriteEssenceUnlockMilestone(), HandleBattlefieldLeaveOpcode(), HandleBattlefieldListOpcode(), HandleBattleFieldPortOpcode(), HandleBattlemasterHelloOpcode(), HandleBattlemasterJoinArena(), HandleBattlemasterJoinOpcode(), HandleBattlePetSummon(), HandleBeginTradeOpcode(), HandleBusyTradeOpcode(), HandleBuybackItem(), HandleBuyBankTab(), HandleBuyItemOpcode(), HandleCalendarAddEvent(), HandleCalendarCommunityInvite(), HandleCalendarComplain(), HandleCalendarCopyEvent(), HandleCalendarEventRemoveInvite(), HandleCalendarEventSignup(), HandleCalendarGetCalendar(), HandleCalendarGetEvent(), HandleCalendarGetNumPending(), HandleCalendarInvite(), HandleCalendarModeratorStatus(), HandleCalendarRemoveEvent(), HandleCalendarRsvp(), HandleCalendarStatus(), HandleCalendarUpdateEvent(), HandleCancelAuraOpcode(), HandleCancelAutoRepeatSpellOpcode(), HandleCancelCastOpcode(), HandleCancelChanneling(), HandleCancelGrowthAuraOpcode(), HandleCancelModSpeedNoControlAuras(), HandleCancelMountAuraOpcode(), HandleCancelQueuedSpellOpcode(), HandleCancelTradeOpcode(), HandleCanDuel(), HandleCastSpellOpcode(), HandleChangeBagSlotFlag(), HandleChatIgnoredOpcode(), HandleCheckIsAdventureMapPoiValid(), HandleClassTalentsDeleteConfig(), HandleClassTalentsRenameConfig(), HandleClassTalentsRequestNewConfig(), HandleClassTalentsSetStarterBuildActive(), HandleClassTalentsSetUsesSharedActionBars(), HandleClearTradeItemOpcode(), HandleCloseInteraction(), HandleCompleteMovie(), HandleConfirmArtifactRespec(), HandleConfirmRespecWipeOpcode(), HandleContactListOpcode(), HandleConversationLineStarted(), HandleConvertRaidOpcode(), HandleCreatureQuery(), HandleDeclinePetition(), HandleDeleteEquipmentSet(), HandleDestroyItemOpcode(), HandleDismissCritter(), HandleEjectPassenger(), HandleEmoteOpcode(), HandleEquipmentSetSave(), HandleFarSightOpcode(), HandleForceSpeedChangeAck(), HandleGameobjectReportUse(), HandleGarrisonCancelConstruction(), HandleGarrisonGetMapData(), HandleGarrisonPurchaseBuilding(), HandleGarrisonRequestBlueprintAndSpecializationData(), HandleGetGarrisonInfo(), HandleGetItemPurchaseData(), HandleGetMailList(), HandleGossipHelloOpcode(), HandleGossipSelectOptionOpcode(), HandleGuildChallengeUpdateRequest(), HandleGuildGetRanks(), HandleGuildSetFocusedAchievement(), HandleHearthAndResurrect(), HandleIgnoreTradeOpcode(), HandleInitiateTradeOpcode(), HandleInspectOpcode(), HandleInstanceLockResponse(), HandleItemRefund(), HandleItemTextQuery(), HandleLearnPvpTalentsOpcode(), HandleLearnTalentsOpcode(), HandleLeaveGroupOpcode(), HandleLootMasterGiveOpcode(), HandleLootOpcode(), HandleMailCreateTextItem(), HandleMailDelete(), HandleMailMarkAsRead(), HandleMailReturnToSender(), HandleMailTakeItem(), HandleMailTakeMoney(), HandleMirrorImageDataRequest(), HandleMissileTrajectoryCollision(), HandleMountSpecialAnimOpcode(), HandleMoveDismissVehicle(), HandleMoveInitActiveMoverComplete(), HandleMovementOpcode(), HandleMoveSetModMovementForceMagnitudeAck(), HandleMoveTimeSkippedOpcode(), HandleMoveWorldportAckOpcode(), HandleObjectUpdateFailedOpcode(), HandleObjectUpdateRescuedOpcode(), HandleOfferPetition(), HandleOpeningCinematic(), HandlePetAbandon(), HandlePetAbandonByNumber(), HandlePetAction(), HandlePetActionHelper(), HandlePetCancelAuraOpcode(), HandlePetCastSpellOpcode(), HandlePetitionBuy(), HandlePetitionRenameGuild(), HandlePetitionShowSignatures(), HandlePetRename(), HandlePetSetAction(), HandlePetSpellAutocastOpcode(), HandlePetStopAttack(), HandlePlayedTime(), HandlePlayerChoiceResponse(), HandlePlayerLogin(), HandlePushQuestToParty(), HandlePVPLogDataOpcode(), HandleQueryBattlePetName(), HandleQueryCorpseLocation(), HandleQueryCorpseTransport(), HandleQueryCountdownTimer(), HandleQueryInspectAchievements(), HandleQueryNextMailTime(), HandleQueryQuestCompletionNPCs(), HandleQuestConfirmAccept(), HandleQuestgiverAcceptQuestOpcode(), HandleQuestgiverChooseRewardOpcode(), HandleQuestgiverCloseQuest(), HandleQuestgiverCompleteQuest(), HandleQuestgiverHelloOpcode(), HandleQuestgiverQueryQuestOpcode(), HandleQuestgiverRequestRewardOpcode(), HandleQuestgiverStatusMultipleQuery(), HandleQuestgiverStatusQueryOpcode(), HandleQuestLogRemoveQuest(), HandleQuestPOIQuery(), HandleQuestPushResult(), HandleQuestQueryOpcode(), HandleReadItem(), HandleReclaimCorpse(), HandleRemoveNewItem(), HandleRepairItemOpcode(), HandleReportPvPAFK(), HandleRequestAccountData(), HandleRequestBattlefieldStatusOpcode(), HandleRequestCemeteryList(), HandleRequestGuildRewardsList(), HandleRequestLatestSplashScreen(), HandleRequestPetInfo(), HandleRequestPvpReward(), HandleRequestRaidInfoOpcode(), HandleRequestStabledPets(), HandleResetInstancesOpcode(), HandleRideVehicleInteract(), HandleSavePersonalEmblem(), HandleSelfResOpcode(), HandleSellAllJunkItems(), HandleSellItemOpcode(), HandleSendMail(), HandleSendPingCooldown(), HandleSendPingUnit(), HandleSendPingWorldPoint(), HandleSetActiveMoverOpcode(), HandleSetAdvancedCombatLogging(), HandleSetBackpackAutosortDisabled(), HandleSetBackpackSellJunkDisabled(), HandleSetBankAutosortDisabled(), HandleSetContactNotesOpcode(), HandleSetCurrencyFlags(), HandleSetDungeonDifficultyOpcode(), HandleSetEmpowerMinHoldStagePercent(), HandleSetFactionInactiveOpcode(), HandleSetPetSlot(), HandleSetRaidDifficultyOpcode(), HandleSetSavedInstanceExtend(), HandleSetSelectionOpcode(), HandleSetTaxiBenchmark(), HandleSetTradeGoldOpcode(), HandleSetTradeItemOpcode(), HandleSetWarMode(), HandleSignPetition(), HandleSocketGems(), HandleSpawnTrackingUpdate(), HandleSpellClick(), HandleSpellEmpowerRelease(), HandleSpellEmpowerRestart(), HandleSplitItemOpcode(), HandleStandStateChangeOpcode(), HandleSummonResponseOpcode(), HandleSuspendTokenResponse(), HandleSwapInvItemOpcode(), HandleSwapItem(), HandleTextEmoteOpcode(), HandleTotemDestroyed(), HandleTradeSkillSetFavorite(), HandleTrainerBuySpellOpcode(), HandleTraitsCommitConfig(), HandleTransmogOutfitNew(), HandleTransmogOutfitUpdateInfo(), HandleTransmogOutfitUpdateSituations(), HandleTransmogOutfitUpdateSlots(), HandleTransmogrifyItems(), HandleTurnInPetition(), HandleUiMapQuestLinesRequest(), HandleUnacceptTradeOpcode(), HandleUpdateAreaTriggerVisual(), HandleUpdateAuraVisual(), HandleUpdateBankTabSettings(), HandleUpdateMissileTrajectory(), HandleUseCritterItem(), HandleUseEquipmentSet(), HandleUseItemOpcode(), HandleUseToy(), HandleWhoOpcode(), HandleWrapItem(), LogoutPlayer(), MeetsChrCustomizationReq(), moveItems(), SendAuctionFavoriteList(), SendBindPoint(), SendLfgPlayerLockInfo(), SendLfgUpdateStatus(), SendListInventory(), SendQueryPetNameResponse(), SendShowBank(), SendSpiritResurrect(), SendTradeStatus(), SendTrainerList(), SendUpdateTrade(), SetPlayer(), Update(), ValidateAndGetUnitBeingMoved(), and ~WorldSession().
|
private |
Definition at line 2037 of file WorldSession.h.
Referenced by LoadPlayerDataAccount(), SavePlayerDataAccount(), SetPlayerDataElementAccount(), SetPlayerDataElementAccount(), and SetPlayerDataFlagAccount().
|
private |
Definition at line 1946 of file WorldSession.h.
Referenced by AddQueryHolderCallback(), and ProcessQueryCallbacks().
|
private |
Definition at line 1944 of file WorldSession.h.
Referenced by HandleCharCreateOpcode(), HandleCharCustomizeOpcode(), HandleCharRaceOrFactionChangeOpcode(), HandleCharRenameOpcode(), HandleCharUndeleteOpcode(), HandleCheckCharacterNameAvailability(), HandleGetUndeleteCooldownStatus(), HandleOpenItemOpcode(), and ProcessQueryCallbacks().
|
private |
Definition at line 2043 of file WorldSession.h.
Referenced by GetRBACData(), HasPermission(), InvalidateRBACData(), LoadPermissions(), LoadPermissionsAsync(), and ~WorldSession().
Definition at line 2017 of file WorldSession.h.
Referenced by InitializeSessionCallback().
|
private |
Definition at line 2016 of file WorldSession.h.
|
private |
Definition at line 2042 of file WorldSession.h.
Referenced by QueuePacket(), Update(), and ~WorldSession().
|
private |
Definition at line 2038 of file WorldSession.h.
Referenced by HandleAddonRegisteredPrefixesOpcode(), HandleUnregisterAllAddonPrefixesOpcode(), and IsAddonRegistered().
|
private |
Definition at line 2006 of file WorldSession.h.
|
private |
Definition at line 2048 of file WorldSession.h.
Referenced by AdjustClientMovementTime(), ComputeNewClockDelta(), and HandlePlayerLogin().
|
private |
Definition at line 2047 of file WorldSession.h.
Referenced by ComputeNewClockDelta(), HandlePlayerLogin(), and HandleTimeSync().
|
private |
Definition at line 2052 of file WorldSession.h.
Referenced by ResetTimeSync(), and SendTimeSync().
|
private |
Definition at line 2053 of file WorldSession.h.
Referenced by SendTimeSync(), and Update().
|
private |
Definition at line 2029 of file WorldSession.h.
|
private |
Definition at line 1945 of file WorldSession.h.
Referenced by AddTransactionCallback(), and ProcessQueryCallbacks().
|
private |
Definition at line 2032 of file WorldSession.h.
Referenced by LoadTutorialsData(), SaveTutorialsData(), and SendTutorialsData().
|
private |
Definition at line 2033 of file WorldSession.h.
Referenced by LoadTutorialsData(), and SaveTutorialsData().
|
protected |
Referenced by Update().
|
private |
Definition at line 2044 of file WorldSession.h.
Referenced by Update().
|
private |
Definition at line 2045 of file WorldSession.h.
Referenced by KickPlayer(), and Update().
|
private |
Definition at line 2041 of file WorldSession.h.
|
private |
Definition at line 2010 of file WorldSession.h.
|
private |
Definition at line 2003 of file WorldSession.h.
|
private |
Definition at line 2011 of file WorldSession.h.
|
private |
Definition at line 2000 of file WorldSession.h.
Referenced by HandleAddFriendOpcode(), SetAccountData(), and SetPlayer().
|
private |
Definition at line 2022 of file WorldSession.h.
Referenced by InitializeSessionCallback(), IsConnectionIdle(), and Update().
|
private |
Definition at line 2030 of file WorldSession.h.
| time_t WorldSession::m_muteTime |
Definition at line 1196 of file WorldSession.h.
Referenced by CanSpeak(), HandleChatMessage(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), HandleTextEmoteOpcode(), misc_commandscript::HandleUnmuteCommand(), Player::Update(), and Player::UpdateSpeakTime().
|
private |
Definition at line 2023 of file WorldSession.h.
Referenced by AbortLogin(), GetPlayerInfo(), HandleContinuePlayerLogin(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), and Update().
|
private |
Definition at line 2024 of file WorldSession.h.
Referenced by LogoutPlayer(), and Update().
|
private |
Definition at line 2025 of file WorldSession.h.
Referenced by LogoutPlayer(), and Update().
|
private |
Definition at line 2026 of file WorldSession.h.
Referenced by LogoutPlayer().
|
private |
Definition at line 2027 of file WorldSession.h.
|
private |
Definition at line 2028 of file WorldSession.h.
|
private |
Definition at line 2002 of file WorldSession.h.
Referenced by AddInstanceConnection(), KickPlayer(), LogoutPlayer(), PlayerDisconnected(), SendPacket(), Update(), and ~WorldSession().
| std::atomic<time_t> WorldSession::m_timeOutTime |
Definition at line 1209 of file WorldSession.h.
Referenced by IsConnectionIdle(), and ResetTimeOutTime().
|
private |
Definition at line 2040 of file WorldSession.h.
|
staticconstexpr |
Definition at line 1225 of file WorldSession.h.
Referenced by HandleMoveInitActiveMoverComplete(), and Map::SendInitSelf().
|
staticconstexpr |
Definition at line 1226 of file WorldSession.h.
Referenced by HandleContinuePlayerLogin(), and HandleQueuedMessagesEnd().