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:205
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

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

Member Function Documentation

◆ AnticheatCheckMovementInfo()

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

◆ AnticheatHandleDoubleJump()

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

◆ AnticheatSetCanFlybyServer()

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

◆ AnticheatSetJumpingbyOpcode()

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

◆ AnticheatSetRootACKUpd()

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

◆ AnticheatSetUnderACKmount()

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

◆ AnticheatUpdateMovementInfo()

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

◆ CanApplyEnchantment()

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

◆ CanApplyEquipSpell()

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

◆ CanApplyEquipSpellsItemSet()

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

◆ CanApplyWeaponDependentAuraDamageMod()

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

◆ CanAreaExploreAndOutdoor()

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

◆ CanArmorDamageModifier()

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

◆ CanBattleFieldPort()

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

◆ CanCastItemCombatSpell()

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

◆ CanCastItemUseSpell()

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

◆ CanEnterMap()

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

◆ CanEquipItem()

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

◆ CanGiveMailRewardAtGiveLevel()

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

◆ CanGroupAccept()

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

◆ CanGroupInvite()

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

◆ CanInitTrade()

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

◆ CanJoinInArenaQueue()

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

◆ CanJoinInBattlegroundQueue()

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

◆ CanJoinLfg()

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

◆ CanPlaceAuctionBid()

virtual bool PlayerScript::CanPlaceAuctionBid ( Player ,
AuctionEntry  
)
inlinevirtual
426{ 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
635{ 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
687{ 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
661{ 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
674{ 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
648{ return true; }

◆ CanRepopAtGraveyard()

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

◆ CanSaveEquipNewItem()

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

◆ CanSellItem()

virtual bool PlayerScript::CanSellItem ( Player ,
Item ,
Creature  
)
inlinevirtual
488{ 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.
748{ return true; }

◆ CanSendMail()

virtual bool PlayerScript::CanSendMail ( Player ,
ObjectGuid  ,
ObjectGuid  ,
std::string &  ,
std::string &  ,
uint32  ,
uint32  ,
Item  
)
inlinevirtual
490{ 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
614{ return true; }

◆ CanUnequipItem()

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

◆ CanUseItem()

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

◆ CheckItemInSlotAtLoadInventory()

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

◆ NotAvoidSatisfy()

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

◆ NotSetArenaTeamInfoField()

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

◆ NotVisibleGloballyFor()

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

◆ OnAchiComplete()

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

◆ OnAchiSave()

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

◆ OnAddToBattleground()

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

◆ OnAfterCreatureLoot()

virtual void PlayerScript::OnAfterCreatureLoot ( Player )
inlinevirtual

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

Parameters
playerContains information about the Player
756{ }

◆ OnAfterCreatureLootMoney()

virtual void PlayerScript::OnAfterCreatureLootMoney ( Player )
inlinevirtual

After a creature's money is taken.

Parameters
playerContains information about the Player
763{ }

◆ OnAfterGuardianInitStatsForLevel()

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

◆ OnAfterMoveItemFromInventory()

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

◆ OnAfterSetVisibleItemSlot()

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

◆ OnAfterSpecSlotChanged()

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

◆ OnAfterStoreOrEquipNewItem()

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

◆ OnAfterUpdateAttackPowerAndDamage()

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

◆ OnAfterUpdateMaxHealth()

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

◆ OnAfterUpdateMaxPower()

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

◆ OnApplyAmmoBonuses()

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

◆ OnApplyEnchantmentItemModsBefore()

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

◆ OnApplyItemModsBefore()

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

◆ OnBattlegroundDesertion()

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

◆ OnBeforeAchiComplete()

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

◆ OnBeforeBuyItemFromVendor()

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

◆ OnBeforeChooseGraveyard()

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

◆ OnBeforeCriteriaProgress()

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

◆ OnBeforeDurabilityRepair()

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

◆ OnBeforeFillQuestLootItem()

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

◆ OnBeforeGuardianInitStatsForLevel()

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

◆ OnBeforeInitTalentForLevel()

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

◆ OnBeforeLoadPetFromDB()

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

◆ OnBeforeLogout()

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

◆ OnBeforeLootMoney()

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

◆ OnBeforeOpenItem()

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

◆ OnBeforeQuestComplete()

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

◆ OnBeforeSendChatMessage()

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

◆ OnBeforeStoreOrEquipNewItem()

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

◆ OnBeforeTeleport()

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

◆ OnBeforeTempSummonInitStats()

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

◆ OnBeforeUpdate()

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

◆ OnBeforeUpdateAttackPowerAndDamage()

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

◆ OnBeingCharmed()

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

◆ OnBindToInstance()

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

Reimplemented in lfg::LFGPlayerScript.

339{ }

◆ OnCalculateTalentsPoints()

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

◆ 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
730{ return true; }

◆ OnChat() [1/5]

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

Reimplemented in ChatLogScript.

294{ }

◆ OnChat() [2/5]

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

Reimplemented in ChatLogScript.

304{ }

◆ OnChat() [3/5]

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

Reimplemented in ChatLogScript.

300{ }

◆ OnChat() [4/5]

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

Reimplemented in ChatLogScript.

302{ }

◆ OnChat() [5/5]

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

Reimplemented in ChatLogScript.

298{ }

◆ OnCreate()

virtual void PlayerScript::OnCreate ( Player )
inlinevirtual

Reimplemented in CharacterActionIpLogger.

327{ }

◆ OnCreateItem()

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

◆ OnCreatureKill()

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

◆ OnCreatureKilledByPet()

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

◆ OnCriteriaProgress()

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

◆ OnCriteriaSave()

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

◆ OnCustomScalingStatValue()

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

◆ OnCustomScalingStatValueBefore()

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

◆ OnDelete()

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

Reimplemented in CharacterDeleteActionIpLogger.

330{ }

◆ OnDeleteFromDB()

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

◆ OnDuelEnd()

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

◆ OnDuelRequest()

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

◆ OnDuelStart()

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

◆ OnEmote()

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

◆ OnEquip()

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

◆ OnFailedDelete()

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

Reimplemented in CharacterDeleteActionIpLogger.

333{ }

◆ OnFfaPvpStateUpdate()

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

◆ OnFirstLogin()

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

◆ OnForgotSpell()

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

◆ OnFreeTalentPointsChanged()

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

◆ OnGetArenaPersonalRating()

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

◆ OnGetArenaTeamId()

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

◆ OnGetFeralApBonus()

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

◆ OnGetMaxPersonalArenaRatingRequirement()

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

◆ OnGetMaxSkillValue()

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

◆ OnGetMaxSkillValueForLevel()

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

◆ OnGetQuestRate()

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

◆ OnGiveXP()

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

◆ OnGossipSelect()

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

◆ OnGossipSelectCode()

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

◆ OnGroupRollRewardItem()

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

◆ OnIsFFAPvP()

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

◆ OnIsPvP()

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

◆ OnLearnSpell()

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

◆ OnLevelChanged()

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

Reimplemented in lfg::LFGPlayerScript.

248{ }

◆ OnLoadFromDB()

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

◆ OnLogin()

virtual void PlayerScript::OnLogin ( Player )
inlinevirtual

◆ OnLogout()

virtual void PlayerScript::OnLogout ( Player )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript, and CharacterActionIpLogger.

324{ }

◆ OnLootItem()

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

◆ OnMapChanged()

virtual void PlayerScript::OnMapChanged ( Player )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

348{ }

Referenced by ScriptMgr::OnPlayerEnterMap().

◆ OnMoneyChanged()

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

◆ OnPlayerCompleteQuest()

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

Reimplemented in QuestApprenticeAnglerPlayerScript.

230{ }

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

◆ OnPlayerHasActivePowerType()

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

◆ OnPlayerIsClass()

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

◆ OnPlayerJoinArena()

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

◆ OnPlayerJoinBG()

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

◆ OnPlayerJustDied()

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

◆ OnPlayerKilledByCreature()

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

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

◆ OnPlayerLeaveCombat()

virtual void PlayerScript::OnPlayerLeaveCombat ( Player )
inlinevirtual

This hook called after player leave combat.

Parameters
playerContains information about the Player
712{ }

◆ OnPlayerPVPFlagChange()

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

◆ OnPlayerReleasedGhost()

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

◆ OnPlayerResurrect()

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

◆ OnPVPKill()

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

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

◆ OnQuestComputeXP()

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

◆ OnQuestRewardItem()

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

◆ OnQueueRandomDungeon()

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

◆ OnRemoveFromBattleground()

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

◆ OnReputationChange()

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

◆ OnReputationRankChange()

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

◆ OnRewardKillRewarder()

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

◆ OnSave()

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

◆ OnSendInitialPacketsBeforeAddToMap()

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

◆ OnSetMaxLevel()

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

◆ OnSetServerSideVisibility()

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

◆ OnSetServerSideVisibilityDetect()

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

◆ OnSpellCast()

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

◆ OnStoreNewItem()

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

◆ OnTalentsReset()

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

◆ OnTextEmote()

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

◆ OnUpdate()

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

◆ OnUpdateArea()

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

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

◆ OnUpdateFaction()

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

◆ OnUpdateFishingSkill()

virtual bool PlayerScript::OnUpdateFishingSkill ( Player ,
int32  ,
int32  ,
int32  ,
int32   
)
inlinevirtual
533{ 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
521{ }

◆ OnUpdateZone()

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

Reimplemented in MidsummerPlayerScript.

342{ }

◆ OnVictimRewardAfter()

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

◆ OnVictimRewardBefore()

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

◆ PassedQuestKilledMonsterCredit()

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

◆ PetitionBuy()

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

◆ PetitionShowList()

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

◆ ShouldBeRewardedWithMoneyInsteadOfExp()

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