AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PlayerScript Class Reference

#include "PlayerScript.h"

Inheritance diagram for PlayerScript:
ScriptObject CharacterActionIpLogger CharacterDeleteActionIpLogger ChatLogScript MidsummerPlayerScript QuestApprenticeAnglerPlayerScript ServerMailReward lfg::LFGPlayerScript

Public Member Functions

virtual void OnPlayerJustDied (Player *)
 
virtual void OnPlayerCalculateTalentsPoints (Player const *, uint32 &)
 
virtual void OnPlayerReleasedGhost (Player *)
 
virtual void OnPlayerSendInitialPacketsBeforeAddToMap (Player *, WorldPacket &)
 
virtual void OnPlayerBattlegroundDesertion (Player *, BattlegroundDesertionType const)
 
virtual void OnPlayerCompleteQuest (Player *, Quest const *)
 
virtual void OnPlayerPVPKill (Player *, Player *)
 
virtual void OnPlayerPVPFlagChange (Player *, bool)
 
virtual void OnPlayerCreatureKill (Player *, Creature *)
 
virtual void OnPlayerCreatureKilledByPet (Player *, Creature *)
 
virtual void OnPlayerKilledByCreature (Creature *, Player *)
 
virtual void OnPlayerCreatureKillCredit (Player *, Creature *)
 
virtual void OnPlayerLevelChanged (Player *, uint8)
 
virtual void OnPlayerFreeTalentPointsChanged (Player *, uint32)
 
virtual void OnPlayerTalentsReset (Player *, bool)
 
virtual bool OnPlayerCanLearnTalent (Player *, TalentEntry const *, uint32)
 
virtual void OnPlayerAfterSpecSlotChanged (Player *, uint8)
 
virtual void OnPlayerBeforeUpdate (Player *, uint32)
 
virtual void OnPlayerAfterUpdate (Player *, uint32)
 
virtual void OnPlayerUpdate (Player *, uint32)
 
virtual void OnPlayerMoneyChanged (Player *, int32 &)
 
virtual void OnPlayerBeforeLootMoney (Player *, Loot *)
 
virtual void OnPlayerBeforeSendLoot (Player *, ObjectGuid, Loot *)
 
virtual void OnPlayerGiveXP (Player *, uint32 &, Unit *, uint8)
 
virtual bool OnPlayerReputationChange (Player *, uint32, int32 &, bool)
 
virtual void OnPlayerReputationRankChange (Player *, uint32, ReputationRank, ReputationRank, bool)
 
virtual void OnPlayerGiveReputation (Player *, int32, float &, ReputationSource)
 
virtual void OnPlayerLearnSpell (Player *, uint32)
 
virtual void OnPlayerForgotSpell (Player *, uint32)
 
virtual void OnPlayerDuelRequest (Player *, Player *)
 
virtual void OnPlayerDuelStart (Player *, Player *)
 
virtual void OnPlayerDuelEnd (Player *, Player *, DuelCompleteType)
 
virtual void OnPlayerBeforeSendChatMessage (Player *, uint32 &, uint32 &, std::string &)
 
virtual void OnPlayerEmote (Player *, uint32)
 
virtual void OnPlayerTextEmote (Player *, uint32, uint32, ObjectGuid)
 
virtual void OnPlayerSpellCast (Player *, Spell *, bool)
 
virtual void OnPlayerLoadFromDB (Player *)
 
virtual void OnPlayerLogin (Player *)
 
virtual void OnPlayerBeforeLogout (Player *)
 
virtual void OnPlayerLogout (Player *)
 
virtual bool OnPlayerCanMarkAccountOffline (ObjectGuid, uint32)
 
virtual void OnPlayerCreate (Player *)
 
virtual void OnPlayerDelete (ObjectGuid, uint32)
 
virtual void OnPlayerFailedDelete (ObjectGuid, uint32)
 
virtual void OnPlayerSave (Player *)
 
virtual void OnPlayerBindToInstance (Player *, Difficulty, uint32, bool)
 
virtual void OnPlayerUpdateZone (Player *, uint32, uint32)
 
virtual void OnPlayerUpdateArea (Player *, uint32, uint32)
 
virtual void OnPlayerMapChanged (Player *)
 
virtual bool OnPlayerBeforeTeleport (Player *, uint32, float, float, float, float, uint32, Unit *)
 
virtual void OnPlayerUpdateFaction (Player *)
 
virtual void OnPlayerAddToBattleground (Player *, Battleground *)
 
virtual void OnPlayerQueueRandomDungeon (Player *, uint32 &)
 
virtual void OnPlayerRemoveFromBattleground (Player *, Battleground *)
 
virtual void OnPlayerAchievementComplete (Player *, AchievementEntry const *)
 
virtual bool OnPlayerBeforeAchievementComplete (Player *, AchievementEntry const *)
 
virtual void OnPlayerCriteriaProgress (Player *, AchievementCriteriaEntry const *)
 
virtual bool OnPlayerBeforeCriteriaProgress (Player *, AchievementCriteriaEntry const *)
 
virtual void OnPlayerAchievementSave (CharacterDatabaseTransaction, Player *, uint16, CompletedAchievementData)
 
virtual void OnPlayerCriteriaSave (CharacterDatabaseTransaction, Player *, uint16, CriteriaProgress)
 
virtual void OnPlayerGossipSelect (Player *, uint32, uint32, uint32)
 
virtual void OnPlayerGossipSelectCode (Player *, uint32, uint32, uint32, char const *)
 
virtual void OnPlayerBeingCharmed (Player *, Unit *, uint32, uint32)
 
virtual void OnPlayerAfterSetVisibleItemSlot (Player *, uint8, Item *)
 
virtual void OnPlayerAfterMoveItemFromInventory (Player *, Item *, uint8, uint8, bool)
 
virtual void OnPlayerAfterMoveItemToInventory (Player *, Item *, bool)
 
virtual void OnPlayerEquip (Player *, Item *, uint8, uint8, bool)
 
virtual void OnPlayerUnequip (Player *, Item *)
 
virtual void OnPlayerJoinBG (Player *)
 
virtual void OnPlayerJoinArena (Player *)
 
virtual void OnPlayerGetMaxPersonalArenaRatingRequirement (Player const *, uint32, uint32 &) const
 
virtual void OnPlayerLootItem (Player *, Item *, uint32, ObjectGuid)
 
virtual void OnPlayerBeforeFillQuestLootItem (Player *, LootItem &)
 
virtual void OnPlayerStoreNewItem (Player *, Item *, uint32)
 
virtual void OnPlayerCreateItem (Player *, Item *, uint32)
 
virtual void OnPlayerQuestRewardItem (Player *, Item *, uint32)
 
virtual bool OnPlayerCanPlaceAuctionBid (Player *, AuctionEntry *)
 
virtual void OnPlayerGroupRollRewardItem (Player *, Item *, uint32, RollVote, Roll *)
 
virtual bool OnPlayerBeforeOpenItem (Player *, Item *)
 
virtual bool OnPlayerBeforeQuestComplete (Player *, uint32)
 
virtual void OnPlayerQuestComputeXP (Player *, Quest const *, uint32 &)
 
virtual void OnPlayerBeforeDurabilityRepair (Player *, ObjectGuid, ObjectGuid, float &, uint8)
 
virtual void OnPlayerBeforeBuyItemFromVendor (Player *, ObjectGuid, uint32, uint32 &, uint8, uint8, uint8)
 
virtual void OnPlayerBeforeStoreOrEquipNewItem (Player *, uint32, uint32 &, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
 
virtual void OnPlayerAfterStoreOrEquipNewItem (Player *, uint32, Item *, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
 
virtual void OnPlayerAfterUpdateMaxPower (Player *, Powers &, float &)
 
virtual void OnPlayerAfterUpdateMaxHealth (Player *, float &)
 
virtual void OnPlayerBeforeUpdateAttackPowerAndDamage (Player *, float &, float &, bool)
 
virtual void OnPlayerAfterUpdateAttackPowerAndDamage (Player *, float &, float &, float &, float &, bool)
 
virtual void OnPlayerBeforeInitTalentForLevel (Player *, uint8 &, uint32 &)
 
virtual void OnPlayerFirstLogin (Player *)
 
virtual void OnPlayerSetMaxLevel (Player *, uint32 &)
 
virtual bool OnPlayerCanJoinInBattlegroundQueue (Player *, ObjectGuid, BattlegroundTypeId, uint8, GroupJoinBattlegroundResult &)
 
virtual bool OnPlayerShouldBeRewardedWithMoneyInsteadOfExp (Player *)
 
virtual void OnPlayerBeforeTempSummonInitStats (Player *, TempSummon *, uint32 &)
 
virtual void OnPlayerBeforeGuardianInitStatsForLevel (Player *, Guardian *, CreatureTemplate const *, PetType &)
 
virtual void OnPlayerAfterGuardianInitStatsForLevel (Player *, Guardian *)
 
virtual void OnPlayerBeforeLoadPetFromDB (Player *, uint32 &, uint32 &, bool &, bool &)
 
virtual bool OnPlayerCanJoinInArenaQueue (Player *, ObjectGuid, uint8, BattlegroundTypeId, uint8, uint8, GroupJoinBattlegroundResult &)
 
virtual bool OnPlayerCanBattleFieldPort (Player *, uint8, BattlegroundTypeId, uint8)
 
virtual bool OnPlayerCanGroupInvite (Player *, std::string &)
 
virtual bool OnPlayerCanGroupAccept (Player *, Group *)
 
virtual bool OnPlayerCanSellItem (Player *, Item *, Creature *)
 
virtual bool OnPlayerCanSendMail (Player *, ObjectGuid, ObjectGuid, std::string &, std::string &, uint32, uint32, Item *)
 
virtual void OnPlayerPetitionBuy (Player *, Creature *, uint32 &, uint32 &, uint32 &)
 
virtual void OnPlayerPetitionShowList (Player *, Creature *, uint32 &, uint32 &, uint32 &)
 
virtual void OnPlayerBeforePetitionSign (Player *, ObjectGuid, bool &)
 
virtual void OnPlayerRewardKillRewarder (Player *, KillRewarder *, bool, float &)
 
virtual bool OnPlayerCanGiveMailRewardAtGiveLevel (Player *, uint8)
 
virtual void OnPlayerDeleteFromDB (CharacterDatabaseTransaction, uint32)
 
virtual bool OnPlayerCanRepopAtGraveyard (Player *)
 
virtual Optional< bool > OnPlayerIsClass (Player const *, Classes, ClassContext)
 
virtual void OnPlayerGetMaxSkillValue (Player *, uint32, int32 &, bool)
 
virtual bool OnPlayerHasActivePowerType (Player const *, Powers)
 
virtual void OnPlayerUpdateGatheringSkill (Player *, uint32, uint32, uint32, uint32, uint32, uint32 &)
 This hook called before gathering skill gain is applied to the character.
 
virtual void OnPlayerUpdateCraftingSkill (Player *, SkillLineAbilityEntry const *, uint32, uint32 &)
 This hook is called before crafting skill gain is applied to the character.
 
virtual bool OnPlayerUpdateFishingSkill (Player *, int32, int32, int32, int32)
 
virtual bool OnPlayerCanAreaExploreAndOutdoor (Player *)
 
virtual void OnPlayerVictimRewardBefore (Player *, Player *, uint32 &, int32 &)
 
virtual void OnPlayerVictimRewardAfter (Player *, Player *, uint32 &, int32 &, float &)
 
virtual void OnPlayerCustomScalingStatValueBefore (Player *, ItemTemplate const *, uint8, bool, uint32 &)
 
virtual void OnPlayerCustomScalingStatValue (Player *, ItemTemplate const *, uint32 &, int32 &, uint8, uint32, ScalingStatValuesEntry const *)
 
virtual void OnPlayerApplyItemModsBefore (Player *, uint8, bool, uint8, uint32, int32 &)
 
virtual void OnPlayerApplyEnchantmentItemModsBefore (Player *, Item *, EnchantmentSlot, bool, uint32, uint32 &)
 
virtual void OnPlayerApplyWeaponDamage (Player *, uint8, ItemTemplate const *, float &, float &, uint8)
 
virtual bool OnPlayerCanArmorDamageModifier (Player *)
 
virtual void OnPlayerGetFeralApBonus (Player *, int32 &, int32, ItemTemplate const *, ScalingStatValuesEntry const *)
 
virtual bool OnPlayerCanApplyWeaponDependentAuraDamageMod (Player *, Item *, WeaponAttackType, AuraEffect const *, bool)
 
virtual bool OnPlayerCanApplyEquipSpell (Player *, SpellInfo const *, Item *, bool, bool)
 
virtual bool OnPlayerCanApplyEquipSpellsItemSet (Player *, ItemSetEffect *)
 
virtual bool OnPlayerCanCastItemCombatSpell (Player *, Unit *, WeaponAttackType, uint32, uint32, Item *, ItemTemplate const *)
 
virtual bool OnPlayerCanCastItemUseSpell (Player *, Item *, SpellCastTargets const &, uint8, uint32)
 
virtual void OnPlayerApplyAmmoBonuses (Player *, ItemTemplate const *, float &)
 
virtual bool OnPlayerCanEquipItem (Player *, uint8, uint16 &, Item *, bool, bool)
 
virtual bool OnPlayerCanUnequipItem (Player *, uint16, bool)
 
virtual bool OnPlayerCanUseItem (Player *, ItemTemplate const *, InventoryResult &)
 
virtual bool OnPlayerCanSaveEquipNewItem (Player *, Item *, uint16, bool)
 
virtual bool OnPlayerCanApplyEnchantment (Player *, Item *, EnchantmentSlot, bool, bool, bool)
 
virtual void OnPlayerGetQuestRate (Player *, float &)
 
virtual bool OnPlayerPassedQuestKilledMonsterCredit (Player *, Quest const *, uint32, uint32, ObjectGuid)
 
virtual bool OnPlayerCheckItemInSlotAtLoadInventory (Player *, Item *, uint8, uint8 &, uint16 &)
 
virtual bool OnPlayerNotAvoidSatisfy (Player *, DungeonProgressionRequirements const *, uint32, bool)
 
virtual bool OnPlayerNotVisibleGloballyFor (Player *, Player const *)
 
virtual void OnPlayerGetArenaPersonalRating (Player *, uint8, uint32 &)
 
virtual void OnPlayerGetArenaTeamId (Player *, uint8, uint32 &)
 
virtual void OnPlayerIsFFAPvP (Player *, bool &)
 
virtual void OnPlayerFfaPvpStateUpdate (Player *, bool)
 
virtual void OnPlayerIsPvP (Player *, bool &)
 
virtual void OnPlayerGetMaxSkillValueForLevel (Player *, uint16 &)
 
virtual bool OnPlayerNotSetArenaTeamInfoField (Player *, uint8, ArenaTeamInfoType, uint32)
 
virtual bool OnPlayerCanJoinLfg (Player *, uint8, std::set< uint32 > &, std::string const &)
 
virtual bool OnPlayerCanEnterMap (Player *, MapEntry const *, InstanceTemplate const *, MapDifficulty const *, bool)
 
virtual bool OnPlayerCanInitTrade (Player *, Player *)
 
virtual bool OnPlayerCanSetTradeItem (Player *, Item *, uint8)
 This hook called just before finishing the handling of the action of a player setting an item in a trade slot.
 
virtual void OnPlayerSetServerSideVisibility (Player *, ServerSideVisibilityType &, AccountTypes &)
 
virtual void OnPlayerSetServerSideVisibilityDetect (Player *, ServerSideVisibilityType &, AccountTypes &)
 
virtual void OnPlayerResurrect (Player *, float, bool &)
 
virtual void OnPlayerBeforeChooseGraveyard (Player *, TeamId, bool, uint32 &)
 
virtual bool OnPlayerCanUseChat (Player *, uint32, uint32, std::string &)
 This hook called before player sending message in default chat.
 
virtual bool OnPlayerCanUseChat (Player *, uint32, uint32, std::string &, Player *)
 This hook called before player sending message to other player via private.
 
virtual bool OnPlayerCanUseChat (Player *, uint32, uint32, std::string &, Group *)
 This hook called before player sending message to group.
 
virtual bool OnPlayerCanUseChat (Player *, uint32, uint32, std::string &, Guild *)
 This hook called before player sending message to guild.
 
virtual bool OnPlayerCanUseChat (Player *, uint32, uint32, std::string &, Channel *)
 This hook called before player sending message to channel.
 
virtual void OnPlayerLearnTalents (Player *, uint32, uint32, uint32)
 This hook called after player learning talents.
 
virtual void OnPlayerEnterCombat (Player *, Unit *)
 This hook called after player entering combat.
 
virtual void OnPlayerLeaveCombat (Player *)
 This hook called after player leave combat.
 
virtual void OnPlayerQuestAbandon (Player *, uint32)
 This hook called after player abandoning quest.
 
virtual void OnPlayerQuestAccept (Player *, Quest const *)
 This hook called after a player accepts a quest, regardless of quest giver type.
 
virtual bool OnPlayerCanFlyInZone (Player *, uint32, uint32, SpellInfo const *)
 This hook called before other CanFlyChecks are applied.
 
virtual void AnticheatSetCanFlybyServer (Player *, bool)
 
virtual void AnticheatSetUnderACKmount (Player *)
 
virtual void AnticheatSetRootACKUpd (Player *)
 
virtual void AnticheatSetJumpingbyOpcode (Player *, bool)
 
virtual void AnticheatUpdateMovementInfo (Player *, MovementInfo const &)
 
virtual bool AnticheatHandleDoubleJump (Player *, Unit *)
 
virtual bool AnticheatCheckMovementInfo (Player *, MovementInfo const &, Unit *, bool)
 
virtual bool OnPlayerCanSendErrorAlreadyLooted (Player *)
 This hook is called, to avoid displaying the error message that the body has already been stripped.
 
virtual void OnPlayerAfterCreatureLoot (Player *)
 It is used when an item is taken from a creature.
 
virtual void OnPlayerAfterCreatureLootMoney (Player *)
 After a creature's money is taken.
 
virtual bool OnPlayerCanUpdateSkill (Player *, uint32)
 
virtual void OnPlayerBeforeUpdateSkill (Player *, uint32, uint32 &, uint32, uint32)
 
virtual void OnPlayerUpdateSkill (Player *, uint32, uint32, uint32, uint32, uint32)
 
virtual void OnPlayerSetSkill (Player *, uint32, uint32, uint32, uint32, uint32)
 
virtual bool OnPlayerCanResurrect (Player *)
 This hook is called, to avoid player resurrect.
 
virtual bool OnPlayerCanGiveLevel (Player *, uint8)
 This hook is called, to cancel the normal level up flow.
 
virtual void OnPlayerSendListInventory (Player *, ObjectGuid, uint32 &)
 This hook is called whenever a player interacts with a vendor, and is then shown the vendor list.
 
virtual void OnPlayerGetReputationPriceDiscount (Player const *, Creature const *, float &)
 This hook is called whenever a player attempts to buy items, repair, take taxis, or learn spells. This then uses this information to call OnPlayerGetReputationPriceDiscoun(Player, FactionTemplateEntry, float)
 
virtual void OnPlayerGetReputationPriceDiscount (Player const *, FactionTemplateEntry const *, float &)
 This hook is called whenever a player attempts to buy items, repair, take taxis, or learn spells. It is also called when continuing along taxis.
 
virtual void OnPlayerLearnTaxiNode (Player const *, uint32)
 This hook is called when a player learns a new flight path node.
 
virtual void OnPlayerBeforeGetLevelForXPGain (Player const *, uint8 &)
 This hook is called when XP is calculated for the player, and is used to modify the player level used in the XP formulas.
 
virtual void OnPlayerAfterTakeItemFromMail (Player *, Item *, uint32)
 This hook is called after a player takes an item out of a mailbox.
 
virtual bool OnPlayerCanLearnSpell (Player *, uint32)
 This hook is called before a player learns a spell, and can cancel the learning.
 
virtual void OnPlayerBeforeReceiveSpellListFromTrainer (Player *, Creature *, WorldPackets::NPC::TrainerList &)
 This hook is called before a trainer's spell list is sent to a player, and can edit the spells the trainer window will display.
 
virtual void OnPlayerGetTrainerSpellState (Player const *, uint32, uint32, Trainer::SpellState &)
 This hook is called when a trainer resolves the state of one of its spells for a player, and can override it. The state drives both how the spell is displayed and whether the trainer will teach it, so an override here keeps the two in step.
 
virtual void OnPlayerAfterTrainSpell (Player *, Creature *, uint32)
 This hook is called after a trainer purchase went through, once the money has been taken and success reported to the client.
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
std::string const & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 PlayerScript (char const *name, std::vector< uint16 > enabledHooks=std::vector< uint16 >())
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ PlayerScript()

PlayerScript::PlayerScript ( char const *  name,
std::vector< uint16 >  enabledHooks = std::vector<uint16>() 
)
protected
1009{
1010 // If empty - enable all available hooks.
1011 if (enabledHooks.empty())
1012 for (uint16 i = 0; i < PLAYERHOOK_END; ++i)
1013 enabledHooks.emplace_back(i);
1014
1015 ScriptRegistry<PlayerScript>::AddScript(this, std::move(enabledHooks));
1016}
std::uint16_t uint16
Definition Define.h:108
@ PLAYERHOOK_END
Definition PlayerScript.h:238
Definition ScriptObject.h:42
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition ScriptMgr.h:795

References ScriptRegistry< TScript >::AddScript(), and PLAYERHOOK_END.

Member Function Documentation

◆ AnticheatCheckMovementInfo()

virtual bool PlayerScript::AnticheatCheckMovementInfo ( Player *  ,
MovementInfo const &  ,
Unit *  ,
bool   
)
inlinevirtual
800{ return true; }

Referenced by ScriptMgr::AnticheatCheckMovementInfo().

◆ AnticheatHandleDoubleJump()

virtual bool PlayerScript::AnticheatHandleDoubleJump ( Player *  ,
Unit *   
)
inlinevirtual
799{ return true; }

Referenced by ScriptMgr::AnticheatHandleDoubleJump().

◆ AnticheatSetCanFlybyServer()

virtual void PlayerScript::AnticheatSetCanFlybyServer ( Player *  ,
bool   
)
inlinevirtual

◆ AnticheatSetJumpingbyOpcode()

virtual void PlayerScript::AnticheatSetJumpingbyOpcode ( Player *  ,
bool   
)
inlinevirtual

◆ AnticheatSetRootACKUpd()

virtual void PlayerScript::AnticheatSetRootACKUpd ( Player *  )
inlinevirtual
796{ }

Referenced by ScriptMgr::AnticheatSetRootACKUpd().

◆ AnticheatSetUnderACKmount()

virtual void PlayerScript::AnticheatSetUnderACKmount ( Player *  )
inlinevirtual

◆ AnticheatUpdateMovementInfo()

virtual void PlayerScript::AnticheatUpdateMovementInfo ( Player *  ,
MovementInfo const &   
)
inlinevirtual

◆ OnPlayerAchievementComplete()

virtual void PlayerScript::OnPlayerAchievementComplete ( Player *  ,
AchievementEntry const *   
)
inlinevirtual

◆ OnPlayerAchievementSave()

virtual void PlayerScript::OnPlayerAchievementSave ( CharacterDatabaseTransaction  ,
Player *  ,
uint16  ,
CompletedAchievementData   
)
inlinevirtual
419{ }

Referenced by ScriptMgr::OnPlayerAchievementSave().

◆ OnPlayerAddToBattleground()

virtual void PlayerScript::OnPlayerAddToBattleground ( Player *  ,
Battleground *   
)
inlinevirtual

◆ OnPlayerAfterCreatureLoot()

virtual void PlayerScript::OnPlayerAfterCreatureLoot ( Player *  )
inlinevirtual

It is used when an item is taken from a creature.

Parameters
playerContains information about the Player
817{ }

Referenced by ScriptMgr::OnPlayerAfterCreatureLoot().

◆ OnPlayerAfterCreatureLootMoney()

virtual void PlayerScript::OnPlayerAfterCreatureLootMoney ( Player *  )
inlinevirtual

After a creature's money is taken.

Parameters
playerContains information about the Player
824{ }

Referenced by ScriptMgr::OnPlayerAfterCreatureLootMoney().

◆ OnPlayerAfterGuardianInitStatsForLevel()

virtual void PlayerScript::OnPlayerAfterGuardianInitStatsForLevel ( Player *  ,
Guardian *   
)
inlinevirtual

◆ OnPlayerAfterMoveItemFromInventory()

virtual void PlayerScript::OnPlayerAfterMoveItemFromInventory ( Player *  ,
Item *  ,
uint8  ,
uint8  ,
bool   
)
inlinevirtual

◆ OnPlayerAfterMoveItemToInventory()

virtual void PlayerScript::OnPlayerAfterMoveItemToInventory ( Player *  ,
Item *  ,
bool   
)
inlinevirtual

◆ OnPlayerAfterSetVisibleItemSlot()

virtual void PlayerScript::OnPlayerAfterSetVisibleItemSlot ( Player *  ,
uint8  ,
Item *   
)
inlinevirtual

◆ OnPlayerAfterSpecSlotChanged()

virtual void PlayerScript::OnPlayerAfterSpecSlotChanged ( Player *  ,
uint8   
)
inlinevirtual

◆ OnPlayerAfterStoreOrEquipNewItem()

virtual void PlayerScript::OnPlayerAfterStoreOrEquipNewItem ( Player *  ,
uint32  ,
Item *  ,
uint8  ,
uint8  ,
uint8  ,
ItemTemplate const *  ,
Creature *  ,
VendorItem const *  ,
bool   
)
inlinevirtual

◆ OnPlayerAfterTakeItemFromMail()

virtual void PlayerScript::OnPlayerAfterTakeItemFromMail ( Player *  ,
Item *  ,
uint32   
)
inlinevirtual

This hook is called after a player takes an item out of a mailbox.

Parameters
playerContains information about the Player
itemThe stack the player ends up holding. When the mail's item merges into an existing stack this is that destination stack, not the mail's own copy – the latter is marked ITEM_REMOVED and deleted while the inventory is saved.
countNumber of items taken
902{}

Referenced by ScriptMgr::OnPlayerAfterTakeItemFromMail().

◆ OnPlayerAfterTrainSpell()

virtual void PlayerScript::OnPlayerAfterTrainSpell ( Player *  ,
Creature *  ,
uint32   
)
inlinevirtual

This hook is called after a trainer purchase went through, once the money has been taken and success reported to the client.

That does not guarantee the player ended up with the spell: a refused OnPlayerCanLearnSpell, or a spell already active, leaves the trainer's side done and nothing learned.

Parameters
playerContains information about the Player
trainerContains information about the trainer
spellIdThe id of the trainer spell that was bought
968{}

Referenced by ScriptMgr::OnPlayerAfterTrainSpell().

◆ OnPlayerAfterUpdate()

virtual void PlayerScript::OnPlayerAfterUpdate ( Player *  ,
uint32   
)
inlinevirtual
301{ }

Referenced by ScriptMgr::OnPlayerAfterUpdate().

◆ OnPlayerAfterUpdateAttackPowerAndDamage()

virtual void PlayerScript::OnPlayerAfterUpdateAttackPowerAndDamage ( Player *  ,
float &  ,
float &  ,
float &  ,
float &  ,
bool   
)
inlinevirtual

◆ OnPlayerAfterUpdateMaxHealth()

virtual void PlayerScript::OnPlayerAfterUpdateMaxHealth ( Player *  ,
float &   
)
inlinevirtual

◆ OnPlayerAfterUpdateMaxPower()

virtual void PlayerScript::OnPlayerAfterUpdateMaxPower ( Player *  ,
Powers &  ,
float &   
)
inlinevirtual

◆ OnPlayerApplyAmmoBonuses()

virtual void PlayerScript::OnPlayerApplyAmmoBonuses ( Player *  ,
ItemTemplate const *  ,
float &   
)
inlinevirtual

◆ OnPlayerApplyEnchantmentItemModsBefore()

virtual void PlayerScript::OnPlayerApplyEnchantmentItemModsBefore ( Player *  ,
Item *  ,
EnchantmentSlot  ,
bool  ,
uint32  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerApplyItemModsBefore()

virtual void PlayerScript::OnPlayerApplyItemModsBefore ( Player *  ,
uint8  ,
bool  ,
uint8  ,
uint32  ,
int32 &   
)
inlinevirtual

◆ OnPlayerApplyWeaponDamage()

virtual void PlayerScript::OnPlayerApplyWeaponDamage ( Player *  ,
uint8  ,
ItemTemplate const *  ,
float &  ,
float &  ,
uint8   
)
inlinevirtual

◆ OnPlayerBattlegroundDesertion()

virtual void PlayerScript::OnPlayerBattlegroundDesertion ( Player *  ,
BattlegroundDesertionType const   
)
inlinevirtual

◆ OnPlayerBeforeAchievementComplete()

virtual bool PlayerScript::OnPlayerBeforeAchievementComplete ( Player *  ,
AchievementEntry const *   
)
inlinevirtual
410{ return true; }

Referenced by ScriptMgr::OnPlayerBeforeAchievementComplete().

◆ OnPlayerBeforeBuyItemFromVendor()

virtual void PlayerScript::OnPlayerBeforeBuyItemFromVendor ( Player *  ,
ObjectGuid  ,
uint32  ,
uint32 &  ,
uint8  ,
uint8  ,
uint8   
)
inlinevirtual

◆ OnPlayerBeforeChooseGraveyard()

virtual void PlayerScript::OnPlayerBeforeChooseGraveyard ( Player *  ,
TeamId  ,
bool  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerBeforeCriteriaProgress()

virtual bool PlayerScript::OnPlayerBeforeCriteriaProgress ( Player *  ,
AchievementCriteriaEntry const *   
)
inlinevirtual
416{ return true; }

Referenced by ScriptMgr::OnPlayerBeforeCriteriaProgress().

◆ OnPlayerBeforeDurabilityRepair()

virtual void PlayerScript::OnPlayerBeforeDurabilityRepair ( Player *  ,
ObjectGuid  ,
ObjectGuid  ,
float &  ,
uint8   
)
inlinevirtual

◆ OnPlayerBeforeFillQuestLootItem()

virtual void PlayerScript::OnPlayerBeforeFillQuestLootItem ( Player *  ,
LootItem &   
)
inlinevirtual

◆ OnPlayerBeforeGetLevelForXPGain()

virtual void PlayerScript::OnPlayerBeforeGetLevelForXPGain ( Player const *  ,
uint8 &   
)
inlinevirtual

This hook is called when XP is calculated for the player, and is used to modify the player level used in the XP formulas.

Parameters
playerContains information about the Player
levelThe level that should be used for XP gain calculations
891{}

Referenced by ScriptMgr::OnPlayerBeforeGetLevelForXPGain().

◆ OnPlayerBeforeGuardianInitStatsForLevel()

virtual void PlayerScript::OnPlayerBeforeGuardianInitStatsForLevel ( Player *  ,
Guardian *  ,
CreatureTemplate const *  ,
PetType &   
)
inlinevirtual

◆ OnPlayerBeforeInitTalentForLevel()

virtual void PlayerScript::OnPlayerBeforeInitTalentForLevel ( Player *  ,
uint8 &  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerBeforeLoadPetFromDB()

virtual void PlayerScript::OnPlayerBeforeLoadPetFromDB ( Player *  ,
uint32 &  ,
uint32 &  ,
bool &  ,
bool &   
)
inlinevirtual

◆ OnPlayerBeforeLogout()

virtual void PlayerScript::OnPlayerBeforeLogout ( Player *  )
inlinevirtual
358{ }

Referenced by ScriptMgr::OnPlayerBeforeLogout().

◆ OnPlayerBeforeLootMoney()

virtual void PlayerScript::OnPlayerBeforeLootMoney ( Player *  ,
Loot *   
)
inlinevirtual

◆ OnPlayerBeforeOpenItem()

virtual bool PlayerScript::OnPlayerBeforeOpenItem ( Player *  ,
Item *   
)
inlinevirtual
479{ return true; }

Referenced by ScriptMgr::OnPlayerBeforeOpenItem().

◆ OnPlayerBeforePetitionSign()

virtual void PlayerScript::OnPlayerBeforePetitionSign ( Player *  ,
ObjectGuid  ,
bool &   
)
inlinevirtual

◆ OnPlayerBeforeQuestComplete()

virtual bool PlayerScript::OnPlayerBeforeQuestComplete ( Player *  ,
uint32   
)
inlinevirtual
482{ return true; }

Referenced by ScriptMgr::OnPlayerBeforeQuestComplete().

◆ OnPlayerBeforeReceiveSpellListFromTrainer()

virtual void PlayerScript::OnPlayerBeforeReceiveSpellListFromTrainer ( Player *  ,
Creature *  ,
WorldPackets::NPC::TrainerList &   
)
inlinevirtual

This hook is called before a trainer's spell list is sent to a player, and can edit the spells the trainer window will display.

It only changes what is displayed. Whether the trainer teaches a spell is decided by its state, so one dropped here can still be bought by a client that asks for it directly – refuse it in OnPlayerGetTrainerSpellState as well to make it stick.

Parameters
playerContains information about the Player
trainerContains information about the trainer
trainerListThe list of spells the trainer is about to display to the player
943{}

Referenced by ScriptMgr::OnPlayerBeforeReceiveSpellListFromTrainer().

◆ OnPlayerBeforeSendChatMessage()

virtual void PlayerScript::OnPlayerBeforeSendChatMessage ( Player *  ,
uint32 &  ,
uint32 &  ,
std::string &   
)
inlinevirtual

◆ OnPlayerBeforeSendLoot()

virtual void PlayerScript::OnPlayerBeforeSendLoot ( Player *  ,
ObjectGuid  ,
Loot *   
)
inlinevirtual
311{ }

Referenced by ScriptMgr::OnPlayerBeforeSendLoot().

◆ OnPlayerBeforeStoreOrEquipNewItem()

virtual void PlayerScript::OnPlayerBeforeStoreOrEquipNewItem ( Player *  ,
uint32  ,
uint32 &  ,
uint8  ,
uint8  ,
uint8  ,
ItemTemplate const *  ,
Creature *  ,
VendorItem const *  ,
bool   
)
inlinevirtual

◆ OnPlayerBeforeTeleport()

virtual bool PlayerScript::OnPlayerBeforeTeleport ( Player *  ,
uint32  ,
float  ,
float  ,
float  ,
float  ,
uint32  ,
Unit *   
)
inlinevirtual
392{ return true; }

Referenced by ScriptMgr::OnPlayerBeforeTeleport().

◆ OnPlayerBeforeTempSummonInitStats()

virtual void PlayerScript::OnPlayerBeforeTempSummonInitStats ( Player *  ,
TempSummon *  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerBeforeUpdate()

virtual void PlayerScript::OnPlayerBeforeUpdate ( Player *  ,
uint32   
)
inlinevirtual
300{ }

Referenced by ScriptMgr::OnPlayerBeforeUpdate().

◆ OnPlayerBeforeUpdateAttackPowerAndDamage()

virtual void PlayerScript::OnPlayerBeforeUpdateAttackPowerAndDamage ( Player *  ,
float &  ,
float &  ,
bool   
)
inlinevirtual

◆ OnPlayerBeforeUpdateSkill()

virtual void PlayerScript::OnPlayerBeforeUpdateSkill ( Player *  ,
uint32  ,
uint32 &  ,
uint32  ,
uint32   
)
inlinevirtual

◆ OnPlayerBeingCharmed()

virtual void PlayerScript::OnPlayerBeingCharmed ( Player *  ,
Unit *  ,
uint32  ,
uint32   
)
inlinevirtual
431{ }

Referenced by ScriptMgr::OnPlayerBeingCharmed().

◆ OnPlayerBindToInstance()

virtual void PlayerScript::OnPlayerBindToInstance ( Player *  ,
Difficulty  ,
uint32  ,
bool   
)
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

380{ }

Referenced by ScriptMgr::OnPlayerBindToInstance().

◆ OnPlayerCalculateTalentsPoints()

virtual void PlayerScript::OnPlayerCalculateTalentsPoints ( Player const *  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerCanApplyEnchantment()

virtual bool PlayerScript::OnPlayerCanApplyEnchantment ( Player *  ,
Item *  ,
EnchantmentSlot  ,
bool  ,
bool  ,
bool   
)
inlinevirtual
626{ return true; }

Referenced by ScriptMgr::OnPlayerCanApplyEnchantment().

◆ OnPlayerCanApplyEquipSpell()

virtual bool PlayerScript::OnPlayerCanApplyEquipSpell ( Player *  ,
SpellInfo const *  ,
Item *  ,
bool  ,
bool   
)
inlinevirtual
608{ return true; }

Referenced by ScriptMgr::OnPlayerCanApplyEquipSpell().

◆ OnPlayerCanApplyEquipSpellsItemSet()

virtual bool PlayerScript::OnPlayerCanApplyEquipSpellsItemSet ( Player *  ,
ItemSetEffect *   
)
inlinevirtual
610{ return true; }

Referenced by ScriptMgr::OnPlayerCanApplyEquipSpellsItemSet().

◆ OnPlayerCanApplyWeaponDependentAuraDamageMod()

virtual bool PlayerScript::OnPlayerCanApplyWeaponDependentAuraDamageMod ( Player *  ,
Item *  ,
WeaponAttackType  ,
AuraEffect const *  ,
bool   
)
inlinevirtual

◆ OnPlayerCanAreaExploreAndOutdoor()

virtual bool PlayerScript::OnPlayerCanAreaExploreAndOutdoor ( Player *  )
inlinevirtual
586{ return true; }

Referenced by ScriptMgr::OnPlayerCanAreaExploreAndOutdoor().

◆ OnPlayerCanArmorDamageModifier()

virtual bool PlayerScript::OnPlayerCanArmorDamageModifier ( Player *  )
inlinevirtual
602{ return true; }

Referenced by ScriptMgr::OnPlayerCanArmorDamageModifier().

◆ OnPlayerCanBattleFieldPort()

virtual bool PlayerScript::OnPlayerCanBattleFieldPort ( Player *  ,
uint8  ,
BattlegroundTypeId  ,
uint8   
)
inlinevirtual
529{ return true; }

Referenced by ScriptMgr::OnPlayerCanBattleFieldPort().

◆ OnPlayerCanCastItemCombatSpell()

virtual bool PlayerScript::OnPlayerCanCastItemCombatSpell ( Player *  ,
Unit *  ,
WeaponAttackType  ,
uint32  ,
uint32  ,
Item *  ,
ItemTemplate const *   
)
inlinevirtual
612{ return true; }

Referenced by ScriptMgr::OnPlayerCanCastItemCombatSpell().

◆ OnPlayerCanCastItemUseSpell()

virtual bool PlayerScript::OnPlayerCanCastItemUseSpell ( Player *  ,
Item *  ,
SpellCastTargets const &  ,
uint8  ,
uint32   
)
inlinevirtual
614{ return true; }

Referenced by ScriptMgr::OnPlayerCanCastItemUseSpell().

◆ OnPlayerCanEnterMap()

virtual bool PlayerScript::OnPlayerCanEnterMap ( Player *  ,
MapEntry const *  ,
InstanceTemplate const *  ,
MapDifficulty const *  ,
bool   
)
inlinevirtual
655{ return true; }

Referenced by ScriptMgr::OnPlayerCanEnterMap().

◆ OnPlayerCanEquipItem()

virtual bool PlayerScript::OnPlayerCanEquipItem ( Player *  ,
uint8  ,
uint16 &  ,
Item *  ,
bool  ,
bool   
)
inlinevirtual
618{ return true; }

Referenced by ScriptMgr::OnPlayerCanEquipItem().

◆ OnPlayerCanFlyInZone()

virtual bool PlayerScript::OnPlayerCanFlyInZone ( Player *  ,
uint32  ,
uint32  ,
SpellInfo const *   
)
inlinevirtual

This hook called before other CanFlyChecks are applied.

Parameters
playerContains information about the Player
mapIdContains information about the current map id
zoneIdContains information about the current zone
bySpellContains information about the spell that invoked the check
791{ return true; }

Referenced by ScriptMgr::OnPlayerCanFlyInZone().

◆ OnPlayerCanGiveLevel()

virtual bool PlayerScript::OnPlayerCanGiveLevel ( Player *  ,
uint8   
)
inlinevirtual

This hook is called, to cancel the normal level up flow.

Parameters
playerContains information about the Player
newLevelThe new level the player is about to be given
Returns
true if player is allowed to gain the new level
848{ return true; }

Referenced by ScriptMgr::OnPlayerCanGiveLevel().

◆ OnPlayerCanGiveMailRewardAtGiveLevel()

virtual bool PlayerScript::OnPlayerCanGiveMailRewardAtGiveLevel ( Player *  ,
uint8   
)
inlinevirtual
549{ return true; }

Referenced by ScriptMgr::OnPlayerCanGiveMailRewardAtGiveLevel().

◆ OnPlayerCanGroupAccept()

virtual bool PlayerScript::OnPlayerCanGroupAccept ( Player *  ,
Group *   
)
inlinevirtual
533{ return true; }

Referenced by ScriptMgr::OnPlayerCanGroupAccept().

◆ OnPlayerCanGroupInvite()

virtual bool PlayerScript::OnPlayerCanGroupInvite ( Player *  ,
std::string &   
)
inlinevirtual
531{ return true; }

Referenced by ScriptMgr::OnPlayerCanGroupInvite().

◆ OnPlayerCanInitTrade()

virtual bool PlayerScript::OnPlayerCanInitTrade ( Player *  ,
Player *   
)
inlinevirtual
657{ return true; }

Referenced by ScriptMgr::OnPlayerCanInitTrade().

◆ OnPlayerCanJoinInArenaQueue()

virtual bool PlayerScript::OnPlayerCanJoinInArenaQueue ( Player *  ,
ObjectGuid  ,
uint8  ,
BattlegroundTypeId  ,
uint8  ,
uint8  ,
GroupJoinBattlegroundResult &   
)
inlinevirtual
527{ return true; }

Referenced by ScriptMgr::OnPlayerCanJoinInArenaQueue().

◆ OnPlayerCanJoinInBattlegroundQueue()

virtual bool PlayerScript::OnPlayerCanJoinInBattlegroundQueue ( Player *  ,
ObjectGuid  ,
BattlegroundTypeId  ,
uint8  ,
GroupJoinBattlegroundResult &   
)
inlinevirtual
512{ return true; }

Referenced by ScriptMgr::OnPlayerCanJoinInBattlegroundQueue().

◆ OnPlayerCanJoinLfg()

virtual bool PlayerScript::OnPlayerCanJoinLfg ( Player *  ,
uint8  ,
std::set< uint32 > &  ,
std::string const &   
)
inlinevirtual
653{ return true; }

Referenced by ScriptMgr::OnPlayerCanJoinLfg().

◆ OnPlayerCanLearnSpell()

virtual bool PlayerScript::OnPlayerCanLearnSpell ( Player *  ,
uint32   
)
inlinevirtual

This hook is called before a player learns a spell, and can cancel the learning.

It fires late, once its caller has committed: refusing does not undo what that caller already did. A trainer has taken the money and still reports success, and Player::LearnTalent spends the point and records the talent anyway – use OnPlayerCanLearnTalent to stop a talent.

Player::learnSpell reaches it, and so does a trainer about to cast a wrapper entry (below); spells written through addSpell do not. Those bypasses include character loading (_LoadSpells, and the initial class and skill-rewarded spells, which run on every login) and talent spells from _addTalentAurasAndSpells, reapplied on every dual-spec switch – so a refusal in world is undone the next time one of them runs.

What it sees can be indirect: a trainer entry that wraps other spells (a paladin's Summon Warhorse) is cast, so the hook sees the entry first and then each wrapped spell as the cast teaches it. Refusing the entry skips the cast as a whole, and with it whatever else the entry does: a class mount also steps the Riding skill, which refusing the wrapped spells alone does not stop. A talent rank arrives only when it lands in the spell book, which most do not – but a learn-spell talent still delivers its additional talent spells.

Parameters
playerContains information about the Player
spellIdThe id of the spell about to be learned, or of the trainer entry about to be cast
Returns
true if the player is allowed to learn the spell
929{ return true; }

Referenced by ScriptMgr::OnPlayerCanLearnSpell().

◆ OnPlayerCanLearnTalent()

virtual bool PlayerScript::OnPlayerCanLearnTalent ( Player *  ,
TalentEntry const *  ,
uint32   
)
inlinevirtual
294{ return true; }

Referenced by ScriptMgr::OnPlayerCanLearnTalent().

◆ OnPlayerCanMarkAccountOffline()

virtual bool PlayerScript::OnPlayerCanMarkAccountOffline ( ObjectGuid  ,
uint32   
)
inlinevirtual
365{ return true; }

Referenced by ScriptMgr::OnPlayerCanMarkAccountOffline().

◆ OnPlayerCanPlaceAuctionBid()

virtual bool PlayerScript::OnPlayerCanPlaceAuctionBid ( Player *  ,
AuctionEntry *   
)
inlinevirtual
473{ return true; }

Referenced by ScriptMgr::OnPlayerCanPlaceAuctionBid().

◆ OnPlayerCanRepopAtGraveyard()

virtual bool PlayerScript::OnPlayerCanRepopAtGraveyard ( Player *  )
inlinevirtual
553{ return true; }

Referenced by ScriptMgr::OnPlayerCanRepopAtGraveyard().

◆ OnPlayerCanResurrect()

virtual bool PlayerScript::OnPlayerCanResurrect ( Player *  )
inlinevirtual

This hook is called, to avoid player resurrect.

Parameters
playerContains information about the Player
Returns
true if player is authorized to resurect
838{ return true; }

Referenced by ScriptMgr::OnPlayerCanResurrect().

◆ OnPlayerCanSaveEquipNewItem()

virtual bool PlayerScript::OnPlayerCanSaveEquipNewItem ( Player *  ,
Item *  ,
uint16  ,
bool   
)
inlinevirtual
624{ return true; }

Referenced by ScriptMgr::OnPlayerCanSaveEquipNewItem().

◆ OnPlayerCanSellItem()

virtual bool PlayerScript::OnPlayerCanSellItem ( Player *  ,
Item *  ,
Creature *   
)
inlinevirtual
535{ return true; }

Referenced by ScriptMgr::OnPlayerCanSellItem().

◆ OnPlayerCanSendErrorAlreadyLooted()

virtual bool PlayerScript::OnPlayerCanSendErrorAlreadyLooted ( Player *  )
inlinevirtual

This hook is called, to avoid displaying the error message that the body has already been stripped.

Parameters
playerContains information about the Player
Returns
true Avoiding displaying the error message that the loot has already been taken.
809{ return true; }

Referenced by ScriptMgr::OnPlayerCanSendErrorAlreadyLooted().

◆ OnPlayerCanSendMail()

virtual bool PlayerScript::OnPlayerCanSendMail ( Player *  ,
ObjectGuid  ,
ObjectGuid  ,
std::string &  ,
std::string &  ,
uint32  ,
uint32  ,
Item *   
)
inlinevirtual
537{ return true; }

Referenced by ScriptMgr::OnPlayerCanSendMail().

◆ OnPlayerCanSetTradeItem()

virtual bool PlayerScript::OnPlayerCanSetTradeItem ( Player *  ,
Item *  ,
uint8   
)
inlinevirtual

This hook called just before finishing the handling of the action of a player setting an item in a trade slot.

Parameters
playerContains information about the trade initiator Player
tradedItemContains information about the item set in the trade slot
Returns
True if you want to continue setting the item in the trade slot, false if you want to cancel the trade
667{ return true; }

Referenced by ScriptMgr::OnPlayerCanSetTradeItem().

◆ OnPlayerCanUnequipItem()

virtual bool PlayerScript::OnPlayerCanUnequipItem ( Player *  ,
uint16  ,
bool   
)
inlinevirtual
620{ return true; }

Referenced by ScriptMgr::OnPlayerCanUnequipItem().

◆ OnPlayerCanUpdateSkill()

virtual bool PlayerScript::OnPlayerCanUpdateSkill ( Player *  ,
uint32   
)
inlinevirtual
826{ return true; }

Referenced by ScriptMgr::OnPlayerCanUpdateSkill().

◆ OnPlayerCanUseChat() [1/5]

virtual bool PlayerScript::OnPlayerCanUseChat ( Player *  ,
uint32  ,
uint32  ,
std::string &   
)
inlinevirtual

This hook called before player sending message in default chat.

Parameters
playerContains information about the Player sender
typeContains information about the chat message type
languageContains information about the language type
msgContains information about the message
Returns
True if you want to continue sending the message, false if you want to disable sending the message

Reimplemented in ChatLogScript.

688{ return true; }

Referenced by ScriptMgr::OnPlayerCanUseChat(), ScriptMgr::OnPlayerCanUseChat(), ScriptMgr::OnPlayerCanUseChat(), ScriptMgr::OnPlayerCanUseChat(), and ScriptMgr::OnPlayerCanUseChat().

◆ OnPlayerCanUseChat() [2/5]

virtual bool PlayerScript::OnPlayerCanUseChat ( Player *  ,
uint32  ,
uint32  ,
std::string &  ,
Channel *   
)
inlinevirtual

This hook called before player sending message to channel.

Parameters
playerContains information about the Player sender
typeContains information about the chat message type
languageContains information about the language type
msgContains information about the message
channelContains information about the Channel
Returns
True if you want to continue sending the message, false if you want to disable sending the message

Reimplemented in ChatLogScript.

740{ return true; }

◆ OnPlayerCanUseChat() [3/5]

virtual bool PlayerScript::OnPlayerCanUseChat ( Player *  ,
uint32  ,
uint32  ,
std::string &  ,
Group *   
)
inlinevirtual

This hook called before player sending message to group.

Parameters
playerContains information about the Player sender
typeContains information about the chat message type
languageContains information about the language type
msgContains information about the message
groupContains information about the Group
Returns
True if you want to continue sending the message, false if you want to disable sending the message

Reimplemented in ChatLogScript.

714{ return true; }

◆ OnPlayerCanUseChat() [4/5]

virtual bool PlayerScript::OnPlayerCanUseChat ( Player *  ,
uint32  ,
uint32  ,
std::string &  ,
Guild *   
)
inlinevirtual

This hook called before player sending message to guild.

Parameters
playerContains information about the Player sender
typeContains information about the chat message type
languageContains information about the language type
msgContains information about the message
guildContains information about the Guild
Returns
True if you want to continue sending the message, false if you want to disable sending the message

Reimplemented in ChatLogScript.

727{ return true; }

◆ OnPlayerCanUseChat() [5/5]

virtual bool PlayerScript::OnPlayerCanUseChat ( Player *  ,
uint32  ,
uint32  ,
std::string &  ,
Player *   
)
inlinevirtual

This hook called before player sending message to other player via private.

Parameters
playerContains information about the Player sender
typeContains information about the chat message type
languageContains information about the language type
msgContains information about the message
receiverContains information about the Player receiver
Returns
True if you want to continue sending the message, false if you want to disable sending the message

Reimplemented in ChatLogScript.

701{ return true; }

◆ OnPlayerCanUseItem()

virtual bool PlayerScript::OnPlayerCanUseItem ( Player *  ,
ItemTemplate const *  ,
InventoryResult &   
)
inlinevirtual
622{ return true; }

Referenced by ScriptMgr::OnPlayerCanUseItem().

◆ OnPlayerCheckItemInSlotAtLoadInventory()

virtual bool PlayerScript::OnPlayerCheckItemInSlotAtLoadInventory ( Player *  ,
Item *  ,
uint8  ,
uint8 &  ,
uint16 &   
)
inlinevirtual
632{ return true; }

Referenced by ScriptMgr::OnPlayerCheckItemInSlotAtLoadInventory().

◆ OnPlayerCompleteQuest()

virtual void PlayerScript::OnPlayerCompleteQuest ( Player *  ,
Quest const *   
)
inlinevirtual

◆ OnPlayerCreate()

virtual void PlayerScript::OnPlayerCreate ( Player *  )
inlinevirtual

Reimplemented in CharacterActionIpLogger.

368{ }

Referenced by ScriptMgr::OnPlayerCreate().

◆ OnPlayerCreateItem()

virtual void PlayerScript::OnPlayerCreateItem ( Player *  ,
Item *  ,
uint32   
)
inlinevirtual
467{ }

Referenced by ScriptMgr::OnPlayerCreateItem().

◆ OnPlayerCreatureKill()

virtual void PlayerScript::OnPlayerCreatureKill ( Player *  ,
Creature *   
)
inlinevirtual
272{ }

Referenced by ScriptMgr::OnPlayerCreatureKill().

◆ OnPlayerCreatureKillCredit()

virtual void PlayerScript::OnPlayerCreatureKillCredit ( Player *  ,
Creature *   
)
inlinevirtual

◆ OnPlayerCreatureKilledByPet()

virtual void PlayerScript::OnPlayerCreatureKilledByPet ( Player *  ,
Creature *   
)
inlinevirtual

◆ OnPlayerCriteriaProgress()

virtual void PlayerScript::OnPlayerCriteriaProgress ( Player *  ,
AchievementCriteriaEntry const *   
)
inlinevirtual

◆ OnPlayerCriteriaSave()

virtual void PlayerScript::OnPlayerCriteriaSave ( CharacterDatabaseTransaction  ,
Player *  ,
uint16  ,
CriteriaProgress   
)
inlinevirtual
422{ }

Referenced by ScriptMgr::OnPlayerCriteriaSave().

◆ OnPlayerCustomScalingStatValue()

virtual void PlayerScript::OnPlayerCustomScalingStatValue ( Player *  ,
ItemTemplate const *  ,
uint32 &  ,
int32 &  ,
uint8  ,
uint32  ,
ScalingStatValuesEntry const *   
)
inlinevirtual

◆ OnPlayerCustomScalingStatValueBefore()

virtual void PlayerScript::OnPlayerCustomScalingStatValueBefore ( Player *  ,
ItemTemplate const *  ,
uint8  ,
bool  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerDelete()

virtual void PlayerScript::OnPlayerDelete ( ObjectGuid  ,
uint32   
)
inlinevirtual

Reimplemented in CharacterDeleteActionIpLogger.

371{ }

Referenced by ScriptMgr::OnPlayerDelete().

◆ OnPlayerDeleteFromDB()

virtual void PlayerScript::OnPlayerDeleteFromDB ( CharacterDatabaseTransaction  ,
uint32   
)
inlinevirtual
551{ }

Referenced by ScriptMgr::OnPlayerDeleteFromDB().

◆ OnPlayerDuelEnd()

virtual void PlayerScript::OnPlayerDuelEnd ( Player *  ,
Player *  ,
DuelCompleteType   
)
inlinevirtual
338{ }

Referenced by ScriptMgr::OnPlayerDuelEnd().

◆ OnPlayerDuelRequest()

virtual void PlayerScript::OnPlayerDuelRequest ( Player *  ,
Player *   
)
inlinevirtual
332{ }

Referenced by ScriptMgr::OnPlayerDuelRequest().

◆ OnPlayerDuelStart()

virtual void PlayerScript::OnPlayerDuelStart ( Player *  ,
Player *   
)
inlinevirtual
335{ }

Referenced by ScriptMgr::OnPlayerDuelStart().

◆ OnPlayerEmote()

virtual void PlayerScript::OnPlayerEmote ( Player *  ,
uint32   
)
inlinevirtual
344{ }

Referenced by ScriptMgr::OnPlayerEmote().

◆ OnPlayerEnterCombat()

virtual void PlayerScript::OnPlayerEnterCombat ( Player *  ,
Unit *   
)
inlinevirtual

This hook called after player entering combat.

Parameters
playerContains information about the Player
UnitContains information about the Unit
758{ }

Referenced by ScriptMgr::OnPlayerEnterCombat().

◆ OnPlayerEquip()

virtual void PlayerScript::OnPlayerEquip ( Player *  ,
Item *  ,
uint8  ,
uint8  ,
bool   
)
inlinevirtual
443{ }

Referenced by ScriptMgr::OnPlayerEquip().

◆ OnPlayerFailedDelete()

virtual void PlayerScript::OnPlayerFailedDelete ( ObjectGuid  ,
uint32   
)
inlinevirtual

Reimplemented in CharacterDeleteActionIpLogger.

374{ }

Referenced by ScriptMgr::OnPlayerFailedDelete().

◆ OnPlayerFfaPvpStateUpdate()

virtual void PlayerScript::OnPlayerFfaPvpStateUpdate ( Player *  ,
bool   
)
inlinevirtual

◆ OnPlayerFirstLogin()

virtual void PlayerScript::OnPlayerFirstLogin ( Player *  )
inlinevirtual
508{ }

Referenced by ScriptMgr::OnPlayerFirstLogin().

◆ OnPlayerForgotSpell()

virtual void PlayerScript::OnPlayerForgotSpell ( Player *  ,
uint32   
)
inlinevirtual
329{}

Referenced by ScriptMgr::OnPlayerForgotSpell().

◆ OnPlayerFreeTalentPointsChanged()

virtual void PlayerScript::OnPlayerFreeTalentPointsChanged ( Player *  ,
uint32   
)
inlinevirtual

◆ OnPlayerGetArenaPersonalRating()

virtual void PlayerScript::OnPlayerGetArenaPersonalRating ( Player *  ,
uint8  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerGetArenaTeamId()

virtual void PlayerScript::OnPlayerGetArenaTeamId ( Player *  ,
uint8  ,
uint32 &   
)
inlinevirtual
640{ }

Referenced by ScriptMgr::OnPlayerGetArenaTeamId().

◆ OnPlayerGetFeralApBonus()

virtual void PlayerScript::OnPlayerGetFeralApBonus ( Player *  ,
int32 &  ,
int32  ,
ItemTemplate const *  ,
ScalingStatValuesEntry const *   
)
inlinevirtual
604{ }

Referenced by ScriptMgr::OnPlayerGetFeralApBonus().

◆ OnPlayerGetMaxPersonalArenaRatingRequirement()

virtual void PlayerScript::OnPlayerGetMaxPersonalArenaRatingRequirement ( Player const *  ,
uint32  ,
uint32 &   
) const
inlinevirtual

◆ OnPlayerGetMaxSkillValue()

virtual void PlayerScript::OnPlayerGetMaxSkillValue ( Player *  ,
uint32  ,
int32 &  ,
bool   
)
inlinevirtual

◆ OnPlayerGetMaxSkillValueForLevel()

virtual void PlayerScript::OnPlayerGetMaxSkillValueForLevel ( Player *  ,
uint16 &   
)
inlinevirtual

◆ OnPlayerGetQuestRate()

virtual void PlayerScript::OnPlayerGetQuestRate ( Player *  ,
float &   
)
inlinevirtual
628{ }

Referenced by ScriptMgr::OnPlayerGetQuestRate().

◆ OnPlayerGetReputationPriceDiscount() [1/2]

virtual void PlayerScript::OnPlayerGetReputationPriceDiscount ( Player const *  ,
Creature const *  ,
float &   
)
inlinevirtual

This hook is called whenever a player attempts to buy items, repair, take taxis, or learn spells. This then uses this information to call OnPlayerGetReputationPriceDiscoun(Player, FactionTemplateEntry, float)

Parameters
playerContains information about the Player
creatureContains information about the creature involved in the transaction
discountFloat value of the discount, as a multiplier of the base price
866{}

Referenced by ScriptMgr::OnPlayerGetReputationPriceDiscount(), and ScriptMgr::OnPlayerGetReputationPriceDiscount().

◆ OnPlayerGetReputationPriceDiscount() [2/2]

virtual void PlayerScript::OnPlayerGetReputationPriceDiscount ( Player const *  ,
FactionTemplateEntry const *  ,
float &   
)
inlinevirtual

This hook is called whenever a player attempts to buy items, repair, take taxis, or learn spells. It is also called when continuing along taxis.

Parameters
playerContains information about the Player
factionTemplateContains information about the faction template involved in the transaction. Can be null!
discountFloat value of the discount, as a multiplier of the base price
875{}

◆ OnPlayerGetTrainerSpellState()

virtual void PlayerScript::OnPlayerGetTrainerSpellState ( Player const *  ,
uint32  ,
uint32  ,
Trainer::SpellState &   
)
inlinevirtual

This hook is called when a trainer resolves the state of one of its spells for a player, and can override it. The state drives both how the spell is displayed and whether the trainer will teach it, so an override here keeps the two in step.

Parameters
playerContains information about the Player
trainerIdThe id of the trainer holding the spell
spellIdThe id of the trainer spell whose state is being resolved
stateThe state the trainer worked out, to be read and overwritten
955{}

Referenced by ScriptMgr::OnPlayerGetTrainerSpellState().

◆ OnPlayerGiveReputation()

virtual void PlayerScript::OnPlayerGiveReputation ( Player *  ,
int32  ,
float &  ,
ReputationSource   
)
inlinevirtual
323{ }

Referenced by ScriptMgr::OnPlayerGiveReputation().

◆ OnPlayerGiveXP()

virtual void PlayerScript::OnPlayerGiveXP ( Player *  ,
uint32 &  ,
Unit *  ,
uint8   
)
inlinevirtual
314{ }

Referenced by ScriptMgr::OnPlayerGiveXP().

◆ OnPlayerGossipSelect()

virtual void PlayerScript::OnPlayerGossipSelect ( Player *  ,
uint32  ,
uint32  ,
uint32   
)
inlinevirtual
425{ }

Referenced by ScriptMgr::OnPlayerGossipSelect().

◆ OnPlayerGossipSelectCode()

virtual void PlayerScript::OnPlayerGossipSelectCode ( Player *  ,
uint32  ,
uint32  ,
uint32  ,
char const *   
)
inlinevirtual

◆ OnPlayerGroupRollRewardItem()

virtual void PlayerScript::OnPlayerGroupRollRewardItem ( Player *  ,
Item *  ,
uint32  ,
RollVote  ,
Roll *   
)
inlinevirtual

◆ OnPlayerHasActivePowerType()

virtual bool PlayerScript::OnPlayerHasActivePowerType ( Player const *  ,
Powers   
)
inlinevirtual
559{ return false; }

Referenced by ScriptMgr::OnPlayerHasActivePowerType().

◆ OnPlayerIsClass()

virtual Optional< bool > PlayerScript::OnPlayerIsClass ( Player const *  ,
Classes  ,
ClassContext   
)
inlinevirtual
555{ return std::nullopt; }

◆ OnPlayerIsFFAPvP()

virtual void PlayerScript::OnPlayerIsFFAPvP ( Player *  ,
bool &   
)
inlinevirtual
642{ }

Referenced by ScriptMgr::OnPlayerIsFFAPvP().

◆ OnPlayerIsPvP()

virtual void PlayerScript::OnPlayerIsPvP ( Player *  ,
bool &   
)
inlinevirtual
647{ }

Referenced by ScriptMgr::OnPlayerIsPvP().

◆ OnPlayerJoinArena()

virtual void PlayerScript::OnPlayerJoinArena ( Player *  )
inlinevirtual
452{ }

Referenced by ScriptMgr::OnPlayerJoinArena().

◆ OnPlayerJoinBG()

virtual void PlayerScript::OnPlayerJoinBG ( Player *  )
inlinevirtual
449{ }

Referenced by ScriptMgr::OnPlayerJoinBG().

◆ OnPlayerJustDied()

virtual void PlayerScript::OnPlayerJustDied ( Player *  )
inlinevirtual
248{ }

Referenced by ScriptMgr::OnPlayerJustDied().

◆ OnPlayerKilledByCreature()

virtual void PlayerScript::OnPlayerKilledByCreature ( Creature *  ,
Player *   
)
inlinevirtual

◆ OnPlayerLearnSpell()

virtual void PlayerScript::OnPlayerLearnSpell ( Player *  ,
uint32   
)
inlinevirtual
326{}

Referenced by ScriptMgr::OnPlayerLearnSpell().

◆ OnPlayerLearnTalents()

virtual void PlayerScript::OnPlayerLearnTalents ( Player *  ,
uint32  ,
uint32  ,
uint32   
)
inlinevirtual

This hook called after player learning talents.

Parameters
playerContains information about the Player
talentIdContains information about the talent id
talentRankContains information about the talent rank
spellidContains information about the spell id
750{ }

Referenced by ScriptMgr::OnPlayerLearnTalents().

◆ OnPlayerLearnTaxiNode()

virtual void PlayerScript::OnPlayerLearnTaxiNode ( Player const *  ,
uint32   
)
inlinevirtual

This hook is called when a player learns a new flight path node.

Parameters
playerContains information about the Player
nodeIdThe id of the learned taxi node
883{}

Referenced by ScriptMgr::OnPlayerLearnTaxiNode().

◆ OnPlayerLeaveCombat()

virtual void PlayerScript::OnPlayerLeaveCombat ( Player *  )
inlinevirtual

This hook called after player leave combat.

Parameters
playerContains information about the Player
765{ }

Referenced by ScriptMgr::OnPlayerLeaveCombat().

◆ OnPlayerLevelChanged()

virtual void PlayerScript::OnPlayerLevelChanged ( Player *  ,
uint8   
)
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

285{ }

Referenced by ScriptMgr::OnPlayerLevelChanged().

◆ OnPlayerLoadFromDB()

virtual void PlayerScript::OnPlayerLoadFromDB ( Player *  )
inlinevirtual
352{ };

Referenced by ScriptMgr::OnPlayerLoadFromDB().

◆ OnPlayerLogin()

virtual void PlayerScript::OnPlayerLogin ( Player *  )
inlinevirtual

◆ OnPlayerLogout()

virtual void PlayerScript::OnPlayerLogout ( Player *  )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript, and CharacterActionIpLogger.

361{ }

Referenced by ScriptMgr::OnPlayerLogout().

◆ OnPlayerLootItem()

virtual void PlayerScript::OnPlayerLootItem ( Player *  ,
Item *  ,
uint32  ,
ObjectGuid   
)
inlinevirtual
458{ }

Referenced by ScriptMgr::OnPlayerLootItem().

◆ OnPlayerMapChanged()

virtual void PlayerScript::OnPlayerMapChanged ( Player *  )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

389{ }

Referenced by ScriptMgr::OnPlayerEnterMap().

◆ OnPlayerMoneyChanged()

virtual void PlayerScript::OnPlayerMoneyChanged ( Player *  ,
int32 &   
)
inlinevirtual
305{ }

Referenced by ScriptMgr::OnPlayerMoneyChanged().

◆ OnPlayerNotAvoidSatisfy()

virtual bool PlayerScript::OnPlayerNotAvoidSatisfy ( Player *  ,
DungeonProgressionRequirements const *  ,
uint32  ,
bool   
)
inlinevirtual
634{ return true; }

Referenced by ScriptMgr::OnPlayerNotAvoidSatisfy().

◆ OnPlayerNotSetArenaTeamInfoField()

virtual bool PlayerScript::OnPlayerNotSetArenaTeamInfoField ( Player *  ,
uint8  ,
ArenaTeamInfoType  ,
uint32   
)
inlinevirtual
651{ return true; } // Whats that?

Referenced by ScriptMgr::OnPlayerNotSetArenaTeamInfoField().

◆ OnPlayerNotVisibleGloballyFor()

virtual bool PlayerScript::OnPlayerNotVisibleGloballyFor ( Player *  ,
Player const *   
)
inlinevirtual
636{ return true; } // Whats that?

Referenced by ScriptMgr::OnPlayerNotVisibleGloballyFor().

◆ OnPlayerPassedQuestKilledMonsterCredit()

virtual bool PlayerScript::OnPlayerPassedQuestKilledMonsterCredit ( Player *  ,
Quest const *  ,
uint32  ,
uint32  ,
ObjectGuid   
)
inlinevirtual
630{ return true; }

Referenced by ScriptMgr::OnPlayerPassedQuestKilledMonsterCredit().

◆ OnPlayerPetitionBuy()

virtual void PlayerScript::OnPlayerPetitionBuy ( Player *  ,
Creature *  ,
uint32 &  ,
uint32 &  ,
uint32 &   
)
inlinevirtual
539{ }

Referenced by ScriptMgr::OnPlayerPetitionBuy().

◆ OnPlayerPetitionShowList()

virtual void PlayerScript::OnPlayerPetitionShowList ( Player *  ,
Creature *  ,
uint32 &  ,
uint32 &  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerPVPFlagChange()

virtual void PlayerScript::OnPlayerPVPFlagChange ( Player *  ,
bool   
)
inlinevirtual
269{ }

Referenced by ScriptMgr::OnPlayerPVPFlagChange().

◆ OnPlayerPVPKill()

virtual void PlayerScript::OnPlayerPVPKill ( Player *  ,
Player *   
)
inlinevirtual
266{ }

Referenced by ScriptMgr::OnPlayerPVPKill().

◆ OnPlayerQuestAbandon()

virtual void PlayerScript::OnPlayerQuestAbandon ( Player *  ,
uint32   
)
inlinevirtual

This hook called after player abandoning quest.

Parameters
playerContains information about the Player
questIdContains information about the quest id
773{ }

Referenced by ScriptMgr::OnPlayerQuestAbandon().

◆ OnPlayerQuestAccept()

virtual void PlayerScript::OnPlayerQuestAccept ( Player *  ,
Quest const *   
)
inlinevirtual

This hook called after a player accepts a quest, regardless of quest giver type.

Parameters
playerContains information about the Player
questContains information about the Quest
781{ }

Referenced by ScriptMgr::OnPlayerQuestAccept().

◆ OnPlayerQuestComputeXP()

virtual void PlayerScript::OnPlayerQuestComputeXP ( Player *  ,
Quest const *  ,
uint32 &   
)
inlinevirtual
485{ }

Referenced by ScriptMgr::OnPlayerQuestComputeXP().

◆ OnPlayerQuestRewardItem()

virtual void PlayerScript::OnPlayerQuestRewardItem ( Player *  ,
Item *  ,
uint32   
)
inlinevirtual
470{ }

Referenced by ScriptMgr::OnPlayerQuestRewardItem().

◆ OnPlayerQueueRandomDungeon()

virtual void PlayerScript::OnPlayerQueueRandomDungeon ( Player *  ,
uint32 &   
)
inlinevirtual

◆ OnPlayerReleasedGhost()

virtual void PlayerScript::OnPlayerReleasedGhost ( Player *  )
inlinevirtual
254{ }

Referenced by ScriptMgr::OnPlayerReleasedGhost().

◆ OnPlayerRemoveFromBattleground()

virtual void PlayerScript::OnPlayerRemoveFromBattleground ( Player *  ,
Battleground *   
)
inlinevirtual

◆ OnPlayerReputationChange()

virtual bool PlayerScript::OnPlayerReputationChange ( Player *  ,
uint32  ,
int32 &  ,
bool   
)
inlinevirtual
317{ return true; }

Referenced by ScriptMgr::OnPlayerReputationChange().

◆ OnPlayerReputationRankChange()

virtual void PlayerScript::OnPlayerReputationRankChange ( Player *  ,
uint32  ,
ReputationRank  ,
ReputationRank  ,
bool   
)
inlinevirtual

◆ OnPlayerResurrect()

virtual void PlayerScript::OnPlayerResurrect ( Player *  ,
float  ,
bool &   
)
inlinevirtual
673{ }

Referenced by ScriptMgr::OnPlayerResurrect().

◆ OnPlayerRewardKillRewarder()

virtual void PlayerScript::OnPlayerRewardKillRewarder ( Player *  ,
KillRewarder *  ,
bool  ,
float &   
)
inlinevirtual

◆ OnPlayerSave()

virtual void PlayerScript::OnPlayerSave ( Player *  )
inlinevirtual
377{ }

Referenced by ScriptMgr::OnPlayerSave().

◆ OnPlayerSendInitialPacketsBeforeAddToMap()

virtual void PlayerScript::OnPlayerSendInitialPacketsBeforeAddToMap ( Player *  ,
WorldPacket &   
)
inlinevirtual

◆ OnPlayerSendListInventory()

virtual void PlayerScript::OnPlayerSendListInventory ( Player *  ,
ObjectGuid  ,
uint32 &   
)
inlinevirtual

This hook is called whenever a player interacts with a vendor, and is then shown the vendor list.

Parameters
playerContains information about the Player
vendorGuidGuid of the vendor player is interacting with
vendorEntryEntry of the vendor player is interacting with
857{}

Referenced by ScriptMgr::OnPlayerSendListInventory().

◆ OnPlayerSetMaxLevel()

virtual void PlayerScript::OnPlayerSetMaxLevel ( Player *  ,
uint32 &   
)
inlinevirtual
510{ }

Referenced by ScriptMgr::OnPlayerSetMaxLevel().

◆ OnPlayerSetServerSideVisibility()

virtual void PlayerScript::OnPlayerSetServerSideVisibility ( Player *  ,
ServerSideVisibilityType &  ,
AccountTypes &   
)
inlinevirtual

◆ OnPlayerSetServerSideVisibilityDetect()

virtual void PlayerScript::OnPlayerSetServerSideVisibilityDetect ( Player *  ,
ServerSideVisibilityType &  ,
AccountTypes &   
)
inlinevirtual

◆ OnPlayerSetSkill()

virtual void PlayerScript::OnPlayerSetSkill ( Player *  ,
uint32  ,
uint32  ,
uint32  ,
uint32  ,
uint32   
)
inlinevirtual
829{ }

Referenced by ScriptMgr::OnPlayerSetSkill().

◆ OnPlayerShouldBeRewardedWithMoneyInsteadOfExp()

virtual bool PlayerScript::OnPlayerShouldBeRewardedWithMoneyInsteadOfExp ( Player *  )
inlinevirtual

◆ OnPlayerSpellCast()

virtual void PlayerScript::OnPlayerSpellCast ( Player *  ,
Spell *  ,
bool   
)
inlinevirtual
349{ }

Referenced by ScriptMgr::OnPlayerSpellCast().

◆ OnPlayerStoreNewItem()

virtual void PlayerScript::OnPlayerStoreNewItem ( Player *  ,
Item *  ,
uint32   
)
inlinevirtual
464{ }

Referenced by ScriptMgr::OnPlayerStoreNewItem().

◆ OnPlayerTalentsReset()

virtual void PlayerScript::OnPlayerTalentsReset ( Player *  ,
bool   
)
inlinevirtual
291{ }

Referenced by ScriptMgr::OnPlayerTalentsReset().

◆ OnPlayerTextEmote()

virtual void PlayerScript::OnPlayerTextEmote ( Player *  ,
uint32  ,
uint32  ,
ObjectGuid   
)
inlinevirtual
346{ }

Referenced by ScriptMgr::OnPlayerTextEmote().

◆ OnPlayerUnequip()

virtual void PlayerScript::OnPlayerUnequip ( Player *  ,
Item *   
)
inlinevirtual
446{ }

Referenced by ScriptMgr::OnPlayerUnequip().

◆ OnPlayerUpdate()

virtual void PlayerScript::OnPlayerUpdate ( Player *  ,
uint32   
)
inlinevirtual
302{ }

Referenced by ScriptMgr::OnPlayerUpdate().

◆ OnPlayerUpdateArea()

virtual void PlayerScript::OnPlayerUpdateArea ( Player *  ,
uint32  ,
uint32   
)
inlinevirtual
386{ }

Referenced by ScriptMgr::OnPlayerUpdateArea().

◆ OnPlayerUpdateCraftingSkill()

virtual void PlayerScript::OnPlayerUpdateCraftingSkill ( Player *  ,
SkillLineAbilityEntry const *  ,
uint32  ,
uint32 &   
)
inlinevirtual

This hook is called before crafting skill gain is applied to the character.

Parameters
playerContains information about the Player sender
skillContains information about the skill line
current_levelContains the current skill level for skill
gainContains the amount of points that should be added to the Player
582{ }

Referenced by ScriptMgr::OnPlayerUpdateCraftingSkill().

◆ OnPlayerUpdateFaction()

virtual void PlayerScript::OnPlayerUpdateFaction ( Player *  )
inlinevirtual
395{ }

Referenced by ScriptMgr::OnPlayerUpdateFaction().

◆ OnPlayerUpdateFishingSkill()

virtual bool PlayerScript::OnPlayerUpdateFishingSkill ( Player *  ,
int32  ,
int32  ,
int32  ,
int32   
)
inlinevirtual
584{ return true; }

Referenced by ScriptMgr::OnPlayerUpdateFishingSkill().

◆ OnPlayerUpdateGatheringSkill()

virtual void PlayerScript::OnPlayerUpdateGatheringSkill ( Player *  ,
uint32  ,
uint32  ,
uint32  ,
uint32  ,
uint32  ,
uint32 &   
)
inlinevirtual

This hook called before gathering skill gain is applied to the character.

Parameters
playerContains information about the Player sender
skill_idContains information about the skill line
currentContains the current skill level for skill
grayContains the gray skill level for current application
greenContains the green skill level for current application
yellowContains the yellow skill level for current application
gainContains the amount of points that should be added to the Player
572{ }

Referenced by ScriptMgr::OnPlayerUpdateGatheringSkill().

◆ OnPlayerUpdateSkill()

virtual void PlayerScript::OnPlayerUpdateSkill ( Player *  ,
uint32  ,
uint32  ,
uint32  ,
uint32  ,
uint32   
)
inlinevirtual
828{ }

Referenced by ScriptMgr::OnPlayerUpdateSkill().

◆ OnPlayerUpdateZone()

virtual void PlayerScript::OnPlayerUpdateZone ( Player *  ,
uint32  ,
uint32   
)
inlinevirtual

Reimplemented in MidsummerPlayerScript.

383{ }

Referenced by ScriptMgr::OnPlayerUpdateZone().

◆ OnPlayerVictimRewardAfter()

virtual void PlayerScript::OnPlayerVictimRewardAfter ( Player *  ,
Player *  ,
uint32 &  ,
int32 &  ,
float &   
)
inlinevirtual

◆ OnPlayerVictimRewardBefore()

virtual void PlayerScript::OnPlayerVictimRewardBefore ( Player *  ,
Player *  ,
uint32 &  ,
int32 &   
)
inlinevirtual

The documentation for this class was generated from the following files: