![]() |
TrinityCore
|
Player session in the World. More...
#include <WorldSession.h>
Classes | |
| struct | Addons |
| class | DosProtection |
Static Public Member Functions | |
| static void | WriteMovementInfo (WorldPacket *data, MovementInfo *mi) |
Public Attributes | |
| time_t | m_muteTime |
| std::atomic< time_t > | m_timeOutTime |
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. | |
| void | LogUnprocessedTail (WorldPacket *packet) |
| 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 550 of file WorldSession.h.
| WorldSession::WorldSession | ( | uint32 | id, |
| std::string && | name, | ||
| std::shared_ptr< WorldSocket > | sock, | ||
| AccountTypes | sec, | ||
| uint8 | expansion, | ||
| time_t | mute_time, | ||
| Minutes | timezoneOffset, | ||
| LocaleConstant | locale, | ||
| uint32 | recruiter, | ||
| bool | isARecruiter | ||
| ) |
WorldSession constructor.
Definition at line 114 of file WorldSession.cpp.
References GetAccountId(), LoginDatabase, m_Address, m_Socket, and ResetTimeOutTime().
| WorldSession::~WorldSession | ( | ) |
WorldSession destructor.
Definition at line 162 of file WorldSession.cpp.
References _gameClient, _player, _RBACData, _recvQueue, GetAccountId(), LoginDatabase, LogoutPlayer(), m_Socket, and LockedQueue< T, StorageType >::next().
|
privatedelete |
| void WorldSession::AddInstanceEnterTime | ( | uint32 | instanceId, |
| SystemTimePoint | enterTime | ||
| ) |
Definition at line 925 of file WorldSession.cpp.
References _instanceResetTimes.
Referenced by InstanceMap::AddPlayerToMap().
| SQLQueryHolderCallback & WorldSession::AddQueryHolderCallback | ( | SQLQueryHolderCallback && | callback | ) |
Definition at line 1074 of file WorldSession.cpp.
References _queryHolderProcessor, and AsyncCallbackProcessor< T >::AddCallback().
Referenced by HandlePlayerLoginOpcode(), InitializeSession(), and Pet::LoadPetFromDB().
| TransactionCallback & WorldSession::AddTransactionCallback | ( | TransactionCallback && | callback | ) |
Definition at line 1069 of file WorldSession.cpp.
References _transactionCallbacks, and AsyncCallbackProcessor< T >::AddCallback().
Definition at line 175 of file MovementHandler.cpp.
References _timeSyncClockDelta, GameTime::GetGameTimeMS(), SI64LIT, and TC_LOG_WARN.
Referenced by HandleDismissControlledVehicle(), HandleForceSpeedChangeAck(), HandleMoveKnockBackAck(), and HandleMovementOpcode().
| void WorldSession::BuildPartyMemberStatsChangedPacket | ( | Player * | player, |
| WorldPacket * | data | ||
| ) |
Definition at line 719 of file GroupHandler.cpp.
References ObjectGuid::Empty, Pet::GetAuraUpdateMaskForRaid(), Player::GetAuraUpdateMaskForRaid(), AuraApplication::GetBase(), Unit::GetDisplayId(), AuraApplication::GetFlags(), Player::GetGroupUpdateFlag(), Object::GetGUID(), Unit::GetHealth(), Aura::GetId(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetName(), Object::GetPackGUID(), Player::GetPet(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetPower(), Unit::GetPowerType(), Unit::GetVehicle(), Unit::GetVisibleAura(), WorldObject::GetZoneId(), GROUP_UPDATE_FLAG_AURAS, GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_CUR_POWER, GROUP_UPDATE_FLAG_LEVEL, GROUP_UPDATE_FLAG_MAX_HP, GROUP_UPDATE_FLAG_MAX_POWER, GROUP_UPDATE_FLAG_NONE, GROUP_UPDATE_FLAG_PET_AURAS, GROUP_UPDATE_FLAG_PET_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_POWER, GROUP_UPDATE_FLAG_PET_GUID, GROUP_UPDATE_FLAG_PET_MAX_HP, GROUP_UPDATE_FLAG_PET_MAX_POWER, GROUP_UPDATE_FLAG_PET_MODEL_ID, GROUP_UPDATE_FLAG_PET_NAME, GROUP_UPDATE_FLAG_PET_POWER_TYPE, GROUP_UPDATE_FLAG_POSITION, GROUP_UPDATE_FLAG_POWER_TYPE, GROUP_UPDATE_FLAG_STATUS, GROUP_UPDATE_FLAG_VEHICLE_SEAT, GROUP_UPDATE_FLAG_ZONE, GROUP_UPDATE_FLAGS_COUNT, GroupUpdateLength, Object::HasFlag(), WorldPacket::Initialize(), Player::isAFK(), Unit::IsAlive(), Player::isDND(), Unit::IsFFAPvP(), Unit::IsPvP(), WorldObject::m_movementInfo, MAX_AURAS_GROUP_UPDATE, MEMBER_STATUS_AFK, MEMBER_STATUS_DEAD, MEMBER_STATUS_DND, MEMBER_STATUS_GHOST, MEMBER_STATUS_ONLINE, MEMBER_STATUS_PVP, MEMBER_STATUS_PVP_FFA, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, MovementInfo::TransportInfo::seat, SMSG_PARTY_MEMBER_STATS, and MovementInfo::transport.
Referenced by Group::UpdatePlayerOutOfRange().
| bool WorldSession::CanOpenMailBox | ( | ObjectGuid | guid | ) |
Definition at line 36 of file MailHandler.cpp.
References _player, GAMEOBJECT_TYPE_MAILBOX, Player::GetGameObjectIfCanInteractWith(), Object::GetGUID(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), HasPermission(), ObjectGuid::IsAnyTypeCreature(), ObjectGuid::IsGameObject(), rbac::RBAC_PERM_COMMAND_MAILBOX, TC_LOG_WARN, and UNIT_NPC_FLAG_MAILBOX.
Referenced by HandleGetMailList(), HandleMailCreateTextItem(), HandleMailDelete(), HandleMailMarkAsRead(), HandleMailReturnToSender(), HandleMailTakeItem(), HandleMailTakeMoney(), and HandleSendMail().
| bool WorldSession::CanSpeak | ( | ) | const |
Definition at line 705 of file WorldSession.cpp.
References GameTime::GetGameTime(), and m_muteTime.
Referenced by HandleChatMessage(), HandleTextEmoteOpcode(), and misc_commandscript::HandleUnmuteCommand().
|
private |
Definition at line 28 of file BankHandler.cpp.
References Object::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), m_currentBankerGUID, and UNIT_NPC_FLAG_BANKER.
Referenced by HandleAutoBankItemOpcode(), HandleAutoStoreBankItemOpcode(), HandleBuyBankSlotOpcode(), HandleSwapInvItemOpcode(), and HandleSwapItem().
| bool WorldSession::CheckStableMaster | ( | ObjectGuid | guid | ) |
Definition at line 433 of file PetHandler.cpp.
References GetPlayer(), SPELL_AURA_OPEN_STABLE, TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_NPC_FLAG_STABLEMASTER.
Referenced by HandleBuyStableSlot(), HandleRequestStabledPets(), HandleStablePet(), HandleStableSwapPet(), and HandleUnstablePet().
|
private |
Definition at line 1065 of file MovementHandler.cpp.
References _timeSyncClockDelta, and _timeSyncClockDeltaQueue.
Referenced by HandleTimeSyncResponse().
| bool WorldSession::DisallowHyperlinksAndMaybeKick | ( | std::string const & | str | ) |
Definition at line 656 of file WorldSession.cpp.
References CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, GetPlayer(), KickPlayer(), sWorld, and TC_LOG_ERROR.
Referenced by HandleJoinChannel().
| void WorldSession::DoLootRelease | ( | ObjectGuid | lguid | ) |
Definition at line 246 of file LootHandler.cpp.
References _player, GameObject::AddUse(), Creature::AllLootRemovedFromCorpse(), CLASS_ROGUE, ObjectGuid::Clear(), Loot::clear(), CORPSE_DYNFLAG_LOOTABLE, Player::DestroyItem(), Player::DestroyItemCount(), ObjectGuid::Empty, GameObjectValue::FishingHole, Object::ForceValuesUpdateAtIndex(), GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, Item::GetBagSlot(), Unit::GetClass(), ObjectAccessor::GetCorpse(), Item::GetCount(), Map::GetCreature(), Map::GetGameObject(), GameObject::GetGoType(), GameObject::GetGOValue(), Player::GetGroup(), Object::GetGUID(), Player::GetItemByGuid(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GetPlayer(), Item::GetSlot(), Item::GetTemplate(), GameObject::GetUseCount(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, ItemTemplate::HasFlag(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), ObjectGuid::IsGameObject(), Object::IsInWorld(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), ITEM_FLAG_HAS_LOOT, ITEM_FLAG_IS_MILLABLE, ITEM_FLAG_IS_PROSPECTABLE, Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_PICKPOCKETING, Loot::loot_type, Item::m_lootGenerated, GameObjectValue::MaxOpens, Corpse::RemoveCorpseDynamicFlag(), Object::RemoveDynamicFlag(), Loot::RemoveLooter(), Unit::RemoveUnitFlag(), Loot::roundRobinPlayer, Player::SendLootRelease(), Player::SetLootGUID(), GameObject::SetLootState(), UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE, UNIT_FLAG_LOOTING, and GameObject::UseDoorOrButton().
Referenced by HandleAutostoreLootItemOpcode(), HandleLogoutRequestOpcode(), HandleLootMoneyOpcode(), HandleLootReleaseOpcode(), LogoutPlayer(), Player::RemoveFromWorld(), Player::SendLoot(), and Player::SwapItem().
|
inline |
Definition at line 670 of file WorldSession.h.
Referenced by HandleRequestAccountData(), and SendAccountDataTimes().
|
inline |
Definition at line 593 of file WorldSession.h.
Referenced by World::AddSession_(), Warden::ApplyPenalty(), CharacterActionIpLogger::CharacterIPLogAction(), Spell::CheckCast(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), WorldSession::DosProtection::EvaluateOpcode(), SocialMgr::GetFriendInfo(), GetPlayerInfo(), Player::GetsRecruitAFriendBonus(), HandleAcceptGrantLevel(), HandleAcceptTradeOpcode(), account_commandscript::HandleAccount2FARemoveCommand(), account_commandscript::HandleAccount2FASetupCommand(), account_commandscript::HandleAccountAddonCommand(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountLockIpCommand(), account_commandscript::HandleAccountPasswordCommand(), account_commandscript::HandleAccountSetAddonCommand(), account_commandscript::HandleAccountSetSecLevelCommand(), HandleAuctionPlaceBid(), HandleAuctionSellItem(), HandleCharCreateOpcode(), HandleCharCustomize(), HandleCharCustomizeCallback(), HandleCharDeleteOpcode(), HandleCharEnum(), HandleCharEnumOpcode(), HandleCharRaceOrFactionChange(), HandleCharRenameCallBack(), HandleCharRenameOpcode(), WardenWin::HandleCheckResult(), HandleDismissCritter(), HandleForceSpeedChangeAck(), HandleGrantLevel(), HandleMailReturnToSender(), HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), misc_commandscript::HandleMuteCommand(), misc_commandscript::HandlePInfoCommand(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), HandleSendMail(), HandleSignPetition(), misc_commandscript::HandleUnmuteCommand(), HandleWhoIsOpcode(), World::HasRecentlyDisconnected(), WardenMac::Init(), WardenWin::Init(), InitializeSession(), KickPlayer(), LoadPermissions(), LoadPermissionsAsync(), LogCommandUsage(), LogoutPlayer(), moveItems(), ReadAddonsInfo(), WardenWin::RequestChecks(), SaveInstanceTimeRestrictions(), SaveTutorialsData(), AuctionHouseMgr::SendAuctionWonMail(), SetAccountData(), Guild::Member::SetStats(), Update(), WorldSession(), and ~WorldSession().
|
inline |
Definition at line 594 of file WorldSession.h.
Referenced by account_commandscript::HandleAccountOnlineListCommandWithParameters().
|
inline |
Definition at line 761 of file WorldSession.h.
Referenced by HandleCalendarAddEvent(), and HandleCalendarCopyEvent().
|
inline |
Definition at line 602 of file WorldSession.h.
Referenced by lfg::LFGMgr::GetLockedDungeons(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), HandleCharCreateOpcode(), SendAuthResponse(), and SendLfgPlayerLockInfo().
|
inline |
Definition at line 584 of file WorldSession.h.
Referenced by Player::GetGameClient(), HandleCancelChanneling(), HandleFeatherFallAck(), HandleForceSpeedChangeAck(), HandleMoveGravityDisableAck(), HandleMoveGravityEnableAck(), HandleMoveHoverAck(), HandleMoveKnockBackAck(), HandleMoveNotActiveMover(), HandleMoveRootAck(), HandleMoveSetCanFlyAckOpcode(), HandleMoveSetCanTransitionBetweenSwinAndFlyAck(), HandleMoveSetCollisionHgtAck(), HandleMoveUnRootAck(), HandleMoveWaterWalkAck(), HandleSetActiveMoverOpcode(), and ValidateAndGetUnitBeingMoved().
|
inline |
Definition at line 742 of file WorldSession.h.
Referenced by WorldSession::DosProtection::EvaluateOpcode(), misc_commandscript::HandlePInfoCommand(), HandleReportLag(), Player::SaveToDB(), and Warden::Update().
|
inline |
Definition at line 595 of file WorldSession.h.
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand(), Guild::BroadcastToGuild(), CanUseBank(), cast_commandscript::CheckSpellExistsAndIsValid(), CheckStableMaster(), DisallowHyperlinksAndMaybeKick(), ArenaTeam::Disband(), DoLootRelease(), go_commandscript::DoTeleport(), ChatHandler::GetCreatureFromPlayerMapByDbGuid(), ChatHandler::GetNameLink(), ChatHandler::GetNearbyGameObject(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), ChatHandler::GetPlayer(), ChatHandler::GetPlayerGroupAndGUIDByName(), ChatHandler::getSelectedCreature(), ChatHandler::getSelectedObject(), ChatHandler::getSelectedPlayer(), ChatHandler::getSelectedPlayerOrSelf(), GetSelectedPlayerPetOrOwn(), ChatHandler::getSelectedUnit(), Guild::HandleAcceptMember(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), account_commandscript::HandleAccountPasswordCommand(), HandleActivateTaxiExpressOpcode(), HandleActivateTaxiOpcode(), HandleAddFriendOpcode(), HandleAddIgnoreOpcode(), misc_commandscript::HandleAddItemCommand(), misc_commandscript::HandleAddItemSetCommand(), misc_commandscript::HandleAddItemToCommand(), Guild::HandleAddNewRank(), misc_commandscript::HandleAppearCommand(), HandleAreaSpiritHealerQueryOpcode(), HandleAreaSpiritHealerQueueOpcode(), HandleAreaTriggerOpcode(), HandleArenaTeamInviteOpcode(), HandleAttackStopOpcode(), HandleAuctionHelloOpcode(), HandleAuctionListBidderItems(), HandleAuctionListItems(), HandleAuctionListOwnerItems(), HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), HandleAuctionSellItem(), HandleAutostoreLootItemOpcode(), misc_commandscript::HandleBankCommand(), HandleBankerActivateOpcode(), HandleBattlemasterHelloOpcode(), HandleBattlemasterJoinArena(), HandleBattlemasterJoinOpcode(), HandleBinderActivateOpcode(), misc_commandscript::HandleBindSightCommand(), HandleBuybackItem(), Guild::HandleBuyBankTab(), HandleBuyItemInSlotOpcode(), HandleBuyItemOpcode(), HandleBuyStableSlot(), HandleCancelTempEnchantmentOpcode(), cast_commandscript::HandleCastBackCommand(), cast_commandscript::HandleCastCommand(), cast_commandscript::HandleCastDistCommand(), cheat_commandscript::HandleCasttimeCheatCommand(), HandleChangeSeatsOnControlledVehicle(), misc_commandscript::HandleChangeWeather(), HandleChannelCommand(), HandleChannelPassword(), HandleChannelPlayerCommand(), message_commandscript::HandleChannelSetOwnership(), character_commandscript::HandleCharacterLevelCommand(), HandleChatIgnoredOpcode(), HandleChatMessage(), cheat_commandscript::HandleCheatStatusCommand(), misc_commandscript::HandleComeToMeCommand(), HandleCompleteCinematic(), cheat_commandscript::HandleCoolDownCheatCommand(), misc_commandscript::HandleCooldownCommand(), misc_commandscript::HandleDamageCommand(), misc_commandscript::HandleDamageGoCommand(), HandleDelFriendOpcode(), HandleDelIgnoreOpcode(), modify_commandscript::HandleDeMorphCommand(), misc_commandscript::HandleDevCommand(), misc_commandscript::HandleDieCommand(), Guild::HandleDisband(), HandleDismissCritter(), HandleDuelAccepted(), HandleDuelCancelled(), HandleEjectPassenger(), cheat_commandscript::HandleExploreCheatCommand(), HandleFarSightOpcode(), misc_commandscript::HandleFreezeCommand(), 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(), misc_commandscript::HandleGetDistanceCommand(), HandleGetItemPurchaseData(), gm_commandscript::HandleGMFlyCommand(), gm_commandscript::HandleGMListIngameCommand(), HandleGMResponseResolve(), HandleGMSurveySubmit(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), HandleGMTicketCreateOpcode(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), HandleGMTicketDeleteOpcode(), HandleGMTicketGetTicketOpcode(), ticket_commandscript::HandleGMTicketUnAssignCommand(), HandleGMTicketUpdateOpcode(), gm_commandscript::HandleGMVisibleCommand(), go_commandscript::HandleGoBossCommand(), cheat_commandscript::HandleGodModeCheatCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoInstanceCommand(), go_commandscript::HandleGoOffsetCommand(), HandleGossipHelloOpcode(), HandleGossipSelectOptionOpcode(), go_commandscript::HandleGoTicketCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGPSCommand(), HandleGroupAcceptOpcode(), HandleGroupAssistantLeaderOpcode(), HandleGroupChangeSubGroupOpcode(), HandleGroupDeclineOpcode(), HandleGroupDisbandOpcode(), HandleGroupInviteOpcode(), HandleGroupRaidConvertOpcode(), HandleGroupSetLeaderOpcode(), group_commandscript::HandleGroupSummonCommand(), HandleGroupUninviteGuidOpcode(), HandleGroupUninviteOpcode(), misc_commandscript::HandleGUIDCommand(), HandleGuildAcceptOpcode(), HandleGuildAddRankOpcode(), HandleGuildBankActivate(), HandleGuildBankBuyTab(), HandleGuildBankDepositMoney(), HandleGuildBankLogQuery(), HandleGuildBankMoneyWithdrawn(), HandleGuildBankQueryTab(), HandleGuildBankSetTabText(), HandleGuildBankSwapItems(), HandleGuildBankTextQuery(), HandleGuildBankUpdateTab(), HandleGuildBankWithdrawMoney(), HandleGuildDeclineOpcode(), HandleGuildDelete(), HandleGuildDeleteRank(), HandleGuildDemoteOpcode(), HandleGuildEventLogQueryOpcode(), HandleGuildInfoOpcode(), HandleGuildInviteOpcode(), HandleGuildLeaveOpcode(), HandleGuildOfficerRemoveMember(), HandleGuildPermissionsQuery(), HandleGuildPromoteOpcode(), HandleGuildRosterOpcode(), HandleGuildSetGuildMaster(), HandleGuildSetOfficerNoteOpcode(), HandleGuildSetPublicNoteOpcode(), HandleGuildSetRankPermissions(), HandleGuildUpdateInfoText(), HandleGuildUpdateMotdText(), honor_commandscript::HandleHonorAddKillCommand(), HandleInitiateTradeOpcode(), HandleInspectArenaTeamsOpcode(), HandleInspectOpcode(), instance_commandscript::HandleInstanceListBindsCommand(), instance_commandscript::HandleInstanceSaveDataCommand(), instance_commandscript::HandleInstanceUnbindCommand(), Guild::HandleInviteMember(), misc_commandscript::HandleItemMoveCommand(), HandleItemRefund(), HandleJoinChannel(), misc_commandscript::HandleKickPlayerCommand(), learn_commandscript::HandleLearnAllGMCommand(), learn_commandscript::HandleLearnAllPetTalentsCommand(), learn_commandscript::HandleLearnAllTalentsCommand(), learn_commandscript::HandleLearnCommand(), HandleLeaveChannel(), Guild::HandleLeaveMember(), character_commandscript::HandleLevelUpCommand(), HandleLfgGetStatus(), HandleLfgJoinOpcode(), HandleLfgLeaveOpcode(), HandleLfgProposalResultOpcode(), HandleLfgSetBootVoteOpcode(), HandleLfgSetCommentOpcode(), HandleLfgSetRolesOpcode(), HandleLfgTeleportOpcode(), misc_commandscript::HandleLinkGraveCommand(), list_commandscript::HandleListCreatureCommand(), HandleListInventoryOpcode(), list_commandscript::HandleListObjectCommand(), list_commandscript::HandleListRespawnsCommand(), list_commandscript::HandleListSpawnPointsCommand(), HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), lookup_commandscript::HandleLookupPlayerIpCommand(), HandleLootMasterGiveOpcode(), HandleLootMethodOpcode(), HandleLootMoneyOpcode(), HandleLootOpcode(), HandleLootReleaseOpcode(), HandleLootRoll(), misc_commandscript::HandleMailBoxCommand(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberLogout(), Guild::HandleMemberWithdrawMoney(), HandleMinimapPingOpcode(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), mmaps_commandscript::HandleMmapStatsCommand(), mmaps_commandscript::HandleMmapTestArea(), modify_commandscript::HandleModifyMorphCommand(), modify_commandscript::HandleModifyPhaseCommand(), modify_commandscript::HandleModifyStandStateCommand(), HandleMountSpecialAnimOpcode(), HandleMovementOpcode(), HandleMoveSplineDoneOpcode(), HandleMoveTeleportAck(), HandleMoveTimeSkippedOpcode(), 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(), HandleOfferPetitionOpcode(), HandleOpenItemOpcode(), HandleOpenWrappedItemCallback(), HandleOptOutOfLootOpcode(), HandlePartyAssignmentOpcode(), HandlePetAction(), HandlePetActionHelper(), HandlePetCancelAuraOpcode(), HandlePetCastSpellOpcode(), pet_commandscript::HandlePetCreateCommand(), HandlePetitionBuyOpcode(), HandlePetitionShowSignatures(), HandlePetSetAction(), HandlePetSpellAutocastOpcode(), HandlePetStopAttack(), HandlePlayerLoginOpcode(), misc_commandscript::HandlePossessCommand(), cheat_commandscript::HandlePowerCheatCommand(), HandlePushQuestToParty(), HandleQueryCorpseLocation(), HandleQueryInspectAchievements(), HandleQuestgiverAcceptQuestOpcode(), HandleQuestgiverHelloOpcode(), HandleQuestLogSwapQuest(), HandleRaidReadyCheckFinishedOpcode(), HandleRaidReadyCheckOpcode(), HandleRaidTargetUpdateOpcode(), HandleRandomRollOpcode(), Guild::HandleRemoveMember(), Guild::HandleRemoveRank(), HandleRepairItemOpcode(), HandleRepopRequest(), HandleReportLag(), HandleRequestHonorStats(), HandleRequestPartyMemberStatsOpcode(), HandleRequestStabledPets(), HandleRequestVehicleExit(), reset_commandscript::HandleResetSpellsCommand(), reset_commandscript::HandleResetTalentsCommand(), misc_commandscript::HandleRespawnCommand(), HandleResurrectResponse(), Guild::HandleRoster(), misc_commandscript::HandleSaveCommand(), HandleSaveGuildEmblemOpcode(), HandleSellItemOpcode(), send_commandscript::HandleSendItemsCommand(), HandleSendMail(), send_commandscript::HandleSendMailCommand(), send_commandscript::HandleSendMoneyCommand(), HandleSetActionBarToggles(), HandleSetActionButtonOpcode(), Guild::HandleSetEmblem(), HandleSetFactionAtWar(), HandleSetFactionCheat(), Guild::HandleSetInfo(), Guild::HandleSetMemberNote(), Guild::HandleSetMOTD(), Guild::HandleSetNewGuildMaster(), Guild::HandleSetRankInfo(), HandleSetSavedInstanceExtend(), HandleSetTitleOpcode(), HandleSetWatchedFactionOpcode(), HandleSignPetition(), HandleSpiritHealerActivateOpcode(), HandleStablePet(), HandleStableSwapPet(), misc_commandscript::HandleSummonCommand(), HandleTabardVendorActivateOpcode(), HandleTalentWipeConfirmOpcode(), cheat_commandscript::HandleTaxiCheatCommand(), HandleTaxiQueryAvailableNodes(), tele_commandscript::HandleTeleAddCommand(), tele_commandscript::HandleTeleCommand(), HandleTogglePvP(), HandleTrainerBuySpellOpcode(), HandleTrainerListOpcode(), misc_commandscript::HandleUnbindSightCommand(), HandleUnlearnSkillOpcode(), misc_commandscript::HandleUnPossessCommand(), HandleUnstablePet(), misc_commandscript::HandleUnstuckCommand(), Guild::HandleUpdateMemberRank(), cheat_commandscript::HandleWaterWalkCheatCommand(), message_commandscript::HandleWhispersCommand(), HandleWhoIsOpcode(), wp_commandscript::HandleWpAddCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), HandleZoneUpdateOpcode(), LogCommandUsage(), ArenaTeam::MassInviteToEvent(), Guild::MassInviteToEvent(), ChatHandler::needReportToTarget(), MapSessionFilter::Process(), WorldSessionFilter::Process(), WardenWin::RequestChecks(), ResetTimeOutTime(), SendAuctionHello(), Guild::SendBankList(), SendBindPoint(), SendDiscoverNewTaxiNode(), SendDoFlight(), SendEnchantmentLog(), World::SendGlobalGMMessage(), World::SendGMText(), SendLearnNewTaxiNode(), SendLfgBootProposalUpdate(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgUpdateProposal(), SendListInventory(), Guild::SendLoginInfo(), Guild::SendMoneyInfo(), Guild::SendPermissions(), SendPetitionShowList(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), SendStablePet(), SendTaxiMenu(), SendTaxiStatus(), SendTrainerList(), Update(), ValidateHyperlinksAndMaybeKick(), and ValidateMovementInfo().
| std::string WorldSession::GetPlayerInfo | ( | ) | const |
Definition at line 192 of file WorldSession.cpp.
References _player, GetAccountId(), Object::GetGUID(), WorldObject::GetName(), m_playerLoading, and Trinity::StringFormat().
Referenced by Handle_EarlyProccess(), Handle_NULL(), Handle_ServerSide(), HandleAddFriendOpcode(), HandleBattleFieldPortOpcode(), HandleChannelCommand(), HandleChannelPassword(), HandleChannelPlayerCommand(), HandleCharRaceOrFactionChangeCallback(), HandleChatMessage(), WardenWin::HandleCheckResult(), HandleGuildAddRankOpcode(), HandleGuildBankActivate(), HandleGuildBankBuyTab(), HandleGuildBankDepositMoney(), HandleGuildBankLogQuery(), HandleGuildBankQueryTab(), HandleGuildBankSetTabText(), HandleGuildBankTextQuery(), HandleGuildBankUpdateTab(), HandleGuildBankWithdrawMoney(), HandleGuildCreateOpcode(), HandleGuildDeclineOpcode(), HandleGuildDelete(), HandleGuildDeleteRank(), HandleGuildDemoteOpcode(), HandleGuildEventLogQueryOpcode(), HandleGuildInfoOpcode(), HandleGuildInviteOpcode(), HandleGuildLeaveOpcode(), HandleGuildOfficerRemoveMember(), HandleGuildPromoteOpcode(), HandleGuildQueryOpcode(), HandleGuildRosterOpcode(), HandleGuildSetGuildMaster(), HandleGuildSetOfficerNoteOpcode(), HandleGuildSetPublicNoteOpcode(), HandleGuildSetRankPermissions(), HandleGuildUpdateInfoText(), HandleGuildUpdateMotdText(), WardenMac::HandleHashResult(), WardenWin::HandleHashResult(), HandleJoinChannel(), HandleLeaveChannel(), HandleLfgGetStatus(), HandleLfgJoinOpcode(), HandleLfgLeaveOpcode(), HandleLfgPartyLockInfoRequestOpcode(), HandleLfgPlayerLockInfoRequestOpcode(), HandleLfgProposalResultOpcode(), HandleLfgSetBootVoteOpcode(), HandleLfgSetCommentOpcode(), HandleLfgSetRolesOpcode(), HandleLfgTeleportOpcode(), HandleLfrJoinOpcode(), HandleLfrLeaveOpcode(), WorldSocket::HandlePing(), Guild::HandleQuery(), Guild::HandleRoster(), HandleSaveGuildEmblemOpcode(), HandleSendMail(), Guild::HandleSetBankTabInfo(), Channel::List(), WorldSocket::LogOpcodeText(), LogUnexpectedOpcode(), LogUnprocessedTail(), lfg::LFGPlayerScript::OnLogin(), Warden::ProcessLuaCheckResponse(), WorldSocket::ReadDataHandler(), Guild::SendBankList(), Guild::SendBankLog(), Guild::SendCommandResult(), Guild::SendEventLog(), Guild::SendInfo(), SendLfgBootProposalUpdate(), SendLfgDisabled(), SendLfgJoinResult(), SendLfgLfrList(), SendLfgOfferContinue(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgRoleCheckUpdate(), SendLfgRoleChosen(), SendLfgTeleportError(), SendLfgUpdateParty(), SendLfgUpdatePlayer(), SendLfgUpdateProposal(), Guild::SendLoginInfo(), Guild::SendMoneyInfo(), SendPacket(), Guild::SendPermissions(), Guild::SendSaveEmblemResult(), Guild::BankTab::SendText(), SendTrainerList(), Warden::Update(), Pet::Update(), Update(), and ValidateAndGetUnitBeingMoved().
| std::string const & WorldSession::GetPlayerName | ( | ) | const |
Definition at line 187 of file WorldSession.cpp.
References _player, and WorldObject::GetName().
Referenced by ArenaTeam::Disband(), WorldSession::DosProtection::EvaluateOpcode(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), HandleAuctionSellItem(), ban_commandscript::HandleBanCharacterCommand(), ban_commandscript::HandleBanHelper(), misc_commandscript::HandleKickPlayerCommand(), HandleMailTakeItem(), HandleSendMail(), and WardenWin::RequestChecks().
|
inline |
Definition at line 1274 of file WorldSession.h.
Referenced by Player::ActivateTalentGroup(), HandleAddFriendOpcode(), HandleCalendarEventInvite(), and HandleSendMail().
| rbac::RBACData * WorldSession::GetRBACData | ( | ) | const |
Definition at line 1183 of file WorldSession.cpp.
References _RBACData.
Referenced by rbac_commandscript::GetRBACData(), account_commandscript::HandleAccountSetSecLevelCommand(), and WorldSocket::LoadSessionPermissionsCallback().
|
inline |
Definition at line 752 of file WorldSession.h.
Referenced by Spell::CheckCast(), SocialMgr::GetFriendInfo(), Player::GetsRecruitAFriendBonus(), HandleAcceptGrantLevel(), and HandleGrantLevel().
|
inline |
Definition at line 600 of file WorldSession.h.
Referenced by CharacterActionIpLogger::CharacterIPLogAction(), WorldSession::DosProtection::EvaluateOpcode(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountLockCountryCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), account_commandscript::HandleAccountPasswordCommand(), HandleCharCustomize(), HandleCharCustomizeCallback(), HandleCharDeleteOpcode(), HandleCharRaceOrFactionChange(), HandleCharRaceOrFactionChangeCallback(), HandleCharRenameCallBack(), HandleCharRenameOpcode(), lookup_commandscript::HandleLookupPlayerIpCommand(), HandlePlayerLogin(), HandleReportPvPAFK(), server_commandscript::IsOnlyUser(), LogoutPlayer(), Warden::Update(), and Update().
|
inline |
Definition at line 592 of file WorldSession.h.
Referenced by SocialMgr::BroadcastToFriendListers(), SocialMgr::GetFriendInfo(), account_commandscript::HandleAccountCommand(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), ticket_commandscript::HandleGMTicketUnAssignCommand(), misc_commandscript::HandlePInfoCommand(), HandleWhoOpcode(), ChatHandler::HasLowerSecurityAccount(), Player::IsVisibleGloballyFor(), Channel::JoinChannel(), Channel::List(), LoadPermissions(), LoadPermissionsAsync(), LogCommandUsage(), and ValidateMovementInfo().
|
inline |
Definition at line 735 of file WorldSession.h.
Referenced by AuctionHouseObject::BuildListAuctionItems(), ChannelMgr::GetChannel(), ChannelMgr::GetChannelForPlayerByNamePart(), Player::GetMapAreaAndZoneString(), ReputationMgr::GetReputationRankName(), ChatHandler::GetSessionDbcLocale(), HandleAreaTriggerOpcode(), HandleCharCreateOpcode(), HandleCharCustomizeCallback(), HandleCharRaceOrFactionChangeCallback(), HandleCharRenameOpcode(), list_commandscript::HandleListRespawnsCommand(), lookup_commandscript::HandleLookupMapCommand(), lookup_commandscript::HandleLookupMapIdCommand(), HandleMailCreateTextItem(), HandlePetRename(), HandleWhoOpcode(), Channel::List(), LogCommandUsage(), MapManager::PlayerCannotEnter(), and Channel::SendMemberCount().
|
inline |
Definition at line 736 of file WorldSession.h.
Referenced by AuctionHouseObject::BuildListAuctionItems(), AchievementMgr::CompletedAchievement(), Guild::Create(), ChatHandler::GetSessionDbLocaleIndex(), GetTrinityString(), HandleCreatureQueryOpcode(), HandleGameObjectQueryOpcode(), HandleItemNameQueryOpcode(), HandleItemQuerySingleOpcode(), HandleNpcTextQueryOpcode(), HandleQueryPageText(), Trinity::LocalizedPacketDo< Builder >::operator()(), Trinity::LocalizedPacketListDo< Builder >::operator()(), CreatureTextLocalizer< Builder >::operator()(), PlayerMenu::PlayerMenu(), Player::PrepareGossipMenu(), PlayerMenu::SendGossipMenu(), PlayerMenu::SendPointOfInterest(), Player::SendPreparedQuest(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), Spell::SendResurrectRequest(), SendTrainerList(), Unit::Whisper(), Unit::Whisper(), and Player::Whisper().
|
inline |
Definition at line 738 of file WorldSession.h.
Referenced by AchievementMgr::BuildAllDataPacket(), CalendarEvent::BuildCalendarMailBody(), HandleCalendarAddEvent(), HandleCalendarCopyEvent(), HandleCalendarGetCalendar(), HandleCalendarUpdateEvent(), AuctionHouseMgr::SendAuctionSalePendingMail(), CalendarMgr::SendCalendarEvent(), AchievementMgr::SendCriteriaUpdate(), and Guild::SendInfo().
| char const * WorldSession::GetTrinityString | ( | uint32 | entry | ) | const |
Definition at line 710 of file WorldSession.cpp.
References GetSessionDbLocaleIndex(), and sObjectMgr.
Referenced by Player::_LoadInventory(), Player::AutoUnequipOffhandIfNeed(), ChatHandler::GetTrinityString(), HandleAreaTriggerOpcode(), HandleChatMessage(), HandleGMTicketCreateOpcode(), HandleInitiateTradeOpcode(), HandleSendMail(), HandleTextEmoteOpcode(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), SendAuctionHello(), and SendNotification().
Definition at line 678 of file WorldSession.h.
Referenced by HandleTutorialFlag().
|
inline |
Definition at line 605 of file WorldSession.h.
Referenced by debug_commandscript::HandleDebugWardenForce().
|
inline |
Definition at line 606 of file WorldSession.h.
| void WorldSession::Handle_EarlyProccess | ( | WorldPacket & | recvPacket | ) |
Definition at line 733 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::Handle_NULL | ( | WorldPacket & | recvPacket | ) |
Definition at line 728 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::Handle_ServerSide | ( | WorldPacket & | recvPacket | ) |
Definition at line 739 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
| void WorldSession::HandleAcceptGrantLevel | ( | WorldPacket & | recvData | ) |
Definition at line 67 of file ReferAFriendHandler.cpp.
References _player, GetAccountId(), Player::GetGrantableLevels(), Unit::GetLevel(), ObjectAccessor::GetPlayer(), GetRecruiterId(), Player::GetSession(), Player::GiveLevel(), ObjectGuid::ReadAsPacked(), Player::SetBeenGrantedLevelsFromRaF(), Player::SetGrantableLevels(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAcceptTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 251 of file TradeHandler.cpp.
References _player, Player::CanStoreItems(), CharacterDatabase, Spell::CheckCast(), clearAcceptTradeMode(), EQUIP_ERR_NOT_ENOUGH_MONEY, EQUIP_ERR_OK, EQUIP_ERR_TOO_MUCH_GOLD, EQUIP_ERR_TRADE_BOUND_ITEM, GetAccountId(), Object::GetGUID(), TradeData::GetItem(), Player::GetMoney(), TradeData::GetMoney(), WorldObject::GetName(), Player::GetSession(), TradeData::GetSpell(), TradeData::GetSpellCastItem(), TradeData::GetTrader(), Player::HasEnoughMoney(), HasPermission(), TradeData::HasSpellCastItem(), TradeData::IsAccepted(), TradeStatusInfo::IsTargetResult, WorldObject::IsWithinDistInMap(), TradeStatusInfo::ItemLimitCategoryId, 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, TradeStatusInfo::Result, Player::SaveInventoryAndGoldToDB(), Spell::SendCastResult(), SendTradeStatus(), TradeData::SetAccepted(), setAcceptTradeMode(), Item::SetGiftCreator(), TradeData::SetSpell(), SpellCastTargets::SetTradeItemTarget(), sLog, SPELL_CAST_OK, sSpellMgr, TradeStatusInfo::Status, TRADE_DISTANCE, TRADE_SLOT_NONTRADED, TRADE_SLOT_TRADED_COUNT, TRADE_STATUS_CLOSE_WINDOW, TRADE_STATUS_TARGET_TO_FAR, TRADE_STATUS_TRADE_ACCEPT, TRADE_STATUS_TRADE_CANCELED, TRADE_STATUS_TRADE_COMPLETE, and TRIGGERED_FULL_MASK.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleActivateTaxiExpressOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 160 of file TaxiHandler.cpp.
References Player::ActivateTaxiPathTo(), ERR_TAXINOTVISITED, ERR_TAXITOOFARAWAY, Player::GetNPCIfCanInteractWith(), GetPlayer(), ByteBuffer::rfinish(), SendActivateTaxiReply(), TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleActivateTaxiOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 257 of file TaxiHandler.cpp.
References Player::ActivateTaxiPathTo(), ERR_TAXINOTVISITED, ERR_TAXITOOFARAWAY, Player::GetNPCIfCanInteractWith(), GetPlayer(), SendActivateTaxiReply(), TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by OpcodeTable::Initialize().
| 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, Object::GetGUID(), GetPlayer(), GetPlayerInfo(), GetQueryProcessor(), AccountMgr::GetSecurityAsync(), Player::GetSocial(), Player::GetTeam(), CharacterCacheEntry::Guid, PlayerSocial::HasFriend(), HasPermission(), Realm::Id, AccountMgr::IsPlayerAccount(), Player::IsVisibleGloballyFor(), m_GUIDLow, WorldPackets::Social::AddFriend::Name, normalizePlayerName(), CharacterCacheEntry::Race, rbac::RBAC_PERM_ALLOW_GM_FRIEND, rbac::RBAC_PERM_TWO_SIDE_ADD_FRIEND, realm, RealmHandle::Realm, sCharacterCache, PlayerSocial::SetFriendNote(), SOCIAL_FLAG_FRIEND, sSocialMgr, TC_LOG_DEBUG, and Player::TeamForRace().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAddIgnoreOpcode | ( | WorldPackets::Social::AddIgnore & | packet | ) |
Definition at line 127 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::Initialize().
| void WorldSession::HandleAlterAppearance | ( | WorldPacket & | recvData | ) |
Definition at line 1256 of file CharacterHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_AT_BARBER, ACHIEVEMENT_CRITERIA_TYPE_VISIT_BARBER_SHOP, BARBER_SHOP_RESULT_NO_MONEY, BARBER_SHOP_RESULT_NOT_ON_CHAIR, BARBER_SHOP_RESULT_SUCCESS, GameObjectTemplate::barberChair, GameObjectTemplate::chairheight, BarberShopStyleEntry::Data, WorldObject::FindNearestGameObjectOfType(), GAMEOBJECT_TYPE_BARBER_CHAIR, Player::GetBarberShopCost(), Unit::GetClass(), Player::GetFaceId(), GameObject::GetGOInfo(), Player::GetNativeGender(), Unit::GetRace(), Player::GetSkinId(), Unit::GetStandState(), Player::HasEnoughMoney(), Player::ModifyMoney(), BarberShopStyleEntry::Race, sBarberShopStyleStore, SendBarberShopResult(), Player::SetFacialStyle(), Player::SetHairColorId(), Player::SetHairStyleId(), Player::SetSkinId(), Unit::SetStandState(), BarberShopStyleEntry::Sex, TC_LOG_DEBUG, BarberShopStyleEntry::Type, UNIT_STAND_STATE_SIT_LOW_CHAIR, UNIT_STAND_STATE_STAND, Player::UpdateAchievementCriteria(), and Player::ValidateAppearance().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAreaSpiritHealerQueryOpcode | ( | WorldPackets::Battleground::AreaSpiritHealerQuery & | areaSpiritHealerQuery | ) |
Definition at line 712 of file BattleGroundHandler.cpp.
References _player, Player::GetBattleground(), ObjectAccessor::GetCreature(), GetPlayer(), WorldObject::GetZoneId(), WorldPackets::Battleground::AreaSpiritHealerQuery::HealerGuid, Unit::IsSpiritService(), sBattlefieldMgr, and sBattlegroundMgr.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAreaSpiritHealerQueueOpcode | ( | WorldPackets::Battleground::AreaSpiritHealerQueue & | areaSpiritHealerQueue | ) |
Definition at line 729 of file BattleGroundHandler.cpp.
References _player, Player::GetBattleground(), ObjectAccessor::GetCreature(), Object::GetGUID(), GetPlayer(), WorldObject::GetZoneId(), WorldPackets::Battleground::AreaSpiritHealerQueue::HealerGuid, Unit::IsSpiritService(), and sBattlefieldMgr.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAreaTriggerOpcode | ( | WorldPackets::AreaTrigger::AreaTrigger & | packet | ) |
Definition at line 563 of file MiscHandler.cpp.
References _player, Player::AreaExploredOrEventHappens(), WorldPackets::AreaTrigger::AreaTrigger::AreaTriggerID, Map::CANNOT_ENTER_CORPSE_IN_DIFFERENT_INSTANCE, Map::CANNOT_ENTER_DIFFICULTY_UNAVAILABLE, Map::CANNOT_ENTER_INSTANCE_BIND_MISMATCH, Map::CANNOT_ENTER_MAX_PLAYERS, Map::CANNOT_ENTER_NO_ENTRY, Map::CANNOT_ENTER_NOT_IN_RAID, Map::CANNOT_ENTER_TOO_MANY_INSTANCES, Map::CANNOT_ENTER_UNINSTANCED_DUNGEON, Map::CANNOT_ENTER_ZONE_IN_COMBAT, CONDITION_SOURCE_TYPE_AREATRIGGER_CLIENT_TRIGGERED, Player::GetBattleground(), Player::GetCorpseLocation(), Player::GetDifficultyID(), Group::GetDifficultyID(), Player::GetGroup(), Object::GetGUID(), WorldObject::GetMap(), WorldLocation::GetMapId(), WorldObject::GetName(), Player::GetOutdoorPvP(), GetPlayer(), Player::GetQuestStatus(), Player::GetSession(), GetSessionDbcLocale(), GetTrinityString(), Player::HasCorpse(), AreaTriggerEntry::ID, Unit::IsAlive(), Player::isDebugAreaTriggers, Map::IsDungeon(), Player::IsInAreaTriggerRadius(), Unit::IsInFlight(), LANG_DEBUG_AREATRIGGER_REACHED, LANG_INSTANCE_BIND_MISMATCH, ChatHandler::PSendSysMessage(), QUEST_STATUS_INCOMPLETE, Unit::RemovePvpFlag(), REST_FLAG_IN_TAVERN, Player::ResurrectPlayer(), sAreaTriggerStore, sConditionMgr, Player::SendDirectMessage(), Player::SendTransferAborted(), Player::SetRestFlag(), sMapMgr, sMapStore, SMSG_RAID_GROUP_ONLY, sObjectMgr, Player::SpawnCorpseBones(), sScriptMgr, STATUS_IN_PROGRESS, sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_Orientation, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, TC_LOG_DEBUG, TELE_TO_NOT_LEAVE_TRANSPORT, Player::TeleportTo(), Player::TeleportToBGEntryPoint(), ObjectGuid::ToString(), TRANSFER_ABORT_DIFFICULTY, TRANSFER_ABORT_MAX_PLAYERS, TRANSFER_ABORT_TOO_MANY_INSTANCES, TRANSFER_ABORT_ZONE_IN_COMBAT, and UNIT_BYTE2_FLAG_FFA_PVP.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamAcceptOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 170 of file ArenaTeamHandler.cpp.
References _player, ArenaTeam::AddMember(), ArenaTeam::BroadcastEvent(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_ARENA_TEAM, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_INTERNAL, ERR_ARENA_TEAM_JOIN_SS, ERR_ARENA_TEAM_NOT_ALLIED, Player::GetArenaTeamId(), Player::GetArenaTeamIdInvited(), ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetName(), WorldObject::GetName(), ArenaTeam::GetSlot(), Player::GetTeam(), sArenaTeamMgr, sCharacterCache, SendArenaTeamCommandResult(), sWorld, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamDeclineOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 203 of file ArenaTeamHandler.cpp.
References _player, Player::SetArenaTeamIdInvited(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamDisbandOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 270 of file ArenaTeamHandler.cpp.
References _player, BATTLEGROUND_AA, BattlegroundQueueTypeId::BattlemasterListId, Player::GetBattlegroundQueueTypeId(), Object::GetGUID(), BattlegroundQueue::GetPlayerGroupInfoData(), GroupQueueInfo::IsInvitedToBGInstanceGUID, PLAYER_MAX_BATTLEGROUND_QUEUES, sArenaTeamMgr, sBattlegroundMgr, TC_LOG_DEBUG, and BattlegroundQueueTypeId::TeamSize.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamInviteOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 86 of file ArenaTeamHandler.cpp.
References CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_ARENA_TEAM_S, ERR_ALREADY_INVITED_TO_ARENA_TEAM_S, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_INVITE_SS, ERR_ARENA_TEAM_NOT_ALLIED, ERR_ARENA_TEAM_PERMISSIONS, ERR_ARENA_TEAM_PLAYER_NOT_FOUND_S, ERR_ARENA_TEAM_PLAYER_NOT_IN_TEAM, ERR_ARENA_TEAM_TARGET_TOO_LOW_S, ERR_ARENA_TEAM_TOO_MANY_MEMBERS_S, ObjectAccessor::FindPlayerByName(), Player::GetArenaTeamId(), Player::GetArenaTeamIdInvited(), ArenaTeam::GetId(), ArenaTeam::GetMembersSize(), ArenaTeam::GetName(), WorldObject::GetName(), GetPlayer(), ArenaTeam::GetSlot(), Player::GetSocial(), Player::GetTeam(), ArenaTeam::GetType(), PlayerSocial::HasIgnore(), Player::IsMaxLevel(), normalizePlayerName(), sArenaTeamMgr, SendArenaTeamCommandResult(), Player::SendDirectMessage(), Player::SetArenaTeamIdInvited(), SMSG_ARENA_TEAM_INVITE, sWorld, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamLeaderOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 373 of file ArenaTeamHandler.cpp.
References _player, ArenaTeam::BroadcastEvent(), ObjectGuid::Empty, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_LEADER_CHANGED_SSS, ERR_ARENA_TEAM_PERMISSIONS, ERR_ARENA_TEAM_PLAYER_NOT_FOUND_S, ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetMember(), ArenaTeam::GetName(), WorldObject::GetName(), ArenaTeamMember::Guid, normalizePlayerName(), sArenaTeamMgr, SendArenaTeamCommandResult(), ArenaTeam::SetCaptain(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamLeaveOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 211 of file ArenaTeamHandler.cpp.
References _player, BATTLEGROUND_AA, BattlegroundQueueTypeId::BattlemasterListId, ArenaTeam::BroadcastEvent(), ArenaTeam::DelMember(), ArenaTeam::Disband(), ERR_ARENA_TEAM_INTERNAL, ERR_ARENA_TEAM_LEADER_LEAVE_S, ERR_ARENA_TEAM_LEAVE_SS, ERR_ARENA_TEAM_QUIT_S, ERR_ARENA_TEAMS_LOCKED, Player::GetBattlegroundQueueTypeId(), ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetMembersSize(), ArenaTeam::GetName(), WorldObject::GetName(), BattlegroundQueue::GetPlayerGroupInfoData(), ArenaTeam::GetType(), Player::InArena(), GroupQueueInfo::IsInvitedToBGInstanceGUID, PLAYER_MAX_BATTLEGROUND_QUEUES, sArenaTeamMgr, sBattlegroundMgr, SendArenaTeamCommandResult(), TC_LOG_DEBUG, and BattlegroundQueueTypeId::TeamSize.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamQueryOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 61 of file ArenaTeamHandler.cpp.
References sArenaTeamMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamRemoveOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 306 of file ArenaTeamHandler.cpp.
References _player, BATTLEGROUND_AA, BattlegroundQueueTypeId::BattlemasterListId, ArenaTeam::BroadcastEvent(), ArenaTeam::DelMember(), ObjectGuid::Empty, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_LEADER_LEAVE_S, ERR_ARENA_TEAM_PERMISSIONS, ERR_ARENA_TEAM_PLAYER_NOT_FOUND_S, ERR_ARENA_TEAM_QUIT_S, ERR_ARENA_TEAM_REMOVE_SSS, ERR_ARENA_TEAMS_LOCKED, Player::GetBattlegroundQueueTypeId(), ArenaTeam::GetCaptain(), Object::GetGUID(), ArenaTeam::GetMember(), ArenaTeam::GetName(), WorldObject::GetName(), BattlegroundQueue::GetPlayerGroupInfoData(), ArenaTeam::GetType(), ArenaTeamMember::Guid, ArenaTeam::IsFighting(), GroupQueueInfo::IsInvitedToBGInstanceGUID, normalizePlayerName(), PLAYER_MAX_BATTLEGROUND_QUEUES, sArenaTeamMgr, sBattlegroundMgr, SendArenaTeamCommandResult(), TC_LOG_DEBUG, and BattlegroundQueueTypeId::TeamSize.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleArenaTeamRosterOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 75 of file ArenaTeamHandler.cpp.
References sArenaTeamMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAttackStopOpcode | ( | WorldPackets::Combat::AttackStop & | packet | ) |
Definition at line 64 of file CombatHandler.cpp.
References Unit::AttackStop(), and GetPlayer().
Referenced by OpcodeTable::Initialize().
| 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 29 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::Initialize().
| void WorldSession::HandleAuctionHelloOpcode | ( | WorldPackets::AuctionHouse::AuctionHelloRequest & | packet | ) |
Definition at line 40 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_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionListBidderItems | ( | WorldPacket & | recvData | ) |
Definition at line 668 of file AuctionHouseHandler.cpp.
References AuctionEntry::BuildAuctionInfo(), AuctionHouseObject::BuildListBidderItems(), CONFIG_AUCTION_SEARCH_DELAY, AuctionHouseObject::GetAuction(), Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), ByteBuffer::put(), Unit::RemoveAurasByType(), ByteBuffer::rfinish(), sAuctionMgr, SendPacket(), ByteBuffer::size(), SMSG_AUCTION_BIDDER_LIST_RESULT, SPELL_AURA_FEIGN_DEATH, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionListItems | ( | WorldPacket & | recvData | ) |
Definition at line 762 of file AuctionHouseHandler.cpp.
References _player, AuctionHouseObject::BuildListAuctionItems(), CONFIG_AUCTION_GETALL_DELAY, CONFIG_AUCTION_SEARCH_DELAY, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), ByteBuffer::put(), ByteBuffer::read_skip(), Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), SMSG_AUCTION_LIST_RESULT, SPELL_AURA_FEIGN_DEATH, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, Utf8toWStr(), and wstrToLower().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionListOwnerItems | ( | WorldPacket & | recvData | ) |
Definition at line 725 of file AuctionHouseHandler.cpp.
References _player, AuctionHouseObject::BuildListOwnerItems(), CONFIG_AUCTION_SEARCH_DELAY, Unit::GetFaction(), Player::GetNPCIfCanInteractWith(), GetPlayer(), ByteBuffer::put(), Unit::RemoveAurasByType(), sAuctionMgr, SendPacket(), SMSG_AUCTION_OWNER_LIST_RESULT, SPELL_AURA_FEIGN_DEATH, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionListPendingSales | ( | WorldPacket & | recvData | ) |
Definition at line 829 of file AuctionHouseHandler.cpp.
References ByteBuffer::read_skip(), SendPacket(), SMSG_AUCTION_LIST_PENDING_SALES, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionPlaceBid | ( | WorldPacket & | recvData | ) |
Definition at line 445 of file AuctionHouseHandler.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_AUCTION_BID, AUCTION_ENTRY_FLAG_GM_LOG_BUYER, AUCTION_PLACE_BID, AuctionEntry::bid, AuctionEntry::bidder, AuctionEntry::bidders, AuctionEntry::buyout, CHAR_INS_AUCTION_BIDDERS, CHAR_UPD_AUCTION_BID, CharacterDatabase, AuctionEntry::DeleteFromDB(), ERR_AUCTION_BID_OWN, ERR_AUCTION_HIGHER_BID, ERR_AUCTION_NOT_ENOUGHT_MONEY, ERR_AUCTION_OK, ObjectAccessor::FindPlayer(), AuctionEntry::Flags, GetAccountId(), AuctionHouseObject::GetAuction(), AuctionEntry::GetAuctionOutBid(), ObjectGuid::GetCounter(), Unit::GetFaction(), Object::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::GetSession(), Player::HasEnoughMoney(), HasPermission(), AuctionEntry::Id, AuctionEntry::itemGUIDLow, Player::ModifyMoney(), AuctionEntry::owner, rbac::RBAC_PERM_LOG_GM_TRADE, AuctionHouseObject::RemoveAuction(), Unit::RemoveAurasByType(), sAuctionMgr, Player::SaveInventoryAndGoldToDB(), sCharacterCache, SendAuctionCommandResult(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and Player::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionRemoveItem | ( | WorldPacket & | recvData | ) |
Definition at line 594 of file AuctionHouseHandler.cpp.
References MailDraft::AddItem(), AUCTION_CANCEL, AUCTION_CANCELED, AuctionEntry::bidder, AuctionEntry::BuildAuctionMailSubject(), CharacterDatabase, AuctionEntry::DeleteFromDB(), ERR_AUCTION_DATABASE_ERROR, ERR_AUCTION_OK, AuctionHouseObject::GetAuction(), AuctionEntry::GetAuctionCut(), ObjectGuid::GetCounter(), Unit::GetFaction(), Object::GetGUID(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Player::HasEnoughMoney(), AuctionEntry::Id, AuctionEntry::itemGUIDLow, MAIL_CHECK_MASK_COPIED, Player::ModifyMoney(), AuctionEntry::owner, AuctionHouseObject::RemoveAuction(), Unit::RemoveAurasByType(), sAuctionMgr, Player::SaveInventoryAndGoldToDB(), SendAuctionCommandResult(), MailDraft::SendMailTo(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAuctionSellItem | ( | WorldPacket & | recvData | ) |
Definition at line 135 of file AuctionHouseHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_CREATE_AUCTION, AuctionHouseObject::AddAuction(), AUCTION_ENTRY_FLAG_NONE, AUCTION_SELL_ITEM, AUCTIONHOUSE_NEUTRAL, AuctionEntry::auctionHouseEntry, AuctionEntry::bid, AuctionEntry::bidder, AuctionEntry::buyout, Item::CanBeTraded(), CharacterDatabase, Item::CloneItem(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION, Item::DeleteFromDB(), Item::DeleteFromInventoryDB(), AuctionEntry::deposit, ERR_AUCTION_DATABASE_ERROR, ERR_AUCTION_ITEM_NOT_FOUND, ERR_AUCTION_NOT_ENOUGHT_MONEY, ERR_AUCTION_OK, AuctionEntry::etime, AuctionEntry::expire_time, CreatureTemplate::faction, AuctionEntry::Flags, GetAccountId(), AuctionHouseMgr::GetAuctionHouseEntry(), Item::GetBagSlot(), Item::GetCount(), ObjectGuid::GetCounter(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), Object::GetGUID(), AuctionEntry::GetHouseId(), ItemTemplate::GetId(), Player::GetItemByGuid(), Item::GetMaxStackCount(), WorldObject::GetName(), Item::GetNameForLocaleIdx(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GetPlayerName(), Item::GetSlot(), Creature::GetSpawnId(), Item::GetTemplate(), Object::GetUInt32Value(), Player::HasEnoughMoney(), ItemTemplate::HasFlag(), HasPermission(), AuctionEntry::houseId, AuctionEntry::Id, SpawnData::id, AuctionHouseEntry::ID, Item::IsNotEmptyBag(), ITEM_CHANGED, ITEM_FIELD_DURATION, ITEM_FLAG_CONJURED, AuctionEntry::itemCount, AuctionEntry::itemEntry, AuctionEntry::itemGUIDLow, Player::ItemRemovedQuestCheck(), MAX_AUCTION_ITEMS, MAX_MONEY_AMOUNT, MIN_AUCTION_TIME, MINUTE, Player::MoveItemFromInventory(), AuctionEntry::owner, RATE_AUCTION_TIME, rbac::RBAC_PERM_LOG_GM_TRADE, Unit::RemoveAurasByType(), ByteBuffer::rfinish(), sAuctionMgr, Player::SaveInventoryAndGoldToDB(), Item::SaveToDB(), AuctionEntry::SaveToDB(), SendAuctionCommandResult(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), sLog, sObjectMgr, SPELL_AURA_FEIGN_DEATH, AuctionEntry::startbid, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, ObjectGuid::ToString(), UNIT_NPC_FLAG_AUCTIONEER, UNIT_STATE_DIED, and Player::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutoBankItemOpcode | ( | WorldPackets::Bank::AutoBankItem & | packet | ) |
Definition at line 62 of file BankHandler.cpp.
References _player, WorldPackets::Bank::AutoBankItem::Bag, Player::BankItem(), Player::CanBankItem(), CanUseBank(), EQUIP_ERR_CANT_SWAP, EQUIP_ERR_OK, Item::GetCount(), Object::GetEntry(), Player::GetItemByPos(), Item::GetPos(), Player::ItemRemovedQuestCheck(), m_currentBankerGUID, NULL_BAG, NULL_SLOT, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Bank::AutoBankItem::Slot, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutoEquipItemOpcode | ( | WorldPackets::Item::AutoEquipItem & | autoEquipItem | ) |
Definition at line 163 of file ItemHandler.cpp.
References _player, Player::ApplyItemDependentAuras(), Player::AutoUnequipOffhandIfNeed(), Player::BankItem(), Player::CanBankItem(), Player::CanEquipItem(), Player::CanStoreItem(), Player::CanUnequipItem(), EQUIP_ERR_OK, Player::EquipItem(), Item::GetBagSlot(), Player::GetItemByPos(), Item::GetPos(), Item::GetSlot(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, Item::IsBag(), Player::IsBankPos(), Player::IsEquipmentPos(), Player::IsInventoryPos(), NULL_BAG, NULL_SLOT, WorldPackets::Item::AutoEquipItem::PackSlot, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Item::AutoEquipItem::Slot, Player::StoreItem(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutoEquipItemSlotOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 105 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), Item::GetPos(), INVENTORY_SLOT_BAG_0, Player::IsEquipmentPos(), and Player::SwapItem().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutoStoreBagItemOpcode | ( | WorldPackets::Item::AutoStoreBagItem & | packet | ) |
Definition at line 660 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(), Player::IsBagPos(), Player::IsEquipmentPos(), Player::IsValidPos(), NULL_SLOT, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Item::AutoStoreBagItem::SlotA, Player::StoreItem(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutoStoreBankItemOpcode | ( | WorldPackets::Bank::AutoStoreBankItem & | packet | ) |
Definition at line 95 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(), m_currentBankerGUID, NULL_BAG, NULL_SLOT, Player::RemoveItem(), Player::SendEquipError(), WorldPackets::Bank::AutoStoreBankItem::Slot, Player::StoreItem(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleAutostoreLootItemOpcode | ( | WorldPackets::Loot::LootItem & | packet | ) |
Definition at line 35 of file LootHandler.cpp.
References _player, CLASS_ROGUE, DoLootRelease(), GAMEOBJECT_TYPE_FISHINGHOLE, Unit::GetClass(), ObjectAccessor::GetCorpse(), Map::GetCreature(), Map::GetGameObject(), GameObject::GetGoType(), Object::GetGUID(), Player::GetItemByGuid(), Player::GetLootGUID(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GetPlayer(), Player::GetSession(), INTERACTION_DISTANCE, Unit::IsAlive(), ObjectGuid::IsCorpse(), ObjectGuid::IsGameObject(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), Corpse::loot, Creature::loot, GameObject::loot, Item::loot, LOOT_ERROR_DIDNT_KILL, LOOT_ERROR_TOO_FAR, LOOT_PICKPOCKETING, Loot::loot_type, WorldPackets::Loot::LootItem::LootListID, Player::SendLootError(), Player::SendLootRelease(), Player::StoreLootItem(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBankerActivateOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 46 of file BankHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendShowBank(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, UNIT_NPC_FLAG_BANKER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlefieldLeaveOpcode | ( | WorldPackets::Battleground::BattlefieldLeave & | battlefieldLeave | ) |
Definition at line 450 of file BattleGroundHandler.cpp.
References _player, Player::GetBattleground(), Unit::IsInCombat(), Player::LeaveBattleground(), and STATUS_WAIT_LEAVE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlefieldListOpcode | ( | WorldPackets::Battleground::BattlefieldListRequest & | battlefieldList | ) |
Definition at line 283 of file BattleGroundHandler.cpp.
References _player, ObjectGuid::Empty, Object::GetGUID(), WorldObject::GetName(), WorldPackets::Battleground::BattlefieldListRequest::ListID, sBattlegroundMgr, sBattlemasterListStore, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattleFieldPortOpcode | ( | WorldPackets::Battleground::BattlefieldPort & | battlefieldPort | ) |
Definition at line 295 of file BattleGroundHandler.cpp.
References _player, WorldPackets::Battleground::BattlefieldPort::AcceptedInvite, GroupQueueInfo::ArenaMatchmakerRating, BattlegroundQueueTypeId::BattlemasterListId, BG_DESERTION_TYPE_LEAVE_QUEUE, BattlegroundQueueTypeId::BracketId, BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundMgr::BuildBattlegroundStatusFailed(), BattlegroundMgr::BuildBattlegroundStatusNone(), CHAR_INS_DESERTER_TRACK, CharacterDatabase, CONFIG_BATTLEGROUND_TRACK_DESERTERS, ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS, Player::FinishTaxiFlight(), BattlegroundQueueTypeId::FromPacked(), Player::GetBattleground(), GetBattlegroundBracketByLevel(), Player::GetBattlegroundQueueIndex(), ObjectGuid::GetCounter(), Object::GetGUID(), Battleground::GetInstanceID(), Unit::GetLevel(), Battleground::GetMapId(), Battleground::GetMaxLevel(), WorldObject::GetName(), BattlegroundQueue::GetPlayerGroupInfoData(), GetPlayerInfo(), BattlegroundQueue::GetQueueId(), Battleground::GetStatus(), Battleground::GetTypeID(), Unit::HasAura(), Player::InBattleground(), Unit::IsAlive(), Battleground::isArena(), Battleground::isBattleground(), Player::IsDeserter(), Player::IsInvitedForBattlegroundQueueType(), GroupQueueInfo::IsInvitedToBGInstanceGUID, PLAYER_MAX_BATTLEGROUND_QUEUES, WorldPackets::Battleground::BattlefieldPort::QueueID, Player::RemoveBattlegroundQueueId(), BattlegroundQueue::RemovePlayer(), Player::ResurrectPlayer(), sBattlegroundMgr, SendPacket(), Player::SetBattlegroundEntryPoint(), Player::SetBattlegroundId(), Player::SetBGTeam(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), Player::SpawnCorpseBones(), STATUS_IN_PROGRESS, STATUS_WAIT_JOIN, STATUS_WAIT_QUEUE, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, GroupQueueInfo::Team, BattlegroundQueueTypeId::TeamSize, ObjectGuid::ToString(), WorldPackets::Battleground::BattlefieldStatusNone::Write(), WorldPackets::Battleground::BattlefieldStatusActive::Write(), and WorldPackets::Battleground::GroupJoinedBattleground::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlegroundPlayerPositionsOpcode | ( | WorldPackets::Battleground::BattlegroundPlayerPositionsRequest & | battlegroundPlayerPositionsRequest | ) |
Definition at line 248 of file BattleGroundHandler.cpp.
References _player, WorldPackets::Battleground::BattlegroundPlayerPositions::FlagCarriers, Player::GetBattleground(), Battleground::GetFlagPickerGUID(), ObjectAccessor::GetPlayer(), ObjectGuid::IsEmpty(), SendPacket(), TEAM_ALLIANCE, TEAM_HORDE, and WorldPackets::Battleground::BattlegroundPlayerPositions::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlemasterHelloOpcode | ( | WorldPackets::NPC::Hello & | hello | ) |
Definition at line 42 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, and UNIT_NPC_FLAG_BATTLEMASTER.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlemasterJoinArena | ( | WorldPackets::Battleground::BattlemasterJoinArena & | packet | ) |
Definition at line 521 of file BattleGroundHandler.cpp.
References _player, Player::AddBattlegroundQueueId(), BattlegroundQueue::AddGroup(), BATTLEGROUND_AA, WorldPackets::Battleground::BattlemasterJoinArena::BattlemasterGuid, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BGQueueTypeId(), BattlegroundQueueTypeId::BracketId, BattlegroundMgr::BuildBattlegroundStatusFailed(), BattlegroundMgr::BuildBattlegroundStatusQueued(), BattlegroundMgr::BuildGroupJoinedBattlegroundPacket(), Group::CanJoinBattlegroundQueue(), Player::CanJoinToBattleground(), DISABLE_TYPE_BATTLEGROUND, ERR_BATTLEGROUND_JOIN_FAILED, ERR_LFG_CANT_USE_BATTLEGROUND, Player::GetArenaTeamId(), ArenaTeam::GetAverageMMR(), BattlegroundQueue::GetAverageQueueWaitTime(), GetBattlegroundBracketByLevel(), Player::GetBattlegroundQueueIndex(), PvPDifficultyEntry::GetBracketId(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), Battleground::GetMapId(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), GetPlayer(), ArenaTeam::GetPreviousOpponents(), ArenaTeam::GetRating(), ArenaTeam::GetTypeBySlot(), Battleground::GetTypeID(), Player::HasFreeBattlegroundQueueId(), Player::InBattleground(), DisableMgr::IsDisabledFor(), WorldPackets::Battleground::BattlemasterJoinArena::IsRated, Player::isUsingLfg(), WorldPackets::Battleground::BattlemasterJoinArena::JoinAsGroup, GroupQueueInfo::JoinTime, LANG_ARENA_DISABLED, PLAYER_MAX_BATTLEGROUND_QUEUES, ChatHandler::PSendSysMessage(), sArenaTeamMgr, sBattlegroundMgr, Player::SendDirectMessage(), SendNotInArenaTeamPacket(), SendPacket(), Battleground::SetRated(), TC_LOG_DEBUG, TC_LOG_ERROR, BattlegroundQueueTypeId::TeamSize, WorldPackets::Battleground::BattlemasterJoinArena::TeamSizeIndex, ObjectGuid::ToString(), UNIT_NPC_FLAG_BATTLEMASTER, WorldPackets::Battleground::BattlefieldStatusQueued::Write(), and WorldPackets::Battleground::GroupJoinedBattleground::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBattlemasterJoinOpcode | ( | WorldPackets::Battleground::BattlemasterJoin & | battlemasterJoin | ) |
Definition at line 65 of file BattleGroundHandler.cpp.
References _player, Player::AddBattlegroundQueueId(), BattlegroundQueue::AddGroup(), BATTLEGROUND_RB, WorldPackets::Battleground::BattlemasterJoin::BattlemasterListID, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BGQueueTypeId(), BattlegroundQueueTypeId::BracketId, BattlegroundMgr::BuildBattlegroundStatusFailed(), BattlegroundMgr::BuildBattlegroundStatusQueued(), BattlegroundMgr::BuildGroupJoinedBattlegroundPacket(), Group::CanJoinBattlegroundQueue(), Player::CanJoinToBattleground(), DISABLE_TYPE_BATTLEGROUND, 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, BattlegroundQueue::GetAverageQueueWaitTime(), GetBattlegroundBracketByLevel(), Player::GetBattlegroundQueueIndex(), Player::GetBattlegroundQueueTypeId(), PvPDifficultyEntry::GetBracketId(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Group::GetLeaderGUID(), Unit::GetLevel(), Battleground::GetMapId(), Battleground::GetMaxPlayersPerTeam(), Group::GetMembersCount(), Battleground::GetMinPlayersPerTeam(), WorldObject::GetName(), GetPlayer(), Unit::HasAura(), Player::HasFreeBattlegroundQueueId(), Player::InBattleground(), Player::InBattlegroundQueue(), WorldPackets::Battleground::BattlemasterJoin::InstanceID, Player::IsDeserter(), DisableMgr::IsDisabledFor(), BattlegroundMgr::IsRandomBattleground(), WorldPackets::Battleground::BattlemasterJoin::JoinAsGroup, GroupQueueInfo::JoinTime, LANG_BG_DISABLED, PLAYER_MAX_BATTLEGROUND_QUEUES, ChatHandler::PSendSysMessage(), sBattlegroundMgr, sBattlemasterListStore, Player::SendDirectMessage(), SendPacket(), TC_LOG_DEBUG, TC_LOG_ERROR, BattlegroundQueueTypeId::TeamSize, ObjectGuid::ToString(), WorldPackets::Battleground::BattlefieldStatusQueued::Write(), and WorldPackets::Battleground::GroupJoinedBattleground::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBeginTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 560 of file TradeHandler.cpp.
References _player, Player::GetSession(), TradeData::GetTrader(), Player::m_trade, SendTradeStatus(), TradeStatusInfo::Status, and TRADE_STATUS_OPEN_WINDOW.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBfEntryInviteResponse | ( | WorldPacket & | recvData | ) |
Send by client on clicking in accept or refuse of invitation windows for join game.
Definition at line 143 of file BattlefieldHandler.cpp.
References _player, Object::GetGUID(), Battlefield::GetZoneId(), WorldObject::GetZoneId(), Battlefield::KickPlayerFromBattlefield(), Battlefield::PlayerAcceptInviteToWar(), sBattlefieldMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBfQueueExitRequest | ( | WorldPacket & | recvData | ) |
Send by client when exited battlefield.
Definition at line 169 of file BattlefieldHandler.cpp.
References _player, sBattlefieldMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBfQueueInviteResponse | ( | WorldPacket & | recvData | ) |
Send by client when he click on accept for queue.
Definition at line 121 of file BattlefieldHandler.cpp.
References _player, Battlefield::PlayerAcceptInviteToQueue(), sBattlefieldMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBinderActivateOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 241 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_INNKEEPER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBugOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 469 of file MiscHandler.cpp.
References CHAR_INS_BUG_REPORT, CharacterDatabase, PreparedStatementBase::setString(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBusyTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 69 of file TradeHandler.cpp.
References _player, TRADE_STATUS_BUSY, and Player::TradeCancel().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBuybackItem | ( | WorldPackets::Item::BuyBackItem & | packet | ) |
Definition at line 473 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(), Object::GetUInt32Value(), Player::HasEnoughMoney(), Player::ItemAddedQuestCheck(), Player::ModifyMoney(), NULL_BAG, NULL_SLOT, PLAYER_FIELD_BUYBACK_PRICE_1, 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_VENDOR, UNIT_STATE_DIED, and WorldPackets::Item::BuyBackItem::VendorGUID.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBuyBankSlotOpcode | ( | WorldPackets::Bank::BuyBankSlot & | buyBankSlot | ) |
Definition at line 138 of file BankHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT, WorldPackets::Bank::BuyBankSlot::Banker, CanUseBank(), BankBagSlotPricesEntry::Cost, ERR_BANKSLOT_FAILED_TOO_MANY, ERR_BANKSLOT_INSUFFICIENT_FUNDS, ERR_BANKSLOT_NOTBANKER, ERR_BANKSLOT_OK, Player::GetBankBagSlotCount(), Player::HasEnoughMoney(), Player::ModifyMoney(), WorldPackets::Bank::BuyBankSlotResult::Result, sBankBagSlotPricesStore, SendPacket(), Player::SetBankBagSlotCount(), TC_LOG_DEBUG, TC_LOG_INFO, ObjectGuid::ToString(), Player::UpdateAchievementCriteria(), and WorldPackets::Bank::BuyBankSlotResult::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBuyItemInSlotOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 516 of file ItemHandler.cpp.
References _player, Player::BuyItemFromVendorSlot(), Player::GetItemByGuid(), GetPlayer(), INVENTORY_SLOT_BAG_0, NULL_BAG, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBuyItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 542 of file ItemHandler.cpp.
References Player::BuyItemFromVendorSlot(), GetPlayer(), NULL_BAG, NULL_SLOT, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleBuyStableSlot | ( | WorldPacket & | recvPacket | ) |
Definition at line 552 of file NPCHandler.cpp.
References _player, CheckStableMaster(), StableSlotPricesEntry::Cost, Player::GetOrInitPetStable(), GetPlayer(), Player::HasEnoughMoney(), MAX_PET_STABLES, PetStable::MaxStabledPets, Player::ModifyMoney(), Unit::RemoveAurasByType(), SendPetStableResult(), SPELL_AURA_FEIGN_DEATH, sStableSlotPricesStore, STABLE_ERR_MONEY, STABLE_ERR_STABLE, STABLE_SUCCESS_BUY_SLOT, TC_LOG_DEBUG, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarAddEvent | ( | WorldPackets::Calendar::CalendarAddEvent & | calendarAddEvent | ) |
Definition at line 187 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::CalendarAddEvent::Description, ObjectGuid::Empty, WorldPackets::Calendar::CalendarAddEvent::EventType, WorldPackets::Calendar::CalendarAddEvent::Flags, GetCalendarEventCreationCooldown(), CalendarEvent::GetEventId(), GameTime::GetGameTime(), Object::GetGUID(), Player::GetGuildId(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), WorldPackets::Calendar::CalendarAddEvent::Invites, CalendarEvent::IsGuildAnnouncement(), CalendarEvent::IsGuildEvent(), WorldPackets::Calendar::CalendarAddEvent::LockDate, sCalendarMgr, SetCalendarEventCreationCooldown(), CalendarEvent::SetGuildId(), WorldPackets::Array< T, N >::size(), WorldPackets::Calendar::CalendarAddEvent::TextureID, WorldPackets::Calendar::CalendarAddEvent::Time, and WorldPackets::Calendar::CalendarAddEvent::Title.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarArenaTeam | ( | WorldPackets::Calendar::CalendarArenaTeam & | calendarArenaTeam | ) |
Definition at line 179 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarArenaTeam::ArenaTeamId, Object::GetGUID(), sArenaTeamMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarComplain | ( | WorldPackets::Calendar::CalendarComplain & | calendarComplain | ) |
Definition at line 598 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarComplain::EventID, Object::GetGUID(), WorldPackets::Calendar::CalendarComplain::InvitedByGUID, WorldPackets::Calendar::CalendarComplain::InviteID, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarCopyEvent | ( | WorldPackets::Calendar::CalendarCopyEvent & | calendarCopyEvent | ) |
Definition at line 310 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(), Object::GetGUID(), Player::GetGuildId(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), WorldPackets::Calendar::CalendarCopyEvent::ModeratorID, sCalendarMgr, SetCalendarEventCreationCooldown(), CalendarEvent::SetDate(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarEventInvite | ( | WorldPackets::Calendar::CalendarInvite & | calendarEventInvite | ) |
Definition at line 391 of file CalendarHandler.cpp.
References _player, 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(), ObjectGuid::GetCounter(), Object::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::Initialize().
| void WorldSession::HandleCalendarEventModeratorStatus | ( | WorldPackets::Calendar::CalendarModeratorStatusQuery & | calendarModeratorStatus | ) |
Definition at line 575 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarModeratorStatusQuery::EventID, Object::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::Initialize().
| void WorldSession::HandleCalendarEventRemoveInvite | ( | WorldPackets::Calendar::CalendarRemoveInvite & | calendarRemoveInvite | ) |
Definition at line 530 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_DELETE_CREATOR_FAILED, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarRemoveInvite::EventID, Object::GetGUID(), WorldPackets::Calendar::CalendarRemoveInvite::Guid, WorldPackets::Calendar::CalendarRemoveInvite::InviteID, WorldPackets::Calendar::CalendarRemoveInvite::ModeratorID, sCalendarMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarEventRsvp | ( | WorldPackets::Calendar::CalendarRSVP & | calendarRSVP | ) |
Definition at line 501 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(), Object::GetGUID(), WorldPackets::Calendar::CalendarRSVP::InviteID, sCalendarMgr, and WorldPackets::Calendar::CalendarRSVP::Status.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarEventSignup | ( | WorldPackets::Calendar::CalendarEventSignUp & | calendarEventSignUp | ) |
Definition at line 478 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(), Object::GetGUID(), Player::GetGuildId(), sCalendarMgr, TC_LOG_DEBUG, WorldPackets::Calendar::CalendarEventSignUp::Tentative, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarEventStatus | ( | WorldPackets::Calendar::CalendarStatus & | calendarStatus | ) |
Definition at line 551 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_ERROR_NO_INVITE, WorldPackets::Calendar::CalendarStatus::EventID, Object::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::Initialize().
| void WorldSession::HandleCalendarGetCalendar | ( | WorldPackets::Calendar::CalendarGetCalendar & | calendarGetCalendar | ) |
Definition at line 57 of file CalendarHandler.cpp.
References _player, HolidaysEntry::CalendarFilterType, WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::CalendarFlags, HolidaysEntry::CalendarFlags, WorldPackets::Calendar::CalendarSendCalendarEventInfo::Date, WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::Date, HolidaysEntry::Date, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::DifficultyID, WorldPackets::Calendar::CalendarSendCalendarRaidResetInfo::Duration, WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::Duration, HolidaysEntry::Duration, 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::CalendarSendCalendarHolidayInfo::FilterType, WorldPackets::Calendar::CalendarSendCalendarEventInfo::Flags, Player::GetBoundInstances(), InstanceSave::GetDifficultyID(), GameTime::GetGameTime(), Object::GetGUID(), Player::GetGuildId(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), GetTimezoneOffset(), GameTime::GetWowTime(), WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::HolidayID, WorldPackets::Calendar::CalendarSendCalendar::Holidays, HolidaysEntry::ID, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::InstanceID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviteID, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviterGuid, WorldPackets::Calendar::CalendarSendCalendar::Invites, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::InviteType, MapEntry::IsRaid(), WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::Looping, HolidaysEntry::Looping, WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo::MapID, WorldPackets::Calendar::CalendarSendCalendarRaidResetInfo::MapID, MAX_DIFFICULTY, MAX_HOLIDAY_DATES, MAX_HOLIDAY_DURATIONS, MAX_HOLIDAY_FLAGS, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::Moderator, WorldPackets::Calendar::CalendarSendCalendarRaidResetInfo::Offset, WorldPackets::Calendar::CalendarSendCalendarEventInfo::OwnerGuid, PAIR32_LOPART(), WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::Priority, HolidaysEntry::Priority, WorldPackets::Calendar::CalendarSendCalendar::RaidLockouts, WorldPackets::Calendar::CalendarSendCalendar::RaidOrigin, WorldPackets::Calendar::CalendarSendCalendar::RaidResets, WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::Region, HolidaysEntry::Region, sCalendarMgr, SendPacket(), WorldPackets::Calendar::CalendarSendCalendar::ServerNow, WorldPackets::Calendar::CalendarSendCalendar::ServerTime, WowTime::SetUtcTimeFromUnixTime(), sGameEventMgr, sHolidaysStore, SI64LIT, sInstanceSaveMgr, sMapStore, WorldPackets::Calendar::CalendarSendCalendarInviteInfo::Status, TC_LOG_DEBUG, WorldPackets::Calendar::CalendarSendCalendarHolidayInfo::TextureFilename, HolidaysEntry::TextureFilename, WorldPackets::Calendar::CalendarSendCalendarEventInfo::TextureID, ObjectGuid::ToString(), and WorldPackets::Calendar::CalendarSendCalendar::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarGetEvent | ( | WorldPackets::Calendar::CalendarGetEvent & | calendarGetEvent | ) |
Definition at line 160 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, CALENDAR_SENDTYPE_GET, WorldPackets::Calendar::CalendarGetEvent::EventID, Object::GetGUID(), sCalendarMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarGetNumPending | ( | WorldPackets::Calendar::CalendarGetNumPending & | calendarGetNumPending | ) |
Definition at line 607 of file CalendarHandler.cpp.
References _player, Object::GetGUID(), sCalendarMgr, SendPacket(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarGuildFilter | ( | WorldPackets::Calendar::CalendarGuildFilter & | calendarGuildFilter | ) |
Definition at line 170 of file CalendarHandler.cpp.
References _player, Player::GetGuildId(), WorldPackets::Calendar::CalendarGuildFilter::MaxLevel, WorldPackets::Calendar::CalendarGuildFilter::MaxRankOrder, WorldPackets::Calendar::CalendarGuildFilter::MinLevel, sGuildMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarRemoveEvent | ( | WorldPackets::Calendar::CalendarRemoveEvent & | calendarRemoveEvent | ) |
Definition at line 304 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarRemoveEvent::EventID, Object::GetGUID(), and sCalendarMgr.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCalendarUpdateEvent | ( | WorldPackets::Calendar::CalendarUpdateEvent & | calendarUpdateEvent | ) |
Definition at line 270 of file CalendarHandler.cpp.
References _player, CALENDAR_ERROR_EVENT_INVALID, WorldPackets::Calendar::CalendarUpdateEvent::Description, WorldPackets::Calendar::CalendarUpdateEvent::EventID, WorldPackets::Calendar::CalendarUpdateEvent::EventType, WorldPackets::Calendar::CalendarUpdateEvent::Flags, Object::GetGUID(), GetTimezoneOffset(), WowTime::GetUnixTimeFromUtcTime(), GameTime::GetUtcWowTime(), WorldPackets::Calendar::CalendarUpdateEvent::LockDate, WorldPackets::Calendar::CalendarUpdateEvent::ModeratorID, sCalendarMgr, TC_LOG_DEBUG, WorldPackets::Calendar::CalendarUpdateEvent::TextureID, WorldPackets::Calendar::CalendarUpdateEvent::Time, WorldPackets::Calendar::CalendarUpdateEvent::Title, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelAuraOpcode | ( | WorldPackets::Spells::CancelAura & | cancelAura | ) |
Definition at line 397 of file SpellHandler.cpp.
References _player, AURA_REMOVE_BY_CANCEL, CONFIG_ALLOW_TRACK_BOTH_RESOURCES, CURRENT_CHANNELED_SPELL, ObjectGuid::Empty, Unit::GetAuraEffectsByType(), Unit::GetCurrentSpell(), SpellInfo::HasAttribute(), SpellInfo::HasAura(), Unit::InterruptSpell(), SpellInfo::IsChanneled(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveOwnedAura(), SPELL_ATTR0_CANT_CANCEL, SPELL_AURA_TRACK_RESOURCES, WorldPackets::Spells::CancelAura::SpellID, sSpellMgr, and sWorld.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelAutoRepeatSpellOpcode | ( | WorldPackets::Spells::CancelAutoRepeatSpell & | cancelAutoRepeatSpell | ) |
Definition at line 494 of file SpellHandler.cpp.
References _player, CURRENT_AUTOREPEAT_SPELL, and Unit::InterruptSpell().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelCastOpcode | ( | WorldPackets::Spells::CancelCast & | cancelCast | ) |
Definition at line 388 of file SpellHandler.cpp.
References _player, Unit::InterruptNonMeleeSpells(), Unit::IsCharmed(), Unit::IsNonMeleeSpellCast(), and WorldPackets::Spells::CancelCast::SpellID.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelChanneling | ( | WorldPackets::Spells::CancelChannelling & | cancelChanneling | ) |
Definition at line 501 of file SpellHandler.cpp.
References WorldPackets::Spells::CancelChannelling::ChannelSpell, CURRENT_CHANNELED_SPELL, GameClient::GetActivelyMovedUnit(), Unit::GetCurrentSpell(), GetGameClient(), Spell::GetSpellInfo(), SpellInfo::HasAttribute(), SpellInfo::Id, Unit::InterruptSpell(), SPELL_ATTR0_CANT_CANCEL, and sSpellMgr.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelGrowthAuraOpcode | ( | WorldPackets::Spells::CancelGrowthAura & | cancelGrowthAura | ) |
Definition at line 476 of file SpellHandler.cpp.
References _player, AuraApplication::GetBase(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveAurasByType(), SPELL_ATTR0_CANT_CANCEL, and SPELL_AURA_MOD_SCALE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelMountAuraOpcode | ( | WorldPackets::Spells::CancelMountAura & | cancelMountAura | ) |
Definition at line 485 of file SpellHandler.cpp.
References _player, AuraApplication::GetBase(), SpellInfo::HasAttribute(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Unit::RemoveAurasByType(), SPELL_ATTR0_CANT_CANCEL, and SPELL_AURA_MOUNTED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelTempEnchantmentOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1090 of file ItemHandler.cpp.
References Player::ApplyEnchantment(), Item::ClearEnchantment(), Item::GetEnchantmentId(), Player::GetItemByPos(), GetPlayer(), INVENTORY_SLOT_BAG_0, Player::IsEquipmentPos(), TC_LOG_DEBUG, and TEMP_ENCHANTMENT_SLOT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCancelTradeOpcode | ( | WorldPackets::Trade::CancelTrade & | cancelTrade | ) |
Definition at line 582 of file TradeHandler.cpp.
References _player, and Player::TradeCancel().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCastSpellOpcode | ( | WorldPackets::Spells::CastSpell & | castRequest | ) |
Definition at line 321 of file SpellHandler.cpp.
References _player, WorldPackets::Spells::CastSpell::Cast, WorldPackets::Spells::SpellCastRequest::CastID, CURRENT_AUTOREPEAT_SPELL, SpellInfo::GetAuraRankForLevel(), Unit::GetCurrentSpell(), SpellCastTargets::GetGOTarget(), SpellCastTargets::GetUnitTarget(), SpellCastTargets::GetUnitTargetGUID(), HandleMovementOpcode(), Player::HasActiveSpell(), Unit::HasAuraTypeWithTriggerSpell(), SpellInfo::Id, SpellInfo::IsAutoRepeatRangedSpell(), SpellInfo::IsPassive(), SpellInfo::IsPositive(), Spell::m_cast_count, Spell::m_fromClient, WorldPackets::Spells::SpellCastRequest::MissileTrajectory, MSG_MOVE_STOP, Spell::prepare(), SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT, WorldPackets::Spells::SpellCastRequest::SpellID, sSpellMgr, TC_LOG_ERROR, TRIGGERED_FULL_MASK, and TRIGGERED_NONE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleChangeSeatsOnControlledVehicle | ( | WorldPacket & | recvData | ) |
Definition at line 51 of file VehicleHandler.cpp.
References VehicleSeatEntry::CanSwitchFromSeat(), Unit::ChangeSeat(), CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE, CMSG_REQUEST_VEHICLE_NEXT_SEAT, CMSG_REQUEST_VEHICLE_PREV_SEAT, CMSG_REQUEST_VEHICLE_SWITCH_SEAT, VehicleSeatEntry::Flags, Object::GetGUID(), WorldPacket::GetOpcode(), GetPlayer(), Vehicle::GetSeatForPassenger(), ObjectAccessor::GetUnit(), Unit::GetVehicle(), Unit::GetVehicleBase(), MovementInfo::guid, WorldObject::m_movementInfo, ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleChannelCommand | ( | WorldPackets::Channel::ChannelCommand & | packet | ) |
Definition at line 125 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelCommand::ChannelName, CMSG_CHANNEL_ANNOUNCEMENTS, CMSG_CHANNEL_DISPLAY_LIST, CMSG_CHANNEL_LIST, CMSG_CHANNEL_OWNER, CMSG_CHANNEL_VOICE_OFF, CMSG_CHANNEL_VOICE_ON, CMSG_DECLINE_CHANNEL_INVITE, CMSG_GET_CHANNEL_MEMBER_COUNT, CMSG_SET_CHANNEL_WATCH, ChannelMgr::GetChannelForPlayerByNamePart(), WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleChannelPassword | ( | WorldPackets::Channel::ChannelPassword & | packet | ) |
Definition at line 229 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::Initialize().
| void WorldSession::HandleChannelPlayerCommand | ( | WorldPackets::Channel::ChannelPlayerCommand & | packet | ) |
Definition at line 165 of file ChannelHandler.cpp.
References WorldPackets::Channel::ChannelPlayerCommand::ChannelName, CMSG_CHANNEL_BAN, CMSG_CHANNEL_INVITE, CMSG_CHANNEL_KICK, CMSG_CHANNEL_MODERATOR, CMSG_CHANNEL_MUTE, CMSG_CHANNEL_SET_OWNER, CMSG_CHANNEL_SILENCE_ALL, CMSG_CHANNEL_SILENCE_VOICE, CMSG_CHANNEL_UNBAN, CMSG_CHANNEL_UNMODERATOR, CMSG_CHANNEL_UNMUTE, CMSG_CHANNEL_UNSILENCE_ALL, CMSG_CHANNEL_UNSILENCE_VOICE, ChannelMgr::GetChannelForPlayerByNamePart(), WorldPackets::ClientPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), MAX_CHANNEL_NAME_STR, WorldPackets::Channel::ChannelPlayerCommand::Name, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCharCreateOpcode | ( | WorldPackets::Character::CreateCharacter & | charCreate | ) |
Definition at line 273 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), ChrRacesEntry::Alliance, ALLIANCE, CHAR_CREATE_DISABLED, CHAR_CREATE_EXPANSION, CHAR_CREATE_EXPANSION_CLASS, CHAR_CREATE_FAILED, CHAR_CREATE_LEVEL_REQUIREMENT, CHAR_CREATE_UNIQUE_CLASS_LIMIT, CHAR_NAME_NO_NAME, CHAR_NAME_RESERVED, CHAR_NAME_SUCCESS, CHAR_SEL_CHECK_NAME, CharacterDatabase, ObjectMgr::CheckPlayerName(), CHRRACES_ALLIANCE_TYPE_NOT_PLAYABLE, CHRRACES_FLAGS_NOT_PLAYABLE, CLASS_DEATH_KNIGHT, CONFIG_CHARACTER_CREATING_DISABLED, CONFIG_CHARACTER_CREATING_DISABLED_CLASSMASK, CONFIG_CHARACTER_CREATING_DISABLED_RACEMASK, CONFIG_CHARACTER_CREATING_MIN_LEVEL_FOR_DEATH_KNIGHT, CONFIG_DEATH_KNIGHTS_PER_REALM, CONFIG_MAX_PLAYER_LEVEL, WorldPackets::Character::CreateCharacter::CreateInfo, GetAccountId(), GetExpansion(), GetSessionDbcLocale(), ChrRacesEntry::HasFlag(), HasPermission(), HORDE, LOGIN_SEL_SUM_REALM_CHARACTERS, LoginDatabase, normalizePlayerName(), rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_CLASSMASK, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_DEATH_KNIGHT, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RACEMASK, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_TEAMMASK, ChrClassesEntry::RequiredExpansion, ChrRacesEntry::RequiredExpansion, sChrClassesStore, sChrRacesStore, SendCharCreate(), QueryCallback::SetNextQuery(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sObjectMgr, sWorld, TC_LOG_ERROR, and Player::TeamForRace().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCharCustomize | ( | WorldPackets::Character::CharCustomize & | packet | ) |
Definition at line 1345 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHAR_CUSTOMIZE_INFO, CharacterDatabase, WorldPackets::Character::CharCustomize::CustomizeInfo, GetAccountId(), GetRemoteAddress(), IsLegitCharacterForAccount(), KickPlayer(), PreparedStatementBase::setUInt32(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCharCustomizeCallback | ( | std::shared_ptr< WorldPackets::Character::CharCustomizeInfo > | customizeInfo, |
| PreparedQueryResult | result | ||
| ) |
Customize
Name Change and update atLogin flags
Definition at line 1365 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, CHAR_UPD_GENDER_AND_APPEARANCE, CharacterDatabase, ObjectMgr::CheckPlayerName(), CONFIG_PREVENT_RENAME_CUSTOMIZATION, GetAccountId(), GetRemoteAddress(), GetSessionDbcLocale(), Field::GetString(), Field::GetUInt16(), Field::GetUInt8(), HasPermission(), ObjectGuid::IsEmpty(), normalizePlayerName(), rbac::RBAC_PERM_SKIP_CHECK_CHARACTER_CREATION_RESERVEDNAME, RESPONSE_SUCCESS, sCharacterCache, SendCharCustomize(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, sWorld, TC_LOG_INFO, and Player::ValidateAppearance().
| void WorldSession::HandleCharDeleteOpcode | ( | WorldPackets::Character::CharDelete & | charDelete | ) |
Definition at line 617 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(), ObjectGuid::GetRawValue(), 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::Initialize().
| void WorldSession::HandleCharEnum | ( | PreparedQueryResult | result | ) |
Definition at line 220 of file CharacterHandler.cpp.
References _legitCharacters, Player::BuildEnumData(), ByteBuffer::clear(), GetAccountId(), MAX_CHARACTERS_PER_REALM, ByteBuffer::put(), sCharacterCache, SendPacket(), SMSG_CHAR_ENUM, TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by HandleCharEnumOpcode().
| 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 254 of file CharacterHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_DEL_EXPIRED_BANS, CHAR_SEL_ENUM, CHAR_SEL_ENUM_DECLINED_NAME, CharacterDatabase, CONFIG_DECLINED_NAMES_USED, GetAccountId(), HandleCharEnum(), PET_SAVE_AS_CURRENT, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and sWorld.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCharRaceOrFactionChange | ( | WorldPackets::Character::CharRaceOrFactionChange & | packet | ) |
Definition at line 1580 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::setUInt32(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCharRaceOrFactionChangeCallback | ( | std::shared_ptr< WorldPackets::Character::CharRaceOrFactionChangeInfo > | factionChangeInfo, |
| PreparedQueryResult | result | ||
| ) |
Definition at line 1600 of file CharacterHandler.cpp.
References ALLIANCE, 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, CHAR_UPD_GENDER_AND_APPEARANCE, 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, Field::GetInt32(), WorldLocation::GetMapId(), GetPlayerInfo(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GetRemoteAddress(), GetSessionDbcLocale(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), CharacterCacheEntry::GuildId, HasPermission(), HORDE, ObjectGuid::IsEmpty(), Field::IsNull(), Player::LeaveAllArenaTeams(), CharacterCacheEntry::Level, CharTitlesEntry::MaskID, CharacterCacheEntry::Name, normalizePlayerName(), Player::OfflineResurrect(), PLAYER_EXTRA_HAS_RACE_CHANGED, CharacterCacheEntry::Race, RACE_BLOODELF, RACE_DRAENEI, RACE_DWARF, RACE_GNOME, RACE_HUMAN, RACE_NIGHTELF, RACE_ORC, RACE_TAUREN, RACE_TROLL, RACE_UNDEAD_PLAYER, RACEMASK_ALLIANCE, RACEMASK_HORDE, 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::SavePositionInDB(), sCharacterCache, sCharTitlesStore, sDeathKnightTaxiNodesMask, SendCharFactionChange(), PreparedStatementBase::setFloat(), PreparedStatementBase::setInt32(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sFactionStore, sGroupMgr, sGuildMgr, sHordeTaxiNodesMask, sObjectMgr, sWorld, TC_LOG_DEBUG, TC_LOG_WARN, Player::TeamForRace(), Trinity::Tokenize(), and WorldLocation::WorldRelocate().
| void WorldSession::HandleCharRenameCallBack | ( | std::shared_ptr< WorldPackets::Character::CharacterRenameInfo > | renameInfo, |
| PreparedQueryResult | result | ||
| ) |
Definition at line 1134 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::setUInt32(), and TC_LOG_INFO.
| void WorldSession::HandleCharRenameOpcode | ( | WorldPackets::Character::CharacterRenameRequest & | request | ) |
Definition at line 1089 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::setUInt32(), sObjectMgr, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleChatIgnoredOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 632 of file ChatHandler.cpp.
References _player, CHAT_MSG_IGNORED, ObjectAccessor::FindConnectedPlayer(), GetPlayer(), Player::GetSession(), WorldPackets::Chat::Chat::Initialize(), LANG_UNIVERSAL, Player::SendDirectMessage(), and WorldPackets::Chat::Chat::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleChatMessage | ( | ChatMsg | type, |
| Language | lang, | ||
| std::string | msg, | ||
| std::string | target | ||
| ) |
Definition at line 61 of file ChatHandler.cpp.
References _warden, Player::ChatFloodThrottle::ADDON, Player::AddWhisperWhiteList(), Player::autoReplyMsg, Group::BroadcastPacket(), CanSpeak(), CHAT_MSG_AFK, CHAT_MSG_BATTLEGROUND, CHAT_MSG_BATTLEGROUND_LEADER, CHAT_MSG_CHANNEL, CHAT_MSG_DND, CHAT_MSG_EMOTE, CHAT_MSG_GUILD, 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_ADDON_CHANNEL, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, CONFIG_CHAT_CHANNEL_LEVEL_REQ, CONFIG_CHAT_EMOTE_LEVEL_REQ, CONFIG_CHAT_FAKE_MESSAGE_PREVENTING, CONFIG_CHAT_PARTY_RAID_WARNINGS, CONFIG_CHAT_SAY_LEVEL_REQ, CONFIG_CHAT_WHISPER_LEVEL_REQ, CONFIG_CHAT_YELL_LEVEL_REQ, ObjectAccessor::FindConnectedPlayerByName(), Unit::GetAuraEffectsByType(), ChannelMgr::GetChannelForPlayerByNamePart(), GameTime::GetGameTime(), Player::GetGroup(), Object::GetGUID(), Player::GetGuildId(), GetLanguageDescByID(), Unit::GetLevel(), Group::GetMemberGroup(), WorldObject::GetName(), Player::GetOriginalGroup(), GetPlayer(), GetPlayerInfo(), Player::GetSession(), Player::GetTeam(), GetTrinityString(), GM_SILENCE_AURA, Unit::HasAura(), HasPermission(), Player::HasSkill(), WorldPackets::Chat::Chat::Initialize(), Player::isAcceptWhispers(), Player::isAFK(), Unit::IsAlive(), Group::IsAssistant(), Group::isBGGroup(), Player::isDND(), Player::IsGameMaster(), Player::IsGameMasterAcceptingWhispers(), Unit::IsInCombat(), Player::IsInWhisperWhiteList(), Group::IsLeader(), isNasty(), Group::isRaidGroup(), LANG_ADDON, LANG_CHANNEL_REQ, LANG_GM_SILENCE, LANG_NOT_LEARNED_LANGUAGE, LANG_PLAYER_AFK_DEFAULT, LANG_PLAYER_DND_DEFAULT, LANG_SAY_REQ, LANG_UNIVERSAL, LANG_UNKNOWN_LANGUAGE, LANG_WAIT_BEFORE_SPEAKING, LANG_WHISPER_REQ, m_muteTime, MAX_CHAT_MSG_TYPE, normalizePlayerName(), rbac::RBAC_PERM_CAN_FILTER_WHISPERS, rbac::RBAC_PERM_SKIP_CHECK_CHAT_CHANNEL_REQ, rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT, Player::ChatFloodThrottle::REGULAR, Player::Say(), secsToTimeString(), SendNotification(), SendPlayerNotFoundNotice(), SendWrongFactionNotice(), sGuildMgr, LanguageDesc::skill_id, SPELL_AURA_COMPREHEND_LANGUAGE, SPELL_AURA_MOD_LANGUAGE, sScriptMgr, sWorld, TC_LOG_ERROR, Player::TextEmote(), Player::ToggleAFK(), Player::ToggleDND(), Player::UpdateSpeakTime(), ValidateHyperlinksAndMaybeKick(), Player::Whisper(), Player::WhisperAddon(), WorldPackets::Chat::Chat::Write(), and Player::Yell().
Referenced by HandleChatMessageOpcode().
| void WorldSession::HandleChatMessageOpcode | ( | WorldPackets::Chat::ChatMessage & | chatMessage | ) |
Definition at line 56 of file ChatHandler.cpp.
References HandleChatMessage(), WorldPackets::Chat::ChatMessage::Language, WorldPackets::Chat::ChatMessage::SlashCmd, WorldPackets::Chat::ChatMessage::Target, and WorldPackets::Chat::ChatMessage::Text.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleClearTradeItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 770 of file TradeHandler.cpp.
References _player, Player::m_trade, TradeData::SetItem(), and TRADE_SLOT_COUNT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleClientCastFlags | ( | WorldPacket & | recvPacket, |
| uint8 | castFlags, | ||
| SpellCastTargets & | targets | ||
| ) |
Definition at line 44 of file SpellHandler.cpp.
References MovementInfo::guid, HandleMovementOpcode(), ByteBuffer::read(), ObjectGuid::ReadAsPacked(), SpellCastTargets::SetPitch(), and SpellCastTargets::SetSpeed().
Referenced by HandleUseItemOpcode().
| void WorldSession::HandleComplainOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 912 of file MiscHandler.cpp.
References SendPacket(), SMSG_COMPLAIN_RESULT, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCompleteCinematic | ( | WorldPackets::Misc::CompleteCinematic & | packet | ) |
Definition at line 797 of file MiscHandler.cpp.
References CinematicMgr::EndCinematic(), Player::GetCinematicMgr(), and GetPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleCompleteMovie | ( | WorldPackets::Misc::CompleteMovie & | packet | ) |
Definition at line 809 of file MiscHandler.cpp.
References _player, Player::GetMovie(), Player::SetMovie(), and sScriptMgr.
Referenced by OpcodeTable::Initialize().
| 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::Initialize().
| void WorldSession::HandleCreatureQueryOpcode | ( | WorldPackets::Query::QueryCreature & | query | ) |
Only static data is sent in this packet !!!
Definition at line 79 of file QueryHandler.cpp.
References CONFIG_CACHE_DATA_QUERIES, WorldPackets::Query::QueryCreature::CreatureID, WorldPackets::Query::QueryCreatureResponse::CreatureID, GetSessionDbLocaleIndex(), WorldPackets::Query::QueryCreature::Guid, SendPacket(), sObjectMgr, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Query::QueryCreatureResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDeclinePetition | ( | WorldPacket & | recvData | ) |
Definition at line 497 of file PetitionsHandler.cpp.
References _player, ObjectAccessor::FindConnectedPlayer(), Object::GetGUID(), MSG_PETITION_DECLINE, Petition::OwnerGuid, sPetitionMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDelFriendOpcode | ( | WorldPackets::Social::DelFriend & | packet | ) |
Definition at line 118 of file SocialHandler.cpp.
References FRIEND_REMOVED, GetPlayer(), Player::GetSocial(), WorldPackets::Social::DelFriend::Player, PlayerSocial::RemoveFromSocialList(), SOCIAL_FLAG_FRIEND, sSocialMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDelIgnoreOpcode | ( | WorldPackets::Social::DelIgnore & | packet | ) |
Definition at line 158 of file SocialHandler.cpp.
References FRIEND_IGNORE_REMOVED, GetPlayer(), Player::GetSocial(), WorldPackets::Social::DelIgnore::Player, PlayerSocial::RemoveFromSocialList(), SOCIAL_FLAG_IGNORED, sSocialMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDestroyItemOpcode | ( | WorldPackets::Item::DestroyItem & | destroyItem | ) |
Definition at line 259 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::Initialize().
| void WorldSession::HandleDismissControlledVehicle | ( | WorldPacket & | recvData | ) |
Definition at line 28 of file VehicleHandler.cpp.
References _player, AdjustClientMovementTime(), Unit::ExitVehicle(), WorldPacket::GetOpcode(), Unit::GetVehicleBase(), MovementInfo::guid, WorldObject::m_movementInfo, ObjectGuid::ReadAsPacked(), TC_LOG_DEBUG, MovementInfo::time, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDismissCritter | ( | WorldPackets::Pet::DismissCritter & | dismissCritter | ) |
Definition at line 41 of file PetHandler.cpp.
References _player, WorldPackets::Pet::DismissCritter::CritterGUID, GetAccountId(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Unit::GetCritterGUID(), Object::GetGUID(), GetPlayer(), Object::GetTypeId(), Unit::IsSummon(), TC_LOG_DEBUG, ObjectGuid::ToString(), Unit::ToTempSummon(), TYPEID_UNIT, and TempSummon::UnSummon().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDuelAccepted | ( | WorldPackets::Duel::DuelResponse & | duelResponse | ) |
Definition at line 25 of file DuelHandler.cpp.
References WorldPackets::Duel::DuelResponse::ArbiterGUID, Player::duel, DUEL_STATE_CHALLENGED, DUEL_STATE_COUNTDOWN, GameTime::GetGameTime(), Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetName(), GetPlayer(), PLAYER_DUEL_ARBITER, Player::SendDuelCountdown(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleDuelCancelled | ( | WorldPackets::Duel::DuelResponse & | duelResponse | ) |
Definition at line 49 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 OpcodeTable::Initialize().
| void WorldSession::HandleEjectPassenger | ( | WorldPacket & | data | ) |
Definition at line 151 of file VehicleHandler.cpp.
References _player, ASSERT, Unit::ExitVehicle(), Vehicle::GetBase(), GetPlayer(), Vehicle::GetSeatForPassenger(), ObjectAccessor::GetUnit(), Unit::GetVehicleKit(), VehicleSeatEntry::IsEjectable(), Unit::IsOnVehicle(), ObjectGuid::IsUnit(), ByteBuffer::rfinish(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleEmoteOpcode | ( | WorldPackets::Chat::EmoteClient & | packet | ) |
Definition at line 535 of file ChatHandler.cpp.
References _player, EMOTE_ONESHOT_NONE, EMOTE_ONESHOT_WAVE, WorldPackets::Chat::EmoteClient::EmoteID, Unit::HandleEmoteCommand(), Unit::HasUnitState(), Unit::IsAlive(), sScriptMgr, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleEnterPlayerVehicle | ( | WorldPacket & | data | ) |
Definition at line 129 of file VehicleHandler.cpp.
References _player, Unit::EnterVehicle(), WorldObject::FindMap(), ObjectAccessor::GetPlayer(), INTERACTION_DISTANCE, and Map::IsBattleArena().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleEquipmentSetDelete | ( | WorldPacket & | recvData | ) |
Definition at line 1508 of file CharacterHandler.cpp.
References _player, Player::DeleteEquipmentSet(), ByteBuffer::readPackGUID(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleEquipmentSetSave | ( | WorldPackets::EquipmentSet::SaveEquipmentSet & | saveEquipmentSet | ) |
Definition at line 1478 of file CharacterHandler.cpp.
References _player, EQUIPMENT_SLOT_END, Object::GetGUID(), Player::GetItemByPos(), EquipmentSetInfo::IgnoredSlot, EquipmentSetInfo::EquipmentSetData::IgnoreMask, INVENTORY_SLOT_BAG_0, ObjectGuid::IsEmpty(), MAX_EQUIPMENT_SET_INDEX, EquipmentSetInfo::EquipmentSetData::Pieces, WorldPackets::EquipmentSet::SaveEquipmentSet::Set, Player::SetEquipmentSet(), and EquipmentSetInfo::EquipmentSetData::SetID.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleEquipmentSetUse | ( | WorldPacket & | recvData | ) |
Definition at line 1518 of file CharacterHandler.cpp.
References _player, Player::CanEquipItem(), Player::CanStoreItem(), Player::CanUnequipItem(), EQUIP_ERR_OK, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, Player::GetItemByGuid(), Player::GetItemByPos(), Item::GetPos(), EquipmentSetInfo::IgnoredSlot, INVENTORY_SLOT_BAG_0, Unit::IsInCombat(), NULL_BAG, NULL_SLOT, ObjectGuid::ReadAsPacked(), Player::RemoveItem(), Player::SendEquipError(), SendPacket(), SMSG_EQUIPMENT_SET_USE_RESULT, Player::StoreItem(), Player::SwapItem(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleFarSightOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 973 of file MiscHandler.cpp.
References _player, Object::GetGUID(), Object::GetGuidValue(), WorldObject::GetName(), GetPlayer(), Player::GetViewpoint(), PLAYER_FARSIGHT, Player::SetSeer(), TC_LOG_DEBUG, ObjectGuid::ToString(), and Player::UpdateVisibilityForPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleFeatherFallAck | ( | WorldPacket & | recvData | ) |
Definition at line 842 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleForceSpeedChangeAck | ( | WorldPacket & | recvData | ) |
Definition at line 557 of file MovementHandler.cpp.
References _player, AdjustClientMovementTime(), ASSERT, AsUnderlyingType(), baseMoveSpeed, CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK, CMSG_FORCE_PITCH_RATE_CHANGE_ACK, CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_RUN_SPEED_CHANGE_ACK, CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_SWIM_SPEED_CHANGE_ACK, CMSG_FORCE_TURN_RATE_CHANGE_ACK, CMSG_FORCE_WALK_SPEED_CHANGE_ACK, CONFIG_PENDING_MOVE_CHANGES_TIMEOUT, GetAccountId(), GetGameClient(), WorldObject::GetName(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), Player::GetSession(), ObjectAccessor::GetUnit(), MovementInfo::guid, Unit::HasPendingMovementChange(), GameClient::IsAllowedToMove(), Unit::IsControlledByPlayer(), KickPlayer(), WorldObject::m_movementInfo, MOVE_FLIGHT, MOVE_FLIGHT_BACK, MOVE_PITCH_RATE, MOVE_RUN, MOVE_RUN_BACK, MOVE_SWIM, MOVE_SWIM_BACK, MOVE_TURN_RATE, MOVE_WALK, PlayerMovementPendingChange::movementChangeType, PlayerMovementPendingChange::movementCounter, PlayerMovementPendingChange::newValue, Unit::PeakFirstPendingMovementChange(), playerBaseMoveSpeed, Unit::PopPendingMovementChange(), MovementInfo::pos, RATE_CHANGE_PITCH, RATE_CHANGE_TURN, ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), MovementPacketSender::SendSpeedChangeToObservers(), Unit::SetSpeedRateReal(), SPEED_CHANGE_FLIGHT_BACK_SPEED, SPEED_CHANGE_FLIGHT_SPEED, SPEED_CHANGE_RUN, SPEED_CHANGE_RUN_BACK, SPEED_CHANGE_SWIM, SPEED_CHANGE_SWIM_BACK, SPEED_CHANGE_WALK, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, MovementInfo::time, and Unit::UpdatePosition().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGameObjectQueryOpcode | ( | WorldPackets::Query::QueryGameObject & | query | ) |
Only static data is sent in this packet !!!
Definition at line 106 of file QueryHandler.cpp.
References CONFIG_CACHE_DATA_QUERIES, WorldPackets::Query::QueryGameObject::GameObjectID, WorldPackets::Query::QueryGameObjectResponse::GameObjectID, GetSessionDbLocaleIndex(), WorldPackets::Query::QueryGameObject::Guid, SendPacket(), sObjectMgr, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Query::QueryGameObjectResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGameobjectReportUse | ( | WorldPackets::GameObject::GameObjReportUse & | packet | ) |
Definition at line 306 of file SpellHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT, GetPlayer(), WorldPackets::GameObject::GameObjReportUse::Guid, Unit::IsCharmed(), and Player::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGameObjectUseOpcode | ( | WorldPackets::GameObject::GameObjUse & | packet | ) |
Definition at line 293 of file SpellHandler.cpp.
References GetPlayer(), and WorldPackets::GameObject::GameObjUse::Guid.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGetItemPurchaseData | ( | WorldPackets::Item::GetItemPurchaseData & | packet | ) |
Definition at line 1114 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), GetPlayer(), WorldPackets::Item::GetItemPurchaseData::ItemGUID, Player::SendRefundInfo(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGetMailList | ( | WorldPackets::Mail::MailGetList & | getList | ) |
Definition at line 545 of file MailHandler.cpp.
References _player, WorldPackets::Mail::MailListResult::AddMail(), CanOpenMailBox(), GameTime::GetGameTime(), Player::GetMails(), MAIL_STATE_DELETED, WorldPackets::Mail::MailGetList::Mailbox, SendPacket(), Player::UpdateNextMailTimeAndUnreads(), and WorldPackets::Mail::MailListResult::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMResponseResolve | ( | WorldPacket & | recvPacket | ) |
Definition at line 273 of file TicketHandler.cpp.
References CONFIG_CHANCE_OF_GM_SURVEY, GetPlayer(), GMTICKET_RESPONSE_TICKET_DELETED, roll_chance_f(), SendPacket(), SMSG_GMRESPONSE_STATUS_UPDATE, SMSG_GMTICKET_DELETETICKET, sTicketMgr, and sWorld.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMSurveySubmit | ( | WorldPacket & | recvPacket | ) |
Definition at line 195 of file TicketHandler.cpp.
References CHAR_INS_GM_SUBSURVEY, CHAR_INS_GM_SURVEY, CharacterDatabase, GetPlayer(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sTicketMgr, and ValidateHyperlinksAndMaybeKick().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMTicketCreateOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 35 of file TicketHandler.cpp.
References CONFIG_TICKET_LEVEL_REQ, ByteBuffer::contents(), GmTicket::GetId(), GetPlayer(), GetTrinityString(), GMTICKET_QUEUE_STATUS_DISABLED, GMTICKET_RESPONSE_CREATE_ERROR, GMTICKET_RESPONSE_CREATE_SUCCESS, GmTicket::IsClosed(), GmTicket::IsCompleted(), LANG_COMMAND_TICKETNEW, LANG_TICKET_REQ, ByteBuffer::resize(), ByteBuffer::rfinish(), ByteBuffer::rpos(), SendNotification(), SendPacket(), GmTicket::SetChatLog(), GmTicket::SetGmAction(), GmTicket::SetMessage(), GmTicket::SetPosition(), ByteBuffer::size(), SMSG_GMTICKET_CREATE, sTicketMgr, sWorld, TC_LOG_ERROR, and ValidateHyperlinksAndMaybeKick().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMTicketDeleteOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 156 of file TicketHandler.cpp.
References GetPlayer(), GMTICKET_RESPONSE_TICKET_DELETED, LANG_COMMAND_TICKETPLAYERABANDON, SendPacket(), SMSG_GMTICKET_DELETETICKET, sTicketMgr, and sWorld.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMTicketGetTicketOpcode | ( | WorldPackets::Ticket::GMTicketGetTicket & | packet | ) |
Definition at line 171 of file TicketHandler.cpp.
References GetPlayer(), SendQueryTimeResponse(), and sTicketMgr.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMTicketSystemStatusOpcode | ( | WorldPackets::Ticket::GMTicketGetSystemStatus & | packet | ) |
Definition at line 186 of file TicketHandler.cpp.
References GMTICKET_QUEUE_STATUS_DISABLED, GMTICKET_QUEUE_STATUS_ENABLED, SendPacket(), WorldPackets::Ticket::GMTicketSystemStatus::Status, sTicketMgr, and WorldPackets::Ticket::GMTicketSystemStatus::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGMTicketUpdateOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 131 of file TicketHandler.cpp.
References GetPlayer(), GMTICKET_RESPONSE_UPDATE_ERROR, GMTICKET_RESPONSE_UPDATE_SUCCESS, LANG_COMMAND_TICKETUPDATED, SendPacket(), SMSG_GMTICKET_UPDATETEXT, sTicketMgr, sWorld, and ValidateHyperlinksAndMaybeKick().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGossipHelloOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 146 of file NPCHandler.cpp.
References _player, Battleground::AddPlayerToResurrectQueue(), Creature::AI(), AURA_INTERRUPT_FLAG_TALK, PlayerMenu::ClearMenus(), Player::GetBattleground(), Creature::GetCreatureTemplate(), Unit::GetFaction(), Object::GetGUID(), CreatureMovementData::GetInteractionPauseTimer(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), Player::GetReputationMgr(), CreatureTemplate::GossipMenuId, Unit::IsSpiritGuide(), CreatureAI::OnGossipHello(), Unit::PauseMovement(), Player::PlayerTalkClass, Player::PrepareGossipMenu(), Unit::RemoveAurasWithInterruptFlags(), sBattlegroundMgr, Player::SendPreparedGossip(), Creature::SetHomePosition(), ReputationMgr::SetVisible(), sFactionTemplateStore, TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, and UNIT_NPC_FLAG_GOSSIP.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGossipSelectOptionOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 87 of file MiscHandler.cpp.
References _player, Creature::AI(), GameObject::AI(), Player::GetGameObjectIfCanInteractWith(), PlayerMenu::GetGossipMenu(), GossipMenu::GetItem(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Creature::GetScriptId(), GameObject::GetScriptId(), GossipMenu::GetSenderGUID(), ObjectGuid::IsCreatureOrVehicle(), ObjectGuid::IsGameObject(), PlayerMenu::IsGossipOptionCoded(), WorldObject::LastUsedScriptID, GameObjectAI::OnGossipSelect(), CreatureAI::OnGossipSelect(), Player::OnGossipSelect(), GameObjectAI::OnGossipSelectCode(), CreatureAI::OnGossipSelectCode(), Player::PlayerTalkClass, Unit::RemoveAurasByType(), ByteBuffer::rfinish(), PlayerMenu::SendCloseGossip(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_GOSSIP, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGrantLevel | ( | WorldPacket & | recvData | ) |
Definition at line 24 of file ReferAFriendHandler.cpp.
References _player, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, CONFIG_MAX_RECRUIT_A_FRIEND_BONUS_PLAYER_LEVEL, ERR_REFER_A_FRIEND_DIFFERENT_FACTION, ERR_REFER_A_FRIEND_GRANT_LEVEL_MAX_I, ERR_REFER_A_FRIEND_INSUFFICIENT_GRANTABLE_LEVELS, ERR_REFER_A_FRIEND_NO_TARGET, ERR_REFER_A_FRIEND_NOT_IN_GROUP, ERR_REFER_A_FRIEND_NOT_REFERRED_BY, ERR_REFER_A_FRIEND_TARGET_TOO_HIGH, GetAccountId(), Player::GetGrantableLevels(), Unit::GetLevel(), WorldObject::GetName(), Object::GetPackGUID(), ObjectAccessor::GetPlayer(), GetRecruiterId(), Player::GetSession(), Player::GetTeamId(), Player::IsInSameRaidWith(), ObjectGuid::ReadAsPacked(), Player::SendDirectMessage(), SendPacket(), SMSG_PROPOSE_LEVEL_GRANT, SMSG_REFER_A_FRIEND_FAILURE, sWorld, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupAcceptOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 206 of file GroupHandler.cpp.
References ASSERT, ERR_GROUP_FULL, ObjectAccessor::FindPlayer(), Player::GetGroupInvite(), GetPlayer(), PARTY_OP_INVITE, ByteBuffer::read_skip(), Group::RemoveInvite(), SendPartyResult(), sGroupMgr, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupAssistantLeaderOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 617 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), Group::IsLeader(), MEMBER_FLAG_ASSISTANT, Group::SetGroupMemberFlag(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupChangeSubGroupOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 578 of file GroupHandler.cpp.
References Group::ChangeMembersGroup(), ObjectAccessor::FindConnectedPlayerByName(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), Group::HasFreeSlotSubGroup(), Group::IsAssistant(), ObjectGuid::IsEmpty(), Group::IsLeader(), MAX_RAID_SUBGROUPS, normalizePlayerName(), sCharacterCache, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupDeclineOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 258 of file GroupHandler.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetGroupInvite(), Group::GetLeaderGUID(), WorldObject::GetName(), GetPlayer(), Player::GetSession(), Player::SendDirectMessage(), SMSG_GROUP_DECLINE, TC_LOG_DEBUG, and Player::UninviteFromGroup().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupDisbandOpcode | ( | WorldPacket & | recvPacket | ) |
error handling
Definition at line 391 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, Player::RemoveFromGroup(), SendPartyResult(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupInviteOpcode | ( | WorldPackets::Party::PartyInviteClient & | packet | ) |
Definition at line 62 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(), Player::GetDungeonDifficultyID(), Player::GetGroup(), Player::GetGroupInvite(), Object::GetGUID(), WorldObject::GetInstanceId(), Unit::GetLevel(), WorldLocation::GetMapId(), Player::GetOriginalGroup(), GetPlayer(), Player::GetSocial(), Player::GetTeam(), PlayerSocial::HasFriend(), PlayerSocial::HasIgnore(), WorldPackets::Party::PartyInvite::Initialize(), Group::IsAssistant(), Group::isBGGroup(), Group::IsCreated(), Group::IsFull(), Player::IsGameMaster(), Group::IsLeader(), normalizePlayerName(), PARTY_OP_INVITE, WorldPackets::Party::PartyInviteClient::ProposedRoles, Group::RemoveAllInvites(), Player::SendDirectMessage(), SendPartyResult(), sWorld, WorldPackets::Party::PartyInviteClient::TargetName, TC_LOG_DEBUG, and WorldPackets::Party::PartyInvite::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupRaidConvertOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 558 of file GroupHandler.cpp.
References _player, Group::ConvertToRaid(), ERR_PARTY_RESULT_OK, Player::GetGroup(), Group::GetMembersCount(), GetPlayer(), Player::InBattleground(), Group::IsLeader(), PARTY_OP_INVITE, SendPartyResult(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupSetLeaderOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 370 of file GroupHandler.cpp.
References Group::ChangeLeader(), ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), GetPlayer(), Group::IsLeader(), Group::SendUpdate(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupUninviteGuidOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 281 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, Player::RemoveFromGroup(), SendPartyResult(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGroupUninviteOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 324 of file GroupHandler.cpp.
References Player::CanUninviteFromGroup(), ERR_PARTY_RESULT_OK, ERR_TARGET_NOT_IN_GROUP_S, Player::GetGroup(), Group::GetInvited(), Group::GetMemberGUID(), GetPlayer(), GROUP_REMOVEMETHOD_KICK, ObjectGuid::IsEmpty(), normalizePlayerName(), PARTY_OP_UNINVITE, Player::RemoveFromGroup(), SendPartyResult(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildAcceptOpcode | ( | WorldPackets::Guild::AcceptGuildInvite & | invite | ) |
Definition at line 60 of file GuildHandler.cpp.
References GetPlayer(), sGuildMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildAddRankOpcode | ( | WorldPackets::Guild::GuildAddRank & | packet | ) |
Definition at line 173 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildAddRank::Name, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankActivate | ( | WorldPackets::Guild::GuildBankActivate & | packet | ) |
Definition at line 243 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, Guild::SendBankList(), Guild::SendCommandResult(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankBuyTab | ( | WorldPackets::Guild::GuildBankBuyTab & | packet | ) |
Definition at line 332 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::Initialize().
| void WorldSession::HandleGuildBankDepositMoney | ( | WorldPackets::Guild::GuildBankDepositMoney & | packet | ) |
Definition at line 276 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::Initialize().
| void WorldSession::HandleGuildBankLogQuery | ( | WorldPackets::Guild::GuildBankLogQuery & | packet | ) |
Definition at line 352 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankLogQuery::Tab, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankMoneyWithdrawn | ( | WorldPackets::Guild::GuildBankRemainingWithdrawMoneyQuery & | packet | ) |
Definition at line 230 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankQueryTab | ( | WorldPackets::Guild::GuildBankQueryTab & | packet | ) |
Definition at line 263 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::Initialize().
| void WorldSession::HandleGuildBankSetTabText | ( | WorldPackets::Guild::GuildBankSetTabText & | packet | ) |
Definition at line 368 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankSetTabText::Tab, WorldPackets::Guild::GuildBankSetTabText::TabText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankSwapItems | ( | WorldPackets::Guild::GuildBankSwapItems & | packet | ) |
Definition at line 297 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankSwapItems::AutoStore, WorldPackets::Guild::GuildBankSwapItems::Banker, WorldPackets::Guild::GuildBankSwapItems::BankItemCount, WorldPackets::Guild::GuildBankSwapItems::BankOnly, WorldPackets::Guild::GuildBankSwapItems::BankSlot, WorldPackets::Guild::GuildBankSwapItems::BankSlot1, WorldPackets::Guild::GuildBankSwapItems::BankTab, WorldPackets::Guild::GuildBankSwapItems::BankTab1, WorldPackets::Guild::GuildBankSwapItems::ContainerItemSlot, WorldPackets::Guild::GuildBankSwapItems::ContainerSlot, EQUIP_ERR_INTERNAL_BAG_ERROR, GAMEOBJECT_TYPE_GUILD_BANK, Player::GetGuild(), GetPlayer(), Player::IsInventoryPos(), NULL_BAG, NULL_SLOT, Player::SendEquipError(), WorldPackets::Guild::GuildBankSwapItems::StackCount, Guild::SwapItems(), Guild::SwapItemsWithInventory(), and WorldPackets::Guild::GuildBankSwapItems::ToSlot.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankTextQuery | ( | WorldPackets::Guild::GuildBankTextQuery & | packet | ) |
Definition at line 360 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankTextQuery::Tab, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankUpdateTab | ( | WorldPackets::Guild::GuildBankUpdateTab & | packet | ) |
Definition at line 341 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildBankUpdateTab::Banker, WorldPackets::Guild::GuildBankUpdateTab::BankTab, WorldPackets::String< MaxBytesWithoutNullTerminator, Validators >::empty(), WorldPackets::Array< T, N >::empty(), GAMEOBJECT_TYPE_GUILD_BANK, GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildBankUpdateTab::Icon, WorldPackets::Guild::GuildBankUpdateTab::Name, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildBankWithdrawMoney | ( | WorldPackets::Guild::GuildBankWithdrawMoney & | packet | ) |
Definition at line 287 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::Initialize().
| void WorldSession::HandleGuildCreateOpcode | ( | WorldPackets::Guild::GuildCreate & | packet | ) |
Definition at line 38 of file GuildHandler.cpp.
References GetPlayerInfo(), WorldPackets::Guild::GuildCreate::GuildName, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildDeclineOpcode | ( | WorldPackets::Guild::GuildDeclineInvitation & | decline | ) |
Definition at line 69 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), Player::SetGuildIdInvited(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildDelete | ( | WorldPackets::Guild::GuildDelete & | packet | ) |
Definition at line 122 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildDeleteRank | ( | WorldPackets::Guild::GuildDeleteRank & | packet | ) |
Definition at line 181 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildDemoteOpcode | ( | WorldPackets::Guild::GuildDemoteMember & | demote | ) |
Definition at line 105 of file GuildHandler.cpp.
References WorldPackets::Guild::GuildDemoteMember::Demotee, GetPlayer(), GetPlayerInfo(), normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildEventLogQueryOpcode | ( | WorldPackets::Guild::GuildEventLogQuery & | packet | ) |
Definition at line 222 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildInfoOpcode | ( | WorldPackets::Guild::GuildGetInfo & | packet | ) |
Definition at line 78 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildInviteOpcode | ( | WorldPackets::Guild::GuildInviteByName & | packet | ) |
Definition at line 43 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildInviteByName::Name, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildLeaveOpcode | ( | WorldPackets::Guild::GuildLeave & | leave | ) |
Definition at line 114 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildOfficerRemoveMember | ( | WorldPackets::Guild::GuildOfficerRemoveMember & | packet | ) |
Definition at line 51 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), normalizePlayerName(), WorldPackets::Guild::GuildOfficerRemoveMember::Removee, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildPermissionsQuery | ( | WorldPackets::Guild::GuildPermissionsQuery & | packet | ) |
Definition at line 236 of file GuildHandler.cpp.
References GetPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildPromoteOpcode | ( | WorldPackets::Guild::GuildPromoteMember & | promote | ) |
Definition at line 96 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), normalizePlayerName(), WorldPackets::Guild::GuildPromoteMember::Promotee, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildQueryOpcode | ( | WorldPackets::Guild::QueryGuildInfo & | query | ) |
Definition at line 28 of file GuildHandler.cpp.
References GetPlayerInfo(), WorldPackets::Guild::QueryGuildInfo::GuildId, sGuildMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildRosterOpcode | ( | WorldPackets::Guild::GuildGetRoster & | packet | ) |
Definition at line 86 of file GuildHandler.cpp.
References ERR_GUILD_PLAYER_NOT_IN_GUILD, GetPlayer(), GetPlayerInfo(), GUILD_COMMAND_ROSTER, Guild::SendCommandResult(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildSetGuildMaster | ( | WorldPackets::Guild::GuildSetGuildMaster & | packet | ) |
Definition at line 376 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildSetGuildMaster::NewMasterName, normalizePlayerName(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildSetOfficerNoteOpcode | ( | WorldPackets::Guild::GuildSetMemberNote & | packet | ) |
Definition at line 148 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), normalizePlayerName(), WorldPackets::Guild::GuildSetMemberNote::Note, WorldPackets::Guild::GuildSetMemberNote::NoteeName, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildSetPublicNoteOpcode | ( | WorldPackets::Guild::GuildSetMemberNote & | packet | ) |
Definition at line 138 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), normalizePlayerName(), WorldPackets::Guild::GuildSetMemberNote::Note, WorldPackets::Guild::GuildSetMemberNote::NoteeName, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildSetRankPermissions | ( | WorldPackets::Guild::GuildSetRankPermissions & | packet | ) |
Definition at line 158 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::TabFlags, WorldPackets::Guild::GuildSetRankPermissions::TabWithdrawItemLimit, TC_LOG_DEBUG, and WorldPackets::Guild::GuildSetRankPermissions::WithdrawGoldLimit.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildUpdateInfoText | ( | WorldPackets::Guild::GuildUpdateInfoText & | packet | ) |
Definition at line 189 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildUpdateInfoText::InfoText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleGuildUpdateMotdText | ( | WorldPackets::Guild::GuildUpdateMotdText & | packet | ) |
Definition at line 130 of file GuildHandler.cpp.
References GetPlayer(), GetPlayerInfo(), WorldPackets::Guild::GuildUpdateMotdText::MotdText, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleHearthAndResurrect | ( | WorldPackets::Battleground::HearthAndResurrect & | hearthAndResurrect | ) |
Definition at line 745 of file BattleGroundHandler.cpp.
References _player, AREA_FLAG_WINTERGRASP_2, Player::BuildPlayerRepop(), AreaTableEntry::Flags, WorldObject::GetAreaId(), Position::GetOrientation(), WorldObject::GetZoneId(), Unit::IsInFlight(), Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, Player::ResurrectPlayer(), sAreaTableStore, sBattlefieldMgr, and Player::TeleportTo().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleIgnoreTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 64 of file TradeHandler.cpp.
References _player, TRADE_STATUS_IGNORE_YOU, and Player::TradeCancel().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleInitiateTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 589 of file TradeHandler.cpp.
References _player, CONFIG_ALLOW_TWO_SIDE_TRADE, CONFIG_TRADE_LEVEL_REQ, ObjectAccessor::FindPlayer(), Object::GetGUID(), GetPlayer(), Player::GetSession(), Player::GetTeam(), GetTrinityString(), HasPermission(), Unit::HasUnitState(), Unit::IsAlive(), Unit::IsInFlight(), isLogingOut(), WorldObject::IsWithinDistInMap(), LANG_TRADE_REQ, Player::m_trade, rbac::RBAC_PERM_ALLOW_TWO_SIDE_TRADE, SendNotification(), SendTradeStatus(), TradeStatusInfo::Status, sWorld, TRADE_DISTANCE, TRADE_STATUS_BEGIN_TRADE, TRADE_STATUS_BUSY, TRADE_STATUS_CLOSE_WINDOW, TRADE_STATUS_NO_TARGET, TRADE_STATUS_TARGET_DEAD, TRADE_STATUS_TARGET_LOGOUT, TRADE_STATUS_TARGET_STUNNED, TRADE_STATUS_TARGET_TO_FAR, TRADE_STATUS_WRONG_FACTION, TRADE_STATUS_YOU_DEAD, TRADE_STATUS_YOU_LOGOUT, TRADE_STATUS_YOU_STUNNED, TradeStatusInfo::TraderGuid, and UNIT_STATE_STUNNED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleInspectArenaTeamsOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 32 of file ArenaTeamHandler.cpp.
References ObjectAccessor::FindPlayer(), Player::GetArenaTeamId(), Object::GetGUID(), GetPlayer(), INSPECT_DISTANCE, MAX_ARENA_SLOT, sArenaTeamMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleInspectOpcode | ( | WorldPackets::Inspect::Inspect & | inspect | ) |
Definition at line 25 of file InspectHandler.cpp.
References _player, Player::BuildPlayerTalentsInfoData(), CONFIG_TALENTS_INSPECTING, EQUIPMENT_SLOT_END, Player::GetItemByPos(), GetPlayer(), ObjectAccessor::GetPlayer(), Player::GetTeamId(), INSPECT_DISTANCE, WorldPackets::Inspect::InspectResult::InspecteeGUID, INVENTORY_SLOT_BAG_0, WorldPackets::Inspect::InspectResult::Items, WorldPackets::Inspect::InspectResult::ItemSlots, SendPacket(), sWorld, WorldPackets::Inspect::InspectResult::TalentInfo, WorldPackets::Inspect::Inspect::Target, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Inspect::InspectResult::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleInstanceLockResponse | ( | WorldPacket & | recvPacket | ) |
Definition at line 1193 of file MiscHandler.cpp.
References _player, Player::BindToInstance(), Object::GetGUID(), WorldObject::GetName(), Player::HasPendingBind(), Player::RepopAtGraveyard(), Player::SetPendingBind(), TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleItemNameQueryOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 756 of file ItemHandler.cpp.
References ObjectMgr::GetLocaleString(), GetSessionDbLocaleIndex(), ItemSetNameEntry::InventoryType, LOCALE_enUS, ItemSetNameEntry::name, ByteBuffer::read_skip(), SendPacket(), SMSG_ITEM_NAME_QUERY_RESPONSE, sObjectMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleItemQuerySingleOpcode | ( | WorldPackets::Query::QueryItemSingle & | query | ) |
Definition at line 297 of file ItemHandler.cpp.
References CONFIG_CACHE_DATA_QUERIES, GetSessionDbLocaleIndex(), WorldPackets::Query::QueryItemSingle::ItemID, WorldPackets::Query::QueryItemSingleResponse::ItemID, SendPacket(), sObjectMgr, sWorld, TC_LOG_DEBUG, TC_LOG_INFO, and WorldPackets::Query::QueryItemSingleResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleItemRefund | ( | WorldPacket & | recvData | ) |
Definition at line 1128 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), Player::GetLootGUID(), GetPlayer(), Player::RefundItem(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleItemTextQuery | ( | WorldPacket & | recvData | ) |
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 1153 of file ItemHandler.cpp.
References _player, Player::GetItemByGuid(), SendPacket(), SMSG_ITEM_TEXT_QUERY_RESPONSE, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| 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::Initialize().
| void WorldSession::HandleLearnPreviewTalents | ( | WorldPackets::Talent::LearnPreviewTalents & | learnPreviewTalents | ) |
Definition at line 34 of file SkillHandler.cpp.
References _player, Player::LearnTalent(), Player::SendTalentsInfoData(), and WorldPackets::Talent::LearnPreviewTalents::Talents.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLearnPreviewTalentsPet | ( | WorldPacket & | recvPacket | ) |
Definition at line 852 of file PetHandler.cpp.
References _player, Player::LearnPetTalent(), ByteBuffer::rfinish(), Player::SendTalentsInfoData(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLearnTalentOpcode | ( | WorldPackets::Talent::LearnTalent & | packet | ) |
Definition at line 28 of file SkillHandler.cpp.
References _player, Player::LearnTalent(), WorldPackets::Talent::LearnTalentEntry::Rank, Player::SendTalentsInfoData(), WorldPackets::Talent::LearnTalent::Talent, and WorldPackets::Talent::LearnTalentEntry::TalentID.
Referenced by OpcodeTable::Initialize().
| 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::Initialize().
| void WorldSession::HandleLfgGetStatus | ( | WorldPacket & | recvData | ) |
Definition at line 289 of file LFGHandler.cpp.
References lfg::LfgUpdateData::dungeons, Object::GetGUID(), GetPlayer(), GetPlayerInfo(), SendLfgUpdateParty(), SendLfgUpdatePlayer(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgJoinOpcode | ( | WorldPackets::LFG::LFGJoin & | lfgJoin | ) |
Definition at line 51 of file LFGHandler.cpp.
References WorldPackets::LFG::LFGJoin::Comment, WorldPackets::Array< T, N >::empty(), GetPlayer(), GetPlayerInfo(), lfg::LFG_OPTION_ENABLE_DUNGEON_FINDER, lfg::LFG_OPTION_ENABLE_RAID_BROWSER, MAX_GROUP_SIZE, WorldPackets::LFG::LFGJoin::Roles, sLFGDungeonStore, sLFGMgr, WorldPackets::LFG::LFGJoin::Slots, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgLeaveOpcode | ( | WorldPackets::LFG::LFGLeave & | lfgleave | ) |
Definition at line 78 of file LFGHandler.cpp.
References Player::GetGroup(), Group::GetGUID(), Object::GetGUID(), Group::GetLeaderGUID(), GetPlayer(), GetPlayerInfo(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgPartyLockInfoRequestOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 231 of file LFGHandler.cpp.
References GetPlayerInfo(), SendLfgPartyLockInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgPlayerLockInfoRequestOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 154 of file LFGHandler.cpp.
References GetPlayerInfo(), SendLfgPlayerLockInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgProposalResultOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 92 of file LFGHandler.cpp.
References Object::GetGUID(), GetPlayer(), GetPlayerInfo(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgSetBootVoteOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 133 of file LFGHandler.cpp.
References Object::GetGUID(), GetPlayer(), GetPlayerInfo(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgSetCommentOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 122 of file LFGHandler.cpp.
References GetPlayer(), GetPlayerInfo(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgSetRolesOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 104 of file LFGHandler.cpp.
References Player::GetGroup(), Group::GetGUID(), Object::GetGUID(), GetPlayer(), GetPlayerInfo(), sLFGMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfgTeleportOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 144 of file LFGHandler.cpp.
References GetPlayer(), GetPlayerInfo(), sLFGMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfrJoinOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 271 of file LFGHandler.cpp.
References GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLfrLeaveOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 280 of file LFGHandler.cpp.
References GetPlayerInfo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleListInventoryOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 560 of file ItemHandler.cpp.
References GetPlayer(), SendListInventory(), TC_LOG_DEBUG, and WorldPackets::NPC::Hello::Unit.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLogoutCancelOpcode | ( | WorldPackets::Character::LogoutCancel & | logoutCancel | ) |
we can move again
Stand Up
DISABLE_ROTATE
Definition at line 361 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::Initialize().
| void WorldSession::HandleLogoutRequestOpcode | ( | WorldPackets::Character::LogoutRequest & | logoutRequest | ) |
TODO: Possibly add RBAC permission to log out in combat
Definition at line 307 of file MiscHandler.cpp.
References DoLootRelease(), GameTime::GetGameTime(), Player::GetLootGUID(), GetPlayer(), Object::HasFlag(), HasPermission(), WorldPackets::Character::LogoutResponse::Instant, ObjectGuid::IsEmpty(), Unit::IsInCombat(), Unit::IsInFlight(), LogoutPlayer(), WorldPackets::Character::LogoutResponse::LogoutResult, PLAYER_FLAGS, PLAYER_FLAGS_RESTING, rbac::RBAC_PERM_INSTANT_LOGOUT, 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::Initialize().
| void WorldSession::HandleLootMasterGiveOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 387 of file LootHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_LOOT_EPIC_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM, ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE, LootItem::AllowedForPlayer(), Player::CanStoreNewItem(), LootItem::count, EQUIP_ERR_CANT_EQUIP_EVER, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_OK, LootItem::GetAllowedLooters(), Map::GetCreature(), Map::GetGameObject(), Player::GetGroup(), Object::GetGUID(), Player::GetLootGUID(), Group::GetLootMethod(), GetLootTypeForClient(), WorldObject::GetMap(), Group::GetMasterLooterGuid(), WorldObject::GetName(), GetPlayer(), ObjectAccessor::GetPlayer(), LootItem::is_looted, WorldObject::IsInMap(), Unit::IsInRaidWith(), LootItem::itemid, Loot::items, Creature::loot, GameObject::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, MASTER_LOOT, Loot::NotifyItemRemoved(), NULL_BAG, NULL_SLOT, Loot::quest_items, LootItem::randomPropertyId, Player::SendLootError(), Player::SendNewItem(), Player::StoreNewItem(), TC_LOG_DEBUG, TC_LOG_INFO, Loot::unlootedCount, and Player::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLootMethodOpcode | ( | WorldPacket & | recvPacket | ) |
error handling
Definition at line 419 of file GroupHandler.cpp.
References Player::GetGroup(), GetPlayer(), Group::IsLeader(), Group::isLFGGroup(), Group::IsMember(), ITEM_QUALITY_ARTIFACT, MASTER_LOOT, NEED_BEFORE_GREED, Group::SendUpdate(), Group::SetLootMethod(), Group::SetLootThreshold(), Group::SetMasterLooterGuid(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLootMoneyOpcode | ( | WorldPackets::Loot::LootMoney & | packet | ) |
Definition at line 99 of file LootHandler.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY, CLASS_ROGUE, Loot::containerID, Corpse, DoLootRelease(), GameObject, Unit::GetClass(), ObjectAccessor::GetCorpse(), Map::GetCreature(), Group::GetFirstMember(), Map::GetGameObject(), Player::GetGroup(), Object::GetGUID(), ObjectGuid::GetHigh(), Player::GetItemByGuid(), Player::GetLootGUID(), WorldObject::GetMap(), GameObject::GetOwnerGUID(), GetPlayer(), Player::GetSession(), Loot::gold, INTERACTION_DISTANCE, Unit::IsAlive(), Player::IsAtGroupRewardDistance(), ObjectGuid::IsItem(), Loot::isLooted(), GameObject::IsWithinDistInMap(), WorldObject::IsWithinDistInMap(), Item, Corpse::loot, Creature::loot, GameObject::loot, LOOT_ERROR_DIDNT_KILL, LOOT_ERROR_TOO_FAR, LOOT_PICKPOCKETING, Loot::loot_type, Player::ModifyMoney(), WorldPackets::Loot::LootMoneyNotify::Money, GroupReference::next(), Loot::NotifyMoneyRemoved(), Player::SendLootError(), SendPacket(), WorldPackets::Array< T, N >::size(), sLootItemStorage, WorldPackets::Loot::LootMoneyNotify::SoleLooter, TC_LOG_DEBUG, Unit, Player::UpdateAchievementCriteria(), Vehicle, and WorldPackets::Loot::LootMoneyNotify::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLootOpcode | ( | WorldPackets::Loot::LootUnit & | packet | ) |
Definition at line 217 of file LootHandler.cpp.
References AURA_INTERRUPT_FLAG_LOOTING, GetPlayer(), Unit::InterruptNonMeleeSpells(), ObjectGuid::IsCreatureOrVehicle(), LOOT_CORPSE, Unit::RemoveAurasWithInterruptFlags(), Player::SendLoot(), TC_LOG_DEBUG, and WorldPackets::Loot::LootUnit::Unit.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLootReleaseOpcode | ( | WorldPackets::Loot::LootRelease & | packet | ) |
Definition at line 234 of file LootHandler.cpp.
References DoLootRelease(), Player::GetLootGUID(), GetPlayer(), ObjectGuid::IsEmpty(), TC_LOG_DEBUG, and WorldPackets::Loot::LootRelease::Unit.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleLootRoll | ( | WorldPacket & | recvData | ) |
Definition at line 456 of file GroupHandler.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED, ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED, Group::CountRollVote(), Player::GetGroup(), GetPlayer(), ROLL_GREED, ROLL_NEED, and Player::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMailCreateTextItem | ( | WorldPackets::Mail::MailCreateTextItem & | createTextItem | ) |
Definition at line 571 of file MailHandler.cpp.
References _player, ASSERT, Mail::body, MailTemplateEntry::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, NULL_BAG, NULL_SLOT, Mail::sender, Player::SendMailResult(), Item::SetCreator(), Item::SetItemFlag(), Item::SetText(), sMailTemplateStore, Mail::state, and Player::StoreItem().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMailDelete | ( | WorldPackets::Mail::MailDelete & | mailDelete | ) |
Definition at line 342 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::Mailbox, WorldPackets::Mail::MailDelete::MailID, Player::SendMailResult(), and Mail::state.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMailMarkAsRead | ( | WorldPackets::Mail::MailMarkAsRead & | markAsRead | ) |
Definition at line 324 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::Initialize().
| void WorldSession::HandleMailReturnToSender | ( | WorldPackets::Mail::MailReturnToSender & | returnToSender | ) |
Definition at line 364 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::Mailbox, WorldPackets::Mail::MailReturnToSender::MailID, Mail::mailTemplateId, Mail::messageType, Mail::money, Mail::receiver, Player::RemoveMail(), Player::RemoveMItem(), Mail::sender, WorldPackets::Mail::MailReturnToSender::SenderGUID, Player::SendMailResult(), MailDraft::SendReturnToSender(), PreparedStatementBase::setUInt32(), Mail::state, and Mail::subject.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMailTakeItem | ( | WorldPackets::Mail::MailTakeItem & | takeItem | ) |
Definition at line 415 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(), Object::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::Initialize().
| void WorldSession::HandleMailTakeMoney | ( | WorldPackets::Mail::MailTakeMoney & | takeMoney | ) |
Definition at line 511 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, Player::SaveGoldToDB(), Player::SendMailResult(), and Mail::state.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMinimapPingOpcode | ( | WorldPacket & | recvData | ) |
error handling
Definition at line 483 of file GroupHandler.cpp.
References Group::BroadcastPacket(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), MSG_MINIMAP_PING, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMirrorImageDataRequest | ( | WorldPacket & | recvData | ) |
Definition at line 576 of file SpellHandler.cpp.
References _player, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_TABARD, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_WRISTS, Unit::GetAuraEffectsByType(), Unit::GetClass(), Unit::GetDisplayId(), Unit::GetGender(), Unit::GetRace(), ObjectAccessor::GetUnit(), Unit::HasAuraType(), INVENTORY_SLOT_BAG_0, PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK, PLAYER_FLAGS_HIDE_HELM, SendPacket(), SMSG_MIRRORIMAGE_DATA, SPELL_AURA_CLONE_CASTER, and Object::ToPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMountSpecialAnimOpcode | ( | WorldPacket & | recvdata | ) |
Definition at line 722 of file MovementHandler.cpp.
References Object::GetGUID(), GetPlayer(), Player::SendMessageToSet(), and SMSG_MOUNTSPECIAL_ANIM.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveGravityDisableAck | ( | WorldPacket & | recvData | ) |
Definition at line 932 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveGravityEnableAck | ( | WorldPacket & | recvData | ) |
Definition at line 953 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveHoverAck | ( | WorldPacket & | recvData | ) |
Definition at line 775 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveKnockBackAck | ( | WorldPacket & | recvPacket | ) |
Definition at line 730 of file MovementHandler.cpp.
References _player, AdjustClientMovementTime(), ASSERT, GameClient::GetBasePlayer(), GetGameClient(), ObjectAccessor::GetUnit(), MovementInfo::guid, GameClient::IsAllowedToMove(), WorldObject::m_movementInfo, MSG_MOVE_KNOCK_BACK, ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), Player::SendMessageToSet(), TC_LOG_DEBUG, Unit::UpdatePosition(), and WriteMovementInfo().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMovementOpcode | ( | OpcodeClient | opcode, |
| MovementInfo & | movementInfo | ||
| ) |
Definition at line 406 of file MovementHandler.cpp.
References _player, AdjustClientMovementTime(), AURA_INTERRUPT_FLAG_LANDING, AURA_INTERRUPT_FLAG_TURNING, Player::CheckOutdoorsAuraRequirements(), CMSG_MOVE_SET_FLY, DAMAGE_FALL_TO_VOID, EMOTE_ONESHOT_NONE, Player::EnvironmentalDamage(), Movement::MoveSpline::Finalized(), MovementInfo::flags, GAMEOBJECT_TYPE_TRANSPORT, Player::GetBattleground(), Player::GetDebugInfo(), Unit::GetEmoteState(), Position::GetExactDist2d(), Map::GetGameObject(), GameObject::GetGoType(), Object::GetGUID(), WorldObject::GetMap(), Map::GetMinHeight(), Position::GetOrientation(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldObject::GetTransport(), Map::GetTransport(), Unit::GetVehicle(), MovementInfo::guid, MovementInfo::TransportInfo::guid, Player::HandleFall(), Battleground::HandlePlayerUnderMap(), MovementInfo::HasMovementFlag(), Unit::IsAlive(), Player::IsBeingTeleported(), Unit::IsInFlight(), Unit::IsSitState(), Trinity::IsValidMapCoord(), Player::KillPlayer(), WorldObject::m_movementInfo, MOVEMENTFLAG_MASK_MOVING, MOVEMENTFLAG_MASK_TURNING, MOVEMENTFLAG_ONTRANSPORT, Unit::movespline, MSG_MOVE_FALL_LAND, MSG_MOVE_START_SWIM, MSG_MOVE_STOP, MSG_MOVE_STOP_ASCEND, MSG_MOVE_STOP_PITCH, MSG_MOVE_STOP_STRAFE, MSG_MOVE_STOP_SWIM, MSG_MOVE_STOP_TURN, PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS, MovementInfo::pos, MovementInfo::TransportInfo::pos, Unit::RemoveAurasWithInterruptFlags(), Object::RemoveFlag(), MovementInfo::RemoveMovementFlag(), Transport::RemovePassenger(), MovementInfo::TransportInfo::Reset(), WorldObject::SendMessageToSet(), Unit::SetEmoteState(), Object::SetFlag(), Position::SetOrientation(), Unit::SetStandState(), SIZE_OF_GRIDS, WorldPackets::Movement::MoveUpdate::Status, TC_LOG_DEBUG, MovementInfo::time, Object::ToPlayer(), MovementInfo::transport, UNIT_STAND_STATE_STAND, Player::UpdateFallInformationIfNeed(), Unit::UpdatePosition(), ValidateAndGetUnitBeingMoved(), ValidateMovementInfo(), VEHICLE_SEAT_FLAG_ALLOW_TURNING, and WorldPackets::Movement::MoveUpdate::Write().
Referenced by HandleCastSpellOpcode(), HandleClientCastFlags(), HandleMovementOpcodes(), HandlePetCastSpellOpcode(), and HandleUpdateMissileTrajectory().
| void WorldSession::HandleMovementOpcodes | ( | WorldPackets::Movement::ClientPlayerMovement & | packet | ) |
Definition at line 401 of file MovementHandler.cpp.
References WorldPackets::ClientPacket::GetOpcode(), HandleMovementOpcode(), and WorldPackets::Movement::ClientPlayerMovement::Status.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveNotActiveMover | ( | WorldPacket & | recvData | ) |
Definition at line 701 of file MovementHandler.cpp.
References _player, GameClient::GetActivelyMovedUnit(), GetGameClient(), Object::GetGUID(), WorldObject::GetName(), ObjectGuid::ReadAsPacked(), ByteBuffer::rfinish(), GameClient::SetActivelyMovedUnit(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveRootAck | ( | WorldPacket & | recvPacket | ) |
Definition at line 821 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveSetCanFlyAckOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 886 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveSetCanTransitionBetweenSwinAndFlyAck | ( | WorldPacket & | recvData | ) |
Definition at line 909 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveSetCollisionHgtAck | ( | WorldPacket & | recvData | ) |
Definition at line 974 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveSplineDoneOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 201 of file TaxiHandler.cpp.
References WorldObject::CastSpell(), Player::CleanupAfterTaxiFlight(), TaxiNodesEntry::ContinentID, FLIGHT_MOTION_TYPE, WorldPacket::GetOpcode(), GetPlayer(), PlayerTaxi::GetTaxiDestination(), MovementInfo::guid, TaxiPathNodeEntry::Loc, Player::m_taxi, ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), Player::SetFallInformation(), sTaxiNodesStore, TC_LOG_DEBUG, Player::TeleportTo(), ValidateAndGetUnitBeingMoved(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveTeleportAck | ( | WorldPackets::Movement::MoveTeleportAck & | packet | ) |
Definition at line 356 of file MovementHandler.cpp.
References WorldPackets::Movement::MoveTeleportAck::AckIndex, WorldObject::CastSpell(), WorldPackets::ClientPacket::GetOpcode(), GetPlayer(), Player::GetTeleportDest(), WorldObject::GetZoneAndAreaId(), WorldObject::GetZoneId(), Object::HasFlag(), Player::IsBeingTeleportedNear(), PvPInfo::IsHostile, Unit::IsPvP(), WorldPackets::Movement::MoveTeleportAck::MoverGUID, WorldPackets::Movement::MoveTeleportAck::MoveTime, PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, Player::ProcessDelayedOperations(), Player::pvpInfo, Player::ResummonPetTemporaryUnSummonedIfAny(), Player::SetFallInformation(), Player::SetSemaphoreTeleportNear(), TC_LOG_DEBUG, Object::ToPlayer(), ObjectGuid::ToString(), Player::UpdatePosition(), Player::UpdatePvP(), Player::UpdateZone(), and ValidateAndGetUnitBeingMoved().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveTimeSkippedOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1011 of file MovementHandler.cpp.
References WorldPacket::GetOpcode(), GetPlayer(), WorldObject::m_movementInfo, MSG_MOVE_TIME_SKIPPED, ObjectGuid::ReadAsPacked(), ByteBuffer::rfinish(), Player::SendMessageToSet(), ByteBuffer::size(), TC_LOG_DEBUG, MovementInfo::time, ValidateAndGetUnitBeingMoved(), and ObjectGuid::WriteAsPacked().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveUnRootAck | ( | WorldPacket & | recvPacket | ) |
Definition at line 865 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveWaterWalkAck | ( | WorldPacket & | recvPacket | ) |
Definition at line 798 of file MovementHandler.cpp.
References GetGameClient(), MovementInfo::guid, GameClient::IsAllowedToMove(), ByteBuffer::read_skip(), ObjectGuid::ReadAsPacked(), ReadMovementInfo(), ByteBuffer::rfinish(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleMoveWorldportAck | ( | ) |
Definition at line 193 of file MovementHandler.cpp.
References Map::AddPlayerToMap(), InstanceTemplate::AllowMount, BATTLEGROUND_TYPE_NONE, Map::CannotEnter(), WorldObject::CastSpell(), Player::CheckInstanceValidity(), Player::FinishTaxiFlight(), Player::GetBattleground(), Player::GetBattlegroundId(), Player::GetCorpseLocation(), MotionMaster::GetCurrentMovementGenerator(), Map::GetDifficultyID(), GameTime::GetGameTime(), Object::GetGUID(), Unit::GetHoverOffset(), Map::GetId(), WorldObject::GetMap(), GetMapDifficultyData(), WorldLocation::GetMapId(), Map::GetMapName(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeleportDest(), Player::GetTeleportOptions(), WorldObject::GetZoneAndAreaId(), Object::HasFlag(), MapEntry::ID, Player::InBattleground(), MovementGenerator::Initialize(), Unit::IsAlive(), MapEntry::IsBattlegroundOrArena(), Player::IsBeingTeleportedFar(), MapEntry::IsDungeon(), PvPInfo::IsHostile, Unit::IsInFlight(), Player::IsInvitedForBattlegroundInstance(), Object::IsInWorld(), Unit::IsPvP(), MapManager::IsValidMapCoord(), LogoutPlayer(), Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, Player::m_InstanceValid, PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, Player::ProcessDelayedOperations(), Player::pvpInfo, Position::Relocate(), Unit::RemoveAurasByType(), Map::RemovePlayerFromMap(), Player::ResetMap(), Player::ResummonPetTemporaryUnSummonedIfAny(), Player::ResurrectPlayer(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), Player::SendInstanceResetWarning(), Player::SetBattlegroundId(), Player::SetBGTeam(), Player::SetFallInformation(), Player::SetMap(), Player::SetSemaphoreTeleportFar(), sInstanceSaveMgr, sMapMgr, sMapStore, sObjectMgr, Player::SpawnCorpseBones(), SPELL_AURA_MOUNTED, TC_LOG_ERROR, TELE_REVIVE_AT_TELEPORT, Player::TeleportTo(), ObjectGuid::ToString(), Player::UpdatePvP(), and Player::UpdateZone().
Referenced by HandleMoveWorldportAckOpcode(), and LogoutPlayer().
| void WorldSession::HandleMoveWorldportAckOpcode | ( | WorldPackets::Movement::WorldPortResponse & | packet | ) |
Definition at line 187 of file MovementHandler.cpp.
References HandleMoveWorldportAck(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleNameQueryOpcode | ( | WorldPackets::Query::QueryPlayerName & | queryPlayerName | ) |
Definition at line 60 of file QueryHandler.cpp.
References WorldPackets::Query::QueryPlayerName::Player, and SendNameQueryOpcode().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleNextCinematicCamera | ( | WorldPackets::Misc::NextCinematicCamera & | packet | ) |
Definition at line 803 of file MiscHandler.cpp.
References CinematicMgr::BeginCinematic(), Player::GetCinematicMgr(), and GetPlayer().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleNpcTextQueryOpcode | ( | WorldPackets::Query::QueryNPCText & | packet | ) |
Definition at line 177 of file QueryHandler.cpp.
References QEmote::_Delay, QEmote::_Emote, WorldPackets::Query::QueryNPCTextResponse::Allow, GossipTextOption::BroadcastTextID, DEFAULT_LOCALE, GossipTextOption::Emotes, GENDER_FEMALE, GENDER_MALE, ObjectMgr::GetLocaleString(), GetSessionDbLocaleIndex(), GossipTextOption::Language, MAX_GOSSIP_TEXT_EMOTES, MAX_GOSSIP_TEXT_OPTIONS, GossipText::Options, WorldPackets::Query::QueryNPCTextResponse::Options, GossipTextOption::Probability, SendPacket(), sObjectMgr, TC_LOG_DEBUG, GossipTextOption::Text_0, GossipTextOption::Text_1, WorldPackets::Query::QueryNPCText::TextID, WorldPackets::Query::QueryNPCTextResponse::TextID, and WorldPackets::Query::QueryNPCTextResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleOfferPetitionOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 518 of file PetitionsHandler.cpp.
References _player, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_ARENA_TEAM_S, ERR_ALREADY_IN_GUILD_S, ERR_ALREADY_INVITED_TO_ARENA_TEAM_S, ERR_ALREADY_INVITED_TO_GUILD_S, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_INVITE_SS, ERR_ARENA_TEAM_NOT_ALLIED, ERR_ARENA_TEAM_TARGET_TOO_LOW_S, ERR_GUILD_NOT_ALLIED, ObjectAccessor::FindConnectedPlayer(), Player::GetArenaTeamId(), Player::GetArenaTeamIdInvited(), Player::GetGuildId(), Player::GetGuildIdInvited(), WorldObject::GetName(), GetPlayer(), ArenaTeam::GetSlotByType(), Player::GetTeam(), GUILD_CHARTER_TYPE, GUILD_COMMAND_CREATE, GUILD_COMMAND_INVITE, Player::IsMaxLevel(), MAX_ARENA_SLOT, Petition::PetitionType, SendArenaTeamCommandResult(), Guild::SendCommandResult(), SendPetitionSigns(), sPetitionMgr, sWorld, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleOpeningCinematic | ( | WorldPackets::Misc::OpeningCinematic & | packet | ) |
Definition at line 2189 of file CharacterHandler.cpp.
References _player, Unit::GetClass(), Unit::GetRace(), Object::GetUInt32Value(), PLAYER_XP, sChrClassesStore, sChrRacesStore, and Player::SendCinematicStart().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleOpenItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 176 of file SpellHandler.cpp.
References _queryProcessor, AsyncCallbackProcessor< T >::AddCallback(), CHAR_SEL_CHARACTER_GIFT_BY_ITEM, CharacterDatabase, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_ITEM_LOCKED, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_PLAYER_DEAD, ObjectGuid::GetCounter(), Object::GetGUID(), ItemTemplate::GetId(), Player::GetItemByPos(), ItemTemplate::GetLockID(), WorldObject::GetName(), GetPlayer(), Item::GetPos(), Item::GetTemplate(), HandleOpenWrappedItemCallback(), ItemTemplate::HasFlag(), Unit::IsAlive(), Unit::IsCharmed(), Item::IsLocked(), Item::IsWrapped(), ITEM_FLAG_HAS_LOOT, LOOT_CORPSE, Player::SendEquipError(), Player::SendLoot(), PreparedStatementBase::setUInt32(), ByteBuffer::size(), sLockStore, TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleOpenWrappedItemCallback | ( | uint16 | pos, |
| ObjectGuid | itemGuid, | ||
| PreparedQueryResult | result | ||
| ) |
Definition at line 253 of file SpellHandler.cpp.
References CHAR_DEL_GIFT, CharacterDatabase, Player::DestroyItem(), ObjectGuid::Empty, flags, Item::GetBagSlot(), ObjectGuid::GetCounter(), Object::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::setUInt32(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by HandleOpenItemOpcode().
| void WorldSession::HandleOptOutOfLootOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1046 of file GroupHandler.cpp.
References GetPlayer(), Player::SetPassOnGroupLoot(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePartyAssignmentOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 636 of file GroupHandler.cpp.
References Player::GetGroup(), Object::GetGUID(), GetPlayer(), GROUP_ASSIGN_MAINASSIST, GROUP_ASSIGN_MAINTANK, Group::IsAssistant(), Group::IsLeader(), MEMBER_FLAG_MAINASSIST, MEMBER_FLAG_MAINTANK, Group::RemoveUniqueGroupMemberFlag(), Group::SendUpdate(), Group::SetGroupMemberFlag(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetAbandon | ( | WorldPackets::Pet::PetAbandon & | packet | ) |
Definition at line 671 of file PetHandler.cpp.
References _player, ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetGUID(), Unit::GetPetGUID(), Pet::getPetType(), Unit::GetPower(), HUNTER_PET, Object::IsInWorld(), PET_SAVE_AS_DELETED, WorldPackets::Pet::PetAbandon::PetGUID, POWER_HAPPINESS, Player::RemovePet(), Unit::SetPower(), and Unit::ToPet().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetAction | ( | WorldPacket & | recvData | ) |
Definition at line 59 of file PetHandler.cpp.
References _player, ACT_COMMAND, ACT_ENABLED, ACT_PASSIVE, COMMAND_ATTACK, Object::GetEntry(), GetPlayer(), Object::GetTypeId(), ObjectAccessor::GetUnit(), HandlePetActionHelper(), SpellInfo::HasAttribute(), Unit::IsAlive(), Unit::m_Controlled, SPELL_ATTR0_CASTABLE_WHILE_DEAD, sSpellMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEID_PLAYER, UNIT_ACTION_BUTTON_ACTION, and UNIT_ACTION_BUTTON_TYPE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetActionHelper | ( | Unit * | pet, |
| ObjectGuid | guid1, | ||
| uint32 | spellid, | ||
| uint16 | flag, | ||
| ObjectGuid | guid2 | ||
| ) |
Definition at line 137 of file PetHandler.cpp.
References _player, ACT_COMMAND, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, ACT_REACTION, Creature::AI(), ASSERT, Unit::Attack(), UnitAI::AttackStart(), Unit::AttackStop(), Spell::CheckPetCast(), MotionMaster::Clear(), COMMAND_ABANDON, COMMAND_ATTACK, COMMAND_FOLLOW, COMMAND_STAY, Spell::finish(), Unit::GetCharmerGUID(), Unit::GetCharmerOrOwner(), Unit::GetCharmInfo(), SpellInfo::GetEffects(), Unit::GetFollowAngle(), Object::GetGUID(), Unit::GetMotionMaster(), WorldObject::GetOwner(), Unit::GetOwnerGUID(), Pet::getPetType(), GetPlayer(), Unit::GetSpellHistory(), Object::GetTypeId(), ObjectAccessor::GetUnit(), SpellCastTargets::GetUnitTarget(), Unit::GetVictim(), SpellHistory::HasCooldown(), Unit::HasSpell(), Unit::HasSpellFocus(), Unit::HasUnitTypeMask(), HUNTER_PET, Unit::InterruptNonMeleeSpells(), Unit::IsAIEnabled(), CharmInfo::IsCommandAttack(), ObjectGuid::IsEmpty(), SpellInfo::IsPassive(), Unit::IsPet(), Unit::isPossessed(), Unit::IsVehicle(), Spell::m_targets, MOTION_PRIORITY_NORMAL, MotionMaster::MoveFollow(), MotionMaster::MoveIdle(), 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_i(), CharmInfo::SaveStayPosition(), Spell::SendCastResult(), Unit::SendPetActionSound(), Unit::SendPetAIReaction(), Spell::SendPetCastResult(), Unit::SendPetDismissSound(), Object::SendUpdateToPlayer(), CharmInfo::SetCommandState(), Unit::SetInFront(), CharmInfo::SetIsAtStay(), CharmInfo::SetIsCommandAttack(), CharmInfo::SetIsCommandFollow(), CharmInfo::SetIsFollowing(), CharmInfo::SetIsReturning(), Creature::SetReactState(), SPELL_CAST_OK, SPELL_FAILED_UNIT_NOT_INFRONT, sSpellMgr, Player::StopCastingCharm(), 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 444 of file SpellHandler.cpp.
References _player, AURA_REMOVE_BY_CANCEL, Dead, 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::Initialize().
| void WorldSession::HandlePetCastSpellOpcode | ( | WorldPackets::Spells::PetCastSpell & | petCastSpell | ) |
Definition at line 740 of file PetHandler.cpp.
References _player, WorldPackets::Spells::PetCastSpell::Cast, WorldPackets::Spells::SpellCastRequest::CastID, Spell::CheckPetCast(), Spell::finish(), Unit::GetCharmed(), Unit::GetGuardianPet(), GetPlayer(), Unit::GetSpellHistory(), ObjectAccessor::GetUnit(), HandleMovementOpcode(), Unit::HasAuraTypeWithTriggerSpell(), SpellHistory::HasCooldown(), Unit::HasSpell(), SpellInfo::Id, Spell::InitExplicitTargets(), SpellInfo::IsPassive(), Spell::m_cast_count, Spell::m_fromClient, Spell::m_targets, WorldPackets::Spells::SpellCastRequest::MissileTrajectory, MSG_MOVE_STOP, PET_ACTION_SPECIAL_SPELL, WorldPackets::Spells::PetCastSpell::PetGUID, Spell::prepare(), SpellHistory::ResetCooldown(), roll_chance_i(), Spell::SendPetCastResult(), 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, and TRIGGERED_NONE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetitionBuyOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 48 of file PetitionsHandler.cpp.
References _player, ARENA_TEAM_CHARTER_2v2, ARENA_TEAM_CHARTER_2v2_TYPE, ARENA_TEAM_CHARTER_3v3, ARENA_TEAM_CHARTER_3v3_TYPE, ARENA_TEAM_CHARTER_5v5, ARENA_TEAM_CHARTER_5v5_TYPE, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_NOT_ENOUGHT_MONEY, Player::CanStoreNewItem(), CharacterDatabase, CHARTER_TYPE_NONE, CONFIG_CHARTER_COST_ARENA_2v2, CONFIG_CHARTER_COST_ARENA_3v3, CONFIG_CHARTER_COST_ARENA_5v5, CONFIG_CHARTER_COST_GUILD, EQUIP_ERR_OK, ERR_ALREADY_IN_ARENA_TEAM, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_NAME_EXISTS_S, ERR_ARENA_TEAM_NAME_INVALID, ERR_ARENA_TEAM_TARGET_TOO_LOW_S, ERR_GUILD_NAME_EXISTS_S, ERR_GUILD_NAME_INVALID, Player::GetArenaTeamId(), ItemTemplate::GetBuyCount(), ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetGuildId(), WorldObject::GetName(), Player::GetNPCIfCanInteractWith(), GetPlayer(), GUILD_CHARTER, GUILD_CHARTER_TYPE, GUILD_COMMAND_CREATE, Player::HasEnoughMoney(), Player::IsMaxLevel(), Unit::IsTabardDesigner(), ObjectMgr::IsValidCharterName(), ITEM_CHANGED, Player::ModifyMoney(), NULL_BAG, NULL_SLOT, ByteBuffer::read_skip(), Unit::RemoveAurasByType(), sArenaTeamMgr, SendArenaTeamCommandResult(), 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, ObjectGuid::ToString(), UNIT_NPC_FLAG_PETITIONER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetitionRenameGuild | ( | WorldPacket & | recvData | ) |
Definition at line 320 of file PetitionsHandler.cpp.
References _player, CharacterDatabase, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_NAME_EXISTS_S, ERR_ARENA_TEAM_NAME_INVALID, ERR_GUILD_NAME_EXISTS_S, ERR_GUILD_NAME_INVALID, Player::GetItemByGuid(), GUILD_CHARTER_TYPE, GUILD_COMMAND_CREATE, ObjectMgr::IsValidCharterName(), MSG_PETITION_RENAME, Petition::PetitionType, sArenaTeamMgr, SendArenaTeamCommandResult(), Guild::SendCommandResult(), SendPacket(), sGuildMgr, sObjectMgr, sPetitionMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), and Petition::UpdateName().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetitionShowListOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 747 of file PetitionsHandler.cpp.
References SendPetitionShowList(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetitionShowSignatures | ( | WorldPacket & | recvData | ) |
Definition at line 218 of file PetitionsHandler.cpp.
References _player, Player::GetGuildId(), GetPlayer(), GUILD_CHARTER_TYPE, Petition::PetitionType, SendPetitionSigns(), sPetitionMgr, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetLearnTalent | ( | WorldPacket & | recvPacket | ) |
Definition at line 840 of file PetHandler.cpp.
References _player, Player::LearnPetTalent(), Player::SendTalentsInfoData(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetRename | ( | WorldPacket & | recvData | ) |
Definition at line 581 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(), PetStable::CurrentPet, Unit::GetCharmInfo(), ObjectGuid::GetCounter(), GameTime::GetGameTime(), Player::GetGroup(), Object::GetGUID(), Pet::GetOwner(), Unit::GetOwnerGUID(), ObjectAccessor::GetPet(), CharmInfo::GetPetNumber(), Player::GetPetStable(), GetSessionDbcLocale(), GROUP_UPDATE_FLAG_PET_NAME, Unit::HasPetFlag(), HUNTER_PET, Unit::IsPet(), MAX_DECLINED_NAME_CASES, DeclinedName::name, PET_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME, PET_NAME_RESERVED, PET_NAME_SUCCESS, Unit::RemovePetFlag(), SendPetNameInvalid(), Player::SetGroupUpdateFlag(), WorldObject::SetName(), Unit::SetPetNameTimestamp(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), sObjectMgr, TC_LOG_DEBUG, UNIT_PET_FLAG_CAN_BE_RENAMED, and Utf8toWStr().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetSetAction | ( | WorldPacket & | recvData | ) |
Definition at line 456 of file PetHandler.cpp.
References _player, ACT_COMMAND, ACT_DISABLED, ACT_ENABLED, ACT_PASSIVE, ACT_REACTION, UnitActionBarEntry::GetAction(), CharmInfo::GetActionBarEntry(), Unit::GetCharmInfo(), Object::GetEntry(), Unit::GetFirstControlled(), Object::GetGUID(), WorldObject::GetName(), GetPlayer(), UnitActionBarEntry::GetType(), ObjectAccessor::GetUnit(), Unit::m_Controlled, MAX_UNIT_ACTION_BAR_INDEX, CharmInfo::SetActionBar(), ByteBuffer::size(), sSpellMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), TYPEID_UNIT, UNIT_ACTION_BUTTON_ACTION, and UNIT_ACTION_BUTTON_TYPE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetSpellAutocastOpcode | ( | WorldPackets::Pet::PetSpellAutocast & | packet | ) |
Definition at line 690 of file PetHandler.cpp.
References _player, WorldPackets::Pet::PetSpellAutocast::AutocastEnabled, Unit::GetCharmed(), ObjectAccessor::GetCreatureOrPetOrVehicle(), Object::GetEntry(), Unit::GetGuardianPet(), GetPlayer(), SpellInfo::IsAutocastable(), Unit::m_Controlled, WorldPackets::Pet::PetSpellAutocast::PetGUID, CharmInfo::SetSpellAutocast(), WorldPackets::Pet::PetSpellAutocast::SpellID, sSpellMgr, TC_LOG_ERROR, CharmInfo::ToggleCreatureAutocast(), Unit::ToPet(), and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePetStopAttack | ( | WorldPackets::Pet::PetStopAttack & | packet | ) |
Definition at line 114 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::Initialize().
| void WorldSession::HandlePlayedTime | ( | WorldPackets::Character::PlayedTimeClient & | packet | ) |
Definition at line 831 of file MiscHandler.cpp.
References _player, Player::GetLevelPlayedTime(), Player::GetTotalPlayedTime(), WorldPackets::Character::PlayedTime::LevelTime, SendPacket(), WorldPackets::Character::PlayedTime::TotalTime, WorldPackets::Character::PlayedTimeClient::TriggerScriptEvent, WorldPackets::Character::PlayedTime::TriggerScriptEvent, and WorldPackets::Character::PlayedTime::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePlayerLogin | ( | LoginQueryHolder const & | holder | ) |
Definition at line 720 of file CharacterHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_ON_LOGIN, ObjectAccessor::AddObject(), Map::AddPlayerToMap(), ALLIANCE, AT_LOGIN_FIRST, AT_LOGIN_RESET_PET_TALENTS, AT_LOGIN_RESET_SPELLS, AT_LOGIN_RESET_TALENTS, Player::BuildPlayerRepop(), WorldObject::CastSpell(), PlayerInfo::castSpells, CHAR_UPD_CHAR_ONLINE, CharacterDatabase, CONFIG_ALL_TAXI_PATHS, CONFIG_ENABLE_SINFO_LOGIN, CONFIG_START_ALL_EXPLORED, CONFIG_START_ALL_REP, Player::ContinueTaxiFlight(), CORPSE, DEAD, FRIEND_ONLINE, GetAccountId(), Player::getCinematic(), Unit::GetClass(), ObjectGuid::GetCounter(), Unit::getDeathState(), GitRevision::GetFullVersion(), GameTime::GetGameTimeMS(), Player::GetGroup(), LoginQueryHolder::GetGuid(), Object::GetGUID(), Player::GetGuildId(), Unit::GetLevel(), WorldObject::GetMap(), WorldLocation::GetMapId(), Unit::GetMotionMaster(), WorldObject::GetName(), Position::GetOrientation(), Position::GetPosition(), SQLQueryHolderBase::GetPreparedResult(), Unit::GetRace(), GetRemoteAddress(), Player::GetReputationMgr(), Player::GetSession(), Player::GetTeam(), Player::GetXP(), Player::GetXPForNextLevel(), Player::HasAtLoginFlag(), Object::HasFlag(), Unit::HasUnitState(), HORDE, MotionMaster::Initialize(), Player::IsGameMaster(), Unit::IsStandState(), KickPlayer(), LANG_GM_ON, LANG_RESET_SPELLS, LoadAccountData(), Player::LoadCorpse(), Player::LoadFromDB(), Player::LoadPet(), LOGIN_UPD_ACCOUNT_ONLINE, LoginDatabase, Unit::m_deathState, Player::m_homebindMapId, Player::m_homebindX, Player::m_homebindY, Player::m_homebindZ, m_playerLoading, WorldPackets::Character::LoginVerifyWorld::MapID, PER_CHARACTER_CACHE_MASK, PLAYER_EXPLORED_ZONES_1, PLAYER_EXPLORED_ZONES_SIZE, PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP, PLAYER_FLAGS_RESTING, PLAYER_LOGIN_QUERY_LOAD_ACCOUNT_DATA, PLAYER_LOGIN_QUERY_LOAD_CORPSE_LOCATION, PLAYER_LOGIN_QUERY_LOAD_GUILD, WorldPackets::Character::LoginVerifyWorld::Pos, ChatHandler::PSendSysMessage(), Player::RemoveAtLoginFlag(), Player::RepopAtGraveyard(), Player::ResetSpells(), Player::ResetTalents(), Pet::resetTalentsForAllPetsOf(), sChrClassesStore, sChrRacesStore, SendAccountDataTimes(), Player::SendCinematicStart(), Player::SendDungeonDifficulty(), SendFeatureSystemStatus(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), SendNotification(), SendPacket(), Player::SendRaidDifficulty(), ReputationMgr::SendState(), Player::SendTalentsInfoData(), Player::setCinematic(), Player::SetContestedPvP(), Object::SetFlag(), Player::SetGuildRank(), Player::SetInGameTime(), Player::SetInGuild(), ReputationMgr::SetOneFactionReputation(), SetPlayer(), Unit::SetPvpFlag(), Unit::SetStandState(), Player::SetTaxiCheater(), PreparedStatementBase::setUInt32(), Unit::SetWaterWalking(), sFactionStore, sGuildMgr, SMSG_LEARNED_DANCE_MOVES, sObjectMgr, sScriptMgr, sSocialMgr, sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, TC_LOG_ERROR, TC_LOG_INFO, TC_METRIC_EVENT, Player::TeleportTo(), WorldPackets::System::MOTD::Text, ObjectGuid::ToString(), UNIT_BYTE2_FLAG_FFA_PVP, UNIT_STAND_STATE_STAND, UNIT_STATE_STUNNED, Player::UpdateAchievementCriteria(), WorldPackets::Character::LoginVerifyWorld::Write(), and WorldPackets::System::MOTD::Write().
Referenced by HandlePlayerLoginOpcode().
| void WorldSession::HandlePlayerLoginOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 686 of file CharacterHandler.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), CharacterDatabase, GetAccountId(), GetPlayer(), HandlePlayerLogin(), IsLegitCharacterForAccount(), KickPlayer(), m_playerLoading, PlayerLoading(), TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePlayerLogoutOpcode | ( | WorldPackets::Character::PlayerLogout & | playerLogout | ) |
Definition at line 357 of file MiscHandler.cpp.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePushQuestToParty | ( | WorldPacket & | recvPacket | ) |
Definition at line 544 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanCompleteRepeatableQuest(), Player::CanShareQuest(), Player::CanTakeQuest(), Player::ClearQuestSharingInfo(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), Player::GetPlayerSharingQuest(), Player::GetQuestStatus(), Quest::IsAutoAccept(), Quest::IsAutoComplete(), Quest::IsDailyOrWeekly(), ObjectGuid::IsEmpty(), Quest::IsRepeatable(), Player::PlayerTalkClass, QUEST_PARTY_MSG_ACCEPT_QUEST, QUEST_PARTY_MSG_BUSY, QUEST_PARTY_MSG_CANT_TAKE_QUEST, QUEST_PARTY_MSG_FINISH_QUEST, QUEST_PARTY_MSG_HAVE_QUEST, QUEST_PARTY_MSG_LOG_FULL, QUEST_PARTY_MSG_NOT_ELIGIBLE_TODAY, QUEST_PARTY_MSG_NOT_IN_PARTY, QUEST_PARTY_MSG_SHARING_QUEST, QUEST_STATUS_COMPLETE, QUEST_STATUS_INCOMPLETE, QUEST_STATUS_REWARDED, Player::SatisfyQuestDay(), Player::SatisfyQuestLog(), Player::SendPushToPartyResponse(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverRequestItems(), Player::SetQuestSharingInfo(), sObjectMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandlePVPLogDataOpcode | ( | WorldPackets::Battleground::PVPLogDataRequest & | pvpLogDataRequest | ) |
Definition at line 268 of file BattleGroundHandler.cpp.
References _player, Battleground::BuildPvPLogDataPacket(), Player::GetBattleground(), Battleground::isArena(), SendPacket(), and WorldPackets::Battleground::PVPMatchStatistics::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryCorpseLocation | ( | WorldPackets::Query::QueryCorpseLocationFromClient & | packet | ) |
Definition at line 131 of file QueryHandler.cpp.
References _player, WorldPackets::Query::CorpseLocation::ActualMapID, Player::GetCorpseLocation(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::HasCorpse(), WorldPackets::Query::CorpseLocation::MapID, MAX_HEIGHT, WorldPackets::Query::CorpseLocation::Position, SendPacket(), sMapMgr, sMapStore, WorldPackets::Query::CorpseLocation::Transport, WorldPackets::Query::CorpseLocation::Valid, and WorldPackets::Query::CorpseLocation::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryCorpseTransport | ( | WorldPackets::Query::QueryCorpseTransport & | packet | ) |
Definition at line 271 of file QueryHandler.cpp.
References _player, WorldPackets::Query::CorpseTransportQuery::Facing, Player::GetCorpse(), WorldObject::GetTransport(), WorldPackets::Query::CorpseTransportQuery::Position, SendPacket(), WorldPackets::Query::QueryCorpseTransport::Transport, and WorldPackets::Query::CorpseTransportQuery::Write().
Referenced by OpcodeTable::Initialize().
| 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::Initialize().
| void WorldSession::HandleQueryNextMailTime | ( | WorldPackets::Mail::MailQueryNextMailTime & | queryNextMailTime | ) |
Definition at line 622 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::Initialize().
| void WorldSession::HandleQueryPageText | ( | WorldPackets::Query::QueryPageText & | packet | ) |
Only static data is sent in this packet !!!
Definition at line 242 of file QueryHandler.cpp.
References WorldPackets::Query::QueryPageTextResponse::Allow, ObjectMgr::GetLocaleString(), GetSessionDbLocaleIndex(), LOCALE_enUS, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::NextPageID, WorldPackets::Query::QueryPageTextResponse::Page, WorldPackets::Query::QueryPageText::PageTextID, WorldPackets::Query::QueryPageTextResponse::PageTextID, SendPacket(), sObjectMgr, WorldPackets::Query::QueryPageTextResponse::PageTextInfo::Text, and WorldPackets::Query::QueryPageTextResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryPetition | ( | WorldPacket & | recvData | ) |
Definition at line 259 of file PetitionsHandler.cpp.
References SendPetitionQueryOpcode(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryPetName | ( | WorldPacket & | recvData | ) |
Definition at line 389 of file PetHandler.cpp.
References SendQueryPetNameResponse(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryQuestsCompleted | ( | WorldPackets::Quest::QueryQuestsCompleted & | queryQuestsCompleted | ) |
Definition at line 662 of file QuestHandler.cpp.
References _player, Player::getRewardedQuests(), WorldPackets::Quest::QueryQuestsCompletedResponse::QuestsCompleted, SendPacket(), and WorldPackets::Quest::QueryQuestsCompletedResponse::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQueryTimeOpcode | ( | WorldPackets::Query::QueryTime & | queryTime | ) |
Definition at line 65 of file QueryHandler.cpp.
References SendQueryTimeResponse().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestConfirmAccept | ( | WorldPacket & | recvData | ) |
Definition at line 442 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanTakeQuest(), WorldObject::CastSpell(), Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetPlayerSharingQuest(), Player::IsActiveQuest(), Player::IsInSameRaidWith(), QUEST_FLAGS_PARTY_ACCEPT, sObjectMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverAcceptQuestOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 105 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanInteractWithQuestGiver(), Player::CanTakeQuest(), WorldObject::CastSpell(), Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetGroup(), Object::GetGUID(), ObjectAccessor::GetObjectByTypeMask(), GetPlayer(), Player::GetPlayerSharingQuest(), Object::hasQuest(), ObjectGuid::IsEmpty(), WorldObject::IsInMap(), Player::IsInSameRaidWith(), ObjectGuid::IsPlayer(), Player::PlayerTalkClass, QUEST_FLAGS_PARTY_ACCEPT, QUEST_PARTY_MSG_ACCEPT_QUEST, PlayerMenu::SendCloseGossip(), Player::SendPushToPartyResponse(), Player::SendQuestConfirmAccept(), Player::SetQuestSharingInfo(), sObjectMgr, TC_LOG_DEBUG, Object::ToPlayer(), ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverCancel | ( | WorldPacket & | recvData | ) |
Definition at line 369 of file QuestHandler.cpp.
References _player, Player::PlayerTalkClass, PlayerMenu::SendCloseGossip(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverChooseRewardOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 256 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Creature::AI(), GameObject::AI(), Player::CanAddQuest(), Player::CanInteractWithQuestGiver(), Player::CanRewardQuest(), Player::CanSeeStartQuest(), Player::CanTakeQuest(), PlayerMenu::ClearMenus(), Object::GetGUID(), WorldObject::GetName(), Player::GetNextQuest(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestStatus(), Object::GetTypeId(), Object::hasInvolvedQuest(), Quest::IsAutoComplete(), GameObjectAI::OnQuestReward(), CreatureAI::OnQuestReward(), Player::PlayerTalkClass, QUEST_REWARD_CHOICES_COUNT, QUEST_STATUS_COMPLETE, QUEST_STATUS_NONE, Player::RewardQuest(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, Object::ToCreature(), Object::ToGameObject(), ObjectGuid::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverCompleteQuest | ( | WorldPacket & | recvData | ) |
Definition at line 479 of file QuestHandler.cpp.
References _player, Player::CanCompleteRepeatableQuest(), Player::CanInteractWithQuestGiver(), Player::CanRewardQuest(), Player::CanSeeStartQuest(), Player::GetBattleground(), Object::GetGUID(), WorldObject::GetName(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestStatus(), Quest::GetReqItemsCount(), Quest::HasFlag(), Object::hasInvolvedQuest(), Quest::IsRepeatable(), Player::PlayerTalkClass, QUEST_FLAGS_AUTOCOMPLETE, QUEST_STATUS_COMPLETE, QUEST_STATUS_NONE, PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverRequestItems(), sObjectMgr, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverHelloOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 73 of file QuestHandler.cpp.
References _player, Creature::AI(), PlayerMenu::ClearMenus(), Creature::GetCreatureTemplate(), CreatureMovementData::GetInteractionPauseTimer(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), CreatureTemplate::GossipMenuId, CreatureAI::OnGossipHello(), Unit::PauseMovement(), Player::PlayerTalkClass, Player::PrepareGossipMenu(), Unit::RemoveAurasByType(), Player::SendPreparedGossip(), Creature::SetHomePosition(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_QUESTGIVER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverQueryQuestOpcode | ( | WorldPackets::Quest::QuestGiverQueryQuest & | packet | ) |
Definition at line 221 of file QuestHandler.cpp.
References _player, Player::AddQuestAndCheckCompletion(), Player::CanAddQuest(), Player::CanCompleteQuest(), Player::CanTakeQuest(), Object::GetGUID(), ObjectAccessor::GetObjectByTypeMask(), Object::hasInvolvedQuest(), Object::hasQuest(), Player::PlayerTalkClass, WorldPackets::Quest::QuestGiverQueryQuest::QuestGiverGUID, WorldPackets::Quest::QuestGiverQueryQuest::QuestID, WorldPackets::Quest::QuestGiverQueryQuest::RespondToGiver, PlayerMenu::SendCloseGossip(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverRequestItems(), sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverQuestAutoLaunch | ( | WorldPacket & | recvPacket | ) |
Definition at line 539 of file QuestHandler.cpp.
References TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverRequestRewardOpcode | ( | WorldPackets::Quest::QuestGiverRequestReward & | packet | ) |
Definition at line 347 of file QuestHandler.cpp.
References _player, Player::CanCompleteQuest(), Player::CanInteractWithQuestGiver(), Player::CompleteQuest(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestStatus(), Object::hasInvolvedQuest(), Player::PlayerTalkClass, QUEST_STATUS_COMPLETE, WorldPackets::Quest::QuestGiverRequestReward::QuestGiverGUID, WorldPackets::Quest::QuestGiverRequestReward::QuestID, PlayerMenu::SendQuestGiverOfferReward(), sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverStatusMultipleQuery | ( | WorldPackets::Quest::QuestGiverStatusMultipleQuery & | packet | ) |
Definition at line 655 of file QuestHandler.cpp.
References _player, Player::SendQuestGiverStatusMultiple(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestgiverStatusQueryOpcode | ( | WorldPackets::Quest::QuestGiverStatusQuery & | packet | ) |
Definition at line 38 of file QuestHandler.cpp.
References _player, DIALOG_STATUS_NONE, Object::GetGUID(), ObjectAccessor::GetObjectByTypeMask(), Player::GetQuestDialogStatus(), Object::GetTypeId(), WorldObject::IsHostileTo(), Player::PlayerTalkClass, WorldPackets::Quest::QuestGiverStatusQuery::QuestGiverGUID, PlayerMenu::SendQuestGiverStatus(), TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, Object::ToCreature(), ObjectGuid::ToString(), TYPEID_GAMEOBJECT, TYPEID_UNIT, TYPEMASK_GAMEOBJECT, and TYPEMASK_UNIT.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestLogRemoveQuest | ( | WorldPacket & | recvData | ) |
Definition at line 389 of file QuestHandler.cpp.
References _player, Player::AbandonQuest(), ACHIEVEMENT_CRITERIA_TYPE_QUEST_ABANDONED, ACHIEVEMENT_TIMED_TYPE_QUEST, CHAR_UPD_QUEST_TRACK_ABANDON_TIME, CharacterDatabase, CONFIG_QUEST_ENABLE_QUEST_TRACKER, ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetQuestSlotQuestId(), Player::HasPvPForcingQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, MAX_QUEST_LOG_SIZE, Player::pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_SPECIAL_FLAGS_TIMED, Player::RemoveActiveQuest(), Player::RemoveTimedAchievement(), Player::RemoveTimedQuest(), Player::SetQuestSlot(), PreparedStatementBase::setUInt32(), sObjectMgr, sScriptMgr, sWorld, Player::TakeQuestSourceItem(), TC_LOG_DEBUG, TC_LOG_INFO, ObjectGuid::ToString(), Player::UpdateAchievementCriteria(), and Player::UpdatePvPState().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestLogSwapQuest | ( | WorldPacket & | recvData | ) |
Definition at line 376 of file QuestHandler.cpp.
References GetPlayer(), MAX_QUEST_LOG_SIZE, Player::SwapQuestSlot(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestPOIQuery | ( | WorldPackets::Query::QuestPOIQuery & | query | ) |
Definition at line 289 of file QueryHandler.cpp.
References _player, ByteBuffer::append(), CONFIG_CACHE_DATA_QUERIES, Player::FindQuestSlot(), Player::GetQuestSlotQuestId(), MAX_QUEST_LOG_SIZE, WorldPackets::Query::QuestPOIQuery::MissingQuestCount, WorldPackets::Query::QuestPOIQuery::MissingQuestPOIs, SendPacket(), SMSG_QUEST_POI_QUERY_RESPONSE, sObjectMgr, and sWorld.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestPushResult | ( | WorldPacket & | recvPacket | ) |
Definition at line 633 of file QuestHandler.cpp.
References _player, Player::ClearQuestSharingInfo(), ObjectAccessor::FindPlayer(), Player::GetPlayerSharingQuest(), Player::SendPushToPartyResponse(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleQuestQueryOpcode | ( | WorldPackets::Quest::QueryQuestInfo & | query | ) |
Definition at line 248 of file QuestHandler.cpp.
References _player, Player::PlayerTalkClass, WorldPackets::Quest::QueryQuestInfo::QuestID, PlayerMenu::SendQuestQueryResponse(), sObjectMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRaidReadyCheckFinishedOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 706 of file GroupHandler.cpp.
References Group::BroadcastPacket(), Player::GetGroup(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), and MSG_RAID_READY_CHECK_FINISHED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRaidReadyCheckOpcode | ( | WorldPacket & | recvData | ) |
error handling
Definition at line 671 of file GroupHandler.cpp.
References Group::BroadcastPacket(), Group::BroadcastReadyCheck(), ByteBuffer::empty(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), Group::IsAssistant(), Group::IsLeader(), MSG_RAID_READY_CHECK, MSG_RAID_READY_CHECK_CONFIRM, Group::OfflineReadyCheck(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRaidTargetUpdateOpcode | ( | WorldPacket & | recvData | ) |
error handling
Definition at line 521 of file GroupHandler.cpp.
References _player, ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), Group::IsAssistant(), WorldObject::IsHostileTo(), Group::IsLeader(), ObjectGuid::IsPlayer(), Group::isRaidGroup(), Group::SendTargetIconList(), Group::SetTargetIcon(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRandomRollOpcode | ( | WorldPackets::Misc::RandomRollClient & | packet | ) |
error handling
Definition at line 507 of file GroupHandler.cpp.
References Player::DoRandomRoll(), GetPlayer(), WorldPackets::Misc::RandomRollClient::Max, and WorldPackets::Misc::RandomRollClient::Min.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleReadItem | ( | WorldPacket & | recvPacket | ) |
Definition at line 320 of file ItemHandler.cpp.
References _player, Player::CanUseItem(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, Object::GetGUID(), Player::GetItemByPos(), ItemTemplate::GetPageText(), Item::GetTemplate(), WorldPacket::Initialize(), Player::SendEquipError(), SendPacket(), SMSG_READ_ITEM_FAILED, SMSG_READ_ITEM_OK, and TC_LOG_INFO.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleReadyForAccountDataTimes | ( | WorldPacket & | recvData | ) |
Definition at line 1178 of file MiscHandler.cpp.
References GLOBAL_CACHE_MASK, SendAccountDataTimes(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRealmSplitOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 953 of file MiscHandler.cpp.
References SendPacket(), SMSG_REALM_SPLIT, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleReclaimCorpse | ( | WorldPackets::Misc::ReclaimCorpse & | packet | ) |
Definition at line 494 of file MiscHandler.cpp.
References _player, CORPSE_RECLAIM_RADIUS, CORPSE_RESURRECTABLE_PVP, Player::GetCorpse(), Player::GetCorpseReclaimDelay(), GameTime::GetGameTime(), Corpse::GetGhostTime(), Corpse::GetType(), Object::HasFlag(), Player::InArena(), Player::InBattleground(), Unit::IsAlive(), WorldObject::IsWithinDistInMap(), PLAYER_FLAGS, PLAYER_FLAGS_GHOST, Player::ResurrectPlayer(), Player::SpawnCorpseBones(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRemoveGlyph | ( | WorldPacket & | recvData | ) |
Definition at line 1323 of file CharacterHandler.cpp.
References _player, Player::GetActiveTalentGroup(), Player::GetGlyph(), MAX_GLYPH_SLOT_INDEX, Unit::RemoveAurasDueToSpell(), Player::SendTalentsInfoData(), Player::SetGlyph(), sGlyphPropertiesStore, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRepairItemOpcode | ( | WorldPackets::Item::RepairItem & | packet | ) |
Definition at line 704 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_REPAIR, UNIT_STATE_DIED, and WorldPackets::Item::RepairItem::UseGuildBank.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRepopRequest | ( | WorldPackets::Misc::RepopRequest & | packet | ) |
Definition at line 58 of file MiscHandler.cpp.
References Player::BuildPlayerRepop(), GetPlayer(), JUST_DIED, Player::KillPlayer(), PET_SAVE_NOT_IN_SLOT, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, Player::RemoveGhoul(), Player::RemovePet(), Player::RepopAtGraveyard(), SPELL_AURA_PREVENT_RESURRECTION, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleReportLag | ( | WorldPacket & | recvPacket | ) |
Definition at line 249 of file TicketHandler.cpp.
References CHAR_INS_LAG_REPORT, CharacterDatabase, GameTime::GetGameTime(), GetLatency(), GetPlayer(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleReportPvPAFK | ( | WorldPackets::Battleground::ReportPvPPlayerAFK & | reportPvPPlayerAFK | ) |
Definition at line 698 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::Initialize().
| void WorldSession::HandleRequestAccountData | ( | WorldPackets::ClientConfig::RequestAccountData & | request | ) |
Definition at line 754 of file MiscHandler.cpp.
References _player, WorldPackets::ClientConfig::UpdateAccountData::CompressedData, AccountData::Data, WorldPackets::ClientConfig::RequestAccountData::DataType, WorldPackets::ClientConfig::UpdateAccountData::DataType, ObjectGuid::Empty, GetAccountData(), Object::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::Initialize().
| void WorldSession::HandleRequestBattlefieldStatusOpcode | ( | WorldPackets::Battleground::RequestBattlefieldStatus & | requestBattlefieldStatus | ) |
Definition at line 461 of file BattleGroundHandler.cpp.
References _player, BATTLEGROUND_QUEUE_NONE, BattlegroundQueueTypeId::BattlemasterListId, BattlegroundMgr::BuildBattlegroundStatusActive(), BattlegroundMgr::BuildBattlegroundStatusNeedConfirmation(), BattlegroundMgr::BuildBattlegroundStatusQueued(), BattlegroundQueue::GetAverageQueueWaitTime(), Player::GetBattleground(), GetBattlegroundBracketByLevel(), Battleground::GetBattlegroundPlayerData(), Player::GetBattlegroundQueueTypeId(), GameTime::GetGameTimeMS(), Object::GetGUID(), Unit::GetLevel(), Battleground::GetMapId(), getMSTimeDiff(), BattlegroundQueue::GetPlayerGroupInfoData(), GroupQueueInfo::IsInvitedToBGInstanceGUID, PLAYER_MAX_BATTLEGROUND_QUEUES, GroupQueueInfo::RemoveInviteTime, sBattlegroundMgr, SendPacket(), WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Write(), WorldPackets::Battleground::BattlefieldStatusActive::Write(), and WorldPackets::Battleground::BattlefieldStatusQueued::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRequestHonorStats | ( | WorldPackets::Inspect::RequestHonorStats & | request | ) |
Definition at line 60 of file InspectHandler.cpp.
References _player, Object::GetByteValue(), GetPlayer(), ObjectAccessor::GetPlayer(), Object::GetUInt16Value(), Object::GetUInt32Value(), INSPECT_DISTANCE, WorldPackets::Inspect::InspectHonorStats::LifetimeHonorableKills, WorldPackets::Inspect::InspectHonorStats::LifetimeMaxRank, PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_LIFETIME_MAX_PVP_RANK, PLAYER_FIELD_KILLS, PLAYER_FIELD_KILLS_OFFSET_TODAY_KILLS, PLAYER_FIELD_KILLS_OFFSET_YESTERDAY_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, WorldPackets::Inspect::InspectHonorStats::PlayerGUID, SendPacket(), WorldPackets::Inspect::RequestHonorStats::TargetGUID, TC_LOG_DEBUG, WorldPackets::Inspect::InspectHonorStats::TodayContribution, WorldPackets::Inspect::InspectHonorStats::TodayHonorableKills, WorldPackets::Inspect::InspectHonorStats::Write(), WorldPackets::Inspect::InspectHonorStats::YesterdayContribution, and WorldPackets::Inspect::InspectHonorStats::YesterdayHonorableKills.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRequestPartyMemberStatsOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 905 of file GroupHandler.cpp.
References ASSERT_NOTNULL, ObjectAccessor::FindConnectedPlayer(), Unit::GetDisplayId(), Unit::GetHealth(), Unit::GetLevel(), Unit::GetMaxHealth(), Unit::GetMaxPower(), WorldObject::GetName(), Object::GetPackGUID(), Player::GetPet(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Unit::GetPower(), Unit::GetPowerType(), Unit::GetVehicle(), Vehicle::GetVehicleInfo(), Unit::GetVisibleAura(), WorldObject::GetZoneId(), GROUP_UPDATE_FLAG_AURAS, GROUP_UPDATE_FLAG_CUR_HP, GROUP_UPDATE_FLAG_CUR_POWER, GROUP_UPDATE_FLAG_LEVEL, GROUP_UPDATE_FLAG_MAX_HP, GROUP_UPDATE_FLAG_MAX_POWER, GROUP_UPDATE_FLAG_PET_AURAS, GROUP_UPDATE_FLAG_PET_CUR_HP, GROUP_UPDATE_FLAG_PET_CUR_POWER, GROUP_UPDATE_FLAG_PET_GUID, GROUP_UPDATE_FLAG_PET_MAX_HP, GROUP_UPDATE_FLAG_PET_MAX_POWER, GROUP_UPDATE_FLAG_PET_MODEL_ID, GROUP_UPDATE_FLAG_PET_NAME, GROUP_UPDATE_FLAG_PET_POWER_TYPE, GROUP_UPDATE_FLAG_POSITION, GROUP_UPDATE_FLAG_POWER_TYPE, GROUP_UPDATE_FLAG_STATUS, GROUP_UPDATE_FLAG_VEHICLE_SEAT, GROUP_UPDATE_FLAG_ZONE, Object::HasFlag(), Player::isAFK(), Unit::IsAlive(), Player::isDND(), Unit::IsFFAPvP(), Unit::IsPvP(), WorldObject::m_movementInfo, MAX_AURAS_GROUP_UPDATE, MEMBER_STATUS_AFK, MEMBER_STATUS_DEAD, MEMBER_STATUS_DND, MEMBER_STATUS_GHOST, MEMBER_STATUS_OFFLINE, MEMBER_STATUS_ONLINE, MEMBER_STATUS_PVP, MEMBER_STATUS_PVP_FFA, PLAYER_FLAGS, PLAYER_FLAGS_GHOST, POWER_MANA, ByteBuffer::put(), MovementInfo::TransportInfo::seat, VehicleEntry::SeatID, SendPacket(), SMSG_PARTY_MEMBER_STATS_FULL, TC_LOG_DEBUG, MovementInfo::transport, ByteBuffer::wpos(), and ObjectGuid::WriteAsPacked().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRequestPetInfo | ( | WorldPackets::Pet::RequestPetInfo & | packet | ) |
Definition at line 879 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::Initialize().
| void WorldSession::HandleRequestRaidInfoOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1040 of file GroupHandler.cpp.
References _player, and Player::SendRaidInfo().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRequestStabledPets | ( | WorldPacket & | recvPacket | ) |
Definition at line 279 of file NPCHandler.cpp.
References CheckStableMaster(), GetPlayer(), Unit::RemoveAurasByType(), SendStablePet(), SPELL_AURA_FEIGN_DEATH, SPELL_AURA_MOUNTED, TC_LOG_DEBUG, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleRequestVehicleExit | ( | WorldPacket & | recvData | ) |
Definition at line 190 of file VehicleHandler.cpp.
References Unit::ExitVehicle(), GetPlayer(), TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleResetInstancesOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1016 of file MiscHandler.cpp.
References _player, Player::GetGroup(), Object::GetGUID(), INSTANCE_RESET_ALL, Player::ResetInstances(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleResurrectResponse | ( | WorldPackets::Misc::ResurrectResponse & | packet | ) |
Definition at line 527 of file MiscHandler.cpp.
References Player::ClearResurrectRequestData(), GetPlayer(), WorldPackets::Misc::ResurrectResponse::Response, WorldPackets::Misc::ResurrectResponse::Resurrecter, Player::ResurrectUsingRequestData(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSaveGuildEmblemOpcode | ( | WorldPackets::Guild::SaveGuildEmblem & | packet | ) |
Definition at line 197 of file GuildHandler.cpp.
References 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_TABARDDESIGNER, UNIT_STATE_DIED, and WorldPackets::Guild::SaveGuildEmblem::Vendor.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSelfResOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 544 of file SpellHandler.cpp.
References _player, WorldObject::CastSpell(), Object::GetUInt32Value(), Unit::HasAuraType(), PLAYER_SELF_RES_SPELL, Object::SetUInt32Value(), SPELL_ATTR7_BYPASS_NO_RESURRECT_AURA, SPELL_AURA_PREVENT_RESURRECTION, sSpellMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSellItemOpcode | ( | WorldPackets::Item::SellItem & | packet | ) |
Definition at line 350 of file ItemHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_VENDORS, Player::AddItemToBuyBackSlot(), WorldPackets::Item::SellItem::Amount, Item::CloneItem(), CREATURE_FLAG_EXTRA_NO_SELL_VENDOR, EQUIP_ERR_TOO_MUCH_GOLD, CreatureTemplate::flags_extra, Item::GetBagSlot(), Item::GetCount(), Creature::GetCreatureTemplate(), Object::GetEntry(), Object::GetGUID(), Player::GetItemByGuid(), Player::GetLootGUID(), Player::GetMoney(), Player::GetNPCIfCanInteractWith(), Item::GetOwnerGUID(), GetPlayer(), Item::GetSellPrice(), Item::GetSlot(), Item::GetTemplate(), ObjectGuid::IsEmpty(), Object::IsInWorld(), Item::IsNotEmptyBag(), Item::IsRefundable(), ITEM_CHANGED, WorldPackets::Item::SellItem::ItemGUID, Player::ItemRemovedQuestCheck(), MAX_MONEY_AMOUNT, Player::ModifyMoney(), Unit::RemoveAurasByType(), Player::RemoveItem(), RemoveItemFromUpdateQueueOf(), SELL_ERR_CANT_FIND_ITEM, SELL_ERR_CANT_FIND_VENDOR, SELL_ERR_CANT_SELL_ITEM, SELL_ERR_CANT_SELL_TO_THIS_MERCHANT, SELL_ERR_UNK, Player::SendEquipError(), Player::SendSellError(), Object::SendUpdateToPlayer(), Item::SetCount(), Item::SetState(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, TC_LOG_ERROR, ObjectGuid::ToString(), UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, Player::UpdateAchievementCriteria(), and WorldPackets::Item::SellItem::VendorGUID.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSendMail | ( | WorldPackets::Mail::SendMail & | sendMail | ) |
Definition at line 62 of file MailHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_GOLD_SPENT_FOR_MAIL, 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(), ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetItemByGuid(), Unit::GetLevel(), GetPlayer(), GetPlayerInfo(), GetPlayerName(), GetQueryProcessor(), Player::GetTeam(), Item::GetTemplate(), GetTrinityString(), Object::GetUInt32Value(), Player::HasEnoughMoney(), ItemTemplate::HasFlag(), HasPermission(), WorldPackets::Mail::SendMail::Info, Item::IsBoundAccountWide(), Player::IsGameMaster(), Item::IsNotEmptyBag(), Item::IsSoulBound(), Item::IsWrapped(), ITEM_CHANGED, ITEM_FIELD_DURATION, ITEM_FLAG_CONJURED, ITEM_FLAG_IS_BOUND_TO_ACCOUNT, LANG_MAIL_RECEIVER_REQ, LANG_MAIL_SENDER_REQ, 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_MAIL_ITEMS, Player::ModifyMoney(), Player::MoveItemFromInventory(), normalizePlayerName(), WorldPackets::Mail::SendMail::StructSendMail::PackageID, 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::setUInt32(), 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::UpdateAchievementCriteria().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetActionBarToggles | ( | WorldPackets::Character::SetActionBarToggles & | packet | ) |
Definition at line 819 of file MiscHandler.cpp.
References GetPlayer(), WorldPackets::Character::SetActionBarToggles::Mask, Player::SetMultiActionBars(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetActionButtonOpcode | ( | WorldPackets::Spells::SetActionButton & | packet | ) |
Definition at line 784 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::Initialize().
| void WorldSession::HandleSetActiveMoverOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 677 of file MovementHandler.cpp.
References _player, GetGameClient(), WorldObject::GetName(), ObjectAccessor::GetUnit(), GameClient::IsAllowedToMove(), GameClient::SetActivelyMovedUnit(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetActiveVoiceChannel | ( | WorldPacket & | recvData | ) |
Definition at line 31 of file VoiceChatHandler.cpp.
References ByteBuffer::read_skip(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetAmmoOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 708 of file ItemHandler.cpp.
References _player, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_PLAYER_DEAD, Player::GetItemCount(), Unit::IsAlive(), Player::RemoveAmmo(), Player::SendEquipError(), Player::SetAmmo(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetContactNotesOpcode | ( | WorldPackets::Social::SetContactNotes & | packet | ) |
Definition at line 167 of file SocialHandler.cpp.
References _player, Player::GetSocial(), WorldPackets::Social::SetContactNotes::Notes, WorldPackets::Social::SetContactNotes::Player, PlayerSocial::SetFriendNote(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetDungeonDifficultyOpcode | ( | WorldPackets::Misc::SetDungeonDifficulty & | setDungeonDifficulty | ) |
Definition at line 1029 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetDungeonDifficulty::DifficultyID, WorldObject::FindMap(), Player::GetDungeonDifficultyID(), Group::GetDungeonDifficultyID(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), INSTANCE_RESET_CHANGE_DIFFICULTY, Map::IsDungeon(), Object::IsInWorld(), Group::IsLeader(), Group::isLFGGroup(), Map::IsNonRaidDungeon(), MAX_DUNGEON_DIFFICULTY, Player::ResetInstances(), Group::ResetInstances(), Group::SetDungeonDifficultyID(), Player::SetDungeonDifficultyID(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetFactionAtWar | ( | WorldPacket & | recvData | ) |
Definition at line 1010 of file CharacterHandler.cpp.
References GetPlayer(), Player::GetReputationMgr(), ReputationMgr::SetAtWar(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetFactionCheat | ( | WorldPacket & | recvData | ) |
Definition at line 1024 of file CharacterHandler.cpp.
References GetPlayer(), Player::GetReputationMgr(), ReputationMgr::SendState(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetFactionInactiveOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1063 of file CharacterHandler.cpp.
References _player, Player::GetReputationMgr(), ReputationMgr::SetInactive(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetPlayerDeclinedNames | ( | WorldPacket & | recvData | ) |
Definition at line 1180 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, ObjectGuid::GetCounter(), isCyrillicCharacter(), MAX_DECLINED_NAME_CASES, DeclinedName::name, normalizePlayerName(), sCharacterCache, SendSetPlayerDeclinedNamesResult(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), and Utf8toWStr().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetRaidDifficultyOpcode | ( | WorldPackets::Misc::SetRaidDifficulty & | setRaidDifficulty | ) |
Definition at line 1094 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::SetRaidDifficulty::DifficultyID, WorldObject::FindMap(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), WorldObject::GetMap(), WorldObject::GetName(), Player::GetRaidDifficultyID(), Group::GetRaidDifficultyID(), INSTANCE_RESET_CHANGE_DIFFICULTY, Map::IsDungeon(), Object::IsInWorld(), Group::IsLeader(), Group::isLFGGroup(), Map::IsRaid(), MAX_RAID_DIFFICULTY, Player::ResetInstances(), Group::ResetInstances(), Group::SetRaidDifficultyID(), Player::SetRaidDifficultyID(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetSavedInstanceExtend | ( | WorldPackets::Calendar::SetSavedInstanceExtend & | setSavedInstanceExtend | ) |
Definition at line 617 of file CalendarHandler.cpp.
References WorldPackets::Calendar::SetSavedInstanceExtend::DifficultyID, WorldPackets::Calendar::SetSavedInstanceExtend::Extend, EXTEND_STATE_EXPIRED, EXTEND_STATE_EXTENDED, EXTEND_STATE_NORMAL, InstancePlayerBind::extendState, GetPlayer(), WorldPackets::Calendar::SetSavedInstanceExtend::MapID, InstancePlayerBind::perm, InstancePlayerBind::save, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetSelectionOpcode | ( | WorldPackets::Misc::SetSelection & | packet | ) |
Definition at line 424 of file MiscHandler.cpp.
References _player, CURRENT_AUTOREPEAT_SPELL, Unit::GetCurrentSpell(), ObjectAccessor::GetUnit(), ObjectGuid::IsEmpty(), WorldObject::IsValidAttackTarget(), WorldPackets::Misc::SetSelection::Selection, Player::SetSelection(), and SPELL_ATTR4_UNK24.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetSheathedOpcode | ( | WorldPackets::Combat::SetSheathed & | packet | ) |
Definition at line 69 of file CombatHandler.cpp.
References _player, WorldPackets::Combat::SetSheathed::CurrentSheathState, MAX_SHEATH_STATE, Player::SetSheath(), and TC_LOG_ERROR.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetTaxiBenchmarkOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1159 of file MiscHandler.cpp.
References _player, PLAYER_FLAGS, PLAYER_FLAGS_TAXI_BENCHMARK, Object::RemoveFlag(), Object::SetFlag(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetTitleOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 997 of file MiscHandler.cpp.
References GetPlayer(), MAX_TITLE_INDEX, PLAYER_CHOSEN_TITLE, Object::SetUInt32Value(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetTradeGoldOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 703 of file TradeHandler.cpp.
References _player, Player::GetTradeData(), and TradeData::SetMoney().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetTradeItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 715 of file TradeHandler.cpp.
References _player, Item::CanBeTraded(), Object::GetGUID(), Player::GetItemByPos(), Player::GetTradeData(), TradeData::GetTrader(), TradeData::HasItem(), Item::IsBindedNotWith(), SendTradeStatus(), TradeData::SetItem(), TradeStatusInfo::Slot, TradeStatusInfo::Status, TRADE_SLOT_COUNT, TRADE_SLOT_NONTRADED, TRADE_STATUS_NOT_ON_TAPLIST, and TRADE_STATUS_TRADE_CANCELED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSetWatchedFactionOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 1055 of file CharacterHandler.cpp.
References GetPlayer(), PLAYER_FIELD_WATCHED_FACTION_INDEX, Object::SetUInt32Value(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleShowingCloakOpcode | ( | WorldPackets::Character::ShowingCloak & | packet | ) |
Definition at line 1081 of file CharacterHandler.cpp.
References _player, PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK, Object::RemoveFlag(), Object::SetFlag(), and WorldPackets::Character::ShowingCloak::ShowCloak.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleShowingHelmOpcode | ( | WorldPackets::Character::ShowingHelm & | packet | ) |
Definition at line 1073 of file CharacterHandler.cpp.
References _player, PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM, Object::RemoveFlag(), Object::SetFlag(), and WorldPackets::Character::ShowingHelm::ShowHelm.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSignPetition | ( | WorldPacket & | recvData | ) |
Definition at line 381 of file PetitionsHandler.cpp.
References _player, Petition::AddSignature(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_ARENA_TEAM_S, ERR_ALREADY_IN_GUILD_S, ERR_ALREADY_INVITED_TO_ARENA_TEAM_S, ERR_ALREADY_INVITED_TO_GUILD_S, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_INVITE_SS, ERR_ARENA_TEAM_NOT_ALLIED, ERR_ARENA_TEAM_TARGET_TOO_LOW_S, ERR_GUILD_NOT_ALLIED, ObjectAccessor::FindConnectedPlayer(), GetAccountId(), Player::GetArenaTeamId(), Player::GetArenaTeamIdInvited(), Object::GetGUID(), Player::GetGuildId(), Player::GetGuildIdInvited(), Player::GetItemByGuid(), WorldObject::GetName(), GetPlayer(), ArenaTeam::GetSlotByType(), GUILD_CHARTER_TYPE, GUILD_COMMAND_CREATE, GUILD_COMMAND_INVITE, Player::IsMaxLevel(), Petition::IsPetitionSignedByAccount(), ITEM_CHANGED, MAX_ARENA_SLOT, Petition::OwnerGuid, PETITION_SIGN_ALREADY_SIGNED, PETITION_SIGN_OK, Petition::PetitionType, sCharacterCache, SendArenaTeamCommandResult(), Guild::SendCommandResult(), SendPacket(), Petition::Signatures, SMSG_PETITION_SIGN_RESULTS, sPetitionMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSocketOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 891 of file ItemHandler.cpp.
References _player, Player::ApplyEnchantment(), BONUS_ENCHANTMENT_SLOT, Player::CanEquipUniqueItem(), Item::ClearSoulboundTradeable(), Player::DestroyItemCount(), EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED, Item::GemsFitSockets(), Item::GetEnchantmentId(), Object::GetEntry(), Object::GetGUID(), ItemTemplate::GetId(), Player::GetItemByGuid(), ItemTemplate::GetItemLimitCategory(), Item::GetSlot(), ItemTemplate::GetSocketBonus(), ItemTemplate::GetSocketColor(), Item::GetTemplate(), ItemTemplate::HasFlag(), Item::IsEquipped(), ITEM_FLAG_UNIQUE_EQUIPPABLE, MAX_GEM_SOCKETS, NULL_SLOT, PRISMATIC_ENCHANTMENT_SLOT, Player::RemoveTradeableItem(), Player::SendEquipError(), Item::SendUpdateSockets(), Item::SetEnchantment(), sGemPropertiesStore, sItemLimitCategoryStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCKET_COLOR_META, sSpellItemEnchantmentStore, TC_LOG_DEBUG, Player::ToggleMetaGemsActive(), and GemPropertiesEntry::Type.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSpellClick | ( | WorldPacket & | recvData | ) |
Definition at line 558 of file SpellHandler.cpp.
References _player, ObjectAccessor::GetCreatureOrPetOrVehicle(), Unit::HandleSpellClick(), and Object::IsInWorld().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSpiritHealerActivateOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 192 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendSpiritResurrect(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_SPIRITHEALER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSplitItemOpcode | ( | WorldPackets::Item::SplitItem & | splitItem | ) |
Definition at line 36 of file ItemHandler.cpp.
References _player, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, WorldPackets::Item::SplitItem::FromPackSlot, WorldPackets::Item::SplitItem::FromSlot, Player::IsValidPos(), WorldPackets::Item::SplitItem::Quantity, Player::SendEquipError(), Player::SplitItem(), TC_LOG_DEBUG, WorldPackets::Item::SplitItem::ToPackSlot, and WorldPackets::Item::SplitItem::ToSlot.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleStablePet | ( | WorldPacket & | recvPacket | ) |
Definition at line 371 of file NPCHandler.cpp.
References _player, CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, CheckStableMaster(), PetStable::CurrentPet, ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetPet(), Player::GetPetStable(), Pet::getPetType(), GetPlayer(), HUNTER_PET, Unit::IsAlive(), PetStable::MaxStabledPets, PET_SAVE_FIRST_STABLE_SLOT, Unit::RemoveAurasByType(), Player::RemovePet(), SendPetStableResult(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SPELL_AURA_FEIGN_DEATH, STABLE_ERR_INVALID_SLOT, STABLE_ERR_STABLE, STABLE_SUCCESS_STABLE, PetStable::StabledPets, TC_LOG_DEBUG, UNIT_STATE_DIED, and PetStable::UnslottedPets.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleStableRevivePet | ( | WorldPacket & | recvPacket | ) |
Definition at line 586 of file NPCHandler.cpp.
References TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleStableSwapPet | ( | WorldPacket & | recvPacket | ) |
Definition at line 591 of file NPCHandler.cpp.
References _player, Player::CanTameExoticPets(), CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, CheckStableMaster(), PetStable::CurrentPet, ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetPet(), Player::GetPetStable(), GetPlayer(), HUNTER_PET, Unit::IsAlive(), Unit::IsHunterPet(), CreatureTemplate::IsTameable(), Pet::LoadPetFromDB(), PET_SAVE_AS_CURRENT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, Unit::RemoveAurasByType(), Player::RemovePet(), SendPetStableResult(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, STABLE_ERR_EXOTIC, STABLE_ERR_STABLE, STABLE_SUCCESS_UNSTABLE, PetStable::StabledPets, TC_LOG_DEBUG, UNIT_STATE_DIED, and PetStable::UnslottedPets.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleStandStateChangeOpcode | ( | WorldPackets::Misc::StandStateChange & | packet | ) |
Definition at line 453 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::Initialize().
| void WorldSession::HandleSummonResponseOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 998 of file MovementHandler.cpp.
References _player, Unit::IsAlive(), Unit::IsInCombat(), and Player::SummonIfPossible().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSwapInvItemOpcode | ( | WorldPackets::Item::SwapInvItem & | swapInvItem | ) |
Definition at line 66 of file ItemHandler.cpp.
References _player, CanUseBank(), EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, INVENTORY_SLOT_BAG_0, Player::IsBankPos(), Player::IsValidPos(), m_currentBankerGUID, Player::SendEquipError(), WorldPackets::Item::SwapInvItem::Slot1, WorldPackets::Item::SwapInvItem::Slot2, Player::SwapItem(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleSwapItem | ( | WorldPackets::Item::SwapItem & | swapItem | ) |
Definition at line 124 of file ItemHandler.cpp.
References _player, CanUseBank(), WorldPackets::Item::SwapItem::ContainerSlotA, WorldPackets::Item::SwapItem::ContainerSlotB, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_WRONG_SLOT, Player::IsBankPos(), Player::IsValidPos(), m_currentBankerGUID, Player::SendEquipError(), WorldPackets::Item::SwapItem::SlotA, WorldPackets::Item::SwapItem::SlotB, Player::SwapItem(), TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTabardVendorActivateOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 57 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendTabardVendorActivate(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_TABARDDESIGNER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTalentWipeConfirmOpcode | ( | WorldPackets::Talent::ConfirmRespecWipe & | confirmRespecWipe | ) |
Definition at line 49 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, Player::SendRespecWipeConfirm(), Player::SendTalentsInfoData(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, UNIT_NPC_FLAG_TRAINER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTaxiNodeStatusQueryOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 32 of file TaxiHandler.cpp.
References SendTaxiStatus(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTaxiQueryAvailableNodes | ( | WorldPacket & | recvPacket | ) |
Definition at line 63 of file TaxiHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), SendLearnNewTaxiNode(), SendTaxiMenu(), SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_FLIGHTMASTER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTextEmoteOpcode | ( | WorldPackets::Chat::CTextEmote & | packet | ) |
Definition at line 580 of file ChatHandler.cpp.
References _player, ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE, CanSpeak(), CONFIG_LISTEN_RANGE_TEXTEMOTE, EMOTE_ONESHOT_NONE, EMOTE_STATE_DANCE, EMOTE_STATE_KNEEL, EMOTE_STATE_SIT, EMOTE_STATE_SLEEP, WorldPackets::Chat::CTextEmote::EmoteID, EmotesTextEntry::EmoteID, GameTime::GetGameTime(), GetTrinityString(), ObjectAccessor::GetUnit(), Unit::HandleEmoteCommand(), Unit::HasUnitState(), Unit::IsAlive(), LANG_WAIT_BEFORE_SPEAKING, m_muteTime, secsToTimeString(), sEmotesTextStore, SendNotification(), Unit::SetEmoteState(), WorldPackets::Chat::CTextEmote::SoundIndex, sScriptMgr, sWorld, WorldPackets::Chat::CTextEmote::Target, Object::ToCreature(), UNIT_STATE_DIED, Player::UpdateAchievementCriteria(), and Cell::VisitWorldObjects().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTimeSyncResponse | ( | WorldPackets::Misc::TimeSyncResponse & | packet | ) |
Definition at line 1035 of file MovementHandler.cpp.
References _pendingTimeSyncRequests, _timeSyncClockDeltaQueue, WorldPackets::Misc::TimeSyncResponse::ClientTime, ComputeNewClockDelta(), getMSTimeDiff(), WorldPackets::Misc::TimeSyncResponse::GetReceivedTime(), and WorldPackets::Misc::TimeSyncResponse::SequenceIndex.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTogglePvP | ( | WorldPackets::Misc::TogglePvP & | togglePvP | ) |
Definition at line 385 of file MiscHandler.cpp.
References Object::ApplyModFlag(), WorldPackets::Misc::TogglePvP::Enable, PvPInfo::EndTimer, GameTime::GetGameTime(), GetPlayer(), PLAYER_FLAGS, PLAYER_FLAGS_IN_PVP, PLAYER_FLAGS_PVP_TIMER, Player::pvpInfo, Object::ToggleFlag(), and Player::UpdatePvP().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTotemDestroyed | ( | WorldPackets::Totem::TotemDestroyed & | totemDestroyed | ) |
Definition at line 524 of file SpellHandler.cpp.
References _player, ObjectAccessor::GetCreature(), Unit::IsCharmed(), Unit::IsTotem(), Unit::m_SummonSlot, MAX_TOTEM_SLOT, WorldPackets::Totem::TotemDestroyed::Slot, SUMMON_SLOT_TOTEM_FIRE, Unit::ToTotem(), and Totem::UnSummon().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTrainerBuySpellOpcode | ( | WorldPackets::NPC::TrainerBuySpell & | packet | ) |
Definition at line 124 of file NPCHandler.cpp.
References _player, Object::GetEntry(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Unit::RemoveAurasByType(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, WorldPackets::NPC::TrainerBuySpell::SpellID, TC_LOG_DEBUG, Trainer::Trainer::TeachSpell(), ObjectGuid::ToString(), WorldPackets::NPC::TrainerBuySpell::TrainerGUID, UNIT_NPC_FLAG_TRAINER, and UNIT_STATE_DIED.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTrainerListOpcode | ( | WorldPackets::NPC::Hello & | packet | ) |
Definition at line 90 of file NPCHandler.cpp.
References Player::GetNPCIfCanInteractWith(), GetPlayer(), SendTrainerList(), TC_LOG_DEBUG, ObjectGuid::ToString(), WorldPackets::NPC::Hello::Unit, and UNIT_NPC_FLAG_TRAINER.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTurnInPetitionOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 593 of file PetitionsHandler.cpp.
References _player, Guild::AddMember(), ArenaTeam::AddMember(), CharacterDatabase, CONFIG_MIN_PETITION_SIGNS, ArenaTeam::Create(), Guild::Create(), Player::DestroyItem(), ERR_ALREADY_IN_ARENA_TEAM, ERR_ARENA_TEAM_CREATE_S, ERR_ARENA_TEAM_NAME_EXISTS_S, ERR_GUILD_COMMAND_SUCCESS, ERR_GUILD_NAME_EXISTS_S, Player::GetArenaTeamId(), Item::GetBagSlot(), Object::GetGUID(), Player::GetGuildId(), ArenaTeam::GetId(), Player::GetItemByGuid(), WorldObject::GetName(), Item::GetSlot(), ArenaTeam::GetSlotByType(), GUILD_CHARTER_TYPE, GUILD_COMMAND_CREATE, WorldPacket::Initialize(), MAX_ARENA_SLOT, Petition::OwnerGuid, PETITION_TURN_ALREADY_IN_GUILD, PETITION_TURN_NEED_MORE_SIGNATURES, PETITION_TURN_OK, Petition::PetitionName, Petition::PetitionType, sArenaTeamMgr, SendArenaTeamCommandResult(), Guild::SendCommandResult(), Player::SendDirectMessage(), SendPacket(), sGuildMgr, Petition::Signatures, SMSG_TURN_IN_PETITION_RESULTS, sPetitionMgr, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, and ObjectGuid::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTutorialClear | ( | WorldPackets::Misc::TutorialClear & | tutorialClear | ) |
Definition at line 1043 of file CharacterHandler.cpp.
References MAX_ACCOUNT_TUTORIAL_VALUES, and SetTutorialInt().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTutorialFlag | ( | WorldPackets::Misc::TutorialSetFlag & | packet | ) |
Definition at line 1030 of file CharacterHandler.cpp.
References GetTutorialInt(), MAX_ACCOUNT_TUTORIAL_VALUES, SetTutorialInt(), and WorldPackets::Misc::TutorialSetFlag::TutorialBit.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleTutorialReset | ( | WorldPackets::Misc::TutorialReset & | tutorialReset | ) |
Definition at line 1049 of file CharacterHandler.cpp.
References MAX_ACCOUNT_TUTORIAL_VALUES, and SetTutorialInt().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUITimeRequest | ( | WorldPackets::Misc::UITimeRequest & | recvData | ) |
Definition at line 1171 of file MiscHandler.cpp.
References GameTime::GetGameTime(), SendPacket(), WorldPackets::Misc::UITime::Time, and WorldPackets::Misc::UITime::Write().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUnacceptTradeOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 551 of file TradeHandler.cpp.
References _player, Player::GetTradeData(), and TradeData::SetAccepted().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUnlearnSkillOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 84 of file SkillHandler.cpp.
References SkillRaceClassInfoEntry::Flags, GetPlayer(), GetSkillRaceClassInfo(), Player::SetSkill(), and SKILL_FLAG_UNLEARNABLE.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUnstablePet | ( | WorldPacket & | recvPacket | ) |
Definition at line 439 of file NPCHandler.cpp.
References _player, Player::CanTameExoticPets(), CHAR_UPD_CHAR_PET_SLOT_BY_ID, CharacterDatabase, CheckStableMaster(), PetStable::CurrentPet, ObjectGuid::GetCounter(), Object::GetGUID(), Player::GetPet(), Player::GetPetStable(), GetPlayer(), HUNTER_PET, Unit::IsAlive(), Unit::IsHunterPet(), CreatureTemplate::IsTameable(), Pet::LoadPetFromDB(), PET_SAVE_AS_CURRENT, PET_SAVE_FIRST_STABLE_SLOT, PET_SAVE_NOT_IN_SLOT, Unit::RemoveAurasByType(), Player::RemovePet(), SendPetStableResult(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, STABLE_ERR_EXOTIC, STABLE_ERR_STABLE, STABLE_SUCCESS_UNSTABLE, PetStable::StabledPets, TC_LOG_DEBUG, UNIT_STATE_DIED, and PetStable::UnslottedPets.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUpdateAccountData | ( | WorldPackets::ClientConfig::UserClientUpdateAccountData & | packet | ) |
Definition at line 710 of file MiscHandler.cpp.
References WorldPackets::ClientConfig::UserClientUpdateAccountData::CompressedData, WorldPackets::ClientConfig::UserClientUpdateAccountData::DataType, WorldPackets::ClientConfig::UpdateAccountDataComplete::DataType, NUM_ACCOUNT_DATA_TYPES, 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::Initialize().
| void WorldSession::HandleUpdateMissileTrajectory | ( | WorldPacket & | recvPacket | ) |
Definition at line 1213 of file MiscHandler.cpp.
References _player, CURRENT_GENERIC_SPELL, Unit::GetCurrentSpell(), ObjectAccessor::GetUnit(), MovementInfo::guid, HandleMovementOpcode(), SpellCastTargets::HasDst(), SpellCastTargets::HasSrc(), SpellInfo::Id, Spell::m_spellInfo, Spell::m_targets, SpellCastTargets::ModDst(), SpellCastTargets::ModSrc(), ByteBuffer::read(), ObjectGuid::ReadAsPacked(), ByteBuffer::rfinish(), SpellCastTargets::SetPitch(), SpellCastTargets::SetSpeed(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUpdateProjectilePosition | ( | WorldPacket & | recvPacket | ) |
Definition at line 661 of file SpellHandler.cpp.
References _player, Unit::FindCurrentSpellBySpellId(), SpellCastTargets::GetDstPos(), ObjectAccessor::GetUnit(), SpellCastTargets::HasDst(), Spell::m_targets, SpellCastTargets::ModDst(), Spell::RecalculateDelayMomentForDst(), Position::Relocate(), WorldObject::SendMessageToSet(), SMSG_SET_PROJECTILE_POSITION, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleUseItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 70 of file SpellHandler.cpp.
References _player, BIND_QUEST_ITEM, BIND_WHEN_PICKED_UP, BIND_WHEN_USE, Player::CanUseItem(), Player::CastItemUseSpell(), ItemTemplate::Effects, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_OK, ItemTemplate::GetBonding(), ItemTemplate::GetClass(), Object::GetEntry(), Object::GetGUID(), ItemTemplate::GetInventoryType(), Item::GetTemplate(), Player::GetUseableItemByPos(), HandleClientCastFlags(), ItemTemplate::HasFlag(), Player::InArena(), INVTYPE_NON_EQUIP, Item::IsEquipped(), Unit::IsInCombat(), Item::IsSoulBound(), ITEM_CHANGED, ITEM_CLASS_CONSUMABLE, ITEM_FLAG_IGNORE_DEFAULT_ARENA_RESTRICTIONS, ITEM_FLAG_NOT_USEABLE_IN_ARENA, MAX_GLYPH_SLOT_INDEX, SpellCastTargets::Read(), Player::SendEquipError(), Item::SetBinding(), Item::SetState(), ByteBuffer::size(), sScriptMgr, sSpellMgr, and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleVoiceSessionEnableOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 23 of file VoiceChatHandler.cpp.
References ByteBuffer::read_skip(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleWardenDataOpcode | ( | WorldPacket & | recvData | ) |
Definition at line 268 of file Warden.cpp.
References _warden, and ByteBuffer::empty().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleWhoIsOpcode | ( | WorldPackets::Who::WhoIsRequest & | packet | ) |
Definition at line 860 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::Initialize().
| void WorldSession::HandleWhoOpcode | ( | WorldPackets::Who::WhoRequestPkt & | whoRequest | ) |
Definition at line 179 of file MiscHandler.cpp.
References _player, WorldPackets::Who::WhoEntry::AreaID, WorldPackets::Who::WhoRequest::Areas, WorldPackets::Who::WhoRequest::ClassFilter, WorldPackets::Who::WhoEntry::ClassID, CONFIG_GM_LEVEL_IN_WHO_LIST, CONFIG_MAX_WHO, WorldPackets::Array< T, N >::empty(), WorldPackets::Array< T, N >::end(), WorldPackets::Who::WhoResponse::Entries, Object::GetGUID(), GetSecurity(), Player::GetSession(), GetSessionDbcLocale(), Player::GetTeam(), WorldPackets::Who::WhoRequest::Guild, WorldPackets::Who::WhoEntry::GuildName, HasPermission(), AccountMgr::IsPlayerAccount(), WorldPackets::Who::WhoEntry::Level, MAX_LEVEL, WorldPackets::Who::WhoRequest::MaxLevel, WorldPackets::Who::WhoRequest::MinLevel, WorldPackets::Who::WhoRequest::Name, WorldPackets::Who::WhoEntry::Name, WorldPackets::Who::WhoEntry::Race, WorldPackets::Who::WhoRequest::RaceFilter, 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::Who::WhoEntry::Sex, WorldPackets::Array< T, N >::size(), STRONG_MAX_LEVEL, sWhoListStorageMgr, sWorld, TC_LOG_DEBUG, WorldPackets::Who::WhoResponse::TotalMatches, Utf8FitTo(), Utf8toWStr(), WorldPackets::Who::WhoRequest::Words, WorldPackets::Who::WhoResponsePkt::Write(), and wstrToLower().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleWorldTeleportOpcode | ( | WorldPackets::Misc::WorldTeleport & | worldTeleport | ) |
Definition at line 840 of file MiscHandler.cpp.
References _player, WorldPackets::Misc::WorldTeleport::Facing, Object::GetGUID(), WorldObject::GetName(), HasPermission(), Unit::IsInFlight(), LANG_YOU_NOT_HAVE_PERMISSION, WorldPackets::Misc::WorldTeleport::MapID, WorldPackets::Misc::WorldTeleport::Pos, rbac::RBAC_PERM_OPCODE_WORLD_TELEPORT, SendNotification(), Position::SetOrientation(), TC_LOG_DEBUG, Player::TeleportTo(), WorldPackets::Misc::WorldTeleport::Time, ObjectGuid::ToString(), and Position::ToString().
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleWrapItemOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 780 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(), Object::GetGUID(), Object::GetGuidValue(), Player::GetItemByPos(), ItemTemplate::GetMaxCount(), Item::GetMaxStackCount(), Item::GetOwnerGUID(), Item::GetState(), Item::GetTemplate(), Object::GetUInt32Value(), ItemTemplate::HasFlag(), Item::IsBag(), ObjectGuid::IsEmpty(), Item::IsEquipped(), Item::IsSoulBound(), ITEM_CHANGED, ITEM_FIELD_FLAG_WRAPPED, ITEM_FIELD_FLAGS, ITEM_FIELD_GIFTCREATOR, ITEM_FLAG_IS_WRAPPER, ITEM_NEW, RemoveItemFromUpdateQueueOf(), Item::ReplaceAllItemFlags(), Item::SaveToDB(), Player::SendEquipError(), Object::SetEntry(), Item::SetGiftCreator(), Item::SetState(), PreparedStatementBase::setUInt32(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| void WorldSession::HandleZoneUpdateOpcode | ( | WorldPacket & | recvPacket | ) |
Definition at line 411 of file MiscHandler.cpp.
References GetPlayer(), Player::SetNeedsZoneUpdate(), and TC_LOG_DEBUG.
Referenced by OpcodeTable::Initialize().
| bool WorldSession::HasPermission | ( | uint32 | permissionId | ) |
Definition at line 1188 of file WorldSession.cpp.
References _RBACData, rbac::RBACData::GetId(), rbac::RBACData::GetName(), rbac::RBACData::HasPermission(), Realm::Id, LoadPermissions(), realm, RealmHandle::Realm, and TC_LOG_DEBUG.
Referenced by ChatHandler::_ParseCommands(), InstanceScript::_SkipCheckRequiredBosses(), World::AddSession_(), Channel::Announce(), SocialMgr::BroadcastToFriendListers(), Player::CanBeGameMaster(), Player::CanJoinToBattleground(), CanOpenMailBox(), AchievementMgr::CompletedAchievement(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), SocialMgr::GetFriendInfo(), lfg::LFGMgr::GetLockedDungeons(), Player::GetStartLevel(), HandleAcceptTradeOpcode(), HandleAddFriendOpcode(), HandleAuctionPlaceBid(), HandleAuctionSellItem(), HandleCharCreateOpcode(), HandleCharCustomizeCallback(), HandleCharRaceOrFactionChangeCallback(), HandleCharRenameOpcode(), HandleChatMessage(), 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(), HandleWorldTeleportOpcode(), ChatHandler::HasLowerSecurityAccount(), ChatHandler::HasPermission(), Channel::Invite(), Channel::JoinChannel(), lfg::LFGMgr::JoinLfg(), Channel::KickOrBan(), Channel::LeaveChannel(), Channel::List(), moveItems(), Channel::Password(), AchievementMgr::ResetAchievementCriteria(), World::SendGlobalGMMessage(), World::SendGMText(), Channel::SetMode(), Channel::SetOwner(), Channel::UnBan(), Update(), and AchievementMgr::UpdateAchievementCriteria().
| void WorldSession::InitializeSession | ( | ) |
Definition at line 1149 of file WorldSession.cpp.
References AddQueryHolderCallback(), SQLQueryHolderCallback::AfterComplete(), AUTH_SYSTEM_ERROR, CharacterDatabase, GetAccountId(), InitializeSessionCallback(), and SendAuthResponse().
Referenced by World::AddSession_(), and World::RemoveQueuedPlayer().
| void WorldSession::InitializeSessionCallback | ( | CharacterDatabaseQueryHolder const & | realmHolder | ) |
Definition at line 1164 of file WorldSession.cpp.
References AUTH_OK, CONFIG_CLIENTCACHE_VERSION, SQLQueryHolderBase::GetPreparedResult(), AccountInfoQueryHolderPerRealm::GLOBAL_ACCOUNT_DATA, GLOBAL_CACHE_MASK, AccountInfoQueryHolderPerRealm::INSTANCE_TIMES, LoadAccountData(), LoadInstanceTimeRestrictions(), LoadTutorialsData(), m_inQueue, ResetTimeOutTime(), SendAddonsInfo(), SendAuthResponse(), SendAuthWaitQueue(), SendClientCacheVersion(), SendTutorialsData(), SetInQueue(), sWorld, and AccountInfoQueryHolderPerRealm::TUTORIALS.
Referenced by InitializeSession().
| void WorldSession::InitWarden | ( | SessionKey const & | k, |
| std::string const & | os | ||
| ) |
Definition at line 1079 of file WorldSession.cpp.
References _warden.
Referenced by WorldSocket::HandleAuthSessionCallback().
| void WorldSession::InvalidateRBACData | ( | ) |
Definition at line 1200 of file WorldSession.cpp.
References _RBACData, rbac::RBACData::GetId(), rbac::RBACData::GetName(), Realm::Id, realm, RealmHandle::Realm, and TC_LOG_DEBUG.
|
inline |
Definition at line 753 of file WorldSession.h.
| bool WorldSession::IsConnectionIdle | ( | ) | const |
Definition at line 723 of file WorldSession.cpp.
References GameTime::GetGameTime(), m_inQueue, and m_timeOutTime.
Referenced by Update().
|
inlineprivate |
Definition at line 1326 of file WorldSession.h.
Referenced by HandleCharCustomize(), HandleCharRaceOrFactionChange(), HandleCharRenameOpcode(), and HandlePlayerLoginOpcode().
|
inline |
Is the user engaged in a log out process?
Definition at line 612 of file WorldSession.h.
Referenced by HandleInitiateTradeOpcode(), send_commandscript::HandleSendMessageCommand(), and Player::SaveToDB().
| void WorldSession::KickPlayer | ( | std::string const & | reason | ) |
Kick a player out of the World.
Definition at line 630 of file WorldSession.cpp.
References _player, forceExit, GetAccountId(), Object::GetGUID(), WorldObject::GetName(), m_Socket, TC_LOG_INFO, and ObjectGuid::ToString().
Referenced by World::AddSession_(), Warden::ApplyPenalty(), World::BanCharacter(), Unit::CheckPendingMovementAcks(), AccountMgr::DeleteAccount(), DisallowHyperlinksAndMaybeKick(), WorldSession::DosProtection::EvaluateOpcode(), HandleCharCustomize(), HandleCharRaceOrFactionChange(), HandleCharRenameOpcode(), WardenMac::HandleCheckResult(), HandleForceSpeedChangeAck(), misc_commandscript::HandleKickPlayerCommand(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), World::RemoveSession(), Warden::Update(), Update(), and ValidateHyperlinksAndMaybeKick().
| void WorldSession::LoadAccountData | ( | PreparedQueryResult | result, |
| uint32 | mask | ||
| ) |
Definition at line 763 of file WorldSession.cpp.
References _accountData, AccountData::Data, 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 878 of file WorldSession.cpp.
References _instanceResetTimes, and GameTime::GetSystemTime().
Referenced by InitializeSessionCallback().
| void WorldSession::LoadPermissions | ( | ) |
Definition at line 1094 of file WorldSession.cpp.
References _accountName, _RBACData, GetAccountId(), GetSecurity(), Realm::Id, rbac::RBACData::LoadFromDB(), realm, and RealmHandle::Realm.
Referenced by HasPermission().
| QueryCallback WorldSession::LoadPermissionsAsync | ( | ) |
Definition at line 1103 of file WorldSession.cpp.
References _accountName, _RBACData, GetAccountId(), GetSecurity(), Realm::Id, rbac::RBACData::LoadFromDBAsync(), realm, RealmHandle::Realm, and TC_LOG_DEBUG.
Referenced by WorldSocket::HandleAuthSessionCallback().
| void WorldSession::LoadTutorialsData | ( | PreparedQueryResult | result | ) |
Definition at line 838 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 483 of file WorldSession.cpp.
References _player, BATTLEGROUND_QUEUE_NONE, BG_DESERTION_TYPE_INVITE_LOGOUT, Player::BuildPlayerRepop(), BUYBACK_SLOT_END, BUYBACK_SLOT_START, CHAR_INS_DESERTER_TRACK, CHAR_UPD_ACCOUNT_ONLINE, CharacterDatabase, Player::CleanupChannels(), Player::CleanupsBeforeDelete(), Player::ClearWhisperWhiteList(), Unit::CombatStop(), CONFIG_BATTLEGROUND_TRACK_DESERTERS, DoLootRelease(), ObjectGuid::Empty, WorldObject::FindMap(), FRIEND_OFFLINE, GetAccountId(), Player::GetBattleground(), Player::GetBattlegroundQueueTypeId(), ObjectGuid::GetCounter(), Player::GetDeathTimer(), Player::GetGroup(), Object::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::IsInvitedForBattlegroundQueueType(), Player::KillPlayer(), m_playerLogout, m_playerRecentlyLogout, m_playerSave, PET_SAVE_AS_CURRENT, PLAYER_FIELD_BUYBACK_PRICE_1, PLAYER_FIELD_BUYBACK_TIMESTAMP_1, PLAYER_FIELD_VENDORBUYBACK_SLOT_1, PLAYER_MAX_BATTLEGROUND_QUEUES, Unit::RemoveAurasByType(), Player::RemoveBattlegroundQueueId(), Player::RemovePet(), BattlegroundQueue::RemovePlayer(), Player::RemoveSocial(), Player::RepopAtGraveyard(), Player::SaveToDB(), sBattlegroundMgr, SendPacket(), Object::SetGuidValue(), SetLogoutStartTime(), Player::SetPendingBind(), SetPlayer(), PreparedStatementBase::setUInt32(), Object::SetUInt32Value(), PreparedStatementBase::setUInt8(), sGuildMgr, sOutdoorPvPMgr, SPELL_AURA_MOD_SHAPESHIFT, SPELL_AURA_SPIRIT_OF_REDEMPTION, sScriptMgr, sSocialMgr, sWorld, TC_LOG_DEBUG, TC_LOG_INFO, TC_METRIC_EVENT, ObjectGuid::ToString(), and Player::UninviteFromGroup().
Referenced by AccountMgr::DeleteAccount(), HandleLogoutRequestOpcode(), HandleMoveWorldportAck(), Update(), and ~WorldSession().
|
private |
Logging helper for unexpected opcodes.
Definition at line 258 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), and TC_LOG_ERROR.
Referenced by Update().
|
private |
Logging helper for unexpected opcodes.
Definition at line 265 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), LOG_LEVEL_TRACE, ByteBuffer::print_storage(), ByteBuffer::rpos(), sLog, TC_LOG_TRACE, and ByteBuffer::wpos().
Referenced by Update().
Definition at line 125 of file TradeHandler.cpp.
References _player, Player::CanStoreItem(), EQUIP_ERR_OK, GetAccountId(), Item::GetCount(), Object::GetEntry(), WorldObject::GetName(), Item::GetNameForLocaleIdx(), Player::GetSession(), Player::GetTotalPlayedTime(), Player::GetTrader(), Object::GetUInt32Value(), HasPermission(), ITEM_FIELD_CREATE_PLAYED_TIME, Player::MoveItemToInventory(), NULL_BAG, NULL_SLOT, rbac::RBAC_PERM_LOG_GM_TRADE, Item::SetCreatePlayedTime(), sLog, sWorld, TC_LOG_DEBUG, TC_LOG_ERROR, and TRADE_SLOT_TRADED_COUNT.
Referenced by HandleAcceptTradeOpcode().
|
privatedelete |
|
inline |
Definition at line 561 of file WorldSession.h.
Referenced by lfg::LFGPlayerScript::OnLogout().
|
inline |
Definition at line 557 of file WorldSession.h.
Referenced by HandlePlayerLoginOpcode(), Player::IsLoading(), WardenWin::RequestChecks(), and ReputationMgr::SendVisible().
|
inline |
Definition at line 558 of file WorldSession.h.
Referenced by OutdoorPvP::HandlePlayerLeaveZone(), BattlefieldWG::OnPlayerLeaveWar(), Player::SaveToDB(), SendCancelTrade(), and Group::SendUpdateToPlayer().
|
inline |
Definition at line 559 of file WorldSession.h.
|
inline |
Definition at line 560 of file WorldSession.h.
Referenced by SendCancelTrade().
|
private |
Definition at line 1062 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 252 of file WorldSession.cpp.
References _recvQueue, and LockedQueue< T, StorageType >::add().
Referenced by WorldSocket::ReadDataHandler().
| void WorldSession::ReadAddonsInfo | ( | ByteBuffer & | data | ) |
Definition at line 957 of file WorldSession.cpp.
References _addons, SecureAddonInfo::BANNED, ByteBuffer::contents(), GetAccountId(), AddonMgr::GetAddonInfo(), WorldSession::Addons::LastBannedAddOnTimestamp, WorldSession::Addons::MaxSecureAddons, ByteBuffer::read(), ByteBuffer::resize(), ByteBuffer::rpos(), SecureAddonInfo::SECURE_HIDDEN, WorldSession::Addons::SecureAddons, ByteBuffer::size(), TC_LOG_DEBUG, TC_LOG_WARN, and ByteBufferException::what().
Referenced by WorldSocket::HandleAuthSessionCallback().
| void WorldSession::ReadMovementInfo | ( | WorldPacket & | data, |
| MovementInfo * | mi | ||
| ) |
Definition at line 938 of file WorldSession.cpp.
References WorldPacket::GetOpcode(), MovementInfo::guid, ObjectGuid::IsEmpty(), TC_LOG_ERROR, ValidateAndGetUnitBeingMoved(), and ValidateMovementInfo().
Referenced by HandleChangeSeatsOnControlledVehicle(), HandleFeatherFallAck(), HandleForceSpeedChangeAck(), HandleMoveGravityDisableAck(), HandleMoveGravityEnableAck(), HandleMoveHoverAck(), HandleMoveKnockBackAck(), HandleMoveRootAck(), HandleMoveSetCanFlyAckOpcode(), HandleMoveSetCanTransitionBetweenSwinAndFlyAck(), HandleMoveSetCollisionHgtAck(), HandleMoveSplineDoneOpcode(), HandleMoveUnRootAck(), and HandleMoveWaterWalkAck().
| void WorldSession::ResetTimeOutTime | ( | bool | onlyActive | ) |
Definition at line 715 of file WorldSession.cpp.
References CONFIG_SOCKET_TIMEOUTTIME, CONFIG_SOCKET_TIMEOUTTIME_ACTIVE, GameTime::GetGameTime(), GetPlayer(), m_timeOutTime, and sWorld.
Referenced by InitializeSessionCallback(), WorldSocket::ReadDataHandler(), World::RemoveQueuedPlayer(), and WorldSession().
| void WorldSession::ResetTimeSync | ( | ) |
Definition at line 1511 of file WorldSession.cpp.
References _pendingTimeSyncRequests, and _timeSyncNextCounter.
Referenced by Player::SendInitialPacketsAfterAddToMap().
| void WorldSession::SaveInstanceTimeRestrictions | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 893 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::SaveTutorialsData | ( | CharacterDatabaseTransaction | trans | ) |
Definition at line 859 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 | ( | uint32 | mask | ) |
Definition at line 826 of file WorldSession.cpp.
References GetAccountData(), GameTime::GetGameTime(), NUM_ACCOUNT_DATA_TYPES, SendPacket(), SMSG_ACCOUNT_DATA_TIMES, and Time.
Referenced by HandlePlayerLogin(), and HandleReadyForAccountDataTimes().
| void WorldSession::SendActivateTaxiReply | ( | ActivateTaxiReply | reply | ) |
Definition at line 287 of file TaxiHandler.cpp.
References SendPacket(), and SMSG_ACTIVATETAXIREPLY.
Referenced by Player::ActivateTaxiPathTo(), HandleActivateTaxiExpressOpcode(), and HandleActivateTaxiOpcode().
| void WorldSession::SendAddonsInfo | ( | ) |
Definition at line 1037 of file WorldSession.cpp.
References _addons, WorldPackets::ClientConfig::AddonInfo::Addons, WorldPackets::ClientConfig::AddonInfo::BannedAddons, AddonMgr::GetBannedAddons(), WorldSession::Addons::LastBannedAddOnTimestamp, WorldSession::Addons::SecureAddons, SendPacket(), BannedAddon::Timestamp, and WorldPackets::ClientConfig::AddonInfo::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendAreaTriggerMessage | ( | char const * | Text, |
| ... | |||
| ) |
Definition at line 546 of file MiscHandler.cpp.
References SendPacket(), and SMSG_AREA_TRIGGER_MESSAGE.
Referenced by BattlegroundAV::HandleAreaTrigger(), BattlegroundAB::HandleAreaTrigger(), send_commandscript::HandleSendMessageCommand(), and Player::Satisfy().
| void WorldSession::SendArenaTeamCommandResult | ( | uint32 | team_action, |
| std::string const & | team, | ||
| std::string const & | player, | ||
| uint32 | error_id = 0 |
||
| ) |
Definition at line 416 of file ArenaTeamHandler.cpp.
References SendPacket(), and SMSG_ARENA_TEAM_COMMAND_RESULT.
Referenced by ArenaTeam::DelMember(), HandleArenaTeamAcceptOpcode(), HandleArenaTeamInviteOpcode(), HandleArenaTeamLeaderOpcode(), HandleArenaTeamLeaveOpcode(), HandleArenaTeamRemoveOpcode(), HandleOfferPetitionOpcode(), HandlePetitionBuyOpcode(), HandlePetitionRenameGuild(), HandleSignPetition(), and HandleTurnInPetitionOpcode().
| void WorldSession::SendAuctionBidderNotification | ( | uint32 | location, |
| uint32 | auctionId, | ||
| ObjectGuid | bidder, | ||
| uint32 | bidSum, | ||
| uint32 | diff, | ||
| uint32 | item_template | ||
| ) |
Definition at line 98 of file AuctionHouseHandler.cpp.
References SendPacket(), and SMSG_AUCTION_BIDDER_NOTIFICATION.
Referenced by AuctionHouseMgr::SendAuctionOutbiddedMail(), and AuctionHouseMgr::SendAuctionWonMail().
| void WorldSession::SendAuctionCommandResult | ( | AuctionEntry const * | auction, |
| AuctionCommand | command, | ||
| AuctionResult | errorCode, | ||
| 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.
| auction | The relevant auction data |
| command | The action that was performed. |
| errorCode | The resulting error code. |
| bagResult | (Optional) InventoryResult. |
Definition at line 77 of file AuctionHouseHandler.cpp.
References AsUnderlyingType(), WorldPackets::AuctionHouse::AuctionCommandResult::AuctionID, WorldPackets::AuctionHouse::AuctionCommandResult::BagResult, AuctionEntry::bid, AuctionEntry::bidder, WorldPackets::AuctionHouse::AuctionCommandResult::Command, WorldPackets::AuctionHouse::AuctionCommandResult::ErrorCode, AuctionEntry::GetAuctionOutBid(), WorldPackets::AuctionHouse::AuctionCommandResult::Guid, AuctionEntry::Id, WorldPackets::AuctionHouse::AuctionCommandResult::MinIncrement, WorldPackets::AuctionHouse::AuctionCommandResult::Money, SendPacket(), and WorldPackets::AuctionHouse::AuctionCommandResult::Write().
Referenced by HandleAuctionPlaceBid(), HandleAuctionRemoveItem(), and HandleAuctionSellItem().
| void WorldSession::SendAuctionHello | ( | ObjectGuid | guid, |
| Unit const * | unit | ||
| ) |
Definition at line 57 of file AuctionHouseHandler.cpp.
References 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, SendNotification(), SendPacket(), sWorld, and WorldPackets::AuctionHouse::AuctionHelloResponse::Write().
Referenced by HandleAuctionHelloOpcode(), and Player::OnGossipSelect().
| void WorldSession::SendAuctionOwnerNotification | ( | AuctionEntry * | auction | ) |
Definition at line 112 of file AuctionHouseHandler.cpp.
References AuctionEntry::bid, AuctionEntry::Id, AuctionEntry::itemEntry, SendPacket(), and SMSG_AUCTION_OWNER_NOTIFICATION.
Referenced by AuctionHouseMgr::SendAuctionExpiredMail(), and AuctionHouseMgr::SendAuctionSuccessfulMail().
| void WorldSession::SendAuctionRemovedNotification | ( | uint32 | auctionId, |
| uint32 | itemEntry, | ||
| int32 | randomPropertyId | ||
| ) |
Definition at line 125 of file AuctionHouseHandler.cpp.
References SendPacket(), and SMSG_AUCTION_REMOVED_NOTIFICATION.
Referenced by AuctionHouseMgr::SendAuctionCancelledToBidderMail().
Definition at line 21 of file AuthHandler.cpp.
References GetExpansion(), SendPacket(), and SMSG_AUTH_RESPONSE.
Referenced by World::AddQueuedPlayer(), InitializeSession(), and InitializeSessionCallback().
| void WorldSession::SendAuthWaitQueue | ( | uint32 | position | ) |
Handle the authentication waiting queue (to be completed)
Definition at line 745 of file WorldSession.cpp.
References AUTH_OK, AUTH_WAIT_QUEUE, SendPacket(), and SMSG_AUTH_RESPONSE.
Referenced by InitializeSessionCallback().
| void WorldSession::SendBarberShopResult | ( | BarberShopResult | result | ) |
Definition at line 2182 of file CharacterHandler.cpp.
References SendPacket(), and SMSG_BARBER_SHOP_RESULT.
Referenced by HandleAlterAppearance().
| void WorldSession::SendBfEntered | ( | uint32 | battleId | ) |
This is call when player accept to join war.
| battleId | The BattleId of Bf |
Definition at line 88 of file BattlefieldHandler.cpp.
References _player, Player::isAFK(), SendPacket(), and SMSG_BATTLEFIELD_MGR_ENTERED.
Referenced by Battlefield::PlayerAcceptInviteToWar().
| void WorldSession::SendBfInvitePlayerToQueue | ( | uint32 | battleId | ) |
This send invitation to player to join the queue.
| battleId | The BattleId of Bf |
Definition at line 52 of file BattlefieldHandler.cpp.
References SendPacket(), and SMSG_BATTLEFIELD_MGR_QUEUE_INVITE.
Referenced by Battlefield::InvitePlayerToQueue().
This send to player windows for invite player to join the war.
| battleId | The BattleId of Bf |
| zoneId | The zone where the battle is (4197 for wg) |
| acceptTime | Time in second that the player have for accept |
Definition at line 36 of file BattlefieldHandler.cpp.
References GameTime::GetGameTime(), SendPacket(), and SMSG_BATTLEFIELD_MGR_ENTRY_INVITE.
Referenced by Battlefield::InvitePlayerToWar().
| void WorldSession::SendBfLeaveMessage | ( | uint32 | battleId, |
| BFLeaveReason | reason = BF_LEAVE_REASON_EXITED |
||
| ) |
This is call when player leave battlefield zone.
| battleId | The BattleId of Bf |
| reason | Reason why player left battlefield |
Definition at line 106 of file BattlefieldHandler.cpp.
References SendPacket(), and SMSG_BATTLEFIELD_MGR_EJECTED.
Referenced by Battlefield::HandlePlayerLeaveZone().
| void WorldSession::SendBfQueueInviteResponse | ( | uint32 | battleId, |
| uint32 | zoneId, | ||
| bool | canQueue = true, |
||
| bool | full = false |
||
| ) |
This send packet for inform player that he join queue.
| battleId | The BattleId of Bf |
| zoneId | The zone where the battle is (4197 for wg) |
| canQueue | if able to queue |
| full | on log in is full |
Definition at line 70 of file BattlefieldHandler.cpp.
References SendPacket(), and SMSG_BATTLEFIELD_MGR_QUEUE_REQUEST_RESPONSE.
Referenced by Battlefield::PlayerAcceptInviteToQueue().
| void WorldSession::SendBindPoint | ( | Creature * | npc | ) |
Definition at line 260 of file NPCHandler.cpp.
References _player, WorldObject::CastSpell(), Object::GetGUID(), GetPlayer(), Player::PlayerTalkClass, PlayerMenu::SendCloseGossip(), SendPacket(), and SMSG_TRAINER_BUY_SUCCEEDED.
Referenced by HandleBinderActivateOpcode().
| void WorldSession::SendCalendarRaidLockoutAdded | ( | InstanceSave const * | save | ) |
Definition at line 649 of file CalendarHandler.cpp.
References WorldPackets::Calendar::CalendarRaidLockoutAdded::DifficultyID, InstanceSave::GetDifficultyID(), GameTime::GetGameTime(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), 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 Player::BindToInstance(), and InstanceMap::PermBindAllPlayers().
| void WorldSession::SendCalendarRaidLockoutRemoved | ( | InstanceSave const * | save | ) |
Definition at line 660 of file CalendarHandler.cpp.
References WorldPackets::Calendar::CalendarRaidLockoutRemoved::DifficultyID, InstanceSave::GetDifficultyID(), GameTime::GetGameTime(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), WorldPackets::Calendar::CalendarRaidLockoutRemoved::InstanceID, WorldPackets::Calendar::CalendarRaidLockoutRemoved::MapID, SendPacket(), WorldPackets::Calendar::CalendarRaidLockoutRemoved::TimeRemaining, and WorldPackets::Calendar::CalendarRaidLockoutRemoved::Write().
Referenced by Player::UnbindInstance().
| void WorldSession::SendCalendarRaidLockoutUpdated | ( | InstanceSave const * | save | ) |
Definition at line 670 of file CalendarHandler.cpp.
References _player, WorldPackets::Calendar::CalendarRaidLockoutUpdated::DifficultyID, InstanceSave::GetDifficultyID(), GameTime::GetGameTime(), Object::GetGUID(), InstanceSave::GetMapId(), InstanceSave::GetResetTime(), GameTime::GetWowTime(), WorldPackets::Calendar::CalendarRaidLockoutUpdated::MapID, WorldPackets::Calendar::CalendarRaidLockoutUpdated::NewTimeRemaining, WorldPackets::Calendar::CalendarRaidLockoutUpdated::OldTimeRemaining, SendPacket(), WorldPackets::Calendar::CalendarRaidLockoutUpdated::ServerTime, SI64LIT, TC_LOG_DEBUG, ObjectGuid::ToString(), and WorldPackets::Calendar::CalendarRaidLockoutUpdated::Write().
| void WorldSession::SendCancelTrade | ( | TradeStatus | status | ) |
Definition at line 572 of file TradeHandler.cpp.
References PlayerLogout(), PlayerRecentlyLoggedOut(), SendTradeStatus(), and TradeStatusInfo::Status.
Referenced by Player::TradeCancel().
| void WorldSession::SendCharCreate | ( | ResponseCodes | result | ) |
Definition at line 2130 of file CharacterHandler.cpp.
References WorldPackets::Character::CreateChar::Code, SendPacket(), and WorldPackets::Character::CreateChar::Write().
Referenced by HandleCharCreateOpcode().
| void WorldSession::SendCharCustomize | ( | ResponseCodes | result, |
| WorldPackets::Character::CharCustomizeInfo const * | customizeInfo | ||
| ) |
Definition at line 2156 of file CharacterHandler.cpp.
References WorldPackets::Character::CharCustomizeResult::Code, WorldPackets::Character::CharCustomizeResult::CustomizeInfo, SendPacket(), and WorldPackets::Character::CharCustomizeResult::Write().
Referenced by HandleCharCustomizeCallback().
| void WorldSession::SendCharDelete | ( | ResponseCodes | result | ) |
Definition at line 2138 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 2165 of file CharacterHandler.cpp.
References WorldPackets::Character::CharFactionChangeResult::RaceOrFactionChangeInfo, WorldPackets::Character::CharFactionChangeResult::Result, SendPacket(), and WorldPackets::Character::CharFactionChangeResult::Write().
Referenced by HandleCharRaceOrFactionChangeCallback().
| void WorldSession::SendCharRename | ( | ResponseCodes | result, |
| WorldPackets::Character::CharacterRenameInfo const * | renameInfo | ||
| ) |
Definition at line 2146 of file CharacterHandler.cpp.
References WorldPackets::Character::CharacterRenameInfo::Guid, WorldPackets::Character::CharacterRenameResult::Guid, WorldPackets::Character::CharacterRenameResult::Name, WorldPackets::Character::CharacterRenameInfo::NewName, WorldPackets::Character::CharacterRenameResult::Result, SendPacket(), and WorldPackets::Character::CharacterRenameResult::Write().
Referenced by HandleCharRenameCallBack(), and HandleCharRenameOpcode().
| void WorldSession::SendChatRestrictedNotice | ( | ChatRestrictionType | restriction | ) |
Definition at line 670 of file ChatHandler.cpp.
References SendPacket(), and SMSG_CHAT_RESTRICTED.
| void WorldSession::SendClientCacheVersion | ( | uint32 | version | ) |
Definition at line 39 of file AuthHandler.cpp.
References WorldPackets::ClientConfig::ClientCacheVersion::CacheVersion, SendPacket(), and WorldPackets::ClientConfig::ClientCacheVersion::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendDiscoverNewTaxiNode | ( | uint32 | nodeid | ) |
Definition at line 151 of file TaxiHandler.cpp.
References GetPlayer(), SendPacket(), and SMSG_NEW_TAXI_PATH.
Referenced by Spell::EffectDiscoverTaxi().
Definition at line 115 of file TaxiHandler.cpp.
References Unit::GetMotionMaster(), GetPlayer(), Unit::Mount(), MotionMaster::MoveTaxiFlight(), Unit::RemoveAurasByType(), SPELL_AURA_FEIGN_DEATH, and UNIT_STATE_DIED.
Referenced by Player::ActivateTaxiPathTo(), and Player::ContinueTaxiFlight().
| void WorldSession::SendEnchantmentLog | ( | ObjectGuid | target, |
| ObjectGuid | caster, | ||
| uint32 | itemId, | ||
| uint32 | enchantId | ||
| ) |
Definition at line 735 of file ItemHandler.cpp.
References GetPlayer(), Player::SendMessageToSet(), SMSG_ENCHANTMENTLOG, and ObjectGuid::WriteAsPacked().
Referenced by Item::SetEnchantment().
| void WorldSession::SendFeatureSystemStatus | ( | ) |
Definition at line 1002 of file CharacterHandler.cpp.
References COMPLAINT_ENABLED_WITH_AUTO_IGNORE, WorldPackets::System::FeatureSystemStatus::ComplaintStatus, SendPacket(), WorldPackets::System::FeatureSystemStatus::VoiceEnabled, and WorldPackets::System::FeatureSystemStatus::Write().
Referenced by HandlePlayerLogin().
| void WorldSession::SendItemEnchantTimeUpdate | ( | ObjectGuid | Playerguid, |
| ObjectGuid | Itemguid, | ||
| uint32 | slot, | ||
| uint32 | Duration | ||
| ) |
Definition at line 745 of file ItemHandler.cpp.
References SendPacket(), and SMSG_ITEM_ENCHANT_TIME_UPDATE.
Referenced by Player::AddEnchantmentDuration(), and Player::SendEnchantmentDurations().
| bool WorldSession::SendLearnNewTaxiNode | ( | Creature * | unit | ) |
Definition at line 127 of file TaxiHandler.cpp.
References Object::GetGUID(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), SendPacket(), SMSG_NEW_TAXI_PATH, SMSG_TAXINODE_STATUS, and sObjectMgr.
Referenced by HandleTaxiQueryAvailableNodes().
| void WorldSession::SendLfgBootProposalUpdate | ( | lfg::LfgPlayerBoot const & | boot | ) |
Definition at line 524 of file LFGHandler.cpp.
References lfg::LfgPlayerBoot::cancelTime, GameTime::GetGameTime(), Object::GetGUID(), GetPlayer(), GetPlayerInfo(), lfg::LfgPlayerBoot::inProgress, lfg::LFG_ANSWER_AGREE, lfg::LFG_ANSWER_PENDING, lfg::LFG_GROUP_KICK_VOTES_NEEDED, lfg::LfgPlayerBoot::reason, SendPacket(), SMSG_LFG_BOOT_PROPOSAL_UPDATE, TC_LOG_DEBUG, ObjectGuid::ToString(), lfg::LfgPlayerBoot::victim, and lfg::LfgPlayerBoot::votes.
| void WorldSession::SendLfgDisabled | ( | ) |
Definition at line 619 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), SMSG_LFG_DISABLED, and TC_LOG_DEBUG.
| void WorldSession::SendLfgJoinResult | ( | lfg::LfgJoinResultData const & | joinData | ) |
Definition at line 450 of file LFGHandler.cpp.
References BuildPartyLockDungeonBlock(), GetPlayerInfo(), lfg::LfgJoinResultData::lockmap, lfg::LfgJoinResultData::result, SendPacket(), SMSG_LFG_JOIN_RESULT, lfg::LfgJoinResultData::state, and TC_LOG_DEBUG.
Referenced by lfg::LFGMgr::JoinLfg().
| void WorldSession::SendLfgLfrList | ( | bool | update | ) |
Definition at line 610 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), SMSG_LFG_UPDATE_SEARCH, and TC_LOG_DEBUG.
Referenced by lfg::LFGPlayerScript::OnLogout().
| void WorldSession::SendLfgOfferContinue | ( | uint32 | dungeonEntry | ) |
Definition at line 626 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), SMSG_LFG_OFFER_CONTINUE, and TC_LOG_DEBUG.
| void WorldSession::SendLfgPartyLockInfo | ( | ) |
Definition at line 238 of file LFGHandler.cpp.
References BuildPartyLockDungeonBlock(), Group::GetFirstMember(), Player::GetGroup(), Object::GetGUID(), GetPlayer(), GetPlayerInfo(), SendPacket(), sLFGMgr, SMSG_LFG_PARTY_INFO, and TC_LOG_DEBUG.
Referenced by HandleLfgPartyLockInfoRequestOpcode().
| void WorldSession::SendLfgPlayerLockInfo | ( | ) |
Definition at line 162 of file LFGHandler.cpp.
References BuildPlayerLockDungeonBlock(), Player::CanRewardQuest(), lfg::LfgReward::firstQuest, ItemTemplate::GetDisplayId(), GetExpansion(), Object::GetGUID(), Unit::GetLevel(), GetPlayer(), GetPlayerInfo(), Quest::GetRewItemsCount(), Quest::GetRewOrReqMoney(), lfg::LfgReward::otherQuest, QUEST_REWARD_ITEM_COUNT, Quest::RewardItemCount, Quest::RewardItemId, SendPacket(), sLFGMgr, SMSG_LFG_PLAYER_INFO, sObjectMgr, and TC_LOG_DEBUG.
Referenced by HandleLfgPlayerLockInfoRequestOpcode().
| void WorldSession::SendLfgPlayerReward | ( | lfg::LfgPlayerRewardData const & | lfgPlayerRewardData | ) |
Definition at line 490 of file LFGHandler.cpp.
References lfg::LfgPlayerRewardData::done, ItemTemplate::GetDisplayId(), GetPlayer(), GetPlayerInfo(), Quest::GetRewItemsCount(), Quest::GetRewOrReqMoney(), lfg::LfgPlayerRewardData::quest, QUEST_REWARD_ITEM_COUNT, lfg::LfgPlayerRewardData::rdungeonEntry, Quest::RewardItemCount, Quest::RewardItemId, lfg::LfgPlayerRewardData::sdungeonEntry, SendPacket(), SMSG_LFG_PLAYER_REWARD, sObjectMgr, and TC_LOG_DEBUG.
Referenced by lfg::LFGMgr::FinishDungeon().
| void WorldSession::SendLfgQueueStatus | ( | lfg::LfgQueueStatusData const & | queueData | ) |
Definition at line 467 of file LFGHandler.cpp.
References lfg::LfgQueueStatusData::dps, lfg::LfgQueueStatusData::dungeonId, GetPlayer(), GetPlayerInfo(), lfg::GetStateString(), lfg::LfgQueueStatusData::healers, lfg::LfgQueueStatusData::queuedTime, SendPacket(), sLFGMgr, SMSG_LFG_QUEUE_STATUS, lfg::LfgQueueStatusData::tanks, TC_LOG_DEBUG, lfg::LfgQueueStatusData::waitTime, lfg::LfgQueueStatusData::waitTimeAvg, lfg::LfgQueueStatusData::waitTimeDps, lfg::LfgQueueStatusData::waitTimeHealer, and lfg::LfgQueueStatusData::waitTimeTank.
| void WorldSession::SendLfgRoleCheckUpdate | ( | lfg::LfgRoleCheck const & | pRoleCheck | ) |
Definition at line 403 of file LFGHandler.cpp.
References lfg::LfgRoleCheck::dungeons, ObjectAccessor::FindConnectedPlayer(), Unit::GetLevel(), GetPlayerInfo(), lfg::LfgRoleCheck::leader, lfg::LFG_ROLECHECK_INITIALITING, lfg::LfgRoleCheck::rDungeonId, lfg::LfgRoleCheck::roles, SendPacket(), sLFGMgr, SMSG_LFG_ROLE_CHECK_UPDATE, lfg::LfgRoleCheck::state, and TC_LOG_DEBUG.
| void WorldSession::SendLfgRoleChosen | ( | ObjectGuid | guid, |
| uint8 | roles | ||
| ) |
Definition at line 391 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), SMSG_LFG_ROLE_CHOSEN, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by lfg::LFGMgr::SendLfgRoleChosen().
| void WorldSession::SendLfgTeleportError | ( | uint8 | err | ) |
Definition at line 635 of file LFGHandler.cpp.
References GetPlayerInfo(), SendPacket(), SMSG_LFG_TELEPORT_DENIED, and TC_LOG_DEBUG.
Referenced by lfg::LFGMgr::TeleportPlayer().
| void WorldSession::SendLfgUpdateParty | ( | lfg::LfgUpdateData const & | updateData | ) |
Definition at line 347 of file LFGHandler.cpp.
References lfg::LfgUpdateData::comment, lfg::LfgUpdateData::dungeons, GetPlayerInfo(), lfg::LFG_STATE_NONE, lfg::LFG_STATE_QUEUED, lfg::LFG_STATE_ROLECHECK, lfg::LFG_UPDATETYPE_ADDED_TO_QUEUE, lfg::LFG_UPDATETYPE_PROPOSAL_BEGIN, lfg::LFG_UPDATETYPE_UPDATE_STATUS, SendPacket(), SMSG_LFG_UPDATE_PARTY, lfg::LfgUpdateData::state, TC_LOG_DEBUG, and lfg::LfgUpdateData::updateType.
Referenced by HandleLfgGetStatus().
| void WorldSession::SendLfgUpdatePlayer | ( | lfg::LfgUpdateData const & | updateData | ) |
Definition at line 310 of file LFGHandler.cpp.
References lfg::LfgUpdateData::comment, lfg::LfgUpdateData::dungeons, GetPlayerInfo(), lfg::LFG_STATE_QUEUED, lfg::LFG_UPDATETYPE_ADDED_TO_QUEUE, lfg::LFG_UPDATETYPE_JOIN_QUEUE, lfg::LFG_UPDATETYPE_UPDATE_STATUS, SendPacket(), SMSG_LFG_UPDATE_PLAYER, lfg::LfgUpdateData::state, TC_LOG_DEBUG, and lfg::LfgUpdateData::updateType.
Referenced by HandleLfgGetStatus(), and lfg::LFGMgr::JoinLfg().
| void WorldSession::SendLfgUpdateProposal | ( | lfg::LfgProposal const & | proposal | ) |
Definition at line 559 of file LFGHandler.cpp.
References lfg::LfgProposalPlayer::accept, lfg::LfgProposal::dungeonId, lfg::LfgProposal::encounters, Object::GetGUID(), GetPlayer(), GetPlayerInfo(), lfg::LfgProposalPlayer::group, lfg::LfgProposal::group, lfg::LfgProposal::id, lfg::LfgProposal::isNew, lfg::LFG_ANSWER_AGREE, lfg::LFG_ANSWER_PENDING, lfg::LfgProposal::players, lfg::LfgProposalPlayer::role, SendPacket(), sLFGMgr, SMSG_LFG_PROPOSAL_UPDATE, lfg::LfgProposal::state, and TC_LOG_DEBUG.
| void WorldSession::SendListInventory | ( | ObjectGuid | guid | ) |
Definition at line 570 of file ItemHandler.cpp.
References _player, ALLIANCE, AsUnderlyingType(), BIND_WHEN_PICKED_UP, WorldPackets::NPC::VendorItem::Durability, Empty, ObjectGuid::Empty, VendorItem::ExtendedCost, WorldPackets::NPC::VendorItem::ExtendedCostID, ItemTemplate::GetAllowableClass(), ItemTemplate::GetBonding(), ItemTemplate::GetBuyCount(), ItemTemplate::GetBuyPrice(), Unit::GetClassMask(), ItemTemplate::GetDisplayId(), Object::GetEntry(), Object::GetGUID(), CreatureMovementData::GetInteractionPauseTimer(), VendorItemData::GetItem(), VendorItemData::GetItemCount(), Creature::GetMovementTemplate(), Player::GetNPCIfCanInteractWith(), GetPlayer(), Position::GetPosition(), Player::GetReputationPriceDiscount(), Player::GetTeam(), Creature::GetVendorItemCurrentCount(), Creature::GetVendorItems(), ItemTemplate::HasFlag(), HORDE, Player::IsGameMaster(), VendorItem::IsGoldRequired(), VendorItem::item, WorldPackets::NPC::VendorItem::Item, ITEM_FLAG2_FACTION_ALLIANCE, ITEM_FLAG2_FACTION_HORDE, WorldPackets::NPC::VendorItem::ItemDisplayInfoID, WorldPackets::NPC::VendorInventory::Items, MAX_VENDOR_ITEMS, VendorItem::maxcount, ItemTemplate::MaxDurability, WorldPackets::NPC::VendorItem::MuID, Unit::PauseMovement(), WorldPackets::NPC::VendorItem::Price, WorldPackets::NPC::VendorItem::Quantity, WorldPackets::NPC::VendorInventory::Reason, Unit::RemoveAurasByType(), sConditionMgr, SELL_ERR_CANT_FIND_VENDOR, SendPacket(), Player::SendSellError(), Creature::SetHomePosition(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, WorldPackets::NPC::VendorItem::StackCount, TC_LOG_DEBUG, ObjectGuid::ToString(), UNIT_NPC_FLAG_VENDOR, UNIT_STATE_DIED, WorldPackets::NPC::VendorInventory::Vendor, and WorldPackets::NPC::VendorInventory::Write().
Referenced by HandleListInventoryOpcode(), npc_lokhtos_darkbargainer::npc_lokhtos_darkbargainerAI::OnGossipSelect(), npc_innkeeper::npc_innkeeperAI::OnGossipSelect(), Player::OnGossipSelect(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), npc_prof_leather::npc_prof_leatherAI::SendActionMenu(), npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
| void WorldSession::SendNameQueryOpcode | ( | ObjectGuid | guid | ) |
Definition at line 36 of file QueryHandler.cpp.
References WorldPackets::Query::PlayerGuidLookupData::ClassID, WorldPackets::Query::QueryPlayerNameResponse::Data, WorldPackets::Query::PlayerGuidLookupData::DeclinedNames, ObjectAccessor::FindConnectedPlayer(), WorldPackets::Query::PlayerGuidLookupData::Name, WorldPackets::Query::QueryPlayerNameResponse::Player, WorldPackets::Query::PlayerGuidLookupData::Race, RESPONSE_FAILURE, RESPONSE_SUCCESS, WorldPackets::Query::QueryPlayerNameResponse::Result, sCharacterCache, SendPacket(), WorldPackets::Query::PlayerGuidLookupData::Sex, and WorldPackets::Query::QueryPlayerNameResponse::Write().
Referenced by HandleNameQueryOpcode(), and lfg::LFGPlayerScript::OnMapChanged().
| void WorldSession::SendNotification | ( | char const * | format, |
| ... | |||
| ) |
Definition at line 670 of file WorldSession.cpp.
References SendPacket(), and SMSG_NOTIFICATION.
Referenced by Spell::EffectPlaySound(), HandleBattlemasterHelloOpcode(), HandleChatMessage(), misc_commandscript::HandleDevCommand(), gm_commandscript::HandleGMOffCommand(), gm_commandscript::HandleGMOnCommand(), HandleGMTicketCreateOpcode(), gm_commandscript::HandleGMVisibleCommand(), HandleInitiateTradeOpcode(), HandlePlayerLogin(), HandleSendMail(), HandleTextEmoteOpcode(), HandleWhoIsOpcode(), HandleWorldTeleportOpcode(), go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI::OnGossipHello(), go_amberpine_outhouse::go_amberpine_outhouseAI::OnGossipSelect(), item_defias_gunpowder::OnUse(), and SendAuctionHello().
| void WorldSession::SendNotification | ( | uint32 | stringId, |
| ... | |||
| ) |
Definition at line 687 of file WorldSession.cpp.
References GetTrinityString(), SendPacket(), and SMSG_NOTIFICATION.
| void WorldSession::SendNotInArenaTeamPacket | ( | uint8 | type | ) |
Definition at line 426 of file ArenaTeamHandler.cpp.
References SendPacket(), and SMSG_ARENA_ERROR.
Referenced by HandleBattlemasterJoinArena().
| void WorldSession::SendPacket | ( | WorldPacket const * | packet | ) |
Send a packet to the client.
Definition at line 204 of file WorldSession.cpp.
References ASSERT, WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayerInfo(), m_Socket, NULL_OPCODE, ByteBuffer::size(), sScriptMgr, TC_LOG_DEBUG, TC_LOG_TRACE, and ByteBuffer::wpos().
Referenced by SocialMgr::BroadcastToFriendListers(), Player::BuildPlayerRepop(), Unit::DestroyForPlayer(), HandleAuctionListBidderItems(), HandleAuctionListItems(), HandleAuctionListOwnerItems(), HandleAuctionListPendingSales(), HandleBattleFieldPortOpcode(), HandleBattlegroundPlayerPositionsOpcode(), HandleBattlemasterJoinArena(), HandleBattlemasterJoinOpcode(), HandleBuyBankSlotOpcode(), HandleCalendarGetCalendar(), HandleCalendarGetNumPending(), HandleCharEnum(), HandleComplainOpcode(), HandleCreatureQueryOpcode(), debug_commandscript::HandleDebugSendChannelNotifyCommand(), debug_commandscript::HandleDebugSendChatMsgCommand(), debug_commandscript::HandleDebugSendSpellFailCommand(), HandleEquipmentSetUse(), HandleGameObjectQueryOpcode(), HandleGetMailList(), HandleGMResponseResolve(), HandleGMTicketCreateOpcode(), HandleGMTicketDeleteOpcode(), HandleGMTicketSystemStatusOpcode(), HandleGMTicketUpdateOpcode(), HandleGrantLevel(), HandleInspectOpcode(), HandleItemNameQueryOpcode(), HandleItemQuerySingleOpcode(), HandleItemTextQuery(), HandleJoinChannel(), HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), HandleLootMoneyOpcode(), HandleMirrorImageDataRequest(), HandleNpcTextQueryOpcode(), HandlePetitionRenameGuild(), HandlePlayedTime(), HandlePlayerLogin(), HandlePVPLogDataOpcode(), Guild::HandleQuery(), HandleQueryCorpseLocation(), HandleQueryCorpseTransport(), HandleQueryNextMailTime(), HandleQueryPageText(), HandleQueryQuestsCompleted(), HandleQuestPOIQuery(), HandleReadItem(), HandleRealmSplitOpcode(), HandleRequestAccountData(), HandleRequestBattlefieldStatusOpcode(), HandleRequestHonorStats(), HandleRequestPartyMemberStatsOpcode(), Guild::HandleRoster(), HandleSignPetition(), HandleTurnInPetitionOpcode(), HandleUITimeRequest(), HandleUpdateAccountData(), HandleWhoIsOpcode(), HandleWhoOpcode(), WardenWin::InitializeModule(), ArenaTeam::Inspect(), LogoutPlayer(), ArenaTeam::MassInviteToEvent(), Guild::MassInviteToEvent(), ArenaTeam::Query(), Player::RepopAtGraveyard(), WardenMac::RequestChecks(), WardenWin::RequestChecks(), WardenMac::RequestHash(), WardenWin::RequestHash(), Warden::RequestModule(), Player::ResurrectPlayer(), ArenaTeam::Roster(), AddonChannelCommandHandler::Send(), SendAccountDataTimes(), SendActivateTaxiReply(), SendAddonsInfo(), SendAreaTriggerMessage(), SendArenaTeamCommandResult(), SendAuctionBidderNotification(), SendAuctionCommandResult(), SendAuctionHello(), SendAuctionOwnerNotification(), SendAuctionRemovedNotification(), SendAuthResponse(), SendAuthWaitQueue(), Guild::SendBankList(), Guild::SendBankLog(), SendBarberShopResult(), SendBfEntered(), SendBfInvitePlayerToQueue(), SendBfInvitePlayerToWar(), SendBfLeaveMessage(), SendBfQueueInviteResponse(), SendBindPoint(), SendCalendarRaidLockoutAdded(), SendCalendarRaidLockoutRemoved(), SendCalendarRaidLockoutUpdated(), SendCharCreate(), SendCharCustomize(), SendCharDelete(), SendCharFactionChange(), SendCharRename(), SendChatRestrictedNotice(), SendClientCacheVersion(), PlayerMenu::SendCloseGossip(), Guild::SendCommandResult(), Player::SendCorpseReclaimDelay(), Player::SendDirectMessage(), SendDiscoverNewTaxiNode(), Guild::SendEventLog(), SendFeatureSystemStatus(), World::SendGlobalGMMessage(), PlayerMenu::SendGossipMenu(), Guild::SendInfo(), SendItemEnchantTimeUpdate(), SendLearnNewTaxiNode(), SendLfgBootProposalUpdate(), SendLfgDisabled(), SendLfgJoinResult(), SendLfgLfrList(), SendLfgOfferContinue(), SendLfgPartyLockInfo(), SendLfgPlayerLockInfo(), SendLfgPlayerReward(), SendLfgQueueStatus(), SendLfgRoleCheckUpdate(), SendLfgRoleChosen(), SendLfgTeleportError(), SendLfgUpdateParty(), SendLfgUpdatePlayer(), SendLfgUpdateProposal(), SendListInventory(), Guild::SendLoginInfo(), Warden::SendModuleToClient(), Guild::SendMoneyInfo(), SendNameQueryOpcode(), SendNotification(), SendNotification(), SendNotInArenaTeamPacket(), SendPartyResult(), Guild::SendPermissions(), SendPetitionQueryOpcode(), SendPetitionShowList(), SendPetNameInvalid(), SendPetStableResult(), SendPlayerAmbiguousNotice(), SendPlayerNotFoundNotice(), PlayerMenu::SendPointOfInterest(), SendQueryTimeResponse(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverQuestList(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestGiverStatus(), PlayerMenu::SendQuestQueryResponse(), GmTicket::SendResponse(), Guild::SendSaveEmblemResult(), SendSetPhaseShift(), SendSetPlayerDeclinedNamesResult(), SendShowBank(), SendShowMailBox(), SendStablePet(), ArenaTeam::SendStats(), ChatHandler::SendSysMessage(), SendTabardVendorActivate(), Group::SendTargetIconList(), SendTaxiMenu(), SendTaxiStatus(), Guild::BankTab::SendText(), TicketMgr::SendTicket(), SendTimeSync(), SendTradeStatus(), SendTutorialsData(), SendUpdateTrade(), and SendWrongFactionNotice().
| void WorldSession::SendPartyResult | ( | PartyOperation | operation, |
| std::string const & | member, | ||
| PartyResult | res, | ||
| uint32 | val = 0 |
||
| ) |
Definition at line 51 of file GroupHandler.cpp.
References SendPacket(), and SMSG_PARTY_COMMAND_RESULT.
Referenced by HandleGroupAcceptOpcode(), HandleGroupDisbandOpcode(), HandleGroupInviteOpcode(), HandleGroupRaidConvertOpcode(), HandleGroupUninviteGuidOpcode(), and HandleGroupUninviteOpcode().
| void WorldSession::SendPetitionQueryOpcode | ( | ObjectGuid | petitionguid | ) |
Definition at line 272 of file PetitionsHandler.cpp.
References CONFIG_MIN_PETITION_SIGNS, ObjectGuid::GetCounter(), GUILD_CHARTER_TYPE, Petition::OwnerGuid, Petition::PetitionName, Petition::PetitionType, SendPacket(), SMSG_PETITION_QUERY_RESPONSE, sPetitionMgr, sWorld, TC_LOG_DEBUG, and ObjectGuid::ToString().
Referenced by HandleQueryPetition().
| void WorldSession::SendPetitionShowList | ( | ObjectGuid | guid | ) |
Definition at line 757 of file PetitionsHandler.cpp.
References ARENA_TEAM_CHARTER_2v2, ARENA_TEAM_CHARTER_3v3, ARENA_TEAM_CHARTER_5v5, CHARTER_DISPLAY_ID, CONFIG_CHARTER_COST_ARENA_2v2, CONFIG_CHARTER_COST_ARENA_3v3, CONFIG_CHARTER_COST_ARENA_5v5, CONFIG_CHARTER_COST_GUILD, CONFIG_MIN_PETITION_SIGNS, Player::GetNPCIfCanInteractWith(), GetPlayer(), GUILD_CHARTER, Unit::IsTabardDesigner(), SendPacket(), SMSG_PETITION_SHOWLIST, sWorld, TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_NPC_FLAG_PETITIONER.
Referenced by HandlePetitionShowListOpcode(), and Player::OnGossipSelect().
Definition at line 241 of file PetitionsHandler.cpp.
References ObjectGuid::GetCounter(), Petition::OwnerGuid, Petition::PetitionGuid, Player::SendDirectMessage(), Petition::Signatures, and SMSG_PETITION_SHOW_SIGNATURES.
Referenced by HandleOfferPetitionOpcode(), and HandlePetitionShowSignatures().
| void WorldSession::SendPetNameInvalid | ( | uint32 | error, |
| std::string const & | name, | ||
| DeclinedName * | declinedName | ||
| ) |
Definition at line 824 of file PetHandler.cpp.
References MAX_DECLINED_NAME_CASES, DeclinedName::name, SendPacket(), and SMSG_PET_NAME_INVALID.
Referenced by HandlePetRename().
| void WorldSession::SendPetStableResult | ( | uint8 | guid | ) |
Definition at line 364 of file NPCHandler.cpp.
References SendPacket(), and SMSG_STABLE_RESULT.
Referenced by HandleBuyStableSlot(), HandleStablePet(), HandleStableSwapPet(), and HandleUnstablePet().
| void WorldSession::SendPlayerAmbiguousNotice | ( | std::string const & | name | ) |
Definition at line 657 of file ChatHandler.cpp.
References SendPacket(), and SMSG_CHAT_PLAYER_AMBIGUOUS.
| void WorldSession::SendPlayerNotFoundNotice | ( | std::string const & | name | ) |
Definition at line 650 of file ChatHandler.cpp.
References SendPacket(), and SMSG_CHAT_PLAYER_NOT_FOUND.
Referenced by HandleChatMessage().
| void WorldSession::SendQueryPetNameResponse | ( | ObjectGuid | guid, |
| uint32 | petnumber | ||
| ) |
Definition at line 402 of file PetHandler.cpp.
References _player, ObjectAccessor::GetCreatureOrPetOrVehicle(), WorldObject::GetName(), Object::GetUInt32Value(), Unit::IsPet(), MAX_DECLINED_NAME_CASES, Player::SendDirectMessage(), SMSG_PET_NAME_QUERY_RESPONSE, and UNIT_FIELD_PET_NAME_TIMESTAMP.
Referenced by HandleQueryPetName().
| void WorldSession::SendQueryTimeResponse | ( | ) |
Definition at line 70 of file QueryHandler.cpp.
References WorldPackets::Query::QueryTimeResponse::CurrentTime, GameTime::GetGameTime(), SendPacket(), sWorld, WorldPackets::Query::QueryTimeResponse::TimeOutRequest, and WorldPackets::Query::QueryTimeResponse::Write().
Referenced by HandleGMTicketGetTicketOpcode(), and HandleQueryTimeOpcode().
| void WorldSession::SendSetPhaseShift | ( | uint32 | phaseShift | ) |
Definition at line 1186 of file MiscHandler.cpp.
References SendPacket(), and SMSG_SET_PHASE_SHIFT.
Referenced by debug_commandscript::HandleDebugSendSetPhaseShiftCommand().
| void WorldSession::SendSetPlayerDeclinedNamesResult | ( | DeclinedNameResult | result, |
| ObjectGuid | guid | ||
| ) |
Definition at line 2174 of file CharacterHandler.cpp.
References SendPacket(), and SMSG_SET_PLAYER_DECLINED_NAMES_RESULT.
Referenced by HandleSetPlayerDeclinedNames().
| void WorldSession::SendShowBank | ( | ObjectGuid | guid | ) |
Definition at line 183 of file BankHandler.cpp.
References WorldPackets::Bank::ShowBank::Banker, m_currentBankerGUID, SendPacket(), and WorldPackets::Bank::ShowBank::Write().
Referenced by misc_commandscript::HandleBankCommand(), HandleBankerActivateOpcode(), and Player::OnGossipSelect().
| void WorldSession::SendShowMailBox | ( | ObjectGuid | guid | ) |
Definition at line 83 of file NPCHandler.cpp.
References WorldPackets::Mail::ShowMailbox::PostmasterGUID, SendPacket(), and WorldPackets::Mail::ShowMailbox::Write().
Referenced by misc_commandscript::HandleMailBoxCommand(), and npc_argent_squire_gruntling::npc_argent_squire_gruntlingAI::OnGossipSelect().
| void WorldSession::SendSpiritResurrect | ( | ) |
Definition at line 213 of file NPCHandler.cpp.
References _player, WorldSafeLocsEntry::Continent, Player::DurabilityLossAll(), Player::GetCorpseLocation(), WorldLocation::GetMapId(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeam(), Player::HasCorpse(), WorldSafeLocsEntry::Loc, Player::ResurrectPlayer(), sObjectMgr, Player::SpawnCorpseBones(), Player::TeleportTo(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by HandleSpiritHealerActivateOpcode().
| void WorldSession::SendStablePet | ( | ObjectGuid | guid | ) |
Definition at line 300 of file NPCHandler.cpp.
References PetStable::PetInfo::CreatureId, PetStable::CurrentPet, Player::GetPetStable(), GetPlayer(), PetStable::GetUnslottedHunterPet(), PetStable::PetInfo::Level, PetStable::MaxStabledPets, MSG_LIST_STABLED_PETS, PetStable::PetInfo::Name, PetStable::PetInfo::PetNumber, ByteBuffer::put(), SendPacket(), PetStable::StabledPets, TC_LOG_DEBUG, and ByteBuffer::wpos().
Referenced by AuraEffect::HandleAuraOpenStable(), HandleRequestStabledPets(), and Player::OnGossipSelect().
| void WorldSession::SendTabardVendorActivate | ( | ObjectGuid | guid | ) |
Definition at line 76 of file NPCHandler.cpp.
References MSG_TABARDVENDOR_ACTIVATE, and SendPacket().
Referenced by HandleTabardVendorActivateOpcode(), and Player::OnGossipSelect().
| void WorldSession::SendTaxiMenu | ( | Creature * | unit | ) |
Definition at line 90 of file TaxiHandler.cpp.
References PlayerTaxi::AppendTaximaskTo(), Object::GetEntry(), Object::GetGUID(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::isTaxiCheater(), Player::m_taxi, SendPacket(), Player::SetTaxiCheater(), SMSG_SHOWTAXINODES, sObjectMgr, and TC_LOG_DEBUG.
Referenced by HandleTaxiQueryAvailableNodes(), and Player::OnGossipSelect().
| void WorldSession::SendTaxiStatus | ( | ObjectGuid | guid | ) |
Definition at line 42 of file TaxiHandler.cpp.
References ObjectAccessor::GetCreature(), WorldLocation::GetMapId(), GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetTeam(), Unit::HasNpcFlag(), WorldObject::IsHostileTo(), PlayerTaxi::IsTaximaskNodeKnown(), Player::m_taxi, SendPacket(), SMSG_TAXINODE_STATUS, sObjectMgr, TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_NPC_FLAG_FLIGHTMASTER.
Referenced by HandleTaxiNodeStatusQueryOpcode().
| void WorldSession::SendTimeSync | ( | ) |
Definition at line 1517 of file WorldSession.cpp.
References _pendingTimeSyncRequests, _timeSyncNextCounter, _timeSyncTimer, getMSTime(), SendPacket(), WorldPackets::Misc::TimeSyncRequest::SequenceIndex, and WorldPackets::Misc::TimeSyncRequest::Write().
Referenced by Player::SendInitialPacketsAfterAddToMap(), and Update().
| void WorldSession::SendTradeStatus | ( | TradeStatusInfo const & | status | ) |
Definition at line 35 of file TradeHandler.cpp.
References TradeStatusInfo::IsTargetResult, TradeStatusInfo::ItemLimitCategoryId, TradeStatusInfo::Result, SendPacket(), TradeStatusInfo::Slot, SMSG_TRADE_STATUS, TradeStatusInfo::Status, TRADE_STATUS_BEGIN_TRADE, TRADE_STATUS_CLOSE_WINDOW, TRADE_STATUS_NOT_ON_TAPLIST, TRADE_STATUS_OPEN_WINDOW, TRADE_STATUS_WRONG_REALM, and TradeStatusInfo::TraderGuid.
Referenced by HandleAcceptTradeOpcode(), HandleBeginTradeOpcode(), HandleInitiateTradeOpcode(), HandleSetTradeItemOpcode(), SendCancelTrade(), TradeData::SetAccepted(), and TradeData::SetMoney().
| void WorldSession::SendTrainerList | ( | Creature * | npc | ) |
Definition at line 102 of file NPCHandler.cpp.
References _player, Object::GetEntry(), Object::GetGUID(), GetPlayer(), GetPlayerInfo(), GetSessionDbLocaleIndex(), Trainer::Trainer::IsTrainerValidForPlayer(), Unit::RemoveAurasByType(), Trainer::Trainer::SendSpells(), sObjectMgr, SPELL_AURA_FEIGN_DEATH, TC_LOG_DEBUG, ObjectGuid::ToString(), and UNIT_STATE_DIED.
Referenced by HandleTrainerListOpcode(), Player::OnGossipSelect(), npc_prof_blacksmith::npc_prof_blacksmithAI::SendActionMenu(), npc_prof_leather::npc_prof_leatherAI::SendActionMenu(), npc_prof_tailor::npc_prof_tailorAI::SendActionMenu(), and npc_prof_alchemy::npc_prof_alchemyAI::SendActionMenu().
| void WorldSession::SendTutorialsData | ( | ) |
Definition at line 852 of file WorldSession.cpp.
References _tutorials, SendPacket(), WorldPackets::Misc::TutorialFlags::TutorialData, and WorldPackets::Misc::TutorialFlags::Write().
Referenced by InitializeSessionCallback().
| void WorldSession::SendUpdateTrade | ( | bool | trader_data = true | ) |
Definition at line 74 of file TradeHandler.cpp.
References _player, TradeData::GetItem(), TradeData::GetMoney(), TradeData::GetSpell(), Player::GetTradeData(), TradeData::GetTraderData(), ITEM_FIELD_CREATOR, ITEM_FIELD_DURABILITY, ITEM_FIELD_GIFTCREATOR, ITEM_FIELD_MAXDURABILITY, MAX_GEM_SOCKETS, PERM_ENCHANTMENT_SLOT, SendPacket(), SMSG_TRADE_STATUS_EXTENDED, SOCK_ENCHANTMENT_SLOT, and TRADE_SLOT_COUNT.
Referenced by TradeData::Update().
| void WorldSession::SendWrongFactionNotice | ( | ) |
Definition at line 664 of file ChatHandler.cpp.
References SendPacket(), and SMSG_CHAT_WRONG_FACTION.
Referenced by HandleChatMessage().
| void WorldSession::SetAccountData | ( | AccountDataType | type, |
| time_t | time, | ||
| std::string const & | data | ||
| ) |
Definition at line 796 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::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and AccountData::Time.
Referenced by HandleUpdateAccountData().
|
inline |
Definition at line 762 of file WorldSession.h.
Referenced by HandleCalendarAddEvent(), and HandleCalendarCopyEvent().
|
inline |
Session in auth.queue currently.
Definition at line 609 of file WorldSession.h.
Referenced by World::AddQueuedPlayer(), InitializeSessionCallback(), and World::RemoveQueuedPlayer().
|
inline |
Definition at line 743 of file WorldSession.h.
Referenced by WorldSocket::HandlePing().
|
inline |
Engage the logout process for the user.
Definition at line 615 of file WorldSession.h.
Referenced by HandleLogoutCancelOpcode(), HandleLogoutRequestOpcode(), and LogoutPlayer().
| void WorldSession::SetPlayer | ( | Player * | player | ) |
Definition at line 1053 of file WorldSession.cpp.
References _player, ObjectGuid::GetCounter(), Object::GetGUID(), and m_GUIDLow.
Referenced by HandlePlayerLogin(), Player::LoadFromDB(), and LogoutPlayer().
|
inline |
Definition at line 599 of file WorldSession.h.
Definition at line 679 of file WorldSession.h.
References TUTORIALS_FLAG_CHANGED.
Referenced by HandleTutorialClear(), HandleTutorialFlag(), and HandleTutorialReset().
|
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 276 of file WorldSession.cpp.
References _player, _recvQueue, _timeSyncTimer, _warden, AntiDOS, ClientOpcodeHandler::Call(), CMSG_CHAR_ENUM, CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, WorldSession::DosProtection::EvaluateOpcode(), expireTime, forceExit, GetAccountId(), GameTime::GetGameTime(), WorldPackets::InvalidStringValueException::GetInvalidValue(), WorldPacket::GetOpcode(), GetOpcodeNameForLogging(), GetPlayer(), GetPlayerInfo(), GetRemoteAddress(), HasPermission(), ByteBuffer::hexlike(), IsConnectionIdle(), Object::IsInWorld(), KickPlayer(), LogoutPlayer(), LogUnexpectedOpcode(), LogUnprocessedTail(), m_inQueue, m_playerLoading, m_playerLogout, m_playerRecentlyLogout, m_Socket, OpcodeHandler::Name, LockedQueue< T, StorageType >::next(), opcodeTable, ProcessQueryCallbacks(), PacketFilter::ProcessUnsafe(), rbac::RBAC_PERM_IGNORE_IDLE_CONNECTION, LockedQueue< T, StorageType >::readd(), SendTimeSync(), ShouldLogOut(), sScriptMgr, OpcodeHandler::Status, STATUS_AUTHED, 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 912 of file WorldSession.cpp.
References _instanceResetTimes, CONFIG_MAX_INSTANCES_PER_HOUR, sWorld, and UpdateInstanceEnterTimes().
Referenced by MapManager::PlayerCannotEnter().
| void WorldSession::UpdateInstanceEnterTimes | ( | ) |
Definition at line 930 of file WorldSession.cpp.
References _instanceResetTimes, Trinity::Containers::EraseIf(), and GameTime::GetSystemTime().
Referenced by UpdateAndCheckInstanceCount().
|
private |
Definition at line 142 of file MovementHandler.cpp.
References _player, GameClient::GetActivelyMovedUnit(), GetGameClient(), Object::GetGUID(), Object::GetGUID(), GetOpcodeNameForLogging(), GetPlayerInfo(), ObjectAccessor::GetUnit(), GameClient::IsAllowedToMove(), and TC_LOG_DEBUG.
Referenced by HandleDismissControlledVehicle(), HandleMovementOpcode(), HandleMoveSplineDoneOpcode(), HandleMoveTeleportAck(), HandleMoveTimeSkippedOpcode(), and ReadMovementInfo().
| bool WorldSession::ValidateHyperlinksAndMaybeKick | ( | std::string const & | str | ) |
Definition at line 642 of file WorldSession.cpp.
References Trinity::Hyperlinks::CheckAllLinks(), CONFIG_CHAT_STRICT_LINK_CHECKING_KICK, GetPlayer(), KickPlayer(), sWorld, and TC_LOG_ERROR.
Referenced by HandleChatMessage(), HandleGMSurveySubmit(), HandleGMTicketCreateOpcode(), and HandleGMTicketUpdateOpcode().
| 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.
Cannot fly and fall at the same time
Definition at line 46 of file MovementHandler.cpp.
References Movement::MoveSpline::Finalized(), GetPlayer(), GetSecurity(), Unit::HasAuraType(), MovementInfo::HasMovementFlag(), Movement::MoveSpline::Initialized(), 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_ENABLED, MOVEMENTFLAG_STRAFE_LEFT, MOVEMENTFLAG_STRAFE_RIGHT, MOVEMENTFLAG_WATERWALKING, Unit::movespline, MovementInfo::pos, REMOVE_VIOLATING_FLAGS, SEC_PLAYER, SPELL_AURA_FEATHER_FALL, SPELL_AURA_FLY, SPELL_AURA_GHOST, SPELL_AURA_HOVER, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_WATER_WALK, and VEHICLE_FLAG_FIXED_POSITION.
Referenced by HandleDismissControlledVehicle(), HandleMovementOpcode(), and ReadMovementInfo().
|
static |
Definition at line 951 of file WorldSession.cpp.
References MovementInfo::guid, and ObjectGuid::WriteAsPacked().
Referenced by HandleMoveKnockBackAck().
|
friend |
Definition at line 1285 of file WorldSession.h.
|
private |
Definition at line 1362 of file WorldSession.h.
Referenced by LoadAccountData(), and SetAccountData().
|
private |
Definition at line 1345 of file WorldSession.h.
|
private |
Definition at line 1346 of file WorldSession.h.
Referenced by LoadPermissions(), and LoadPermissionsAsync().
|
private |
Referenced by ReadAddonsInfo(), and SendAddonsInfo().
|
private |
Definition at line 1392 of file WorldSession.h.
|
private |
Definition at line 1393 of file WorldSession.h.
Referenced by ~WorldSession().
|
private |
Definition at line 1366 of file WorldSession.h.
Referenced by AddInstanceEnterTime(), LoadInstanceTimeRestrictions(), SaveInstanceTimeRestrictions(), UpdateAndCheckInstanceCount(), and UpdateInstanceEnterTimes().
|
private |
Definition at line 1336 of file WorldSession.h.
Referenced by HandleCharEnum().
|
private |
Definition at line 1352 of file WorldSession.h.
Definition at line 1387 of file WorldSession.h.
Referenced by HandleTimeSyncResponse(), ResetTimeSync(), and SendTimeSync().
|
private |
Definition at line 1339 of file WorldSession.h.
Referenced by CanOpenMailBox(), DoLootRelease(), GetPlayerInfo(), GetPlayerName(), HandleAcceptGrantLevel(), HandleAcceptTradeOpcode(), HandleAddFriendOpcode(), HandleAlterAppearance(), HandleAreaSpiritHealerQueryOpcode(), HandleAreaSpiritHealerQueueOpcode(), HandleAreaTriggerOpcode(), HandleArenaTeamAcceptOpcode(), HandleArenaTeamDeclineOpcode(), HandleArenaTeamDisbandOpcode(), HandleArenaTeamLeaderOpcode(), HandleArenaTeamLeaveOpcode(), HandleArenaTeamRemoveOpcode(), HandleAttackSwingOpcode(), HandleAuctionListItems(), HandleAuctionListOwnerItems(), HandleAuctionSellItem(), HandleAutoBankItemOpcode(), HandleAutoEquipItemOpcode(), HandleAutoEquipItemSlotOpcode(), HandleAutoStoreBagItemOpcode(), HandleAutoStoreBankItemOpcode(), HandleAutostoreLootItemOpcode(), HandleBattlefieldLeaveOpcode(), HandleBattlefieldListOpcode(), HandleBattleFieldPortOpcode(), HandleBattlegroundPlayerPositionsOpcode(), HandleBattlemasterHelloOpcode(), HandleBattlemasterJoinArena(), HandleBattlemasterJoinOpcode(), HandleBeginTradeOpcode(), HandleBfEntryInviteResponse(), HandleBfQueueExitRequest(), HandleBfQueueInviteResponse(), HandleBusyTradeOpcode(), HandleBuybackItem(), HandleBuyBankSlotOpcode(), HandleBuyItemInSlotOpcode(), HandleBuyStableSlot(), HandleCalendarAddEvent(), HandleCalendarArenaTeam(), HandleCalendarComplain(), HandleCalendarCopyEvent(), HandleCalendarEventInvite(), HandleCalendarEventModeratorStatus(), HandleCalendarEventRemoveInvite(), HandleCalendarEventRsvp(), HandleCalendarEventSignup(), HandleCalendarEventStatus(), HandleCalendarGetCalendar(), HandleCalendarGetEvent(), HandleCalendarGetNumPending(), HandleCalendarGuildFilter(), HandleCalendarRemoveEvent(), HandleCalendarUpdateEvent(), HandleCancelAuraOpcode(), HandleCancelAutoRepeatSpellOpcode(), HandleCancelCastOpcode(), HandleCancelGrowthAuraOpcode(), HandleCancelMountAuraOpcode(), HandleCancelTradeOpcode(), HandleCastSpellOpcode(), HandleChatIgnoredOpcode(), HandleClearTradeItemOpcode(), HandleCompleteMovie(), HandleContactListOpcode(), HandleDeclinePetition(), HandleDestroyItemOpcode(), HandleDismissControlledVehicle(), HandleDismissCritter(), HandleEjectPassenger(), HandleEmoteOpcode(), HandleEnterPlayerVehicle(), HandleEquipmentSetDelete(), HandleEquipmentSetSave(), HandleEquipmentSetUse(), HandleFarSightOpcode(), HandleForceSpeedChangeAck(), HandleGameobjectReportUse(), HandleGetItemPurchaseData(), HandleGetMailList(), HandleGossipHelloOpcode(), HandleGossipSelectOptionOpcode(), HandleGrantLevel(), HandleGroupDisbandOpcode(), HandleGroupRaidConvertOpcode(), HandleHearthAndResurrect(), HandleIgnoreTradeOpcode(), HandleInitiateTradeOpcode(), HandleInspectOpcode(), HandleInstanceLockResponse(), HandleItemRefund(), HandleItemTextQuery(), HandleLearnPreviewTalents(), HandleLearnPreviewTalentsPet(), HandleLearnTalentOpcode(), HandleLootMasterGiveOpcode(), HandleMailCreateTextItem(), HandleMailDelete(), HandleMailMarkAsRead(), HandleMailReturnToSender(), HandleMailTakeItem(), HandleMailTakeMoney(), HandleMirrorImageDataRequest(), HandleMoveKnockBackAck(), HandleMovementOpcode(), HandleMoveNotActiveMover(), HandleOfferPetitionOpcode(), HandleOpeningCinematic(), HandlePetAbandon(), HandlePetAction(), HandlePetActionHelper(), HandlePetCancelAuraOpcode(), HandlePetCastSpellOpcode(), HandlePetitionBuyOpcode(), HandlePetitionRenameGuild(), HandlePetitionShowSignatures(), HandlePetLearnTalent(), HandlePetRename(), HandlePetSetAction(), HandlePetSpellAutocastOpcode(), HandlePetStopAttack(), HandlePlayedTime(), HandlePlayerLogin(), HandlePushQuestToParty(), HandlePVPLogDataOpcode(), HandleQueryCorpseLocation(), HandleQueryCorpseTransport(), HandleQueryInspectAchievements(), HandleQueryNextMailTime(), HandleQueryQuestsCompleted(), HandleQuestConfirmAccept(), HandleQuestgiverAcceptQuestOpcode(), HandleQuestgiverCancel(), HandleQuestgiverChooseRewardOpcode(), HandleQuestgiverCompleteQuest(), HandleQuestgiverHelloOpcode(), HandleQuestgiverQueryQuestOpcode(), HandleQuestgiverRequestRewardOpcode(), HandleQuestgiverStatusMultipleQuery(), HandleQuestgiverStatusQueryOpcode(), HandleQuestLogRemoveQuest(), HandleQuestPOIQuery(), HandleQuestPushResult(), HandleQuestQueryOpcode(), HandleRaidTargetUpdateOpcode(), HandleReadItem(), HandleReclaimCorpse(), HandleRemoveGlyph(), HandleRepairItemOpcode(), HandleReportPvPAFK(), HandleRequestAccountData(), HandleRequestBattlefieldStatusOpcode(), HandleRequestHonorStats(), HandleRequestPetInfo(), HandleRequestRaidInfoOpcode(), HandleResetInstancesOpcode(), HandleSelfResOpcode(), HandleSellItemOpcode(), HandleSendMail(), HandleSetActiveMoverOpcode(), HandleSetAmmoOpcode(), HandleSetContactNotesOpcode(), HandleSetDungeonDifficultyOpcode(), HandleSetFactionInactiveOpcode(), HandleSetRaidDifficultyOpcode(), HandleSetSelectionOpcode(), HandleSetSheathedOpcode(), HandleSetTaxiBenchmarkOpcode(), HandleSetTradeGoldOpcode(), HandleSetTradeItemOpcode(), HandleShowingCloakOpcode(), HandleShowingHelmOpcode(), HandleSignPetition(), HandleSocketOpcode(), HandleSpellClick(), HandleSplitItemOpcode(), HandleStablePet(), HandleStableSwapPet(), HandleStandStateChangeOpcode(), HandleSummonResponseOpcode(), HandleSwapInvItemOpcode(), HandleSwapItem(), HandleTalentWipeConfirmOpcode(), HandleTextEmoteOpcode(), HandleTotemDestroyed(), HandleTrainerBuySpellOpcode(), HandleTurnInPetitionOpcode(), HandleUnacceptTradeOpcode(), HandleUnstablePet(), HandleUpdateMissileTrajectory(), HandleUpdateProjectilePosition(), HandleUseItemOpcode(), HandleWhoOpcode(), HandleWorldTeleportOpcode(), HandleWrapItemOpcode(), KickPlayer(), LogoutPlayer(), moveItems(), SendBfEntered(), SendBindPoint(), SendCalendarRaidLockoutUpdated(), SendListInventory(), SendQueryPetNameResponse(), SendSpiritResurrect(), SendTrainerList(), SendUpdateTrade(), SetPlayer(), Update(), ValidateAndGetUnitBeingMoved(), and ~WorldSession().
|
private |
Definition at line 1283 of file WorldSession.h.
Referenced by AddQueryHolderCallback(), and ProcessQueryCallbacks().
|
private |
Definition at line 1281 of file WorldSession.h.
Referenced by HandleCharCreateOpcode(), HandleCharCustomize(), HandleCharEnumOpcode(), HandleCharRaceOrFactionChange(), HandleCharRenameOpcode(), HandleOpenItemOpcode(), and ProcessQueryCallbacks().
|
private |
Definition at line 1378 of file WorldSession.h.
Referenced by GetRBACData(), HasPermission(), InvalidateRBACData(), LoadPermissions(), LoadPermissionsAsync(), and ~WorldSession().
|
private |
Definition at line 1377 of file WorldSession.h.
Referenced by QueuePacket(), Update(), and ~WorldSession().
|
private |
Definition at line 1344 of file WorldSession.h.
|
private |
Definition at line 1384 of file WorldSession.h.
Referenced by AdjustClientMovementTime(), and ComputeNewClockDelta().
|
private |
Definition at line 1383 of file WorldSession.h.
Referenced by ComputeNewClockDelta(), and HandleTimeSyncResponse().
|
private |
Definition at line 1388 of file WorldSession.h.
Referenced by ResetTimeSync(), and SendTimeSync().
|
private |
Definition at line 1389 of file WorldSession.h.
Referenced by SendTimeSync(), and Update().
|
private |
Definition at line 1360 of file WorldSession.h.
|
private |
Definition at line 1282 of file WorldSession.h.
Referenced by AddTransactionCallback(), and ProcessQueryCallbacks().
|
private |
Definition at line 1363 of file WorldSession.h.
Referenced by LoadTutorialsData(), SaveTutorialsData(), and SendTutorialsData().
|
private |
Definition at line 1364 of file WorldSession.h.
Referenced by LoadTutorialsData(), and SaveTutorialsData().
|
private |
Definition at line 1350 of file WorldSession.h.
Referenced by HandleChatMessage(), HandleWardenDataOpcode(), InitWarden(), and Update().
|
protected |
Referenced by Update().
|
private |
Definition at line 1379 of file WorldSession.h.
Referenced by Update().
|
private |
Definition at line 1380 of file WorldSession.h.
Referenced by KickPlayer(), and Update().
|
private |
Definition at line 1376 of file WorldSession.h.
|
private |
Definition at line 1341 of file WorldSession.h.
Referenced by WorldSession().
|
private |
Definition at line 1381 of file WorldSession.h.
Referenced by CanUseBank(), HandleAutoBankItemOpcode(), HandleAutoStoreBankItemOpcode(), HandleSwapInvItemOpcode(), HandleSwapItem(), and SendShowBank().
|
private |
Definition at line 1347 of file WorldSession.h.
|
private |
Definition at line 1338 of file WorldSession.h.
Referenced by HandleAddFriendOpcode(), SetAccountData(), and SetPlayer().
|
private |
Definition at line 1353 of file WorldSession.h.
Referenced by InitializeSessionCallback(), IsConnectionIdle(), and Update().
|
private |
Definition at line 1361 of file WorldSession.h.
| time_t WorldSession::m_muteTime |
Definition at line 732 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 1354 of file WorldSession.h.
Referenced by GetPlayerInfo(), HandlePlayerLogin(), HandlePlayerLoginOpcode(), and Update().
|
private |
Definition at line 1355 of file WorldSession.h.
Referenced by LogoutPlayer(), and Update().
|
private |
Definition at line 1356 of file WorldSession.h.
Referenced by LogoutPlayer(), and Update().
|
private |
Definition at line 1357 of file WorldSession.h.
Referenced by LogoutPlayer().
|
private |
Definition at line 1358 of file WorldSession.h.
|
private |
Definition at line 1359 of file WorldSession.h.
|
private |
Definition at line 1340 of file WorldSession.h.
Referenced by KickPlayer(), SendPacket(), Update(), WorldSession(), and ~WorldSession().
| std::atomic<time_t> WorldSession::m_timeOutTime |
Definition at line 745 of file WorldSession.h.
Referenced by IsConnectionIdle(), and ResetTimeOutTime().
|
private |
Definition at line 1375 of file WorldSession.h.