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 OnCalculateTalentsPoints (Player const *, uint32 &)
 
virtual void OnPlayerReleasedGhost (Player *)
 
virtual void OnSendInitialPacketsBeforeAddToMap (Player *, WorldPacket &)
 
virtual void OnBattlegroundDesertion (Player *, BattlegroundDesertionType const)
 
virtual void OnPlayerCompleteQuest (Player *, Quest const *)
 
virtual void OnPVPKill (Player *, Player *)
 
virtual void OnPlayerPVPFlagChange (Player *, bool)
 
virtual void OnCreatureKill (Player *, Creature *)
 
virtual void OnCreatureKilledByPet (Player *, Creature *)
 
virtual void OnPlayerKilledByCreature (Creature *, Player *)
 
virtual void OnLevelChanged (Player *, uint8)
 
virtual void OnFreeTalentPointsChanged (Player *, uint32)
 
virtual void OnTalentsReset (Player *, bool)
 
virtual void OnAfterSpecSlotChanged (Player *, uint8)
 
virtual void OnBeforeUpdate (Player *, uint32)
 
virtual void OnUpdate (Player *, uint32)
 
virtual void OnMoneyChanged (Player *, int32 &)
 
virtual void OnBeforeLootMoney (Player *, Loot *)
 
virtual void OnGiveXP (Player *, uint32 &, Unit *, uint8)
 
virtual bool OnReputationChange (Player *, uint32, int32 &, bool)
 
virtual void OnReputationRankChange (Player *, uint32, ReputationRank, ReputationRank, bool)
 
virtual void OnLearnSpell (Player *, uint32)
 
virtual void OnForgotSpell (Player *, uint32)
 
virtual void OnDuelRequest (Player *, Player *)
 
virtual void OnDuelStart (Player *, Player *)
 
virtual void OnDuelEnd (Player *, Player *, DuelCompleteType)
 
virtual void OnChat (Player *, uint32, uint32, std::string &)
 
virtual void OnBeforeSendChatMessage (Player *, uint32 &, uint32 &, std::string &)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Player *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Group *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Guild *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Channel *)
 
virtual void OnEmote (Player *, uint32)
 
virtual void OnTextEmote (Player *, uint32, uint32, ObjectGuid)
 
virtual void OnSpellCast (Player *, Spell *, bool)
 
virtual void OnLoadFromDB (Player *)
 
virtual void OnLogin (Player *)
 
virtual void OnBeforeLogout (Player *)
 
virtual void OnLogout (Player *)
 
virtual void OnCreate (Player *)
 
virtual void OnDelete (ObjectGuid, uint32)
 
virtual void OnFailedDelete (ObjectGuid, uint32)
 
virtual void OnSave (Player *)
 
virtual void OnBindToInstance (Player *, Difficulty, uint32, bool)
 
virtual void OnUpdateZone (Player *, uint32, uint32)
 
virtual void OnUpdateArea (Player *, uint32, uint32)
 
virtual void OnMapChanged (Player *)
 
virtual bool OnBeforeTeleport (Player *, uint32, float, float, float, float, uint32, Unit *)
 
virtual void OnUpdateFaction (Player *)
 
virtual void OnAddToBattleground (Player *, Battleground *)
 
virtual void OnQueueRandomDungeon (Player *, uint32 &)
 
virtual void OnRemoveFromBattleground (Player *, Battleground *)
 
virtual void OnAchiComplete (Player *, AchievementEntry const *)
 
virtual bool OnBeforeAchiComplete (Player *, AchievementEntry const *)
 
virtual void OnCriteriaProgress (Player *, AchievementCriteriaEntry const *)
 
virtual bool OnBeforeCriteriaProgress (Player *, AchievementCriteriaEntry const *)
 
virtual void OnAchiSave (CharacterDatabaseTransaction, Player *, uint16, CompletedAchievementData)
 
virtual void OnCriteriaSave (CharacterDatabaseTransaction, Player *, uint16, CriteriaProgress)
 
virtual void OnGossipSelect (Player *, uint32, uint32, uint32)
 
virtual void OnGossipSelectCode (Player *, uint32, uint32, uint32, const char *)
 
virtual void OnBeingCharmed (Player *, Unit *, uint32, uint32)
 
virtual void OnAfterSetVisibleItemSlot (Player *, uint8, Item *)
 
virtual void OnAfterMoveItemFromInventory (Player *, Item *, uint8, uint8, bool)
 
virtual void OnEquip (Player *, Item *, uint8, uint8, bool)
 
virtual void OnPlayerJoinBG (Player *)
 
virtual void OnPlayerJoinArena (Player *)
 
virtual void OnGetMaxPersonalArenaRatingRequirement (Player const *, uint32, uint32 &) const
 
virtual void OnLootItem (Player *, Item *, uint32, ObjectGuid)
 
virtual void OnBeforeFillQuestLootItem (Player *, LootItem &)
 
virtual void OnStoreNewItem (Player *, Item *, uint32)
 
virtual void OnCreateItem (Player *, Item *, uint32)
 
virtual void OnQuestRewardItem (Player *, Item *, uint32)
 
virtual bool CanPlaceAuctionBid (Player *, AuctionEntry *)
 
virtual void OnGroupRollRewardItem (Player *, Item *, uint32, RollVote, Roll *)
 
virtual bool OnBeforeOpenItem (Player *, Item *)
 
virtual bool OnBeforeQuestComplete (Player *, uint32)
 
virtual void OnQuestComputeXP (Player *, Quest const *, uint32 &)
 
virtual void OnBeforeDurabilityRepair (Player *, ObjectGuid, ObjectGuid, float &, uint8)
 
virtual void OnBeforeBuyItemFromVendor (Player *, ObjectGuid, uint32, uint32 &, uint8, uint8, uint8)
 
virtual void OnBeforeStoreOrEquipNewItem (Player *, uint32, uint32 &, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
 
virtual void OnAfterStoreOrEquipNewItem (Player *, uint32, Item *, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
 
virtual void OnAfterUpdateMaxPower (Player *, Powers &, float &)
 
virtual void OnAfterUpdateMaxHealth (Player *, float &)
 
virtual void OnBeforeUpdateAttackPowerAndDamage (Player *, float &, float &, bool)
 
virtual void OnAfterUpdateAttackPowerAndDamage (Player *, float &, float &, float &, float &, bool)
 
virtual void OnBeforeInitTalentForLevel (Player *, uint8 &, uint32 &)
 
virtual void OnFirstLogin (Player *)
 
virtual void OnSetMaxLevel (Player *, uint32 &)
 
virtual bool CanJoinInBattlegroundQueue (Player *, ObjectGuid, BattlegroundTypeId, uint8, GroupJoinBattlegroundResult &)
 
virtual bool ShouldBeRewardedWithMoneyInsteadOfExp (Player *)
 
virtual void OnBeforeTempSummonInitStats (Player *, TempSummon *, uint32 &)
 
virtual void OnBeforeGuardianInitStatsForLevel (Player *, Guardian *, CreatureTemplate const *, PetType &)
 
virtual void OnAfterGuardianInitStatsForLevel (Player *, Guardian *)
 
virtual void OnBeforeLoadPetFromDB (Player *, uint32 &, uint32 &, bool &, bool &)
 
virtual bool CanJoinInArenaQueue (Player *, ObjectGuid, uint8, BattlegroundTypeId, uint8, uint8, GroupJoinBattlegroundResult &)
 
virtual bool CanBattleFieldPort (Player *, uint8, BattlegroundTypeId, uint8)
 
virtual bool CanGroupInvite (Player *, std::string &)
 
virtual bool CanGroupAccept (Player *, Group *)
 
virtual bool CanSellItem (Player *, Item *, Creature *)
 
virtual bool CanSendMail (Player *, ObjectGuid, ObjectGuid, std::string &, std::string &, uint32, uint32, Item *)
 
virtual void PetitionBuy (Player *, Creature *, uint32 &, uint32 &, uint32 &)
 
virtual void PetitionShowList (Player *, Creature *, uint32 &, uint32 &, uint32 &)
 
virtual void OnRewardKillRewarder (Player *, KillRewarder *, bool, float &)
 
virtual bool CanGiveMailRewardAtGiveLevel (Player *, uint8)
 
virtual void OnDeleteFromDB (CharacterDatabaseTransaction, uint32)
 
virtual bool CanRepopAtGraveyard (Player *)
 
virtual Optional< bool > OnPlayerIsClass (Player const *, Classes, ClassContext)
 
virtual void OnGetMaxSkillValue (Player *, uint32, int32 &, bool)
 
virtual bool OnPlayerHasActivePowerType (Player const *, Powers)
 
virtual void OnUpdateGatheringSkill (Player *, uint32, uint32, uint32, uint32, uint32, uint32 &)
 This hook called before gathering skill gain is applied to the character. More...
 
virtual void OnUpdateCraftingSkill (Player *, SkillLineAbilityEntry const *, uint32, uint32 &)
 This hook is called before crafting skill gain is applied to the character. More...
 
virtual bool OnUpdateFishingSkill (Player *, int32, int32, int32, int32)
 
virtual bool CanAreaExploreAndOutdoor (Player *)
 
virtual void OnVictimRewardBefore (Player *, Player *, uint32 &, uint32 &)
 
virtual void OnVictimRewardAfter (Player *, Player *, uint32 &, uint32 &, float &)
 
virtual void OnCustomScalingStatValueBefore (Player *, ItemTemplate const *, uint8, bool, uint32 &)
 
virtual void OnCustomScalingStatValue (Player *, ItemTemplate const *, uint32 &, int32 &, uint8, uint32, ScalingStatValuesEntry const *)
 
virtual void OnApplyItemModsBefore (Player *, uint8, bool, uint8, uint32, int32 &)
 
virtual void OnApplyEnchantmentItemModsBefore (Player *, Item *, EnchantmentSlot, bool, uint32, uint32 &)
 
virtual bool CanArmorDamageModifier (Player *)
 
virtual void OnGetFeralApBonus (Player *, int32 &, int32, ItemTemplate const *, ScalingStatValuesEntry const *)
 
virtual bool CanApplyWeaponDependentAuraDamageMod (Player *, Item *, WeaponAttackType, AuraEffect const *, bool)
 
virtual bool CanApplyEquipSpell (Player *, SpellInfo const *, Item *, bool, bool)
 
virtual bool CanApplyEquipSpellsItemSet (Player *, ItemSetEffect *)
 
virtual bool CanCastItemCombatSpell (Player *, Unit *, WeaponAttackType, uint32, uint32, Item *, ItemTemplate const *)
 
virtual bool CanCastItemUseSpell (Player *, Item *, SpellCastTargets const &, uint8, uint32)
 
virtual void OnApplyAmmoBonuses (Player *, ItemTemplate const *, float &)
 
virtual bool CanEquipItem (Player *, uint8, uint16 &, Item *, bool, bool)
 
virtual bool CanUnequipItem (Player *, uint16, bool)
 
virtual bool CanUseItem (Player *, ItemTemplate const *, InventoryResult &)
 
virtual bool CanSaveEquipNewItem (Player *, Item *, uint16, bool)
 
virtual bool CanApplyEnchantment (Player *, Item *, EnchantmentSlot, bool, bool, bool)
 
virtual void OnGetQuestRate (Player *, float &)
 
virtual bool PassedQuestKilledMonsterCredit (Player *, Quest const *, uint32, uint32, ObjectGuid)
 
virtual bool CheckItemInSlotAtLoadInventory (Player *, Item *, uint8, uint8 &, uint16 &)
 
virtual bool NotAvoidSatisfy (Player *, DungeonProgressionRequirements const *, uint32, bool)
 
virtual bool NotVisibleGloballyFor (Player *, Player const *)
 
virtual void OnGetArenaPersonalRating (Player *, uint8, uint32 &)
 
virtual void OnGetArenaTeamId (Player *, uint8, uint32 &)
 
virtual void OnIsFFAPvP (Player *, bool &)
 
virtual void OnFfaPvpStateUpdate (Player *, bool)
 
virtual void OnIsPvP (Player *, bool &)
 
virtual void OnGetMaxSkillValueForLevel (Player *, uint16 &)
 
virtual bool NotSetArenaTeamInfoField (Player *, uint8, ArenaTeamInfoType, uint32)
 
virtual bool CanJoinLfg (Player *, uint8, std::set< uint32 > &, const std::string &)
 
virtual bool CanEnterMap (Player *, MapEntry const *, InstanceTemplate const *, MapDifficulty const *, bool)
 
virtual bool CanInitTrade (Player *, Player *)
 
virtual bool CanSetTradeItem (Player *, Item *, uint8)
 This hook called just before finishing the handling of the action of a player setting an item in a trade slot. More...
 
virtual void OnSetServerSideVisibility (Player *, ServerSideVisibilityType &, AccountTypes &)
 
virtual void OnSetServerSideVisibilityDetect (Player *, ServerSideVisibilityType &, AccountTypes &)
 
virtual void OnPlayerResurrect (Player *, float, bool)
 
virtual void OnBeforeChooseGraveyard (Player *, TeamId, bool, uint32 &)
 
virtual bool CanPlayerUseChat (Player *, uint32, uint32, std::string &)
 This hook called before player sending message in default chat. More...
 
virtual bool CanPlayerUseChat (Player *, uint32, uint32, std::string &, Player *)
 This hook called before player sending message to other player via private. More...
 
virtual bool CanPlayerUseChat (Player *, uint32, uint32, std::string &, Group *)
 This hook called before player sending message to group. More...
 
virtual bool CanPlayerUseChat (Player *, uint32, uint32, std::string &, Guild *)
 This hook called before player sending message to guild. More...
 
virtual bool CanPlayerUseChat (Player *, uint32, uint32, std::string &, Channel *)
 This hook called before player sending message to channel. More...
 
virtual void OnPlayerLearnTalents (Player *, uint32, uint32, uint32)
 This hook called after player learning talents. More...
 
virtual void OnPlayerEnterCombat (Player *, Unit *)
 This hook called after player entering combat. More...
 
virtual void OnPlayerLeaveCombat (Player *)
 This hook called after player leave combat. More...
 
virtual void OnQuestAbandon (Player *, uint32)
 This hook called after player abandoning quest. More...
 
virtual bool OnCanPlayerFlyInZone (Player *, uint32, uint32, SpellInfo const *)
 This hook called before other CanFlyChecks are applied. More...
 
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 CanSendErrorAlreadyLooted (Player *)
 This hook is called, to avoid displaying the error message that the body has already been stripped. More...
 
virtual void OnAfterCreatureLoot (Player *)
 It is used when an item is taken from a creature. More...
 
virtual void OnAfterCreatureLootMoney (Player *)
 After a creature's money is taken. More...
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ PlayerScript()

PlayerScript::PlayerScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
895{
896 // If empty - enable all available hooks.
897 if (enabledHooks.empty())
898 for (uint16 i = 0; i < PLAYERHOOK_END; ++i)
899 enabledHooks.emplace_back(i);
900
901 ScriptRegistry<PlayerScript>::AddScript(this, std::move(enabledHooks));
902}
std::uint16_t uint16
Definition: Define.h:108
@ PLAYERHOOK_END
Definition: PlayerScript.h:206
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:735
Definition: ScriptObject.h:43

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

Member Function Documentation

◆ AnticheatCheckMovementInfo()

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

◆ AnticheatHandleDoubleJump()

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

◆ AnticheatSetCanFlybyServer()

virtual void PlayerScript::AnticheatSetCanFlybyServer ( Player ,
bool   
)
inlinevirtual
734{ }

◆ AnticheatSetJumpingbyOpcode()

virtual void PlayerScript::AnticheatSetJumpingbyOpcode ( Player ,
bool   
)
inlinevirtual
737{ }

◆ AnticheatSetRootACKUpd()

virtual void PlayerScript::AnticheatSetRootACKUpd ( Player )
inlinevirtual
736{ }

◆ AnticheatSetUnderACKmount()

virtual void PlayerScript::AnticheatSetUnderACKmount ( Player )
inlinevirtual
735{ }

◆ AnticheatUpdateMovementInfo()

virtual void PlayerScript::AnticheatUpdateMovementInfo ( Player ,
MovementInfo const &   
)
inlinevirtual
738{ }

◆ CanApplyEnchantment()

virtual bool PlayerScript::CanApplyEnchantment ( Player ,
Item ,
EnchantmentSlot  ,
bool  ,
bool  ,
bool   
)
inlinevirtual
574{ return true; }

◆ CanApplyEquipSpell()

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

◆ CanApplyEquipSpellsItemSet()

virtual bool PlayerScript::CanApplyEquipSpellsItemSet ( Player ,
ItemSetEffect  
)
inlinevirtual
558{ return true; }

◆ CanApplyWeaponDependentAuraDamageMod()

virtual bool PlayerScript::CanApplyWeaponDependentAuraDamageMod ( Player ,
Item ,
WeaponAttackType  ,
AuraEffect const *  ,
bool   
)
inlinevirtual
554{ return true; }

◆ CanAreaExploreAndOutdoor()

virtual bool PlayerScript::CanAreaExploreAndOutdoor ( Player )
inlinevirtual
536{ return true; }

◆ CanArmorDamageModifier()

virtual bool PlayerScript::CanArmorDamageModifier ( Player )
inlinevirtual
550{ return true; }

◆ CanBattleFieldPort()

virtual bool PlayerScript::CanBattleFieldPort ( Player ,
uint8  ,
BattlegroundTypeId  ,
uint8   
)
inlinevirtual
483{ return true; }

◆ CanCastItemCombatSpell()

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

◆ CanCastItemUseSpell()

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

◆ CanEnterMap()

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

◆ CanEquipItem()

virtual bool PlayerScript::CanEquipItem ( Player ,
uint8  ,
uint16 ,
Item ,
bool  ,
bool   
)
inlinevirtual
566{ return true; }

◆ CanGiveMailRewardAtGiveLevel()

virtual bool PlayerScript::CanGiveMailRewardAtGiveLevel ( Player ,
uint8   
)
inlinevirtual
499{ return true; }

◆ CanGroupAccept()

virtual bool PlayerScript::CanGroupAccept ( Player ,
Group  
)
inlinevirtual
487{ return true; }

◆ CanGroupInvite()

virtual bool PlayerScript::CanGroupInvite ( Player ,
std::string &   
)
inlinevirtual
485{ return true; }

◆ CanInitTrade()

virtual bool PlayerScript::CanInitTrade ( Player ,
Player  
)
inlinevirtual
605{ return true; }

◆ CanJoinInArenaQueue()

virtual bool PlayerScript::CanJoinInArenaQueue ( Player ,
ObjectGuid  ,
uint8  ,
BattlegroundTypeId  ,
uint8  ,
uint8  ,
GroupJoinBattlegroundResult  
)
inlinevirtual
481{ return true; }

◆ CanJoinInBattlegroundQueue()

virtual bool PlayerScript::CanJoinInBattlegroundQueue ( Player ,
ObjectGuid  ,
BattlegroundTypeId  ,
uint8  ,
GroupJoinBattlegroundResult  
)
inlinevirtual
466{ return true; }

◆ CanJoinLfg()

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

◆ CanPlaceAuctionBid()

virtual bool PlayerScript::CanPlaceAuctionBid ( Player ,
AuctionEntry  
)
inlinevirtual
427{ return true; }

◆ CanPlayerUseChat() [1/5]

virtual bool PlayerScript::CanPlayerUseChat ( 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
636{ return true; }

◆ CanPlayerUseChat() [2/5]

virtual bool PlayerScript::CanPlayerUseChat ( 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
688{ return true; }

◆ CanPlayerUseChat() [3/5]

virtual bool PlayerScript::CanPlayerUseChat ( 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
662{ return true; }

◆ CanPlayerUseChat() [4/5]

virtual bool PlayerScript::CanPlayerUseChat ( 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
675{ return true; }

◆ CanPlayerUseChat() [5/5]

virtual bool PlayerScript::CanPlayerUseChat ( 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
649{ return true; }

◆ CanRepopAtGraveyard()

virtual bool PlayerScript::CanRepopAtGraveyard ( Player )
inlinevirtual
503{ return true; }

◆ CanSaveEquipNewItem()

virtual bool PlayerScript::CanSaveEquipNewItem ( Player ,
Item ,
uint16  ,
bool   
)
inlinevirtual
572{ return true; }

◆ CanSellItem()

virtual bool PlayerScript::CanSellItem ( Player ,
Item ,
Creature  
)
inlinevirtual
489{ return true; }

◆ CanSendErrorAlreadyLooted()

virtual bool PlayerScript::CanSendErrorAlreadyLooted ( 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.
749{ return true; }

◆ CanSendMail()

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

◆ CanSetTradeItem()

virtual bool PlayerScript::CanSetTradeItem ( 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
615{ return true; }

◆ CanUnequipItem()

virtual bool PlayerScript::CanUnequipItem ( Player ,
uint16  ,
bool   
)
inlinevirtual
568{ return true; }

◆ CanUseItem()

virtual bool PlayerScript::CanUseItem ( Player ,
ItemTemplate const *  ,
InventoryResult  
)
inlinevirtual
570{ return true; }

◆ CheckItemInSlotAtLoadInventory()

virtual bool PlayerScript::CheckItemInSlotAtLoadInventory ( Player ,
Item ,
uint8  ,
uint8 ,
uint16  
)
inlinevirtual
580{ return true; }

◆ NotAvoidSatisfy()

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

◆ NotSetArenaTeamInfoField()

virtual bool PlayerScript::NotSetArenaTeamInfoField ( Player ,
uint8  ,
ArenaTeamInfoType  ,
uint32   
)
inlinevirtual
599{ return true; }

◆ NotVisibleGloballyFor()

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

◆ OnAchiComplete()

virtual void PlayerScript::OnAchiComplete ( Player ,
AchievementEntry const *   
)
inlinevirtual
367{ }

◆ OnAchiSave()

virtual void PlayerScript::OnAchiSave ( CharacterDatabaseTransaction  ,
Player ,
uint16  ,
CompletedAchievementData   
)
inlinevirtual
379{ }

◆ OnAddToBattleground()

virtual void PlayerScript::OnAddToBattleground ( Player ,
Battleground  
)
inlinevirtual
358{ }

◆ OnAfterCreatureLoot()

virtual void PlayerScript::OnAfterCreatureLoot ( Player )
inlinevirtual

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

Parameters
playerContains information about the Player
757{ }

◆ OnAfterCreatureLootMoney()

virtual void PlayerScript::OnAfterCreatureLootMoney ( Player )
inlinevirtual

After a creature's money is taken.

Parameters
playerContains information about the Player
764{ }

◆ OnAfterGuardianInitStatsForLevel()

virtual void PlayerScript::OnAfterGuardianInitStatsForLevel ( Player ,
Guardian  
)
inlinevirtual
476{ }

◆ OnAfterMoveItemFromInventory()

virtual void PlayerScript::OnAfterMoveItemFromInventory ( Player ,
Item ,
uint8  ,
uint8  ,
bool   
)
inlinevirtual
397{ }

◆ OnAfterSetVisibleItemSlot()

virtual void PlayerScript::OnAfterSetVisibleItemSlot ( Player ,
uint8  ,
Item  
)
inlinevirtual
394{ }

◆ OnAfterSpecSlotChanged()

virtual void PlayerScript::OnAfterSpecSlotChanged ( Player ,
uint8   
)
inlinevirtual
258{ }

◆ OnAfterStoreOrEquipNewItem()

virtual void PlayerScript::OnAfterStoreOrEquipNewItem ( Player ,
uint32  ,
Item ,
uint8  ,
uint8  ,
uint8  ,
ItemTemplate const *  ,
Creature ,
VendorItem const *  ,
bool   
)
inlinevirtual
451{ };

◆ OnAfterUpdateAttackPowerAndDamage()

virtual void PlayerScript::OnAfterUpdateAttackPowerAndDamage ( Player ,
float &  ,
float &  ,
float &  ,
float &  ,
bool   
)
inlinevirtual
458{ }

◆ OnAfterUpdateMaxHealth()

virtual void PlayerScript::OnAfterUpdateMaxHealth ( Player ,
float &   
)
inlinevirtual
455{ }

◆ OnAfterUpdateMaxPower()

virtual void PlayerScript::OnAfterUpdateMaxPower ( Player ,
Powers ,
float &   
)
inlinevirtual
453{ }

◆ OnApplyAmmoBonuses()

virtual void PlayerScript::OnApplyAmmoBonuses ( Player ,
ItemTemplate const *  ,
float &   
)
inlinevirtual
564{ }

◆ OnApplyEnchantmentItemModsBefore()

virtual void PlayerScript::OnApplyEnchantmentItemModsBefore ( Player ,
Item ,
EnchantmentSlot  ,
bool  ,
uint32  ,
uint32  
)
inlinevirtual
548{ }

◆ OnApplyItemModsBefore()

virtual void PlayerScript::OnApplyItemModsBefore ( Player ,
uint8  ,
bool  ,
uint8  ,
uint32  ,
int32  
)
inlinevirtual
546{ }

◆ OnBattlegroundDesertion()

virtual void PlayerScript::OnBattlegroundDesertion ( Player ,
BattlegroundDesertionType const   
)
inlinevirtual
228{ }

◆ OnBeforeAchiComplete()

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

◆ OnBeforeBuyItemFromVendor()

virtual void PlayerScript::OnBeforeBuyItemFromVendor ( Player ,
ObjectGuid  ,
uint32  ,
uint32 ,
uint8  ,
uint8  ,
uint8   
)
inlinevirtual
445{ };

◆ OnBeforeChooseGraveyard()

virtual void PlayerScript::OnBeforeChooseGraveyard ( Player ,
TeamId  ,
bool  ,
uint32  
)
inlinevirtual
624{ }

◆ OnBeforeCriteriaProgress()

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

◆ OnBeforeDurabilityRepair()

virtual void PlayerScript::OnBeforeDurabilityRepair ( Player ,
ObjectGuid  ,
ObjectGuid  ,
float &  ,
uint8   
)
inlinevirtual
442{ }

◆ OnBeforeFillQuestLootItem()

virtual void PlayerScript::OnBeforeFillQuestLootItem ( Player ,
LootItem  
)
inlinevirtual
415{ }

◆ OnBeforeGuardianInitStatsForLevel()

virtual void PlayerScript::OnBeforeGuardianInitStatsForLevel ( Player ,
Guardian ,
CreatureTemplate const *  ,
PetType  
)
inlinevirtual
473{ }

◆ OnBeforeInitTalentForLevel()

virtual void PlayerScript::OnBeforeInitTalentForLevel ( Player ,
uint8 ,
uint32  
)
inlinevirtual
460{ }

◆ OnBeforeLoadPetFromDB()

virtual void PlayerScript::OnBeforeLoadPetFromDB ( Player ,
uint32 ,
uint32 ,
bool &  ,
bool &   
)
inlinevirtual
479{ }

◆ OnBeforeLogout()

virtual void PlayerScript::OnBeforeLogout ( Player )
inlinevirtual
322{ }

◆ OnBeforeLootMoney()

virtual void PlayerScript::OnBeforeLootMoney ( Player ,
Loot  
)
inlinevirtual
268{}

◆ OnBeforeOpenItem()

virtual bool PlayerScript::OnBeforeOpenItem ( Player ,
Item  
)
inlinevirtual
433{ return true; }

◆ OnBeforeQuestComplete()

virtual bool PlayerScript::OnBeforeQuestComplete ( Player ,
uint32   
)
inlinevirtual
436{ return true; }

◆ OnBeforeSendChatMessage()

virtual void PlayerScript::OnBeforeSendChatMessage ( Player ,
uint32 ,
uint32 ,
std::string &   
)
inlinevirtual
297{ }

◆ OnBeforeStoreOrEquipNewItem()

virtual void PlayerScript::OnBeforeStoreOrEquipNewItem ( Player ,
uint32  ,
uint32 ,
uint8  ,
uint8  ,
uint8  ,
ItemTemplate const *  ,
Creature ,
VendorItem const *  ,
bool   
)
inlinevirtual
448{ };

◆ OnBeforeTeleport()

virtual bool PlayerScript::OnBeforeTeleport ( Player ,
uint32  ,
float  ,
float  ,
float  ,
float  ,
uint32  ,
Unit  
)
inlinevirtual
352{ return true; }

◆ OnBeforeTempSummonInitStats()

virtual void PlayerScript::OnBeforeTempSummonInitStats ( Player ,
TempSummon ,
uint32  
)
inlinevirtual
470{ }

◆ OnBeforeUpdate()

virtual void PlayerScript::OnBeforeUpdate ( Player ,
uint32   
)
inlinevirtual
261{ }

◆ OnBeforeUpdateAttackPowerAndDamage()

virtual void PlayerScript::OnBeforeUpdateAttackPowerAndDamage ( Player ,
float &  ,
float &  ,
bool   
)
inlinevirtual
457{ }

◆ OnBeingCharmed()

virtual void PlayerScript::OnBeingCharmed ( Player ,
Unit ,
uint32  ,
uint32   
)
inlinevirtual
391{ }

◆ OnBindToInstance()

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

Reimplemented in lfg::LFGPlayerScript.

340{ }

◆ OnCalculateTalentsPoints()

virtual void PlayerScript::OnCalculateTalentsPoints ( Player const *  ,
uint32  
)
inlinevirtual
219{ }

◆ OnCanPlayerFlyInZone()

virtual bool PlayerScript::OnCanPlayerFlyInZone ( 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
731{ return true; }

◆ OnChat() [1/5]

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

Reimplemented in ChatLogScript.

295{ }

◆ OnChat() [2/5]

virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Channel  
)
inlinevirtual

Reimplemented in ChatLogScript.

305{ }

◆ OnChat() [3/5]

virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Group  
)
inlinevirtual

Reimplemented in ChatLogScript.

301{ }

◆ OnChat() [4/5]

virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Guild  
)
inlinevirtual

Reimplemented in ChatLogScript.

303{ }

◆ OnChat() [5/5]

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

Reimplemented in ChatLogScript.

299{ }

◆ OnCreate()

virtual void PlayerScript::OnCreate ( Player )
inlinevirtual

Reimplemented in CharacterActionIpLogger.

328{ }

◆ OnCreateItem()

virtual void PlayerScript::OnCreateItem ( Player ,
Item ,
uint32   
)
inlinevirtual
421{ }

◆ OnCreatureKill()

virtual void PlayerScript::OnCreatureKill ( Player ,
Creature  
)
inlinevirtual
240{ }

◆ OnCreatureKilledByPet()

virtual void PlayerScript::OnCreatureKilledByPet ( Player ,
Creature  
)
inlinevirtual
243{ }

◆ OnCriteriaProgress()

virtual void PlayerScript::OnCriteriaProgress ( Player ,
AchievementCriteriaEntry const *   
)
inlinevirtual
373{ }

◆ OnCriteriaSave()

virtual void PlayerScript::OnCriteriaSave ( CharacterDatabaseTransaction  ,
Player ,
uint16  ,
CriteriaProgress   
)
inlinevirtual
382{ }

◆ OnCustomScalingStatValue()

virtual void PlayerScript::OnCustomScalingStatValue ( Player ,
ItemTemplate const *  ,
uint32 ,
int32 ,
uint8  ,
uint32  ,
ScalingStatValuesEntry const *   
)
inlinevirtual
544{ }

◆ OnCustomScalingStatValueBefore()

virtual void PlayerScript::OnCustomScalingStatValueBefore ( Player ,
ItemTemplate const *  ,
uint8  ,
bool  ,
uint32  
)
inlinevirtual
542{ }

◆ OnDelete()

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

Reimplemented in CharacterDeleteActionIpLogger.

331{ }

◆ OnDeleteFromDB()

virtual void PlayerScript::OnDeleteFromDB ( CharacterDatabaseTransaction  ,
uint32   
)
inlinevirtual
501{ }

◆ OnDuelEnd()

virtual void PlayerScript::OnDuelEnd ( Player ,
Player ,
DuelCompleteType   
)
inlinevirtual
292{ }

◆ OnDuelRequest()

virtual void PlayerScript::OnDuelRequest ( Player ,
Player  
)
inlinevirtual
286{ }

◆ OnDuelStart()

virtual void PlayerScript::OnDuelStart ( Player ,
Player  
)
inlinevirtual
289{ }

◆ OnEmote()

virtual void PlayerScript::OnEmote ( Player ,
uint32   
)
inlinevirtual
308{ }

◆ OnEquip()

virtual void PlayerScript::OnEquip ( Player ,
Item ,
uint8  ,
uint8  ,
bool   
)
inlinevirtual
400{ }

◆ OnFailedDelete()

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

Reimplemented in CharacterDeleteActionIpLogger.

334{ }

◆ OnFfaPvpStateUpdate()

virtual void PlayerScript::OnFfaPvpStateUpdate ( Player ,
bool   
)
inlinevirtual
593{ }

◆ OnFirstLogin()

virtual void PlayerScript::OnFirstLogin ( Player )
inlinevirtual
462{ }

◆ OnForgotSpell()

virtual void PlayerScript::OnForgotSpell ( Player ,
uint32   
)
inlinevirtual
283{}

◆ OnFreeTalentPointsChanged()

virtual void PlayerScript::OnFreeTalentPointsChanged ( Player ,
uint32   
)
inlinevirtual
252{ }

◆ OnGetArenaPersonalRating()

virtual void PlayerScript::OnGetArenaPersonalRating ( Player ,
uint8  ,
uint32  
)
inlinevirtual
586{ }

◆ OnGetArenaTeamId()

virtual void PlayerScript::OnGetArenaTeamId ( Player ,
uint8  ,
uint32  
)
inlinevirtual
588{ }

◆ OnGetFeralApBonus()

virtual void PlayerScript::OnGetFeralApBonus ( Player ,
int32 ,
int32  ,
ItemTemplate const *  ,
ScalingStatValuesEntry const *   
)
inlinevirtual
552{ }

◆ OnGetMaxPersonalArenaRatingRequirement()

virtual void PlayerScript::OnGetMaxPersonalArenaRatingRequirement ( Player const *  ,
uint32  ,
uint32  
) const
inlinevirtual
409{}

◆ OnGetMaxSkillValue()

virtual void PlayerScript::OnGetMaxSkillValue ( Player ,
uint32  ,
int32 ,
bool   
)
inlinevirtual
507{ }

◆ OnGetMaxSkillValueForLevel()

virtual void PlayerScript::OnGetMaxSkillValueForLevel ( Player ,
uint16  
)
inlinevirtual
597{ }

◆ OnGetQuestRate()

virtual void PlayerScript::OnGetQuestRate ( Player ,
float &   
)
inlinevirtual
576{ }

◆ OnGiveXP()

virtual void PlayerScript::OnGiveXP ( Player ,
uint32 ,
Unit ,
uint8   
)
inlinevirtual
271{ }

◆ OnGossipSelect()

virtual void PlayerScript::OnGossipSelect ( Player ,
uint32  ,
uint32  ,
uint32   
)
inlinevirtual
385{ }

◆ OnGossipSelectCode()

virtual void PlayerScript::OnGossipSelectCode ( Player ,
uint32  ,
uint32  ,
uint32  ,
const char *   
)
inlinevirtual
388{ }

◆ OnGroupRollRewardItem()

virtual void PlayerScript::OnGroupRollRewardItem ( Player ,
Item ,
uint32  ,
RollVote  ,
Roll  
)
inlinevirtual
430{ }

◆ OnIsFFAPvP()

virtual void PlayerScript::OnIsFFAPvP ( Player ,
bool &   
)
inlinevirtual
590{ }

◆ OnIsPvP()

virtual void PlayerScript::OnIsPvP ( Player ,
bool &   
)
inlinevirtual
595{ }

◆ OnLearnSpell()

virtual void PlayerScript::OnLearnSpell ( Player ,
uint32   
)
inlinevirtual
280{}

◆ OnLevelChanged()

virtual void PlayerScript::OnLevelChanged ( Player ,
uint8   
)
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

249{ }

◆ OnLoadFromDB()

virtual void PlayerScript::OnLoadFromDB ( Player )
inlinevirtual
316{ };

◆ OnLogin()

virtual void PlayerScript::OnLogin ( Player )
inlinevirtual

◆ OnLogout()

virtual void PlayerScript::OnLogout ( Player )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript, and CharacterActionIpLogger.

325{ }

◆ OnLootItem()

virtual void PlayerScript::OnLootItem ( Player ,
Item ,
uint32  ,
ObjectGuid   
)
inlinevirtual
412{ }

◆ OnMapChanged()

virtual void PlayerScript::OnMapChanged ( Player )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

349{ }

Referenced by ScriptMgr::OnPlayerEnterMap().

◆ OnMoneyChanged()

virtual void PlayerScript::OnMoneyChanged ( Player ,
int32  
)
inlinevirtual
265{ }

◆ OnPlayerCompleteQuest()

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

Reimplemented in QuestApprenticeAnglerPlayerScript.

231{ }

◆ 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
706{ }

◆ OnPlayerHasActivePowerType()

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

◆ OnPlayerIsClass()

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

◆ OnPlayerJoinArena()

virtual void PlayerScript::OnPlayerJoinArena ( Player )
inlinevirtual
406{ }

◆ OnPlayerJoinBG()

virtual void PlayerScript::OnPlayerJoinBG ( Player )
inlinevirtual
403{ }

◆ OnPlayerJustDied()

virtual void PlayerScript::OnPlayerJustDied ( Player )
inlinevirtual
216{ }

◆ OnPlayerKilledByCreature()

virtual void PlayerScript::OnPlayerKilledByCreature ( Creature ,
Player  
)
inlinevirtual
246{ }

◆ 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
698{ }

◆ OnPlayerLeaveCombat()

virtual void PlayerScript::OnPlayerLeaveCombat ( Player )
inlinevirtual

This hook called after player leave combat.

Parameters
playerContains information about the Player
713{ }

◆ OnPlayerPVPFlagChange()

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

◆ OnPlayerReleasedGhost()

virtual void PlayerScript::OnPlayerReleasedGhost ( Player )
inlinevirtual
222{ }

◆ OnPlayerResurrect()

virtual void PlayerScript::OnPlayerResurrect ( Player ,
float  ,
bool   
)
inlinevirtual
621{ }

◆ OnPVPKill()

virtual void PlayerScript::OnPVPKill ( Player ,
Player  
)
inlinevirtual
234{ }

◆ OnQuestAbandon()

virtual void PlayerScript::OnQuestAbandon ( Player ,
uint32   
)
inlinevirtual

This hook called after player abandoning quest.

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

◆ OnQuestComputeXP()

virtual void PlayerScript::OnQuestComputeXP ( Player ,
Quest const *  ,
uint32  
)
inlinevirtual
439{ }

◆ OnQuestRewardItem()

virtual void PlayerScript::OnQuestRewardItem ( Player ,
Item ,
uint32   
)
inlinevirtual
424{ }

◆ OnQueueRandomDungeon()

virtual void PlayerScript::OnQueueRandomDungeon ( Player ,
uint32  
)
inlinevirtual
361{ }

◆ OnRemoveFromBattleground()

virtual void PlayerScript::OnRemoveFromBattleground ( Player ,
Battleground  
)
inlinevirtual
364{ }

◆ OnReputationChange()

virtual bool PlayerScript::OnReputationChange ( Player ,
uint32  ,
int32 ,
bool   
)
inlinevirtual
274{ return true; }

◆ OnReputationRankChange()

virtual void PlayerScript::OnReputationRankChange ( Player ,
uint32  ,
ReputationRank  ,
ReputationRank  ,
bool   
)
inlinevirtual
277{ }

◆ OnRewardKillRewarder()

virtual void PlayerScript::OnRewardKillRewarder ( Player ,
KillRewarder ,
bool  ,
float &   
)
inlinevirtual
497{ }

◆ OnSave()

virtual void PlayerScript::OnSave ( Player )
inlinevirtual
337{ }

◆ OnSendInitialPacketsBeforeAddToMap()

virtual void PlayerScript::OnSendInitialPacketsBeforeAddToMap ( Player ,
WorldPacket  
)
inlinevirtual
225{}

◆ OnSetMaxLevel()

virtual void PlayerScript::OnSetMaxLevel ( Player ,
uint32  
)
inlinevirtual
464{ }

◆ OnSetServerSideVisibility()

virtual void PlayerScript::OnSetServerSideVisibility ( Player ,
ServerSideVisibilityType ,
AccountTypes  
)
inlinevirtual
617{ }

◆ OnSetServerSideVisibilityDetect()

virtual void PlayerScript::OnSetServerSideVisibilityDetect ( Player ,
ServerSideVisibilityType ,
AccountTypes  
)
inlinevirtual
619{ }

◆ OnSpellCast()

virtual void PlayerScript::OnSpellCast ( Player ,
Spell ,
bool   
)
inlinevirtual
313{ }

◆ OnStoreNewItem()

virtual void PlayerScript::OnStoreNewItem ( Player ,
Item ,
uint32   
)
inlinevirtual
418{ }

◆ OnTalentsReset()

virtual void PlayerScript::OnTalentsReset ( Player ,
bool   
)
inlinevirtual
255{ }

◆ OnTextEmote()

virtual void PlayerScript::OnTextEmote ( Player ,
uint32  ,
uint32  ,
ObjectGuid   
)
inlinevirtual
310{ }

◆ OnUpdate()

virtual void PlayerScript::OnUpdate ( Player ,
uint32   
)
inlinevirtual
262{ }

◆ OnUpdateArea()

virtual void PlayerScript::OnUpdateArea ( Player ,
uint32  ,
uint32   
)
inlinevirtual
346{ }

◆ OnUpdateCraftingSkill()

virtual void PlayerScript::OnUpdateCraftingSkill ( 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
532{ }

◆ OnUpdateFaction()

virtual void PlayerScript::OnUpdateFaction ( Player )
inlinevirtual
355{ }

◆ OnUpdateFishingSkill()

virtual bool PlayerScript::OnUpdateFishingSkill ( Player ,
int32  ,
int32  ,
int32  ,
int32   
)
inlinevirtual
534{ return true; }

◆ OnUpdateGatheringSkill()

virtual void PlayerScript::OnUpdateGatheringSkill ( 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
522{ }

◆ OnUpdateZone()

virtual void PlayerScript::OnUpdateZone ( Player ,
uint32  ,
uint32   
)
inlinevirtual

Reimplemented in MidsummerPlayerScript.

343{ }

◆ OnVictimRewardAfter()

virtual void PlayerScript::OnVictimRewardAfter ( Player ,
Player ,
uint32 ,
uint32 ,
float &   
)
inlinevirtual
540{ }

◆ OnVictimRewardBefore()

virtual void PlayerScript::OnVictimRewardBefore ( Player ,
Player ,
uint32 ,
uint32  
)
inlinevirtual
538{ }

◆ PassedQuestKilledMonsterCredit()

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

◆ PetitionBuy()

virtual void PlayerScript::PetitionBuy ( Player ,
Creature ,
uint32 ,
uint32 ,
uint32  
)
inlinevirtual
493{ }

◆ PetitionShowList()

virtual void PlayerScript::PetitionShowList ( Player ,
Creature ,
uint32 ,
uint32 ,
uint32  
)
inlinevirtual
495{ }

◆ ShouldBeRewardedWithMoneyInsteadOfExp()

virtual bool PlayerScript::ShouldBeRewardedWithMoneyInsteadOfExp ( Player )
inlinevirtual
467{ return false; }