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

#include "ScriptMgr.h"

Public Types

typedef void(* ScriptLoaderCallbackType) ()
 
typedef void(* ModulesLoaderCallbackType) ()
 

Public Member Functions

void Initialize ()
 
void LoadDatabase ()
 
void FillSpellSummary ()
 
void CheckIfScriptsInDatabaseExist ()
 
std::string_view ScriptsVersion () const
 
void IncreaseScriptCount ()
 
void DecreaseScriptCount ()
 
uint32 GetScriptCount () const
 
void SetScriptLoader (ScriptLoaderCallbackType script_loader_callback)
 
void SetModulesLoader (ModulesLoaderCallbackType script_loader_callback)
 
void Unload ()
 
void CreateSpellScripts (uint32 spellId, std::list< SpellScript * > &scriptVector)
 
void CreateAuraScripts (uint32 spellId, std::list< AuraScript * > &scriptVector)
 
void CreateSpellScriptLoaders (uint32 spellId, std::vector< std::pair< SpellScriptLoader *, std::multimap< uint32, uint32 >::iterator > > &scriptVector)
 
void OnNetworkStart ()
 
void OnNetworkStop ()
 
void OnSocketOpen (std::shared_ptr< WorldSocket > socket)
 
void OnSocketClose (std::shared_ptr< WorldSocket > socket)
 
bool CanPacketReceive (WorldSession *session, WorldPacket const &packet)
 
bool CanPacketSend (WorldSession *session, WorldPacket const &packet)
 
void OnLoadCustomDatabaseTable ()
 
void OnOpenStateChange (bool open)
 
void OnBeforeConfigLoad (bool reload)
 
void OnAfterConfigLoad (bool reload)
 
void OnBeforeFinalizePlayerWorldSession (uint32 &cacheVersion)
 
void OnMotdChange (std::string &newMotd, LocaleConstant &locale)
 
void OnShutdownInitiate (ShutdownExitCode code, ShutdownMask mask)
 
void OnShutdownCancel ()
 
void OnWorldUpdate (uint32 diff)
 
void OnStartup ()
 
void OnShutdown ()
 
void OnBeforeWorldInitialized ()
 
void OnAfterUnloadAllMaps ()
 
void OnHonorCalculation (float &honor, uint8 level, float multiplier)
 
void OnGrayLevelCalculation (uint8 &grayLevel, uint8 playerLevel)
 
void OnColorCodeCalculation (XPColorChar &color, uint8 playerLevel, uint8 mobLevel)
 
void OnZeroDifferenceCalculation (uint8 &diff, uint8 playerLevel)
 
void OnBaseGainCalculation (uint32 &gain, uint8 playerLevel, uint8 mobLevel, ContentLevels content)
 
void OnGainCalculation (uint32 &gain, Player *player, Unit *unit)
 
void OnGroupRateCalculation (float &rate, uint32 count, bool isRaid)
 
void OnAfterArenaRatingCalculation (Battleground *const bg, int32 &winnerMatchmakerChange, int32 &loserMatchmakerChange, int32 &winnerChange, int32 &loserChange)
 
void OnBeforeUpdatingPersonalRating (int32 &mod, uint32 type)
 
void OnCreateMap (Map *map)
 
void OnDestroyMap (Map *map)
 
void OnLoadGridMap (Map *map, GridTerrainData *gmap, uint32 gx, uint32 gy)
 
void OnUnloadGridMap (Map *map, GridTerrainData *gmap, uint32 gx, uint32 gy)
 
void OnPlayerEnterMap (Map *map, Player *player)
 
void OnPlayerLeaveMap (Map *map, Player *player)
 
void OnMapUpdate (Map *map, uint32 diff)
 
InstanceScriptCreateInstanceScript (InstanceMap *map)
 
bool OnQuestAccept (Player *player, Item *item, Quest const *quest)
 
bool OnItemUse (Player *player, Item *item, SpellCastTargets const &targets)
 
bool OnItemExpire (Player *player, ItemTemplate const *proto)
 
bool OnItemRemove (Player *player, Item *item)
 
bool OnCastItemCombatSpell (Player *player, Unit *victim, SpellInfo const *spellInfo, Item *item)
 
void OnGossipSelect (Player *player, Item *item, uint32 sender, uint32 action)
 
void OnGossipSelectCode (Player *player, Item *item, uint32 sender, uint32 action, const char *code)
 
bool OnGossipHello (Player *player, Creature *creature)
 
bool OnGossipSelect (Player *player, Creature *creature, uint32 sender, uint32 action)
 
bool OnGossipSelectCode (Player *player, Creature *creature, uint32 sender, uint32 action, const char *code)
 
bool OnQuestAccept (Player *player, Creature *creature, Quest const *quest)
 
bool OnQuestSelect (Player *player, Creature *creature, Quest const *quest)
 
bool OnQuestComplete (Player *player, Creature *creature, Quest const *quest)
 
bool OnQuestReward (Player *player, Creature *creature, Quest const *quest, uint32 opt)
 
uint32 GetDialogStatus (Player *player, Creature *creature)
 
CreatureAIGetCreatureAI (Creature *creature)
 
void OnCreatureUpdate (Creature *creature, uint32 diff)
 
void OnCreatureAddWorld (Creature *creature)
 
void OnCreatureRemoveWorld (Creature *creature)
 
void OnFfaPvpStateUpdate (Creature *creature, bool InPvp)
 
bool OnGossipHello (Player *player, GameObject *go)
 
bool OnGossipSelect (Player *player, GameObject *go, uint32 sender, uint32 action)
 
bool OnGossipSelectCode (Player *player, GameObject *go, uint32 sender, uint32 action, const char *code)
 
bool OnQuestAccept (Player *player, GameObject *go, Quest const *quest)
 
bool OnQuestReward (Player *player, GameObject *go, Quest const *quest, uint32 opt)
 
uint32 GetDialogStatus (Player *player, GameObject *go)
 
void OnGameObjectDestroyed (GameObject *go, Player *player)
 
void OnGameObjectDamaged (GameObject *go, Player *player)
 
void OnGameObjectModifyHealth (GameObject *go, Unit *attackerOrHealer, int32 &change, SpellInfo const *spellInfo)
 
void OnGameObjectLootStateChanged (GameObject *go, uint32 state, Unit *unit)
 
void OnGameObjectStateChanged (GameObject *go, uint32 state)
 
void OnGameObjectUpdate (GameObject *go, uint32 diff)
 
GameObjectAIGetGameObjectAI (GameObject *go)
 
void OnGameObjectAddWorld (GameObject *go)
 
void OnGameObjectRemoveWorld (GameObject *go)
 
bool OnAreaTrigger (Player *player, AreaTrigger const *trigger)
 
BattlegroundCreateBattleground (BattlegroundTypeId typeId)
 
OutdoorPvPCreateOutdoorPvP (OutdoorPvPData const *data)
 
std::vector< Acore::ChatCommands::ChatCommandBuilderGetChatCommands ()
 
void OnWeatherChange (Weather *weather, WeatherState state, float grade)
 
void OnWeatherUpdate (Weather *weather, uint32 diff)
 
void OnAuctionAdd (AuctionHouseObject *ah, AuctionEntry *entry)
 
void OnAuctionRemove (AuctionHouseObject *ah, AuctionEntry *entry)
 
void OnAuctionSuccessful (AuctionHouseObject *ah, AuctionEntry *entry)
 
void OnAuctionExpire (AuctionHouseObject *ah, AuctionEntry *entry)
 
void OnBeforeAuctionHouseMgrSendAuctionWonMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *bidder, uint32 &bidder_accId, bool &sendNotification, bool &updateAchievementCriteria, bool &sendMail)
 
void OnBeforeAuctionHouseMgrSendAuctionSalePendingMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *owner, uint32 &owner_accId, bool &sendMail)
 
void OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *owner, uint32 &owner_accId, uint32 &profit, bool &sendNotification, bool &updateAchievementCriteria, bool &sendMail)
 
void OnBeforeAuctionHouseMgrSendAuctionExpiredMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *owner, uint32 &owner_accId, bool &sendNotification, bool &sendMail)
 
void OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *oldBidder, uint32 &oldBidder_accId, Player *newBidder, uint32 &newPrice, bool &sendNotification, bool &sendMail)
 
void OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail (AuctionHouseMgr *auctionHouseMgr, AuctionEntry *auction, Player *bidder, uint32 &bidder_accId, bool &sendMail)
 
void OnBeforeAuctionHouseMgrUpdate ()
 
bool OnConditionCheck (Condition *condition, ConditionSourceInfo &sourceInfo)
 
void OnInstall (Vehicle *veh)
 
void OnUninstall (Vehicle *veh)
 
void OnReset (Vehicle *veh)
 
void OnInstallAccessory (Vehicle *veh, Creature *accessory)
 
void OnAddPassenger (Vehicle *veh, Unit *passenger, int8 seatId)
 
void OnRemovePassenger (Vehicle *veh, Unit *passenger)
 
void OnDynamicObjectUpdate (DynamicObject *dynobj, uint32 diff)
 
void OnAddPassenger (Transport *transport, Player *player)
 
void OnAddCreaturePassenger (Transport *transport, Creature *creature)
 
void OnRemovePassenger (Transport *transport, Player *player)
 
void OnTransportUpdate (Transport *transport, uint32 diff)
 
void OnRelocate (Transport *transport, uint32 waypointId, uint32 mapId, float x, float y, float z)
 
bool OnCriteriaCheck (uint32 scriptId, Player *source, Unit *target, uint32 criteria_id)
 
void OnPlayerJustDied (Player *player)
 
void OnPlayerCalculateTalentsPoints (Player const *player, uint32 &talentPointsForLevel)
 
void OnPlayerReleasedGhost (Player *player)
 
void OnPlayerSendInitialPacketsBeforeAddToMap (Player *player, WorldPacket &data)
 
void OnPlayerBeforeUpdate (Player *player, uint32 p_time)
 
void OnPlayerUpdate (Player *player, uint32 p_time)
 
void OnPlayerPVPKill (Player *killer, Player *killed)
 
void OnPlayerPVPFlagChange (Player *player, bool state)
 
void OnPlayerCreatureKill (Player *killer, Creature *killed)
 
void OnPlayerCreatureKilledByPet (Player *petOwner, Creature *killed)
 
void OnPlayerKilledByCreature (Creature *killer, Player *killed)
 
void OnPlayerLevelChanged (Player *player, uint8 oldLevel)
 
void OnPlayerFreeTalentPointsChanged (Player *player, uint32 newPoints)
 
void OnPlayerTalentsReset (Player *player, bool noCost)
 
void OnPlayerAfterSpecSlotChanged (Player *player, uint8 newSlot)
 
void OnPlayerMoneyChanged (Player *player, int32 &amount)
 
void OnPlayerBeforeLootMoney (Player *player, Loot *loot)
 
void OnPlayerGiveXP (Player *player, uint32 &amount, Unit *victim, uint8 xpSource)
 
bool OnPlayerReputationChange (Player *player, uint32 factionID, int32 &standing, bool incremental)
 
void OnPlayerReputationRankChange (Player *player, uint32 factionID, ReputationRank newRank, ReputationRank oldRank, bool increased)
 
void OnPlayerLearnSpell (Player *player, uint32 spellID)
 
void OnPlayerForgotSpell (Player *player, uint32 spellID)
 
void OnPlayerDuelRequest (Player *target, Player *challenger)
 
void OnPlayerDuelStart (Player *player1, Player *player2)
 
void OnPlayerDuelEnd (Player *winner, Player *loser, DuelCompleteType type)
 
void OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg)
 
void OnPlayerBeforeSendChatMessage (Player *player, uint32 &type, uint32 &lang, std::string &msg)
 
void OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Player *receiver)
 
void OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Group *group)
 
void OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Guild *guild)
 
void OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Channel *channel)
 
void OnPlayerEmote (Player *player, uint32 emote)
 
void OnPlayerTextEmote (Player *player, uint32 textEmote, uint32 emoteNum, ObjectGuid guid)
 
void OnPlayerSpellCast (Player *player, Spell *spell, bool skipCheck)
 
void OnPlayerLogin (Player *player)
 
void OnPlayerLoadFromDB (Player *player)
 
void OnPlayerBeforeLogout (Player *player)
 
void OnPlayerLogout (Player *player)
 
void OnPlayerCreate (Player *player)
 
void OnPlayerSave (Player *player)
 
void OnPlayerDelete (ObjectGuid guid, uint32 accountId)
 
void OnPlayerFailedDelete (ObjectGuid guid, uint32 accountId)
 
void OnPlayerBindToInstance (Player *player, Difficulty difficulty, uint32 mapid, bool permanent)
 
void OnPlayerUpdateZone (Player *player, uint32 newZone, uint32 newArea)
 
void OnPlayerUpdateArea (Player *player, uint32 oldArea, uint32 newArea)
 
bool OnPlayerBeforeTeleport (Player *player, uint32 mapid, float x, float y, float z, float orientation, uint32 options, Unit *target)
 
void OnPlayerUpdateFaction (Player *player)
 
void OnPlayerAddToBattleground (Player *player, Battleground *bg)
 
void OnPlayerQueueRandomDungeon (Player *player, uint32 &rDungeonId)
 
void OnPlayerRemoveFromBattleground (Player *player, Battleground *bg)
 
void OnPlayerAchievementComplete (Player *player, AchievementEntry const *achievement)
 
bool OnPlayerBeforeAchievementComplete (Player *player, AchievementEntry const *achievement)
 
void OnPlayerCriteriaProgress (Player *player, AchievementCriteriaEntry const *criteria)
 
bool OnPlayerBeforeCriteriaProgress (Player *player, AchievementCriteriaEntry const *criteria)
 
void OnPlayerAchievementSave (CharacterDatabaseTransaction trans, Player *player, uint16 achiId, CompletedAchievementData achiData)
 
void OnPlayerCriteriaSave (CharacterDatabaseTransaction trans, Player *player, uint16 critId, CriteriaProgress criteriaData)
 
void OnPlayerGossipSelect (Player *player, uint32 menu_id, uint32 sender, uint32 action)
 
void OnPlayerGossipSelectCode (Player *player, uint32 menu_id, uint32 sender, uint32 action, const char *code)
 
void OnPlayerBeingCharmed (Player *player, Unit *charmer, uint32 oldFactionId, uint32 newFactionId)
 
void OnPlayerAfterSetVisibleItemSlot (Player *player, uint8 slot, Item *item)
 
void OnPlayerAfterMoveItemFromInventory (Player *player, Item *it, uint8 bag, uint8 slot, bool update)
 
void OnPlayerEquip (Player *player, Item *it, uint8 bag, uint8 slot, bool update)
 
void OnPlayerJoinBG (Player *player)
 
void OnPlayerJoinArena (Player *player)
 
void OnPlayerGetMaxPersonalArenaRatingRequirement (Player const *player, uint32 minSlot, uint32 &maxArenaRating) const
 
void OnPlayerLootItem (Player *player, Item *item, uint32 count, ObjectGuid lootguid)
 
void OnPlayerBeforeFillQuestLootItem (Player *player, LootItem &item)
 
void OnPlayerStoreNewItem (Player *player, Item *item, uint32 count)
 
void OnPlayerCreateItem (Player *player, Item *item, uint32 count)
 
void OnPlayerQuestRewardItem (Player *player, Item *item, uint32 count)
 
bool OnPlayerCanPlaceAuctionBid (Player *player, AuctionEntry *auction)
 
void OnPlayerGroupRollRewardItem (Player *player, Item *item, uint32 count, RollVote voteType, Roll *roll)
 
bool OnPlayerBeforeOpenItem (Player *player, Item *item)
 
bool OnPlayerBeforeQuestComplete (Player *player, uint32 quest_id)
 
void OnPlayerQuestComputeXP (Player *player, Quest const *quest, uint32 &xpValue)
 
void OnPlayerBeforeDurabilityRepair (Player *player, ObjectGuid npcGUID, ObjectGuid itemGUID, float &discountMod, uint8 guildBank)
 
void OnPlayerBeforeBuyItemFromVendor (Player *player, ObjectGuid vendorguid, uint32 vendorslot, uint32 &item, uint8 count, uint8 bag, uint8 slot)
 
void OnPlayerBeforeStoreOrEquipNewItem (Player *player, uint32 vendorslot, uint32 &item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore)
 
void OnPlayerAfterStoreOrEquipNewItem (Player *player, uint32 vendorslot, Item *item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore)
 
void OnPlayerAfterUpdateMaxPower (Player *player, Powers &power, float &value)
 
void OnPlayerAfterUpdateMaxHealth (Player *player, float &value)
 
void OnPlayerBeforeUpdateAttackPowerAndDamage (Player *player, float &level, float &val2, bool ranged)
 
void OnPlayerAfterUpdateAttackPowerAndDamage (Player *player, float &level, float &base_attPower, float &attPowerMod, float &attPowerMultiplier, bool ranged)
 
void OnPlayerBeforeInitTalentForLevel (Player *player, uint8 &level, uint32 &talentPointsForLevel)
 
void OnPlayerFirstLogin (Player *player)
 
void OnPlayerSetMaxLevel (Player *player, uint32 &maxPlayerLevel)
 
void OnPlayerCompleteQuest (Player *player, Quest const *quest)
 
void OnPlayerBattlegroundDesertion (Player *player, BattlegroundDesertionType const desertionType)
 
bool OnPlayerCanJoinInBattlegroundQueue (Player *player, ObjectGuid BattlemasterGuid, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, GroupJoinBattlegroundResult &err)
 
bool OnPlayerShouldBeRewardedWithMoneyInsteadOfExp (Player *player)
 
void OnPlayerBeforeTempSummonInitStats (Player *player, TempSummon *tempSummon, uint32 &duration)
 
void OnPlayerBeforeGuardianInitStatsForLevel (Player *player, Guardian *guardian, CreatureTemplate const *cinfo, PetType &petType)
 
void OnPlayerAfterGuardianInitStatsForLevel (Player *player, Guardian *guardian)
 
void OnPlayerBeforeLoadPetFromDB (Player *player, uint32 &petentry, uint32 &petnumber, bool &current, bool &forceLoadFromDB)
 
bool OnPlayerCanJoinInArenaQueue (Player *player, ObjectGuid BattlemasterGuid, uint8 arenaslot, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, uint8 IsRated, GroupJoinBattlegroundResult &err)
 
bool OnPlayerCanBattleFieldPort (Player *player, uint8 arenaType, BattlegroundTypeId BGTypeID, uint8 action)
 
bool OnPlayerCanGroupInvite (Player *player, std::string &membername)
 
bool OnPlayerCanGroupAccept (Player *player, Group *group)
 
bool OnPlayerCanSellItem (Player *player, Item *item, Creature *creature)
 
bool OnPlayerCanSendMail (Player *player, ObjectGuid receiverGuid, ObjectGuid mailbox, std::string &subject, std::string &body, uint32 money, uint32 COD, Item *item)
 
void OnPlayerPetitionBuy (Player *player, Creature *creature, uint32 &charterid, uint32 &cost, uint32 &type)
 
void OnPlayerPetitionShowList (Player *player, Creature *creature, uint32 &CharterEntry, uint32 &CharterDispayID, uint32 &CharterCost)
 
void OnPlayerRewardKillRewarder (Player *player, KillRewarder *rewarder, bool isDungeon, float &rate)
 
bool OnPlayerCanGiveMailRewardAtGiveLevel (Player *player, uint8 level)
 
void OnPlayerDeleteFromDB (CharacterDatabaseTransaction trans, uint32 guid)
 
bool OnPlayerCanRepopAtGraveyard (Player *player)
 
std::optional< bool > OnPlayerIsClass (Player const *player, Classes playerClass, ClassContext context)
 
void OnPlayerGetMaxSkillValue (Player *player, uint32 skill, int32 &result, bool IsPure)
 
bool OnPlayerHasActivePowerType (Player const *player, Powers power)
 
void OnPlayerUpdateGatheringSkill (Player *player, uint32 skillId, uint32 currentLevel, uint32 gray, uint32 green, uint32 yellow, uint32 &gain)
 
void OnPlayerUpdateCraftingSkill (Player *player, SkillLineAbilityEntry const *skill, uint32 currentLevel, uint32 &gain)
 
bool OnPlayerUpdateFishingSkill (Player *player, int32 skill, int32 zone_skill, int32 chance, int32 roll)
 
bool OnPlayerCanAreaExploreAndOutdoor (Player *player)
 
void OnPlayerVictimRewardBefore (Player *player, Player *victim, uint32 &killer_title, uint32 &victim_title)
 
void OnPlayerVictimRewardAfter (Player *player, Player *victim, uint32 &killer_title, uint32 &victim_rank, float &honor_f)
 
void OnPlayerCustomScalingStatValueBefore (Player *player, ItemTemplate const *proto, uint8 slot, bool apply, uint32 &CustomScalingStatValue)
 
void OnPlayerCustomScalingStatValue (Player *player, ItemTemplate const *proto, uint32 &statType, int32 &val, uint8 itemProtoStatNumber, uint32 ScalingStatValue, ScalingStatValuesEntry const *ssv)
 
void OnPlayerApplyItemModsBefore (Player *player, uint8 slot, bool apply, uint8 itemProtoStatNumber, uint32 statType, int32 &val)
 
void OnPlayerApplyEnchantmentItemModsBefore (Player *player, Item *item, EnchantmentSlot slot, bool apply, uint32 enchant_spell_id, uint32 &enchant_amount)
 
void OnPlayerApplyWeaponDamage (Player *player, uint8 slot, ItemTemplate const *proto, float &minDamage, float &maxDamage, uint8 damageIndex)
 
bool OnPlayerCanArmorDamageModifier (Player *player)
 
void OnPlayerGetFeralApBonus (Player *player, int32 &feral_bonus, int32 dpsMod, ItemTemplate const *proto, ScalingStatValuesEntry const *ssv)
 
bool OnPlayerCanApplyWeaponDependentAuraDamageMod (Player *player, Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply)
 
bool OnPlayerCanApplyEquipSpell (Player *player, SpellInfo const *spellInfo, Item *item, bool apply, bool form_change)
 
bool OnPlayerCanApplyEquipSpellsItemSet (Player *player, ItemSetEffect *eff)
 
bool OnPlayerCanCastItemCombatSpell (Player *player, Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx, Item *item, ItemTemplate const *proto)
 
bool OnPlayerCanCastItemUseSpell (Player *player, Item *item, SpellCastTargets const &targets, uint8 cast_count, uint32 glyphIndex)
 
void OnPlayerApplyAmmoBonuses (Player *player, ItemTemplate const *proto, float &currentAmmoDPS)
 
bool OnPlayerCanEquipItem (Player *player, uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading)
 
bool OnPlayerCanUnequipItem (Player *player, uint16 pos, bool swap)
 
bool OnPlayerCanUseItem (Player *player, ItemTemplate const *proto, InventoryResult &result)
 
bool OnPlayerCanSaveEquipNewItem (Player *player, Item *item, uint16 pos, bool update)
 
bool OnPlayerCanApplyEnchantment (Player *player, Item *item, EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition)
 
void OnPlayerGetQuestRate (Player *player, float &result)
 
bool OnPlayerPassedQuestKilledMonsterCredit (Player *player, Quest const *qinfo, uint32 entry, uint32 real_entry, ObjectGuid guid)
 
bool OnPlayerCheckItemInSlotAtLoadInventory (Player *player, Item *item, uint8 slot, uint8 &err, uint16 &dest)
 
bool OnPlayerNotAvoidSatisfy (Player *player, DungeonProgressionRequirements const *ar, uint32 target_map, bool report)
 
bool OnPlayerNotVisibleGloballyFor (Player *player, Player const *u)
 
void OnPlayerGetArenaPersonalRating (Player *player, uint8 slot, uint32 &result)
 
void OnPlayerFfaPvpStateUpdate (Player *player, bool result)
 
void OnPlayerGetArenaTeamId (Player *player, uint8 slot, uint32 &result)
 
void OnPlayerIsFFAPvP (Player *player, bool &result)
 
void OnPlayerIsPvP (Player *player, bool &result)
 
void OnPlayerGetMaxSkillValueForLevel (Player *player, uint16 &result)
 
bool OnPlayerNotSetArenaTeamInfoField (Player *player, uint8 slot, ArenaTeamInfoType type, uint32 value)
 
bool OnPlayerCanJoinLfg (Player *player, uint8 roles, lfg::LfgDungeonSet &dungeons, const std::string &comment)
 
bool OnPlayerCanEnterMap (Player *player, MapEntry const *entry, InstanceTemplate const *instance, MapDifficulty const *mapDiff, bool loginCheck)
 
bool OnPlayerCanInitTrade (Player *player, Player *target)
 
bool OnPlayerCanSetTradeItem (Player *player, Item *tradedItem, uint8 tradeSlot)
 
void OnPlayerSetServerSideVisibility (Player *player, ServerSideVisibilityType &type, AccountTypes &sec)
 
void OnPlayerSetServerSideVisibilityDetect (Player *player, ServerSideVisibilityType &type, AccountTypes &sec)
 
void OnPlayerResurrect (Player *player, float restore_percent, bool applySickness)
 
void OnPlayerBeforeChooseGraveyard (Player *player, TeamId teamId, bool nearCorpse, uint32 &graveyardOverride)
 
bool OnPlayerCanUseChat (Player *player, uint32 type, uint32 language, std::string &msg)
 
bool OnPlayerCanUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Player *receiver)
 
bool OnPlayerCanUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Group *group)
 
bool OnPlayerCanUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Guild *guild)
 
bool OnPlayerCanUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Channel *channel)
 
void OnPlayerLearnTalents (Player *player, uint32 talentId, uint32 talentRank, uint32 spellid)
 
void OnPlayerEnterCombat (Player *player, Unit *enemy)
 
void OnPlayerLeaveCombat (Player *player)
 
void OnPlayerQuestAbandon (Player *player, uint32 questId)
 
bool OnPlayerCanSendErrorAlreadyLooted (Player *player)
 
void OnPlayerAfterCreatureLoot (Player *player)
 
void OnPlayerAfterCreatureLootMoney (Player *player)
 
bool OnPlayerCanFlyInZone (Player *player, uint32 mapId, uint32 zoneId, SpellInfo const *bySpell)
 
bool OnPlayerCanUpdateSkill (Player *player, uint32 skillId)
 
void OnPlayerBeforeUpdateSkill (Player *player, uint32 skill_id, uint32 &value, uint32 max, uint32 step)
 
void OnPlayerUpdateSkill (Player *player, uint32 skillId, uint32 value, uint32 max, uint32 step, uint32 newValue)
 
bool OnPlayerCanResurrect (Player *player)
 
bool OnPlayerCanGiveLevel (Player *player, uint8 newLevel)
 
void OnPlayerSendListInventory (Player *player, ObjectGuid vendorGuid, uint32 &vendorEntry)
 
void AnticheatSetCanFlybyServer (Player *player, bool apply)
 
void AnticheatSetUnderACKmount (Player *player)
 
void AnticheatSetRootACKUpd (Player *player)
 
void AnticheatUpdateMovementInfo (Player *player, MovementInfo const &movementInfo)
 
void AnticheatSetJumpingbyOpcode (Player *player, bool jump)
 
bool AnticheatHandleDoubleJump (Player *player, Unit *mover)
 
bool AnticheatCheckMovementInfo (Player *player, MovementInfo const &movementInfo, Unit *mover, bool jump)
 
void OnAccountLogin (uint32 accountId)
 
void OnBeforeAccountDelete (uint32 accountId)
 
void OnLastIpUpdate (uint32 accountId, std::string ip)
 
void OnFailedAccountLogin (uint32 accountId)
 
void OnEmailChange (uint32 accountId)
 
void OnFailedEmailChange (uint32 accountId)
 
void OnPasswordChange (uint32 accountId)
 
void OnFailedPasswordChange (uint32 accountId)
 
bool CanAccountCreateCharacter (uint32 accountId, uint8 charRace, uint8 charClass)
 
void OnGuildAddMember (Guild *guild, Player *player, uint8 &plRank)
 
void OnGuildRemoveMember (Guild *guild, Player *player, bool isDisbanding, bool isKicked)
 
void OnGuildMOTDChanged (Guild *guild, const std::string &newMotd)
 
void OnGuildInfoChanged (Guild *guild, const std::string &newInfo)
 
void OnGuildCreate (Guild *guild, Player *leader, const std::string &name)
 
void OnGuildDisband (Guild *guild)
 
void OnGuildMemberWitdrawMoney (Guild *guild, Player *player, uint32 &amount, bool isRepair)
 
void OnGuildMemberDepositMoney (Guild *guild, Player *player, uint32 &amount)
 
void OnGuildItemMove (Guild *guild, Player *player, Item *pItem, bool isSrcBank, uint8 srcContainer, uint8 srcSlotId, bool isDestBank, uint8 destContainer, uint8 destSlotId)
 
void OnGuildEvent (Guild *guild, uint8 eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank)
 
void OnGuildBankEvent (Guild *guild, uint8 eventType, uint8 tabId, ObjectGuid::LowType playerGuid, uint32 itemOrMoney, uint16 itemStackCount, uint8 destTabId)
 
bool CanGuildSendBankList (Guild const *guild, WorldSession *session, uint8 tabId, bool sendAllSlots)
 
void OnGroupAddMember (Group *group, ObjectGuid guid)
 
void OnGroupInviteMember (Group *group, ObjectGuid guid)
 
void OnGroupRemoveMember (Group *group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, const char *reason)
 
void OnGroupChangeLeader (Group *group, ObjectGuid newLeaderGuid, ObjectGuid oldLeaderGuid)
 
void OnGroupDisband (Group *group)
 
bool CanGroupJoinBattlegroundQueue (Group const *group, Player *member, Battleground const *bgTemplate, uint32 MinPlayerCount, bool isRated, uint32 arenaSlot)
 
void OnCreate (Group *group, Player *leader)
 
void OnGlobalItemDelFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType itemGuid)
 
void OnGlobalMirrorImageDisplayItem (Item const *item, uint32 &display)
 
void OnBeforeUpdateArenaPoints (ArenaTeam *at, std::map< ObjectGuid, uint32 > &ap)
 
void OnAfterRefCount (Player const *player, Loot &loot, bool canRate, uint16 lootMode, LootStoreItem *LootStoreItem, uint32 &maxcount, LootStore const &store)
 
void OnAfterCalculateLootGroupAmount (Player const *player, Loot &loot, uint16 lootMode, uint32 &groupAmount, LootStore const &store)
 
void OnBeforeDropAddItem (Player const *player, Loot &loot, bool canRate, uint16 lootMode, LootStoreItem *LootStoreItem, LootStore const &store)
 
bool OnItemRoll (Player const *player, LootStoreItem const *LootStoreItem, float &chance, Loot &loot, LootStore const &store)
 
bool OnBeforeLootEqualChanced (Player const *player, LootStoreItemList EqualChanced, Loot &loot, LootStore const &store)
 
void OnInitializeLockedDungeons (Player *player, uint8 &level, uint32 &lockData, lfg::LFGDungeonData const *dungeon)
 
void OnAfterInitializeLockedDungeons (Player *player)
 
void OnAfterUpdateEncounterState (Map *map, EncounterCreditType type, uint32 creditEntry, Unit *source, Difficulty difficulty_fixed, DungeonEncounterList const *encounters, uint32 dungeonCompleted, bool updated)
 
void OnBeforeWorldObjectSetPhaseMask (WorldObject const *worldObject, uint32 &oldPhaseMask, uint32 &newPhaseMask, bool &useCombinedPhases, bool &update)
 
bool OnIsAffectedBySpellModCheck (SpellInfo const *affectSpell, SpellInfo const *checkSpell, SpellModifier const *mod)
 
bool OnSpellHealingBonusTakenNegativeModifiers (Unit const *target, Unit const *caster, SpellInfo const *spellInfo, float &val)
 
void OnLoadSpellCustomAttr (SpellInfo *spell)
 
bool OnAllowedForPlayerLootCheck (Player const *player, ObjectGuid source)
 
bool OnAllowedToLootContainerCheck (Player const *player, ObjectGuid source)
 
void OnInstanceIdRemoved (uint32 instanceId)
 Called when an instance Id is deleted, usually because it expired or no players are bound to it anymore.
 
void OnBeforeSetBossState (uint32 id, EncounterState newState, EncounterState oldState, Map *instance)
 Called when any raid boss has their state updated (e.g. pull, reset, kill).
 
void AfterInstanceGameObjectCreate (Map *instance, GameObject *go)
 Called when a game object is created inside an instance.
 
uint32 IncreaseScheduledScriptsCount ()
 
uint32 DecreaseScheduledScriptCount ()
 
uint32 DecreaseScheduledScriptCount (std::size_t count)
 
bool IsScriptScheduled () const
 
void OnHeal (Unit *healer, Unit *reciever, uint32 &gain)
 
void OnDamage (Unit *attacker, Unit *victim, uint32 &damage)
 
void ModifyPeriodicDamageAurasTick (Unit *target, Unit *attacker, uint32 &damage, SpellInfo const *spellInfo)
 
void ModifyMeleeDamage (Unit *target, Unit *attacker, uint32 &damage)
 
void ModifySpellDamageTaken (Unit *target, Unit *attacker, int32 &damage, SpellInfo const *spellInfo)
 
void ModifyHealReceived (Unit *target, Unit *healer, uint32 &addHealth, SpellInfo const *spellInfo)
 
uint32 DealDamage (Unit *AttackerUnit, Unit *pVictim, uint32 damage, DamageEffectType damagetype)
 
void OnBeforeRollMeleeOutcomeAgainst (Unit const *attacker, Unit const *victim, WeaponAttackType attType, int32 &attackerMaxSkillValueForLevel, int32 &victimMaxSkillValueForLevel, int32 &attackerWeaponSkill, int32 &victimDefenseSkill, int32 &crit_chance, int32 &miss_chance, int32 &dodge_chance, int32 &parry_chance, int32 &block_chance)
 
void OnAuraApply (Unit *, Aura *)
 
void OnAuraRemove (Unit *unit, AuraApplication *aurApp, AuraRemoveMode mode)
 
bool IfNormalReaction (Unit const *unit, Unit const *target, ReputationRank &repRank)
 
bool IsNeedModSpellDamagePercent (Unit const *unit, AuraEffect *auraEff, float &doneTotalMod, SpellInfo const *spellProto)
 
bool IsNeedModMeleeDamagePercent (Unit const *unit, AuraEffect *auraEff, float &doneTotalMod, SpellInfo const *spellProto)
 
bool IsNeedModHealPercent (Unit const *unit, AuraEffect *auraEff, float &doneTotalMod, SpellInfo const *spellProto)
 
bool CanSetPhaseMask (Unit const *unit, uint32 newPhaseMask, bool update)
 
bool IsCustomBuildValuesUpdate (Unit const *unit, uint8 updateType, ByteBuffer &fieldBuffer, Player const *target, uint16 index)
 
bool ShouldTrackValuesUpdatePosByIndex (Unit const *unit, uint8 updateType, uint16 index)
 
void OnPatchValuesUpdate (Unit const *unit, ByteBuffer &valuesUpdateBuf, BuildValuesCachePosPointers &posPointers, Player *target)
 
void OnUnitUpdate (Unit *unit, uint32 diff)
 
void OnDisplayIdChange (Unit *unit, uint32 displayId)
 
void OnUnitEnterEvadeMode (Unit *unit, uint8 why)
 
void OnUnitEnterCombat (Unit *unit, Unit *victim)
 
void OnUnitDeath (Unit *unit, Unit *killer)
 
void OnUnitSetShapeshiftForm (Unit *unit, uint8 form)
 
void OnPlayerMove (Player *player, MovementInfo movementInfo, uint32 opcode)
 
void OnBeforeCreatureSelectLevel (const CreatureTemplate *cinfo, Creature *creature, uint8 &level)
 
void Creature_SelectLevel (const CreatureTemplate *cinfo, Creature *creature)
 
void OnCreatureSaveToDB (Creature *creature)
 
void OnGameObjectSaveToDB (GameObject *go)
 
void OnBeforeCreateInstanceScript (InstanceMap *instanceMap, InstanceScript **instanceData, bool load, std::string data, uint32 completedEncounterMask)
 
void OnDestroyInstance (MapInstanced *mapInstanced, Map *map)
 
void OnBattlegroundStart (Battleground *bg)
 
void OnBattlegroundEndReward (Battleground *bg, Player *player, TeamId winnerTeamId)
 
void OnBattlegroundUpdate (Battleground *bg, uint32 diff)
 
void OnBattlegroundAddPlayer (Battleground *bg, Player *player)
 
void OnBattlegroundBeforeAddPlayer (Battleground *bg, Player *player)
 
void OnBattlegroundRemovePlayerAtLeave (Battleground *bg, Player *player)
 
void OnQueueUpdate (BattlegroundQueue *queue, uint32 diff, BattlegroundTypeId bgTypeId, BattlegroundBracketId bracket_id, uint8 arenaType, bool isRated, uint32 arenaRating)
 
bool OnQueueUpdateValidity (BattlegroundQueue *queue, uint32 diff, BattlegroundTypeId bgTypeId, BattlegroundBracketId bracket_id, uint8 arenaType, bool isRated, uint32 arenaRating)
 
void OnAddGroup (BattlegroundQueue *queue, GroupQueueInfo *ginfo, uint32 &index, Player *leader, Group *group, BattlegroundTypeId bgTypeId, PvPDifficultyEntry const *bracketEntry, uint8 arenaType, bool isRated, bool isPremade, uint32 arenaRating, uint32 matchmakerRating, uint32 arenaTeamId, uint32 opponentsArenaTeamId)
 
bool CanFillPlayersToBG (BattlegroundQueue *queue, Battleground *bg, BattlegroundBracketId bracket_id)
 
bool IsCheckNormalMatch (BattlegroundQueue *queue, Battleground *bgTemplate, BattlegroundBracketId bracket_id, uint32 minPlayers, uint32 maxPlayers)
 
bool CanSendMessageBGQueue (BattlegroundQueue *queue, Player *leader, Battleground *bg, PvPDifficultyEntry const *bracketEntry)
 
bool OnBeforeSendJoinMessageArenaQueue (BattlegroundQueue *queue, Player *leader, GroupQueueInfo *ginfo, PvPDifficultyEntry const *bracketEntry, bool isRated)
 
bool OnBeforeSendExitMessageArenaQueue (BattlegroundQueue *queue, GroupQueueInfo *ginfo)
 
void OnBattlegroundEnd (Battleground *bg, TeamId winnerTeamId)
 
void OnBattlegroundDestroy (Battleground *bg)
 
void OnBattlegroundCreate (Battleground *bg)
 
void OnGetSlotByType (const uint32 type, uint8 &slot)
 
void OnGetArenaPoints (ArenaTeam *at, float &points)
 
void OnArenaTypeIDToQueueID (const BattlegroundTypeId bgTypeId, const uint8 arenaType, uint32 &queueTypeID)
 
void OnArenaQueueIdToArenaType (const BattlegroundQueueTypeId bgQueueTypeId, uint8 &ArenaType)
 
void OnSetArenaMaxPlayersPerTeam (const uint8 arenaType, uint32 &maxPlayerPerTeam)
 
void OnCalcMaxDuration (Aura const *aura, int32 &maxDuration)
 
bool CanModAuraEffectDamageDone (AuraEffect const *auraEff, Unit *target, AuraApplication const *aurApp, uint8 mode, bool apply)
 
bool CanModAuraEffectModDamagePercentDone (AuraEffect const *auraEff, Unit *target, AuraApplication const *aurApp, uint8 mode, bool apply)
 
void OnSpellCheckCast (Spell *spell, bool strict, SpellCastResult &res)
 
bool CanPrepare (Spell *spell, SpellCastTargets const *targets, AuraEffect const *triggeredByAura)
 
bool CanScalingEverything (Spell *spell)
 
bool CanSelectSpecTalent (Spell *spell)
 
void OnScaleAuraUnitAdd (Spell *spell, Unit *target, uint32 effectMask, bool checkIfValid, bool implicit, uint8 auraScaleMask, TargetInfo &targetInfo)
 
void OnRemoveAuraScaleTargets (Spell *spell, TargetInfo &targetInfo, uint8 auraScaleMask, bool &needErase)
 
void OnBeforeAuraRankForLevel (SpellInfo const *spellInfo, SpellInfo const *latestSpellInfo, uint8 level)
 
void OnDummyEffect (WorldObject *caster, uint32 spellID, SpellEffIndex effIndex, GameObject *gameObjTarget)
 
void OnDummyEffect (WorldObject *caster, uint32 spellID, SpellEffIndex effIndex, Creature *creatureTarget)
 
void OnDummyEffect (WorldObject *caster, uint32 spellID, SpellEffIndex effIndex, Item *itemTarget)
 
void OnSpellCastCancel (Spell *spell, Unit *caster, SpellInfo const *spellInfo, bool bySelf)
 
void OnSpellCast (Spell *spell, Unit *caster, SpellInfo const *spellInfo, bool skipCheck)
 
void OnSpellPrepare (Spell *spell, Unit *caster, SpellInfo const *spellInfo)
 
void OnGameEventStart (uint16 EventID)
 
void OnGameEventStop (uint16 EventID)
 
void OnGameEventCheck (uint16 EventID)
 
void OnBeforeMailDraftSendMailTo (MailDraft *mailDraft, MailReceiver const &receiver, MailSender const &sender, MailCheckMask &checked, uint32 &deliver_delay, uint32 &custom_expiration, bool &deleteMailItemsFromDB, bool &sendMail)
 
void SetRealmCompleted (AchievementEntry const *achievement)
 
bool IsCompletedCriteria (AchievementMgr *mgr, AchievementCriteriaEntry const *achievementCriteria, AchievementEntry const *achievement, CriteriaProgress const *progress)
 
bool IsRealmCompleted (AchievementGlobalMgr const *globalmgr, AchievementEntry const *achievement, std::chrono::system_clock::time_point completionTime)
 
void OnBeforeCheckCriteria (AchievementMgr *mgr, AchievementCriteriaEntryList const *achievementCriteriaList)
 
bool CanCheckCriteria (AchievementMgr *mgr, AchievementCriteriaEntry const *achievementCriteria)
 
void OnInitStatsForLevel (Guardian *guardian, uint8 petlevel)
 
void OnCalculateMaxTalentPointsForLevel (Pet *pet, uint8 level, uint8 &points)
 
bool CanUnlearnSpellSet (Pet *pet, uint32 level, uint32 spell)
 
bool CanUnlearnSpellDefault (Pet *pet, SpellInfo const *spellInfo)
 
bool CanResetTalents (Pet *pet)
 
bool CanAddMember (ArenaTeam *team, ObjectGuid PlayerGuid)
 
void OnGetPoints (ArenaTeam *team, uint32 memberRating, float &points)
 
bool CanSaveToDB (ArenaTeam *team)
 
bool OnBeforeArenaCheckWinConditions (Battleground *const bg)
 
void OnArenaStart (Battleground *const bg)
 
void OnConstructObject (Object *origin)
 
void OnDestructObject (Object *origin)
 
void OnConstructPlayer (Player *origin)
 
void OnDestructPlayer (Player *origin)
 
void OnConstructGroup (Group *origin)
 
void OnDestructGroup (Group *origin)
 
void OnConstructInstanceSave (InstanceSave *origin)
 
void OnDestructInstanceSave (InstanceSave *origin)
 
void OnItemCreate (Item *item, ItemTemplate const *itemProto, Player const *owner)
 
bool CanApplySoulboundFlag (Item *item, ItemTemplate const *proto)
 
bool CanItemApplyEquipSpell (Player *player, Item *item)
 
bool CanSendAuctionHello (WorldSession const *session, ObjectGuid guid, Creature *creature)
 
void ValidateSpellAtCastSpell (Player *player, uint32 &oldSpellId, uint32 &spellId, uint8 &castCount, uint8 &castFlags)
 
void OnPlayerSetPhase (const AuraEffect *auraEff, AuraApplication const *aurApp, uint8 mode, bool apply, uint32 &newPhase)
 
void ValidateSpellAtCastSpellResult (Player *player, Unit *mover, Spell *spell, uint32 oldSpellId, uint32 spellId)
 
void OnAfterLootTemplateProcess (Loot *loot, LootTemplate const *tab, LootStore const &store, Player *lootOwner, bool personal, bool noEmptyError, uint16 lootMode)
 
void OnInstanceSave (InstanceSave *instanceSave)
 
void GetDialogStatus (Player *player, Object *questgiver)
 
void OnHandleDevCommand (Player *player, bool &enable)
 
bool OnTryExecuteCommand (ChatHandler &handler, std::string_view cmdStr)
 
bool OnBeforeIsInvokerVisible (std::string name, Acore::Impl::ChatCommands::CommandPermissions permissions, ChatHandler const &who)
 
void OnAfterDatabasesLoaded (uint32 updateFlags)
 
void OnAfterDatabaseLoadCreatureTemplates (std::vector< CreatureTemplate * > creatureTemplateStore)
 
void OnWorldObjectDestroy (WorldObject *object)
 
void OnWorldObjectCreate (WorldObject *object)
 
void OnWorldObjectSetMap (WorldObject *object, Map *map)
 
void OnWorldObjectResetMap (WorldObject *object)
 
void OnWorldObjectUpdate (WorldObject *object, uint32 diff)
 
void OnPetAddToWorld (Pet *pet)
 
void OnLootMoney (Player *player, uint32 gold)
 
void OnTicketCreate (GmTicket *ticket)
 
void OnTicketUpdateLastChange (GmTicket *ticket)
 
void OnTicketClose (GmTicket *ticket)
 
void OnTicketStatusUpdate (GmTicket *ticket)
 
void OnTicketResolve (GmTicket *ticket)
 

Static Public Member Functions

static ScriptMgrinstance ()
 

Private Member Functions

 ScriptMgr ()
 
virtual ~ScriptMgr ()
 

Private Attributes

uint32 _scriptCount
 
std::atomic< long > _scheduledScripts
 
ScriptLoaderCallbackType _script_loader_callback
 
ModulesLoaderCallbackType _modules_loader_callback
 

Friends

class ScriptObject
 

Detailed Description

Member Typedef Documentation

◆ ModulesLoaderCallbackType

typedef void(* ScriptMgr::ModulesLoaderCallbackType) ()

◆ ScriptLoaderCallbackType

typedef void(* ScriptMgr::ScriptLoaderCallbackType) ()

Constructor & Destructor Documentation

◆ ScriptMgr()

ScriptMgr::ScriptMgr ( )
private
48 : _scriptCount(0),
51 _modules_loader_callback(nullptr) { }
ModulesLoaderCallbackType _modules_loader_callback
Definition ScriptMgr.h:724
ScriptLoaderCallbackType _script_loader_callback
Definition ScriptMgr.h:723
uint32 _scriptCount
Definition ScriptMgr.h:718
std::atomic< long > _scheduledScripts
Definition ScriptMgr.h:721

Member Function Documentation

◆ AfterInstanceGameObjectCreate()

void ScriptMgr::AfterInstanceGameObjectCreate ( Map instance,
GameObject go 
)

Called when a game object is created inside an instance.

Parameters
instanceA pointer to the [map] object of the instance
goThe object being added
143{
145}
@ GLOBALHOOK_AFTER_INSTANCE_GAME_OBJECT_CREATE
Definition GlobalScript.h:49
#define CALL_ENABLED_HOOKS(scriptType, hookType, action)
Definition ScriptMgrMacros.h:72
Definition GlobalScript.h:55
virtual void AfterInstanceGameObjectCreate(Map *, GameObject *)
Definition GlobalScript.h:104
static ScriptMgr * instance()
Definition ScriptMgr.cpp:55

References GlobalScript::AfterInstanceGameObjectCreate(), CALL_ENABLED_HOOKS, GLOBALHOOK_AFTER_INSTANCE_GAME_OBJECT_CREATE, and instance().

◆ AnticheatCheckMovementInfo()

bool ScriptMgr::AnticheatCheckMovementInfo ( Player player,
MovementInfo const &  movementInfo,
Unit mover,
bool  jump 
)
894{
896}
@ PLAYERHOOK_ANTICHEAT_CHECK_MOVEMENT_INFO
Definition PlayerScript.h:203
#define CALL_ENABLED_BOOLEAN_HOOKS(scriptType, hookType, action)
Definition ScriptMgrMacros.h:76
Definition PlayerScript.h:217
virtual bool AnticheatCheckMovementInfo(Player *, MovementInfo const &, Unit *, bool)
Definition PlayerScript.h:749

References PlayerScript::AnticheatCheckMovementInfo(), CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ANTICHEAT_CHECK_MOVEMENT_INFO.

◆ AnticheatHandleDoubleJump()

bool ScriptMgr::AnticheatHandleDoubleJump ( Player player,
Unit mover 
)
889{
891}
@ PLAYERHOOK_ANTICHEAT_HANDLE_DOUBLE_JUMP
Definition PlayerScript.h:202
virtual bool AnticheatHandleDoubleJump(Player *, Unit *)
Definition PlayerScript.h:748

References PlayerScript::AnticheatHandleDoubleJump(), CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ANTICHEAT_HANDLE_DOUBLE_JUMP.

◆ AnticheatSetCanFlybyServer()

void ScriptMgr::AnticheatSetCanFlybyServer ( Player player,
bool  apply 
)
864{
866}
@ PLAYERHOOK_ANTICHEAT_SET_CAN_FLY_BY_SERVER
Definition PlayerScript.h:197
virtual void AnticheatSetCanFlybyServer(Player *, bool)
Definition PlayerScript.h:743

References PlayerScript::AnticheatSetCanFlybyServer(), CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_CAN_FLY_BY_SERVER.

◆ AnticheatSetJumpingbyOpcode()

void ScriptMgr::AnticheatSetJumpingbyOpcode ( Player player,
bool  jump 
)
879{
881}
@ PLAYERHOOK_ANTICHEAT_SET_JUMPING_BY_OPCODE
Definition PlayerScript.h:200
virtual void AnticheatSetJumpingbyOpcode(Player *, bool)
Definition PlayerScript.h:746

References PlayerScript::AnticheatSetJumpingbyOpcode(), CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_JUMPING_BY_OPCODE.

◆ AnticheatSetRootACKUpd()

void ScriptMgr::AnticheatSetRootACKUpd ( Player player)
874{
876}
@ PLAYERHOOK_ANTICHEAT_SET_ROOT_ACK_UPD
Definition PlayerScript.h:199
virtual void AnticheatSetRootACKUpd(Player *)
Definition PlayerScript.h:745

References PlayerScript::AnticheatSetRootACKUpd(), CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_ROOT_ACK_UPD.

◆ AnticheatSetUnderACKmount()

void ScriptMgr::AnticheatSetUnderACKmount ( Player player)
869{
871}
@ PLAYERHOOK_ANTICHEAT_SET_UNDER_ACK_MOUNT
Definition PlayerScript.h:198
virtual void AnticheatSetUnderACKmount(Player *)
Definition PlayerScript.h:744

References PlayerScript::AnticheatSetUnderACKmount(), CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_UNDER_ACK_MOUNT.

◆ AnticheatUpdateMovementInfo()

void ScriptMgr::AnticheatUpdateMovementInfo ( Player player,
MovementInfo const &  movementInfo 
)
884{
886}
@ PLAYERHOOK_ANTICHEAT_UPDATE_MOVEMENT_INFO
Definition PlayerScript.h:201
virtual void AnticheatUpdateMovementInfo(Player *, MovementInfo const &)
Definition PlayerScript.h:747

References PlayerScript::AnticheatUpdateMovementInfo(), CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_UPDATE_MOVEMENT_INFO.

◆ CanAccountCreateCharacter()

bool ScriptMgr::CanAccountCreateCharacter ( uint32  accountId,
uint8  charRace,
uint8  charClass 
)
63{
65}
@ ACCOUNTHOOK_CAN_ACCOUNT_CREATE_CHARACTER
Definition AccountScript.h:34
Definition AccountScript.h:39
virtual bool CanAccountCreateCharacter(uint32, uint8, uint8)
Definition AccountScript.h:69

References ACCOUNTHOOK_CAN_ACCOUNT_CREATE_CHARACTER, CALL_ENABLED_BOOLEAN_HOOKS, and AccountScript::CanAccountCreateCharacter().

◆ CanAddMember()

bool ScriptMgr::CanAddMember ( ArenaTeam team,
ObjectGuid  PlayerGuid 
)
23{
25}
@ ARENAHOOK_CAN_ADD_MEMBER
Definition ArenaScript.h:27
Definition ArenaScript.h:36
virtual bool CanAddMember(ArenaTeam *, ObjectGuid)
Definition ArenaScript.h:45

References ARENAHOOK_CAN_ADD_MEMBER, CALL_ENABLED_BOOLEAN_HOOKS, and ArenaScript::CanAddMember().

◆ CanApplySoulboundFlag()

bool ScriptMgr::CanApplySoulboundFlag ( Item item,
ItemTemplate const *  proto 
)
68{
70}
@ MISCHOOK_CAN_APPLY_SOULBOUND_FLAG
Definition MiscScript.h:36
Definition MiscScript.h:49
virtual bool CanApplySoulboundFlag(Item *, ItemTemplate const *)
Definition MiscScript.h:74

References CALL_ENABLED_BOOLEAN_HOOKS, MiscScript::CanApplySoulboundFlag(), and MISCHOOK_CAN_APPLY_SOULBOUND_FLAG.

◆ CanCheckCriteria()

bool ScriptMgr::CanCheckCriteria ( AchievementMgr mgr,
AchievementCriteriaEntry const *  achievementCriteria 
)
43{
45}
@ ACHIEVEMENTHOOK_CAN_CHECK_CRITERIA
Definition AchievementScript.h:32
Definition AchievementScript.h:37
virtual bool CanCheckCriteria(AchievementMgr *, AchievementCriteriaEntry const *)
Definition AchievementScript.h:53

References ACHIEVEMENTHOOK_CAN_CHECK_CRITERIA, CALL_ENABLED_BOOLEAN_HOOKS, and AchievementScript::CanCheckCriteria().

◆ CanFillPlayersToBG()

bool ScriptMgr::CanFillPlayersToBG ( BattlegroundQueue queue,
Battleground bg,
BattlegroundBracketId  bracket_id 
)
68{
70}
@ ALLBATTLEGROUNDHOOK_CAN_FILL_PLAYERS_TO_BG
Definition AllBattlegroundScript.h:35
Definition AllBattlegroundScript.h:51
virtual bool CanFillPlayersToBG(BattlegroundQueue *, Battleground *, BattlegroundBracketId)
Definition AllBattlegroundScript.h:87

References ALLBATTLEGROUNDHOOK_CAN_FILL_PLAYERS_TO_BG, CALL_ENABLED_BOOLEAN_HOOKS, and AllBattlegroundScript::CanFillPlayersToBG().

◆ CanGroupJoinBattlegroundQueue()

bool ScriptMgr::CanGroupJoinBattlegroundQueue ( Group const *  group,
Player member,
Battleground const *  bgTemplate,
uint32  MinPlayerCount,
bool  isRated,
uint32  arenaSlot 
)
58{
59 CALL_ENABLED_BOOLEAN_HOOKS(GroupScript, GROUPHOOK_CAN_GROUP_JOIN_BATTLEGROUND_QUEUE, !script->CanGroupJoinBattlegroundQueue(group, member, bgTemplate, MinPlayerCount, isRated, arenaSlot));
60}
@ GROUPHOOK_CAN_GROUP_JOIN_BATTLEGROUND_QUEUE
Definition GroupScript.h:32
Definition GroupScript.h:40
virtual bool CanGroupJoinBattlegroundQueue(Group const *, Player *, Battleground const *, uint32, bool, uint32)
Definition GroupScript.h:62

References CALL_ENABLED_BOOLEAN_HOOKS, GroupScript::CanGroupJoinBattlegroundQueue(), and GROUPHOOK_CAN_GROUP_JOIN_BATTLEGROUND_QUEUE.

◆ CanGuildSendBankList()

bool ScriptMgr::CanGuildSendBankList ( Guild const *  guild,
WorldSession session,
uint8  tabId,
bool  sendAllSlots 
)
78{
80}
@ GUILDHOOK_CAN_GUILD_SEND_BANK_LIST
Definition GuildScript.h:38
Definition GuildScript.h:43
virtual bool CanGuildSendBankList(Guild const *, WorldSession *, uint8, bool)
Definition GuildScript.h:81

References CALL_ENABLED_BOOLEAN_HOOKS, GuildScript::CanGuildSendBankList(), and GUILDHOOK_CAN_GUILD_SEND_BANK_LIST.

◆ CanItemApplyEquipSpell()

bool ScriptMgr::CanItemApplyEquipSpell ( Player player,
Item item 
)
73{
75}
@ MISCHOOK_CAN_ITEM_APPLY_EQUIP_SPELL
Definition MiscScript.h:37
virtual bool CanItemApplyEquipSpell(Player *, Item *)
Definition MiscScript.h:76

References CALL_ENABLED_BOOLEAN_HOOKS, MiscScript::CanItemApplyEquipSpell(), and MISCHOOK_CAN_ITEM_APPLY_EQUIP_SPELL.

◆ CanModAuraEffectDamageDone()

bool ScriptMgr::CanModAuraEffectDamageDone ( AuraEffect const *  auraEff,
Unit target,
AuraApplication const *  aurApp,
uint8  mode,
bool  apply 
)
28{
30}
@ ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_DAMAGE_DONE
Definition AllSpellScript.h:27
Definition AllSpellScript.h:49
virtual bool CanModAuraEffectDamageDone(AuraEffect const *, Unit *, AuraApplication const *, uint8, bool)
Definition AllSpellScript.h:59

References ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_DAMAGE_DONE, CALL_ENABLED_BOOLEAN_HOOKS, and AllSpellScript::CanModAuraEffectDamageDone().

◆ CanModAuraEffectModDamagePercentDone()

bool ScriptMgr::CanModAuraEffectModDamagePercentDone ( AuraEffect const *  auraEff,
Unit target,
AuraApplication const *  aurApp,
uint8  mode,
bool  apply 
)
33{
35}
@ ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_MOD_DAMAGE_PERCENT_DONE
Definition AllSpellScript.h:28
virtual bool CanModAuraEffectModDamagePercentDone(AuraEffect const *, Unit *, AuraApplication const *, uint8, bool)
Definition AllSpellScript.h:61

References ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_MOD_DAMAGE_PERCENT_DONE, CALL_ENABLED_BOOLEAN_HOOKS, and AllSpellScript::CanModAuraEffectModDamagePercentDone().

◆ CanPacketReceive()

bool ScriptMgr::CanPacketReceive ( WorldSession session,
WorldPacket const &  packet 
)
59{
61 return true;
62
63 WorldPacket copy(packet);
64
66}
@ SERVERHOOK_CAN_PACKET_RECEIVE
Definition ServerScript.h:32
Definition ScriptMgr.h:731
Definition ServerScript.h:37
virtual bool CanPacketReceive(WorldSession *, WorldPacket &)
Called when a (valid) packet is received by a client. The packet object is a copy of the original pac...
Definition ServerScript.h:72
Definition WorldPacket.h:26

References CALL_ENABLED_BOOLEAN_HOOKS, ServerScript::CanPacketReceive(), and SERVERHOOK_CAN_PACKET_RECEIVE.

◆ CanPacketSend()

bool ScriptMgr::CanPacketSend ( WorldSession session,
WorldPacket const &  packet 
)
47{
48 ASSERT(session);
49
51 return true;
52
53 WorldPacket copy(packet);
54
56}
#define ASSERT
Definition Errors.h:68
@ SERVERHOOK_CAN_PACKET_SEND
Definition ServerScript.h:31
virtual bool CanPacketSend(WorldSession *, WorldPacket &)
This hook called when a packet is sent to a client. The packet object is a copy of the original packe...
Definition ServerScript.h:62

References ASSERT, CALL_ENABLED_BOOLEAN_HOOKS, ServerScript::CanPacketSend(), and SERVERHOOK_CAN_PACKET_SEND.

◆ CanPrepare()

bool ScriptMgr::CanPrepare ( Spell spell,
SpellCastTargets const *  targets,
AuraEffect const *  triggeredByAura 
)
43{
44 CALL_ENABLED_BOOLEAN_HOOKS(AllSpellScript, ALLSPELLHOOK_CAN_PREPARE, !script->CanPrepare(spell, targets, triggeredByAura));
45}
@ ALLSPELLHOOK_CAN_PREPARE
Definition AllSpellScript.h:30
virtual bool CanPrepare(Spell *, SpellCastTargets const *, AuraEffect const *)
Definition AllSpellScript.h:65

References ALLSPELLHOOK_CAN_PREPARE, CALL_ENABLED_BOOLEAN_HOOKS, and AllSpellScript::CanPrepare().

◆ CanResetTalents()

bool ScriptMgr::CanResetTalents ( Pet pet)
43{
45}
@ PETHOOK_CAN_RESET_TALENTS
Definition PetScript.h:30
Definition PetScript.h:36
virtual bool CanResetTalents(Pet *)
Definition PetScript.h:51

References CALL_ENABLED_BOOLEAN_HOOKS, PetScript::CanResetTalents(), and PETHOOK_CAN_RESET_TALENTS.

◆ CanSaveToDB()

bool ScriptMgr::CanSaveToDB ( ArenaTeam team)
33{
35}
@ ARENAHOOK_CAN_SAVE_TO_DB
Definition ArenaScript.h:29
virtual bool CanSaveToDB(ArenaTeam *)
Definition ArenaScript.h:51

References ARENAHOOK_CAN_SAVE_TO_DB, CALL_ENABLED_BOOLEAN_HOOKS, and ArenaScript::CanSaveToDB().

◆ CanScalingEverything()

bool ScriptMgr::CanScalingEverything ( Spell spell)
48{
50}
@ ALLSPELLHOOK_CAN_SCALING_EVERYTHING
Definition AllSpellScript.h:31
#define CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE(scriptType, hookType, action)
Definition ScriptMgrMacros.h:82
virtual bool CanScalingEverything(Spell *)
Definition AllSpellScript.h:67

References ALLSPELLHOOK_CAN_SCALING_EVERYTHING, CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and AllSpellScript::CanScalingEverything().

◆ CanSelectSpecTalent()

bool ScriptMgr::CanSelectSpecTalent ( Spell spell)
53{
55}
@ ALLSPELLHOOK_CAN_SELECT_SPEC_TALENT
Definition AllSpellScript.h:32
virtual bool CanSelectSpecTalent(Spell *)
Definition AllSpellScript.h:69

References ALLSPELLHOOK_CAN_SELECT_SPEC_TALENT, CALL_ENABLED_BOOLEAN_HOOKS, and AllSpellScript::CanSelectSpecTalent().

◆ CanSendAuctionHello()

bool ScriptMgr::CanSendAuctionHello ( WorldSession const *  session,
ObjectGuid  guid,
Creature creature 
)
78{
80}
@ MISCHOOK_CAN_SEND_AUCTIONHELLO
Definition MiscScript.h:38
virtual bool CanSendAuctionHello(WorldSession const *, ObjectGuid, Creature *)
Definition MiscScript.h:78

References CALL_ENABLED_BOOLEAN_HOOKS, MiscScript::CanSendAuctionHello(), and MISCHOOK_CAN_SEND_AUCTIONHELLO.

◆ CanSendMessageBGQueue()

bool ScriptMgr::CanSendMessageBGQueue ( BattlegroundQueue queue,
Player leader,
Battleground bg,
PvPDifficultyEntry const *  bracketEntry 
)
78{
80}
@ ALLBATTLEGROUNDHOOK_CAN_SEND_MESSAGE_BG_QUEUE
Definition AllBattlegroundScript.h:37
virtual bool CanSendMessageBGQueue(BattlegroundQueue *, Player *, Battleground *, PvPDifficultyEntry const *)
Definition AllBattlegroundScript.h:91

References ALLBATTLEGROUNDHOOK_CAN_SEND_MESSAGE_BG_QUEUE, CALL_ENABLED_BOOLEAN_HOOKS, and AllBattlegroundScript::CanSendMessageBGQueue().

◆ CanSetPhaseMask()

bool ScriptMgr::CanSetPhaseMask ( Unit const *  unit,
uint32  newPhaseMask,
bool  update 
)
107{
109}
@ UNITHOOK_CAN_SET_PHASE_MASK
Definition UnitScript.h:39
Definition UnitScript.h:57
virtual bool CanSetPhaseMask(Unit const *, uint32, bool)
Definition UnitScript.h:98

References CALL_ENABLED_BOOLEAN_HOOKS, UnitScript::CanSetPhaseMask(), and UNITHOOK_CAN_SET_PHASE_MASK.

◆ CanUnlearnSpellDefault()

bool ScriptMgr::CanUnlearnSpellDefault ( Pet pet,
SpellInfo const *  spellInfo 
)
38{
40}
@ PETHOOK_CAN_UNLEARN_SPELL_DEFAULT
Definition PetScript.h:29
virtual bool CanUnlearnSpellDefault(Pet *, SpellInfo const *)
Definition PetScript.h:49

References CALL_ENABLED_BOOLEAN_HOOKS, PetScript::CanUnlearnSpellDefault(), and PETHOOK_CAN_UNLEARN_SPELL_DEFAULT.

◆ CanUnlearnSpellSet()

bool ScriptMgr::CanUnlearnSpellSet ( Pet pet,
uint32  level,
uint32  spell 
)
33{
35}
@ PETHOOK_CAN_UNLEARN_SPELL_SET
Definition PetScript.h:28
virtual bool CanUnlearnSpellSet(Pet *, uint32, uint32)
Definition PetScript.h:47

References CALL_ENABLED_BOOLEAN_HOOKS, PetScript::CanUnlearnSpellSet(), and PETHOOK_CAN_UNLEARN_SPELL_SET.

◆ CheckIfScriptsInDatabaseExist()

void ScriptMgr::CheckIfScriptsInDatabaseExist ( )
192{
193 for (auto const& scriptName : sObjectMgr->GetScriptNames())
194 {
195 if (uint32 sid = sObjectMgr->GetScriptId(scriptName))
196 {
231 {
232 LOG_ERROR("sql.sql", "Script named '{}' is assigned in the database, but has no code!", scriptName);
233 }
234 }
235 }
236}
std::uint32_t uint32
Definition Define.h:107
#define LOG_ERROR(filterType__,...)
Definition Log.h:157
#define sObjectMgr
Definition ObjectMgr.h:1636

References ScriptRegistry< TScript >::GetScriptById(), LOG_ERROR, and sObjectMgr.

Referenced by LoadDatabase().

◆ CreateAuraScripts()

void ScriptMgr::CreateAuraScripts ( uint32  spellId,
std::list< AuraScript * > &  scriptVector 
)
44{
45 SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spellId);
46
47 for (SpellScriptsContainer::iterator itr = bounds.first; itr != bounds.second; ++itr)
48 {
50 if (!tempScript)
51 continue;
52
53 AuraScript* script = tempScript->GetAuraScript();
54
55 if (!script)
56 continue;
57
58 script->_Init(&tempScript->GetName(), spellId);
59
60 scriptVector.push_back(script);
61 }
62}
std::pair< SpellScriptsContainer::iterator, SpellScriptsContainer::iterator > SpellScriptsBounds
Definition ObjectMgr.h:388
Definition SpellScript.h:517
const std::string & GetName() const
Definition ScriptObject.h:53
static TScript * GetScriptById(uint32 id)
Definition ScriptMgr.h:860
Definition SpellScriptLoader.h:26
virtual AuraScript * GetAuraScript() const
Definition SpellScriptLoader.h:37
virtual void _Init(std::string const *scriptname, uint32 spellId)
Definition SpellScript.cpp:59

References _SpellScript::_Init(), SpellScriptLoader::GetAuraScript(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.

◆ CreateBattleground()

Battleground * ScriptMgr::CreateBattleground ( BattlegroundTypeId  typeId)
Todo:
: Implement script-side battlegrounds.
22{
24 ABORT();
25 return nullptr;
26}
#define ABORT
Definition Errors.h:76

References ABORT.

◆ CreateInstanceScript()

InstanceScript * ScriptMgr::CreateInstanceScript ( InstanceMap map)
22{
23 ASSERT(map);
24
26 return tempScript ? tempScript->GetInstanceScript(map) : nullptr;
27}
uint32 GetScriptId() const
Definition Map.h:662

References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and InstanceMap::GetScriptId().

◆ CreateOutdoorPvP()

OutdoorPvP * ScriptMgr::CreateOutdoorPvP ( OutdoorPvPData const *  data)
23{
24 ASSERT(data);
25
26 auto tempScript = ScriptRegistry<OutdoorPvPScript>::GetScriptById(data->ScriptId);
27 return tempScript ? tempScript->GetOutdoorPvP() : nullptr;
28}

References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and OutdoorPvPData::ScriptId.

◆ CreateSpellScriptLoaders()

void ScriptMgr::CreateSpellScriptLoaders ( uint32  spellId,
std::vector< std::pair< SpellScriptLoader *, std::multimap< uint32, uint32 >::iterator > > &  scriptVector 
)
65{
66 SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spellId);
67 scriptVector.reserve(std::distance(bounds.first, bounds.second));
68
69 for (SpellScriptsContainer::iterator itr = bounds.first; itr != bounds.second; ++itr)
70 {
72 if (!tempScript)
73 continue;
74
75 scriptVector.emplace_back(tempScript, itr);
76 }
77}

References ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.

◆ CreateSpellScripts()

void ScriptMgr::CreateSpellScripts ( uint32  spellId,
std::list< SpellScript * > &  scriptVector 
)
23{
24 SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spellId);
25
26 for (SpellScriptsContainer::iterator itr = bounds.first; itr != bounds.second; ++itr)
27 {
29 if (!tempScript)
30 continue;
31
32 SpellScript* script = tempScript->GetSpellScript();
33
34 if (!script)
35 continue;
36
37 script->_Init(&tempScript->GetName(), spellId);
38
39 scriptVector.push_back(script);
40 }
41}
virtual SpellScript * GetSpellScript() const
Definition SpellScriptLoader.h:34
Definition SpellScript.h:182

References _SpellScript::_Init(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), SpellScriptLoader::GetSpellScript(), and sObjectMgr.

◆ Creature_SelectLevel()

void ScriptMgr::Creature_SelectLevel ( const CreatureTemplate cinfo,
Creature creature 
)
61{
62 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
63 {
64 script->Creature_SelectLevel(cinfo, creature);
65 });
66}
Definition AllCreatureScript.h:24
virtual void Creature_SelectLevel(const CreatureTemplate *, Creature *)
Definition AllCreatureScript.h:36

References AllCreatureScript::Creature_SelectLevel().

◆ DealDamage()

uint32 ScriptMgr::DealDamage ( Unit AttackerUnit,
Unit pVictim,
uint32  damage,
DamageEffectType  damagetype 
)
53{
55 {
56 return damage;
57 }
58
59 for (auto const& [scriptID, script] : ScriptRegistry<UnitScript>::ScriptPointerList)
60 {
61 auto const& dmg = script->DealDamage(AttackerUnit, pVictim, damage, damagetype);
62 if (dmg != damage)
63 {
64 return damage;
65 }
66 }
67
68 return damage;
69}

◆ DecreaseScheduledScriptCount() [1/2]

uint32 ScriptMgr::DecreaseScheduledScriptCount ( )
inline
537{ return --_scheduledScripts; }

References _scheduledScripts.

◆ DecreaseScheduledScriptCount() [2/2]

uint32 ScriptMgr::DecreaseScheduledScriptCount ( std::size_t  count)
inline
538{ return _scheduledScripts -= count; }

References _scheduledScripts.

◆ DecreaseScriptCount()

void ScriptMgr::DecreaseScriptCount ( )
inline
127{ --_scriptCount; }

References _scriptCount.

◆ FillSpellSummary()

void ScriptMgr::FillSpellSummary ( )
239{
241
242 SpellSummary = new TSpellSummary[sSpellMgr->GetSpellInfoStoreSize()];
243
244 SpellInfo const* pTempSpell;
245
246 for (uint32 i = 0; i < sSpellMgr->GetSpellInfoStoreSize(); ++i)
247 {
248 SpellSummary[i].Effects = 0;
249 SpellSummary[i].Targets = 0;
250
251 pTempSpell = sSpellMgr->GetSpellInfo(i);
252 // This spell doesn't exist.
253 if (!pTempSpell)
254 continue;
255
256 for (uint32 j = 0; j < MAX_SPELL_EFFECTS; ++j)
257 {
258 // Spell targets self.
259 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_CASTER)
260 SpellSummary[i].Targets |= 1 << (SELECT_TARGET_SELF - 1);
261
262 // Spell targets a single enemy.
263 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_ENEMY ||
264 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_DEST_TARGET_ENEMY)
266
267 // Spell targets AoE at enemy.
268 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_SRC_AREA_ENEMY ||
269 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_DEST_AREA_ENEMY ||
270 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_SRC_CASTER ||
271 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_DEST_DYNOBJ_ENEMY)
273
274 // Spell targets an enemy.
275 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_ENEMY ||
276 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_DEST_TARGET_ENEMY ||
277 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_SRC_AREA_ENEMY ||
278 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_DEST_AREA_ENEMY ||
279 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_SRC_CASTER ||
280 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_DEST_DYNOBJ_ENEMY)
282
283 // Spell targets a single friend (or self).
284 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_CASTER ||
285 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_ALLY ||
286 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_PARTY)
288
289 // Spell targets AoE friends.
290 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_CASTER_AREA_PARTY ||
291 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_LASTTARGET_AREA_PARTY ||
292 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_SRC_CASTER)
294
295 // Spell targets any friend (or self).
296 if (pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_CASTER ||
297 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_ALLY ||
298 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_TARGET_PARTY ||
299 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_CASTER_AREA_PARTY ||
300 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_UNIT_LASTTARGET_AREA_PARTY ||
301 pTempSpell->Effects[j].TargetA.GetTarget() == TARGET_SRC_CASTER)
303
304 // Make sure that this spell includes a damage effect.
305 if (pTempSpell->Effects[j].Effect == SPELL_EFFECT_SCHOOL_DAMAGE ||
306 pTempSpell->Effects[j].Effect == SPELL_EFFECT_INSTAKILL ||
307 pTempSpell->Effects[j].Effect == SPELL_EFFECT_ENVIRONMENTAL_DAMAGE ||
308 pTempSpell->Effects[j].Effect == SPELL_EFFECT_HEALTH_LEECH)
310
311 // Make sure that this spell includes a healing effect (or an apply aura with a periodic heal).
312 if (pTempSpell->Effects[j].Effect == SPELL_EFFECT_HEAL ||
313 pTempSpell->Effects[j].Effect == SPELL_EFFECT_HEAL_MAX_HEALTH ||
314 pTempSpell->Effects[j].Effect == SPELL_EFFECT_HEAL_MECHANICAL ||
315 (pTempSpell->Effects[j].Effect == SPELL_EFFECT_APPLY_AURA && pTempSpell->Effects[j].ApplyAuraName == 8))
316 SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_HEALING - 1);
317
318 // Make sure that this spell applies an aura.
319 if (pTempSpell->Effects[j].Effect == SPELL_EFFECT_APPLY_AURA)
320 SpellSummary[i].Effects |= 1 << (SELECT_EFFECT_AURA - 1);
321 }
322 }
323}
@ SELECT_TARGET_ANY_FRIEND
Definition CreatureAI.h:51
@ SELECT_TARGET_AOE_FRIEND
Definition CreatureAI.h:50
@ SELECT_TARGET_ANY_ENEMY
Definition CreatureAI.h:47
@ SELECT_TARGET_SINGLE_FRIEND
Definition CreatureAI.h:49
@ SELECT_TARGET_SINGLE_ENEMY
Definition CreatureAI.h:45
@ SELECT_TARGET_SELF
Definition CreatureAI.h:43
@ SELECT_TARGET_AOE_ENEMY
Definition CreatureAI.h:46
@ SELECT_EFFECT_AURA
Definition CreatureAI.h:60
@ SELECT_EFFECT_HEALING
Definition CreatureAI.h:59
@ SELECT_EFFECT_DAMAGE
Definition CreatureAI.h:58
#define MAX_SPELL_EFFECTS
Definition DBCStructure.h:1636
struct TSpellSummary * SpellSummary
@ SPELL_EFFECT_HEALTH_LEECH
Definition SharedDefines.h:787
@ SPELL_EFFECT_HEAL
Definition SharedDefines.h:788
@ SPELL_EFFECT_HEAL_MAX_HEALTH
Definition SharedDefines.h:845
@ SPELL_EFFECT_HEAL_MECHANICAL
Definition SharedDefines.h:853
@ SPELL_EFFECT_ENVIRONMENTAL_DAMAGE
Definition SharedDefines.h:785
@ SPELL_EFFECT_SCHOOL_DAMAGE
Definition SharedDefines.h:780
@ SPELL_EFFECT_INSTAKILL
Definition SharedDefines.h:779
@ SPELL_EFFECT_APPLY_AURA
Definition SharedDefines.h:784
Targets
Definition SharedDefines.h:1409
@ TARGET_UNIT_TARGET_PARTY
Definition SharedDefines.h:1439
@ TARGET_DEST_DYNOBJ_ENEMY
Definition SharedDefines.h:1432
@ TARGET_UNIT_CASTER_AREA_PARTY
Definition SharedDefines.h:1424
@ TARGET_UNIT_DEST_AREA_ENEMY
Definition SharedDefines.h:1421
@ TARGET_UNIT_TARGET_ALLY
Definition SharedDefines.h:1425
@ TARGET_UNIT_SRC_AREA_ENEMY
Definition SharedDefines.h:1420
@ TARGET_DEST_TARGET_ENEMY
Definition SharedDefines.h:1457
@ TARGET_UNIT_TARGET_ENEMY
Definition SharedDefines.h:1415
@ TARGET_UNIT_LASTTARGET_AREA_PARTY
Definition SharedDefines.h:1441
@ TARGET_UNIT_CASTER
Definition SharedDefines.h:1410
@ TARGET_SRC_CASTER
Definition SharedDefines.h:1426
#define sSpellMgr
Definition SpellMgr.h:825
Definition SpellInfo.h:316
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition SpellInfo.h:393
static void FillAISpellInfo()
Definition UnitAI.cpp:292
Definition ScriptedCreature.cpp:35
uint8 Targets
Definition ScriptedCreature.cpp:36
uint8 Effects
Definition ScriptedCreature.cpp:37

References TSpellSummary::Effects, SpellInfo::Effects, UnitAI::FillAISpellInfo(), MAX_SPELL_EFFECTS, SELECT_EFFECT_AURA, SELECT_EFFECT_DAMAGE, SELECT_EFFECT_HEALING, SELECT_TARGET_ANY_ENEMY, SELECT_TARGET_ANY_FRIEND, SELECT_TARGET_AOE_ENEMY, SELECT_TARGET_AOE_FRIEND, SELECT_TARGET_SELF, SELECT_TARGET_SINGLE_ENEMY, SELECT_TARGET_SINGLE_FRIEND, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_ENVIRONMENTAL_DAMAGE, SPELL_EFFECT_HEAL, SPELL_EFFECT_HEAL_MAX_HEALTH, SPELL_EFFECT_HEAL_MECHANICAL, SPELL_EFFECT_HEALTH_LEECH, SPELL_EFFECT_INSTAKILL, SPELL_EFFECT_SCHOOL_DAMAGE, SpellSummary, sSpellMgr, TARGET_DEST_DYNOBJ_ENEMY, TARGET_DEST_TARGET_ENEMY, TARGET_SRC_CASTER, TARGET_UNIT_CASTER, TARGET_UNIT_CASTER_AREA_PARTY, TARGET_UNIT_DEST_AREA_ENEMY, TARGET_UNIT_LASTTARGET_AREA_PARTY, TARGET_UNIT_SRC_AREA_ENEMY, TARGET_UNIT_TARGET_ALLY, TARGET_UNIT_TARGET_ENEMY, TARGET_UNIT_TARGET_PARTY, and TSpellSummary::Targets.

Referenced by LoadDatabase().

◆ GetChatCommands()

Acore::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands ( )
23{
25
26 for (auto const& [scriptID, script] : ScriptRegistry<CommandScript>::ScriptPointerList)
27 {
28 Acore::ChatCommands::ChatCommandTable cmds = script->GetCommands();
29 std::move(cmds.begin(), cmds.end(), std::back_inserter(table));
30 }
31
32 return table;
33}
Definition CommandScript.h:25
std::vector< ChatCommandBuilder > ChatCommandTable
Definition ChatCommand.h:46

◆ GetCreatureAI()

CreatureAI * ScriptMgr::GetCreatureAI ( Creature creature)
157{
158 ASSERT(creature);
159
160 auto retAI = GetReturnAIScript<AllCreatureScript, CreatureAI>([creature](AllCreatureScript* script)
161 {
162 return script->GetCreatureAI(creature);
163 });
164
165 if (retAI)
166 {
167 return retAI;
168 }
169
170 auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId());
171 return tempScript ? tempScript->GetAI(creature) : nullptr;
172}
virtual CreatureAI * GetCreatureAI(Creature *) const
Definition AllCreatureScript.h:101
uint32 GetScriptId() const
Definition Creature.cpp:3060

References ASSERT, AllCreatureScript::GetCreatureAI(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ GetDialogStatus() [1/3]

uint32 ScriptMgr::GetDialogStatus ( Player player,
Creature creature 
)
148{
149 ASSERT(player);
150 ASSERT(creature);
151
152 auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId());
153 return tempScript ? tempScript->GetDialogStatus(player, creature) : DIALOG_STATUS_SCRIPTED_NO_STATUS;
154}
@ DIALOG_STATUS_SCRIPTED_NO_STATUS
Definition QuestDef.h:125

References ASSERT, DIALOG_STATUS_SCRIPTED_NO_STATUS, ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ GetDialogStatus() [2/3]

uint32 ScriptMgr::GetDialogStatus ( Player player,
GameObject go 
)
126{
127 ASSERT(player);
128 ASSERT(go);
129
131 return tempScript ? tempScript->GetDialogStatus(player, go) : DIALOG_STATUS_SCRIPTED_NO_STATUS;
132}
virtual uint32 GetScriptId() const
Definition GameObject.cpp:2182

References ASSERT, DIALOG_STATUS_SCRIPTED_NO_STATUS, ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ GetDialogStatus() [3/3]

void ScriptMgr::GetDialogStatus ( Player player,
Object questgiver 
)
108{
110}
@ MISCHOOK_GET_DIALOG_STATUS
Definition MiscScript.h:44
virtual void GetDialogStatus(Player *, Object *)
This hook called before get Quest Dialog Status.
Definition MiscScript.h:96

References CALL_ENABLED_HOOKS, MiscScript::GetDialogStatus(), and MISCHOOK_GET_DIALOG_STATUS.

◆ GetGameObjectAI()

GameObjectAI * ScriptMgr::GetGameObjectAI ( GameObject go)
225{
226 ASSERT(go);
227
228 auto retAI = GetReturnAIScript<AllGameObjectScript, GameObjectAI>([go](AllGameObjectScript* script)
229 {
230 return script->GetGameObjectAI(go);
231 });
232
233 if (retAI)
234 {
235 return retAI;
236 }
237
239 return tempScript ? tempScript->GetAI(go) : nullptr;
240}
Definition AllGameObjectScript.h:24
virtual GameObjectAI * GetGameObjectAI(GameObject *) const
Definition AllGameObjectScript.h:86

References ASSERT, AllGameObjectScript::GetGameObjectAI(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ GetScriptCount()

uint32 ScriptMgr::GetScriptCount ( ) const
inline
128{ return _scriptCount; }

References _scriptCount.

Referenced by LoadDatabase().

◆ IfNormalReaction()

bool ScriptMgr::IfNormalReaction ( Unit const *  unit,
Unit const *  target,
ReputationRank repRank 
)
87{
89}
@ UNITHOOK_IF_NORMAL_REACTION
Definition UnitScript.h:35
virtual bool IfNormalReaction(Unit const *, Unit const *, ReputationRank &)
Definition UnitScript.h:90

References CALL_ENABLED_BOOLEAN_HOOKS, UnitScript::IfNormalReaction(), and UNITHOOK_IF_NORMAL_REACTION.

◆ IncreaseScheduledScriptsCount()

uint32 ScriptMgr::IncreaseScheduledScriptsCount ( )
inline
536{ return ++_scheduledScripts; }

References _scheduledScripts.

◆ IncreaseScriptCount()

void ScriptMgr::IncreaseScriptCount ( )
inline
126{ ++_scriptCount; }

References _scriptCount.

◆ Initialize()

void ScriptMgr::Initialize ( )
62{
63 LOG_INFO("server.loading", "> Loading C++ scripts");
64 LOG_INFO("server.loading", " ");
65
67
68 // LFGScripts
70
72 "Script loader callback wasn't registered!");
73
75 "Modules loader callback wasn't registered!");
76
79
106}
@ ACCOUNTHOOK_END
Definition AccountScript.h:35
@ ACHIEVEMENTHOOK_END
Definition AchievementScript.h:33
@ ALLBATTLEGROUNDHOOK_END
Definition AllBattlegroundScript.h:43
@ ALLCOMMANDHOOK_END
Definition AllCommandScript.h:30
@ ALLMAPHOOK_END
Definition AllMapScript.h:33
@ ALLSPELLHOOK_END
Definition AllSpellScript.h:42
@ ARENAHOOK_END
Definition ArenaScript.h:32
@ ARENATEAMHOOK_END
Definition ArenaTeamScript.h:32
@ AUCTIONHOUSEHOOK_END
Definition AuctionHouseScript.h:37
@ DATABASEHOOK_END
Definition DatabaseScript.h:28
@ FORMULAHOOK_END
Definition FormulaScript.h:35
@ GAMEEVENTHOOK_END
Definition GameEventScript.h:29
@ GLOBALHOOK_END
Definition GlobalScript.h:50
@ GROUPHOOK_END
Definition GroupScript.h:34
@ GUILDHOOK_END
Definition GuildScript.h:39
#define LOG_INFO(filterType__,...)
Definition Log.h:165
@ LOOTHOOK_END
Definition LootScript.h:27
@ MAILHOOK_END
Definition MailScript.h:27
@ MISCHOOK_END
Definition MiscScript.h:45
@ MOVEMENTHOOK_END
Definition MovementHandlerScript.h:28
@ PETHOOK_END
Definition PetScript.h:32
@ PLAYERHOOK_END
Definition PlayerScript.h:213
@ SERVERHOOK_END
Definition ServerScript.h:33
void AddSC_SmartScripts()
Registers scripts required by the SAI scripting system.
Definition SmartAI.cpp:1319
@ TICKETHOOK_END
Definition TicketScript.h:32
@ UNITHOOK_END
Definition UnitScript.h:49
@ WORLDOBJECTHOOK_END
Definition WorldObjectScript.h:31
@ WORLDHOOK_END
Definition WorldScript.h:40
static void InitEnabledHooksIfNeeded(uint16 totalAvailableHooks)
Definition ScriptMgr.h:751
void AddSC_LFGScripts()
Definition LFGScripts.cpp:319

References _modules_loader_callback, _script_loader_callback, ACCOUNTHOOK_END, ACHIEVEMENTHOOK_END, lfg::AddSC_LFGScripts(), AddSC_SmartScripts(), ALLBATTLEGROUNDHOOK_END, ALLCOMMANDHOOK_END, ALLMAPHOOK_END, ALLSPELLHOOK_END, ARENAHOOK_END, ARENATEAMHOOK_END, ASSERT, AUCTIONHOUSEHOOK_END, DATABASEHOOK_END, FORMULAHOOK_END, GAMEEVENTHOOK_END, GLOBALHOOK_END, GROUPHOOK_END, GUILDHOOK_END, ScriptRegistry< TScript >::InitEnabledHooksIfNeeded(), LOG_INFO, LOOTHOOK_END, MAILHOOK_END, MISCHOOK_END, MOVEMENTHOOK_END, PETHOOK_END, PLAYERHOOK_END, SERVERHOOK_END, TICKETHOOK_END, UNITHOOK_END, WORLDHOOK_END, and WORLDOBJECTHOOK_END.

◆ instance()

ScriptMgr * ScriptMgr::instance ( )
static
56{
57 static ScriptMgr instance;
58 return &instance;
59}
Definition ScriptMgr.h:110

References instance().

Referenced by AfterInstanceGameObjectCreate(), instance(), OnBeforeSetBossState(), and OnPlayerCanEnterMap().

◆ IsCheckNormalMatch()

bool ScriptMgr::IsCheckNormalMatch ( BattlegroundQueue queue,
Battleground bgTemplate,
BattlegroundBracketId  bracket_id,
uint32  minPlayers,
uint32  maxPlayers 
)
73{
75}
@ ALLBATTLEGROUNDHOOK_IS_CHECK_NORMAL_MATCH
Definition AllBattlegroundScript.h:36
virtual bool IsCheckNormalMatch(BattlegroundQueue *, Battleground *, BattlegroundBracketId, uint32, uint32)
Definition AllBattlegroundScript.h:89

References ALLBATTLEGROUNDHOOK_IS_CHECK_NORMAL_MATCH, CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and AllBattlegroundScript::IsCheckNormalMatch().

◆ IsCompletedCriteria()

bool ScriptMgr::IsCompletedCriteria ( AchievementMgr mgr,
AchievementCriteriaEntry const *  achievementCriteria,
AchievementEntry const *  achievement,
CriteriaProgress const *  progress 
)
28{
29 CALL_ENABLED_BOOLEAN_HOOKS(AchievementScript, ACHIEVEMENTHOOK_IS_COMPLETED_CRITERIA, !script->IsCompletedCriteria(mgr, achievementCriteria, achievement, progress));
30}
@ ACHIEVEMENTHOOK_IS_COMPLETED_CRITERIA
Definition AchievementScript.h:29
virtual bool IsCompletedCriteria(AchievementMgr *, AchievementCriteriaEntry const *, AchievementEntry const *, CriteriaProgress const *)
Definition AchievementScript.h:47

References ACHIEVEMENTHOOK_IS_COMPLETED_CRITERIA, CALL_ENABLED_BOOLEAN_HOOKS, and AchievementScript::IsCompletedCriteria().

◆ IsCustomBuildValuesUpdate()

bool ScriptMgr::IsCustomBuildValuesUpdate ( Unit const *  unit,
uint8  updateType,
ByteBuffer fieldBuffer,
Player const *  target,
uint16  index 
)
112{
114}
@ UNITHOOK_IS_CUSTOM_BUILD_VALUES_UPDATE
Definition UnitScript.h:40
virtual bool IsCustomBuildValuesUpdate(Unit const *, uint8, ByteBuffer &, Player const *, uint16)
Definition UnitScript.h:100

References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, UnitScript::IsCustomBuildValuesUpdate(), and UNITHOOK_IS_CUSTOM_BUILD_VALUES_UPDATE.

◆ IsNeedModHealPercent()

bool ScriptMgr::IsNeedModHealPercent ( Unit const *  unit,
AuraEffect auraEff,
float &  doneTotalMod,
SpellInfo const *  spellProto 
)
102{
103 CALL_ENABLED_BOOLEAN_HOOKS(UnitScript, UNITHOOK_IS_NEEDMOD_HEAL_PERCENT, !script->IsNeedModHealPercent(unit, auraEff, doneTotalMod, spellProto));
104}
@ UNITHOOK_IS_NEEDMOD_HEAL_PERCENT
Definition UnitScript.h:38
virtual bool IsNeedModHealPercent(Unit const *, AuraEffect *, float &, SpellInfo const *)
Definition UnitScript.h:96

References CALL_ENABLED_BOOLEAN_HOOKS, UnitScript::IsNeedModHealPercent(), and UNITHOOK_IS_NEEDMOD_HEAL_PERCENT.

◆ IsNeedModMeleeDamagePercent()

bool ScriptMgr::IsNeedModMeleeDamagePercent ( Unit const *  unit,
AuraEffect auraEff,
float &  doneTotalMod,
SpellInfo const *  spellProto 
)
97{
99}
@ UNITHOOK_IS_NEEDMOD_MELEE_DAMAGE_PERCENT
Definition UnitScript.h:37
virtual bool IsNeedModMeleeDamagePercent(Unit const *, AuraEffect *, float &, SpellInfo const *)
Definition UnitScript.h:94

References CALL_ENABLED_BOOLEAN_HOOKS, UnitScript::IsNeedModMeleeDamagePercent(), and UNITHOOK_IS_NEEDMOD_MELEE_DAMAGE_PERCENT.

◆ IsNeedModSpellDamagePercent()

bool ScriptMgr::IsNeedModSpellDamagePercent ( Unit const *  unit,
AuraEffect auraEff,
float &  doneTotalMod,
SpellInfo const *  spellProto 
)
92{
94}
@ UNITHOOK_IS_NEEDMOD_SPELL_DAMAGE_PERCENT
Definition UnitScript.h:36
virtual bool IsNeedModSpellDamagePercent(Unit const *, AuraEffect *, float &, SpellInfo const *)
Definition UnitScript.h:92

References CALL_ENABLED_BOOLEAN_HOOKS, UnitScript::IsNeedModSpellDamagePercent(), and UNITHOOK_IS_NEEDMOD_SPELL_DAMAGE_PERCENT.

◆ IsRealmCompleted()

bool ScriptMgr::IsRealmCompleted ( AchievementGlobalMgr const *  globalmgr,
AchievementEntry const *  achievement,
std::chrono::system_clock::time_point  completionTime 
)
33{
35}
@ ACHIEVEMENTHOOK_IS_REALM_COMPLETED
Definition AchievementScript.h:30
virtual bool IsRealmCompleted(AchievementGlobalMgr const *, AchievementEntry const *, SystemTimePoint)
Definition AchievementScript.h:49

References ACHIEVEMENTHOOK_IS_REALM_COMPLETED, CALL_ENABLED_BOOLEAN_HOOKS, and AchievementScript::IsRealmCompleted().

◆ IsScriptScheduled()

bool ScriptMgr::IsScriptScheduled ( ) const
inline
539{ return _scheduledScripts > 0; }

References _scheduledScripts.

◆ LoadDatabase()

void ScriptMgr::LoadDatabase ( )
162{
163 uint32 oldMSTime = getMSTime();
164
165 sScriptSystemMgr->LoadScriptWaypoints();
166
167 // Add all scripts that must be loaded after db/maps
182
184
186
187 LOG_INFO("server.loading", ">> Loaded {} C++ scripts in {} ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
188 LOG_INFO("server.loading", " ");
189}
#define sScriptSystemMgr
Definition ScriptSystem.h:91
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition Timer.h:131
uint32 getMSTime()
Definition Timer.h:103
void FillSpellSummary()
Definition ScriptMgr.cpp:238
uint32 GetScriptCount() const
Definition ScriptMgr.h:128
void CheckIfScriptsInDatabaseExist()
Definition ScriptMgr.cpp:191
static void AddALScripts()
Definition ScriptMgr.h:783

References ScriptRegistry< TScript >::AddALScripts(), CheckIfScriptsInDatabaseExist(), FillSpellSummary(), getMSTime(), GetMSTimeDiffToNow(), GetScriptCount(), LOG_INFO, and sScriptSystemMgr.

◆ ModifyHealReceived()

void ScriptMgr::ModifyHealReceived ( Unit target,
Unit healer,
uint32 addHealth,
SpellInfo const *  spellInfo 
)
48{
49 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_MODIFY_HEAL_RECEIVED, script->ModifyHealReceived(target, healer, heal, spellInfo));
50}
@ UNITHOOK_MODIFY_HEAL_RECEIVED
Definition UnitScript.h:31
virtual void ModifyHealReceived(Unit *, Unit *, uint32 &, SpellInfo const *)
Definition UnitScript.h:79

References CALL_ENABLED_HOOKS, UnitScript::ModifyHealReceived(), and UNITHOOK_MODIFY_HEAL_RECEIVED.

◆ ModifyMeleeDamage()

void ScriptMgr::ModifyMeleeDamage ( Unit target,
Unit attacker,
uint32 damage 
)
38{
40}
@ UNITHOOK_MODIFY_MELEE_DAMAGE
Definition UnitScript.h:29
virtual void ModifyMeleeDamage(Unit *, Unit *, uint32 &)
Definition UnitScript.h:73

References CALL_ENABLED_HOOKS, UnitScript::ModifyMeleeDamage(), and UNITHOOK_MODIFY_MELEE_DAMAGE.

◆ ModifyPeriodicDamageAurasTick()

void ScriptMgr::ModifyPeriodicDamageAurasTick ( Unit target,
Unit attacker,
uint32 damage,
SpellInfo const *  spellInfo 
)
33{
35}
@ UNITHOOK_MODIFY_PERIODIC_DAMAGE_AURAS_TICK
Definition UnitScript.h:28
virtual void ModifyPeriodicDamageAurasTick(Unit *, Unit *, uint32 &, SpellInfo const *)
Definition UnitScript.h:70

References CALL_ENABLED_HOOKS, UnitScript::ModifyPeriodicDamageAurasTick(), and UNITHOOK_MODIFY_PERIODIC_DAMAGE_AURAS_TICK.

◆ ModifySpellDamageTaken()

void ScriptMgr::ModifySpellDamageTaken ( Unit target,
Unit attacker,
int32 damage,
SpellInfo const *  spellInfo 
)
43{
44 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_MODIFY_SPELL_DAMAGE_TAKEN, script->ModifySpellDamageTaken(target, attacker, damage, spellInfo));
45}
@ UNITHOOK_MODIFY_SPELL_DAMAGE_TAKEN
Definition UnitScript.h:30
virtual void ModifySpellDamageTaken(Unit *, Unit *, int32 &, SpellInfo const *)
Definition UnitScript.h:76

References CALL_ENABLED_HOOKS, UnitScript::ModifySpellDamageTaken(), and UNITHOOK_MODIFY_SPELL_DAMAGE_TAKEN.

◆ OnAccountLogin()

void ScriptMgr::OnAccountLogin ( uint32  accountId)
23{
25}
@ ACCOUNTHOOK_ON_ACCOUNT_LOGIN
Definition AccountScript.h:26
virtual void OnAccountLogin(uint32)
Definition AccountScript.h:45

References ACCOUNTHOOK_ON_ACCOUNT_LOGIN, CALL_ENABLED_HOOKS, and AccountScript::OnAccountLogin().

◆ OnAddCreaturePassenger()

void ScriptMgr::OnAddCreaturePassenger ( Transport transport,
Creature creature 
)
34{
35 ASSERT(transport);
36 ASSERT(creature);
37
38 if (auto tempScript = ScriptRegistry<TransportScript>::GetScriptById(transport->GetScriptId()))
39 {
40 tempScript->OnAddCreaturePassenger(transport, creature);
41 }
42}

References ASSERT, and GameObject::GetScriptId().

◆ OnAddGroup()

void ScriptMgr::OnAddGroup ( BattlegroundQueue queue,
GroupQueueInfo ginfo,
uint32 index,
Player leader,
Group group,
BattlegroundTypeId  bgTypeId,
PvPDifficultyEntry const *  bracketEntry,
uint8  arenaType,
bool  isRated,
bool  isPremade,
uint32  arenaRating,
uint32  matchmakerRating,
uint32  arenaTeamId,
uint32  opponentsArenaTeamId 
)
63{
64 CALL_ENABLED_HOOKS(AllBattlegroundScript, ALLBATTLEGROUNDHOOK_ON_ADD_GROUP, script->OnAddGroup(queue, ginfo, index, leader, group, bgTypeId, bracketEntry, arenaType, isRated, isPremade, arenaRating, matchmakerRating, arenaTeamId, opponentsArenaTeamId));
65}
@ ALLBATTLEGROUNDHOOK_ON_ADD_GROUP
Definition AllBattlegroundScript.h:34
virtual void OnAddGroup(BattlegroundQueue *, GroupQueueInfo *, uint32 &, Player *, Group *, BattlegroundTypeId, PvPDifficultyEntry const *, uint8, bool, bool, uint32, uint32, uint32, uint32)
Definition AllBattlegroundScript.h:84

References ALLBATTLEGROUNDHOOK_ON_ADD_GROUP, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnAddGroup().

◆ OnAddPassenger() [1/2]

void ScriptMgr::OnAddPassenger ( Transport transport,
Player player 
)
23{
24 ASSERT(transport);
25 ASSERT(player);
26
27 if (auto tempScript = ScriptRegistry<TransportScript>::GetScriptById(transport->GetScriptId()))
28 {
29 tempScript->OnAddPassenger(transport, player);
30 }
31}

References ASSERT, and GameObject::GetScriptId().

◆ OnAddPassenger() [2/2]

void ScriptMgr::OnAddPassenger ( Vehicle veh,
Unit passenger,
int8  seatId 
)
68{
69 ASSERT(veh);
70 ASSERT(veh->GetBase()->IsCreature());
71 ASSERT(passenger);
72
74 {
75 tempScript->OnAddPassenger(veh, passenger, seatId);
76 }
77}
bool IsCreature() const
Definition Object.h:204
Creature * ToCreature()
Definition Object.h:205
Unit * GetBase() const
May be called from scripts.
Definition Vehicle.h:37

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnAfterArenaRatingCalculation()

void ScriptMgr::OnAfterArenaRatingCalculation ( Battleground *const  bg,
int32 winnerMatchmakerChange,
int32 loserMatchmakerChange,
int32 winnerChange,
int32 loserChange 
)
61{
62 CALL_ENABLED_HOOKS(FormulaScript, FORMULAHOOK_ON_AFTER_ARENA_RATING_CALCULATION, script->OnAfterArenaRatingCalculation(bg, winnerMatchmakerChange, loserMatchmakerChange, winnerChange, loserChange));
63}
@ FORMULAHOOK_ON_AFTER_ARENA_RATING_CALCULATION
Definition FormulaScript.h:33
Definition FormulaScript.h:41
virtual void OnAfterArenaRatingCalculation(Battleground *const, int32 &, int32 &, int32 &, int32 &)
Definition FormulaScript.h:68

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_AFTER_ARENA_RATING_CALCULATION, and FormulaScript::OnAfterArenaRatingCalculation().

◆ OnAfterCalculateLootGroupAmount()

void ScriptMgr::OnAfterCalculateLootGroupAmount ( Player const *  player,
Loot loot,
uint16  lootMode,
uint32 groupAmount,
LootStore const &  store 
)
43{
45}
@ GLOBALHOOK_ON_AFTER_CALCULATE_LOOT_GROUP_AMOUNT
Definition GlobalScript.h:33
virtual void OnAfterCalculateLootGroupAmount(Player const *, Loot &, uint16, uint32 &, LootStore const &)
Definition GlobalScript.h:66

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_AFTER_CALCULATE_LOOT_GROUP_AMOUNT, and GlobalScript::OnAfterCalculateLootGroupAmount().

◆ OnAfterConfigLoad()

void ScriptMgr::OnAfterConfigLoad ( bool  reload)
28{
30}
@ WORLDHOOK_ON_AFTER_CONFIG_LOAD
Definition WorldScript.h:28
Definition WorldScript.h:44
virtual void OnAfterConfigLoad(bool)
Definition WorldScript.h:53

References CALL_ENABLED_HOOKS, WorldScript::OnAfterConfigLoad(), and WORLDHOOK_ON_AFTER_CONFIG_LOAD.

◆ OnAfterDatabaseLoadCreatureTemplates()

void ScriptMgr::OnAfterDatabaseLoadCreatureTemplates ( std::vector< CreatureTemplate * >  creatureTemplateStore)
28{
30}
@ DATABASEHOOK_ON_AFTER_DATABASE_LOAD_CREATURETEMPLATES
Definition DatabaseScript.h:27
Definition DatabaseScript.h:32
virtual void OnAfterDatabaseLoadCreatureTemplates(std::vector< CreatureTemplate * >)
Called after all creature template data has been loaded from the database. This hook could be called ...
Definition DatabaseScript.h:53

References CALL_ENABLED_HOOKS, DATABASEHOOK_ON_AFTER_DATABASE_LOAD_CREATURETEMPLATES, and DatabaseScript::OnAfterDatabaseLoadCreatureTemplates().

◆ OnAfterDatabasesLoaded()

void ScriptMgr::OnAfterDatabasesLoaded ( uint32  updateFlags)
23{
25}
@ DATABASEHOOK_ON_AFTER_DATABASES_LOADED
Definition DatabaseScript.h:26
virtual void OnAfterDatabasesLoaded(uint32)
Called after all databases are loaded.
Definition DatabaseScript.h:46

References CALL_ENABLED_HOOKS, DATABASEHOOK_ON_AFTER_DATABASES_LOADED, and DatabaseScript::OnAfterDatabasesLoaded().

◆ OnAfterInitializeLockedDungeons()

void ScriptMgr::OnAfterInitializeLockedDungeons ( Player player)
68{
70}
@ GLOBALHOOK_ON_AFTER_INITIALIZE_LOCKED_DUNGEONS
Definition GlobalScript.h:38
virtual void OnAfterInitializeLockedDungeons(Player *)
Definition GlobalScript.h:71

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_AFTER_INITIALIZE_LOCKED_DUNGEONS, and GlobalScript::OnAfterInitializeLockedDungeons().

◆ OnAfterLootTemplateProcess()

void ScriptMgr::OnAfterLootTemplateProcess ( Loot loot,
LootTemplate const *  tab,
LootStore const &  store,
Player lootOwner,
bool  personal,
bool  noEmptyError,
uint16  lootMode 
)
93{
94 CALL_ENABLED_HOOKS(MiscScript, MISCHOOK_ON_AFTER_LOOT_TEMPLATE_PROCESS, script->OnAfterLootTemplateProcess(loot, tab, store, lootOwner, personal, noEmptyError, lootMode));
95}
@ MISCHOOK_ON_AFTER_LOOT_TEMPLATE_PROCESS
Definition MiscScript.h:41
virtual void OnAfterLootTemplateProcess(Loot *, LootTemplate const *, LootStore const &, Player *, bool, bool, uint16)
Definition MiscScript.h:84

References CALL_ENABLED_HOOKS, MISCHOOK_ON_AFTER_LOOT_TEMPLATE_PROCESS, and MiscScript::OnAfterLootTemplateProcess().

◆ OnAfterRefCount()

void ScriptMgr::OnAfterRefCount ( Player const *  player,
Loot loot,
bool  canRate,
uint16  lootMode,
LootStoreItem LootStoreItem,
uint32 maxcount,
LootStore const &  store 
)
38{
39 CALL_ENABLED_HOOKS(GlobalScript, GLOBALHOOK_ON_AFTER_REF_COUNT, script->OnAfterRefCount(player, LootStoreItem, loot, canRate, lootMode, maxcount, store));
40}
@ GLOBALHOOK_ON_AFTER_REF_COUNT
Definition GlobalScript.h:32
virtual void OnAfterRefCount(Player const *, LootStoreItem *, Loot &, bool, uint16, uint32 &, LootStore const &)
Definition GlobalScript.h:65
Definition LootMgr.h:128

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_AFTER_REF_COUNT, and GlobalScript::OnAfterRefCount().

◆ OnAfterUnloadAllMaps()

void ScriptMgr::OnAfterUnloadAllMaps ( )
73{
75}
@ WORLDHOOK_ON_AFTER_UNLOAD_ALL_MAPS
Definition WorldScript.h:37
virtual void OnAfterUnloadAllMaps()
Called after all maps are unloaded from core.
Definition WorldScript.h:82

References CALL_ENABLED_HOOKS, WorldScript::OnAfterUnloadAllMaps(), and WORLDHOOK_ON_AFTER_UNLOAD_ALL_MAPS.

◆ OnAfterUpdateEncounterState()

void ScriptMgr::OnAfterUpdateEncounterState ( Map map,
EncounterCreditType  type,
uint32  creditEntry,
Unit source,
Difficulty  difficulty_fixed,
DungeonEncounterList const *  encounters,
uint32  dungeonCompleted,
bool  updated 
)
78{
79 CALL_ENABLED_HOOKS(GlobalScript, GLOBALHOOK_ON_AFTER_UPDATE_ENCOUNTER_STATE, script->OnAfterUpdateEncounterState(map, type, creditEntry, source, difficulty_fixed, encounters, dungeonCompleted, updated));
80}
@ GLOBALHOOK_ON_AFTER_UPDATE_ENCOUNTER_STATE
Definition GlobalScript.h:40
virtual void OnAfterUpdateEncounterState(Map *, EncounterCreditType, uint32, Unit *, Difficulty, std::list< DungeonEncounter const * > const *, uint32, bool)
Definition GlobalScript.h:77

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_AFTER_UPDATE_ENCOUNTER_STATE, and GlobalScript::OnAfterUpdateEncounterState().

◆ OnAllowedForPlayerLootCheck()

bool ScriptMgr::OnAllowedForPlayerLootCheck ( Player const *  player,
ObjectGuid  source 
)
103{
105}
@ GLOBALHOOK_ON_ALLOWED_FOR_PLAYER_LOOT_CHECK
Definition GlobalScript.h:45
virtual bool OnAllowedForPlayerLootCheck(Player const *, ObjectGuid)
Definition GlobalScript.h:92

References CALL_ENABLED_BOOLEAN_HOOKS, GLOBALHOOK_ON_ALLOWED_FOR_PLAYER_LOOT_CHECK, and GlobalScript::OnAllowedForPlayerLootCheck().

◆ OnAllowedToLootContainerCheck()

bool ScriptMgr::OnAllowedToLootContainerCheck ( Player const *  player,
ObjectGuid  source 
)
108{
110}
@ GLOBALHOOK_ON_ALLOWED_TO_LOOT_CONTAINER_CHECK
Definition GlobalScript.h:46
virtual bool OnAllowedToLootContainerCheck(Player const *, ObjectGuid)
Definition GlobalScript.h:95

References CALL_ENABLED_BOOLEAN_HOOKS, GLOBALHOOK_ON_ALLOWED_TO_LOOT_CONTAINER_CHECK, and GlobalScript::OnAllowedToLootContainerCheck().

◆ OnAreaTrigger()

bool ScriptMgr::OnAreaTrigger ( Player player,
AreaTrigger const *  trigger 
)
25{
26 ASSERT(player);
27 ASSERT(trigger);
28
29 auto ret = IsValidBoolScript<ElunaScript>([&](ElunaScript* script)
30 {
31 return script->CanAreaTrigger(player, trigger);
32 });
33
34 if (ret && *ret)
35 {
36 return false;
37 }
38
39 auto tempScript = ScriptRegistry<AreaTriggerScript>::GetScriptById(sObjectMgr->GetAreaTriggerScriptId(trigger->entry));
40 return tempScript ? tempScript->OnTrigger(player, trigger) : false;
41}
Definition ElunaScript.h:24
virtual bool CanAreaTrigger(Player *, AreaTrigger const *)
Definition ElunaScript.h:39

◆ OnArenaQueueIdToArenaType()

void ScriptMgr::OnArenaQueueIdToArenaType ( const BattlegroundQueueTypeId  bgQueueTypeId,
uint8 ArenaType 
)
38{
40}
@ ARENATEAMHOOK_ON_QUEUEID_TO_ARENA_TYPE
Definition ArenaTeamScript.h:30
ArenaType
Definition Battleground.h:217
Definition ArenaTeamScript.h:36
virtual void OnQueueIdToArenaType(const BattlegroundQueueTypeId, uint8 &)
Definition ArenaTeamScript.h:46

References ARENATEAMHOOK_ON_QUEUEID_TO_ARENA_TYPE, CALL_ENABLED_HOOKS, and ArenaTeamScript::OnQueueIdToArenaType().

◆ OnArenaStart()

void ScriptMgr::OnArenaStart ( Battleground *const  bg)
43{
45}
@ ARENAHOOK_ON_ARENA_START
Definition ArenaScript.h:31
virtual void OnArenaStart(Battleground *)
Definition ArenaScript.h:53

References ARENAHOOK_ON_ARENA_START, CALL_ENABLED_HOOKS, and ArenaScript::OnArenaStart().

◆ OnArenaTypeIDToQueueID()

void ScriptMgr::OnArenaTypeIDToQueueID ( const BattlegroundTypeId  bgTypeId,
const uint8  arenaType,
uint32 queueTypeID 
)
33{
35}
@ ARENATEAMHOOK_ON_TYPEID_TO_QUEUEID
Definition ArenaTeamScript.h:29
virtual void OnTypeIDToQueueID(const BattlegroundTypeId, const uint8, uint32 &)
Definition ArenaTeamScript.h:45

References ARENATEAMHOOK_ON_TYPEID_TO_QUEUEID, CALL_ENABLED_HOOKS, and ArenaTeamScript::OnTypeIDToQueueID().

◆ OnAuctionAdd()

void ScriptMgr::OnAuctionAdd ( AuctionHouseObject ah,
AuctionEntry entry 
)
23{
24 ASSERT(ah);
25 ASSERT(entry);
26
28}
@ AUCTIONHOUSEHOOK_ON_AUCTION_ADD
Definition AuctionHouseScript.h:26
Definition AuctionHouseScript.h:41
virtual void OnAuctionAdd(AuctionHouseObject *, AuctionEntry *)
Definition AuctionHouseScript.h:47

References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_ADD, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnAuctionAdd().

◆ OnAuctionExpire()

void ScriptMgr::OnAuctionExpire ( AuctionHouseObject ah,
AuctionEntry entry 
)
47{
48 ASSERT(ah);
49 ASSERT(entry);
50
52}
@ AUCTIONHOUSEHOOK_ON_AUCTION_EXPIRE
Definition AuctionHouseScript.h:29
virtual void OnAuctionExpire(AuctionHouseObject *, AuctionEntry *)
Definition AuctionHouseScript.h:56

References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_EXPIRE, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnAuctionExpire().

◆ OnAuctionRemove()

void ScriptMgr::OnAuctionRemove ( AuctionHouseObject ah,
AuctionEntry entry 
)
31{
32 ASSERT(ah);
33 ASSERT(entry);
34
36}
@ AUCTIONHOUSEHOOK_ON_AUCTION_REMOVE
Definition AuctionHouseScript.h:27
virtual void OnAuctionRemove(AuctionHouseObject *, AuctionEntry *)
Definition AuctionHouseScript.h:50

References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_REMOVE, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnAuctionRemove().

◆ OnAuctionSuccessful()

void ScriptMgr::OnAuctionSuccessful ( AuctionHouseObject ah,
AuctionEntry entry 
)
39{
40 ASSERT(ah);
41 ASSERT(entry);
42
44}
@ AUCTIONHOUSEHOOK_ON_AUCTION_SUCCESSFUL
Definition AuctionHouseScript.h:28
virtual void OnAuctionSuccessful(AuctionHouseObject *, AuctionEntry *)
Definition AuctionHouseScript.h:53

References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_SUCCESSFUL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnAuctionSuccessful().

◆ OnAuraApply()

void ScriptMgr::OnAuraApply ( Unit unit,
Aura aura 
)
77{
79}
@ UNITHOOK_ON_AURA_APPLY
Definition UnitScript.h:33
virtual void OnAuraApply(Unit *, Aura *)
Definition UnitScript.h:86

References CALL_ENABLED_HOOKS, UnitScript::OnAuraApply(), and UNITHOOK_ON_AURA_APPLY.

◆ OnAuraRemove()

void ScriptMgr::OnAuraRemove ( Unit unit,
AuraApplication aurApp,
AuraRemoveMode  mode 
)
82{
84}
@ UNITHOOK_ON_AURA_REMOVE
Definition UnitScript.h:34
virtual void OnAuraRemove(Unit *, AuraApplication *, AuraRemoveMode)
Definition UnitScript.h:88

References CALL_ENABLED_HOOKS, UnitScript::OnAuraRemove(), and UNITHOOK_ON_AURA_REMOVE.

◆ OnBaseGainCalculation()

void ScriptMgr::OnBaseGainCalculation ( uint32 gain,
uint8  playerLevel,
uint8  mobLevel,
ContentLevels  content 
)
43{
45}
@ FORMULAHOOK_ON_BASE_GAIN_CALCULATION
Definition FormulaScript.h:30
virtual void OnBaseGainCalculation(uint32 &, uint8, uint8, ContentLevels)
Definition FormulaScript.h:59

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_BASE_GAIN_CALCULATION, and FormulaScript::OnBaseGainCalculation().

◆ OnBattlegroundAddPlayer()

void ScriptMgr::OnBattlegroundAddPlayer ( Battleground bg,
Player player 
)
38{
40}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_ADD_PLAYER
Definition AllBattlegroundScript.h:29
virtual void OnBattlegroundAddPlayer(Battleground *, Player *)
Definition AllBattlegroundScript.h:72

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_ADD_PLAYER, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundAddPlayer().

◆ OnBattlegroundBeforeAddPlayer()

void ScriptMgr::OnBattlegroundBeforeAddPlayer ( Battleground bg,
Player player 
)
43{
45}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_BEFORE_ADD_PLAYER
Definition AllBattlegroundScript.h:30
virtual void OnBattlegroundBeforeAddPlayer(Battleground *, Player *)
Definition AllBattlegroundScript.h:75

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_BEFORE_ADD_PLAYER, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundBeforeAddPlayer().

◆ OnBattlegroundCreate()

void ScriptMgr::OnBattlegroundCreate ( Battleground bg)
103{
105}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_CREATE
Definition AllBattlegroundScript.h:42
virtual void OnBattlegroundCreate(Battleground *)
This hook runs after Battleground create.
Definition AllBattlegroundScript.h:134

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_CREATE, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundCreate().

◆ OnBattlegroundDestroy()

void ScriptMgr::OnBattlegroundDestroy ( Battleground bg)
98{
100}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_DESTROY
Definition AllBattlegroundScript.h:41
virtual void OnBattlegroundDestroy(Battleground *)
This hook runs before Battleground destroy.
Definition AllBattlegroundScript.h:127

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_DESTROY, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundDestroy().

◆ OnBattlegroundEnd()

void ScriptMgr::OnBattlegroundEnd ( Battleground bg,
TeamId  winnerTeamId 
)
93{
95}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END
Definition AllBattlegroundScript.h:40
virtual void OnBattlegroundEnd(Battleground *, TeamId)
This hook runs after end Battleground.
Definition AllBattlegroundScript.h:120

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundEnd().

◆ OnBattlegroundEndReward()

void ScriptMgr::OnBattlegroundEndReward ( Battleground bg,
Player player,
TeamId  winnerTeamId 
)
28{
30}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END_REWARD
Definition AllBattlegroundScript.h:27
virtual void OnBattlegroundEndReward(Battleground *, Player *, TeamId)
Definition AllBattlegroundScript.h:66

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END_REWARD, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundEndReward().

◆ OnBattlegroundRemovePlayerAtLeave()

void ScriptMgr::OnBattlegroundRemovePlayerAtLeave ( Battleground bg,
Player player 
)
48{
50}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_REMOVE_PLAYER_AT_LEAVE
Definition AllBattlegroundScript.h:31
virtual void OnBattlegroundRemovePlayerAtLeave(Battleground *, Player *)
Definition AllBattlegroundScript.h:78

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_REMOVE_PLAYER_AT_LEAVE, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundRemovePlayerAtLeave().

◆ OnBattlegroundStart()

void ScriptMgr::OnBattlegroundStart ( Battleground bg)
23{
25}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_START
Definition AllBattlegroundScript.h:26
virtual void OnBattlegroundStart(Battleground *)
This hook runs before start Battleground.
Definition AllBattlegroundScript.h:63

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_START, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundStart().

◆ OnBattlegroundUpdate()

void ScriptMgr::OnBattlegroundUpdate ( Battleground bg,
uint32  diff 
)
33{
35}
@ ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_UPDATE
Definition AllBattlegroundScript.h:28
virtual void OnBattlegroundUpdate(Battleground *, uint32)
Definition AllBattlegroundScript.h:69

References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_UPDATE, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnBattlegroundUpdate().

◆ OnBeforeAccountDelete()

void ScriptMgr::OnBeforeAccountDelete ( uint32  accountId)
28{
30}
@ ACCOUNTHOOK_ON_BEFORE_ACCOUNT_DELETE
Definition AccountScript.h:27
virtual void OnBeforeAccountDelete(uint32)
Definition AccountScript.h:48

References ACCOUNTHOOK_ON_BEFORE_ACCOUNT_DELETE, CALL_ENABLED_HOOKS, and AccountScript::OnBeforeAccountDelete().

◆ OnBeforeArenaCheckWinConditions()

bool ScriptMgr::OnBeforeArenaCheckWinConditions ( Battleground *const  bg)
38{
40}
@ ARENAHOOK_ON_BEFORE_CHECK_WIN_CONDITION
Definition ArenaScript.h:30
virtual bool OnBeforeArenaCheckWinConditions(Battleground *const)
Definition ArenaScript.h:49

References ARENAHOOK_ON_BEFORE_CHECK_WIN_CONDITION, CALL_ENABLED_BOOLEAN_HOOKS, and ArenaScript::OnBeforeArenaCheckWinConditions().

◆ OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player bidder,
uint32 bidder_accId,
bool &  sendMail 
)
80{
82}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_CANCELLED_TO_BIDDER_MAIL
Definition AuctionHouseScript.h:35
virtual void OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &)
Definition AuctionHouseScript.h:74

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_CANCELLED_TO_BIDDER_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail().

◆ OnBeforeAuctionHouseMgrSendAuctionExpiredMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionExpiredMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player owner,
uint32 owner_accId,
bool &  sendNotification,
bool &  sendMail 
)
70{
72}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_EXPIRED_MAIL
Definition AuctionHouseScript.h:33
virtual void OnBeforeAuctionHouseMgrSendAuctionExpiredMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &, bool &)
Definition AuctionHouseScript.h:68

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_EXPIRED_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionExpiredMail().

◆ OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player oldBidder,
uint32 oldBidder_accId,
Player newBidder,
uint32 newPrice,
bool &  sendNotification,
bool &  sendMail 
)
75{
76 CALL_ENABLED_HOOKS(AuctionHouseScript, AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_OUTBIDDED_MAIL, script->OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail(auctionHouseMgr, auction, oldBidder, oldBidder_accId, newBidder, newPrice, sendNotification, sendMail));
77}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_OUTBIDDED_MAIL
Definition AuctionHouseScript.h:34
virtual void OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, Player *, uint32 &, bool &, bool &)
Definition AuctionHouseScript.h:71

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_OUTBIDDED_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail().

◆ OnBeforeAuctionHouseMgrSendAuctionSalePendingMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionSalePendingMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player owner,
uint32 owner_accId,
bool &  sendMail 
)
60{
62}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SALE_PENDING_MAIL
Definition AuctionHouseScript.h:31
virtual void OnBeforeAuctionHouseMgrSendAuctionSalePendingMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &)
Definition AuctionHouseScript.h:62

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SALE_PENDING_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionSalePendingMail().

◆ OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player owner,
uint32 owner_accId,
uint32 profit,
bool &  sendNotification,
bool &  updateAchievementCriteria,
bool &  sendMail 
)
65{
66 CALL_ENABLED_HOOKS(AuctionHouseScript, AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SUCCESSFUL_MAIL, script->OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail(auctionHouseMgr, auction, owner, owner_accId, profit, sendNotification, updateAchievementCriteria, sendMail));
67}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SUCCESSFUL_MAIL
Definition AuctionHouseScript.h:32
virtual void OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, uint32 &, bool &, bool &, bool &)
Definition AuctionHouseScript.h:65

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SUCCESSFUL_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail().

◆ OnBeforeAuctionHouseMgrSendAuctionWonMail()

void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionWonMail ( AuctionHouseMgr auctionHouseMgr,
AuctionEntry auction,
Player bidder,
uint32 bidder_accId,
bool &  sendNotification,
bool &  updateAchievementCriteria,
bool &  sendMail 
)
55{
56 CALL_ENABLED_HOOKS(AuctionHouseScript, AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_WON_MAIL, script->OnBeforeAuctionHouseMgrSendAuctionWonMail(auctionHouseMgr, auction, bidder, bidder_accId, sendNotification, updateAchievementCriteria, sendMail));
57}
@ AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_WON_MAIL
Definition AuctionHouseScript.h:30
virtual void OnBeforeAuctionHouseMgrSendAuctionWonMail(AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &, bool &, bool &)
Definition AuctionHouseScript.h:59

References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_WON_MAIL, CALL_ENABLED_HOOKS, and AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionWonMail().

◆ OnBeforeAuctionHouseMgrUpdate()

void ScriptMgr::OnBeforeAuctionHouseMgrUpdate ( )

◆ OnBeforeAuraRankForLevel()

void ScriptMgr::OnBeforeAuraRankForLevel ( SpellInfo const *  spellInfo,
SpellInfo const *  latestSpellInfo,
uint8  level 
)
68{
70}
@ ALLSPELLHOOK_ON_BEFORE_AURA_RANK_FOR_LEVEL
Definition AllSpellScript.h:35
virtual void OnBeforeAuraRankForLevel(SpellInfo const *, SpellInfo const *, uint8)
Definition AllSpellScript.h:75

References ALLSPELLHOOK_ON_BEFORE_AURA_RANK_FOR_LEVEL, CALL_ENABLED_HOOKS, and AllSpellScript::OnBeforeAuraRankForLevel().

◆ OnBeforeCheckCriteria()

void ScriptMgr::OnBeforeCheckCriteria ( AchievementMgr mgr,
AchievementCriteriaEntryList const *  achievementCriteriaList 
)
38{
40}
@ ACHIEVEMENTHOOK_ON_BEFORE_CHECK_CRITERIA
Definition AchievementScript.h:31
virtual void OnBeforeCheckCriteria(AchievementMgr *, std::list< AchievementCriteriaEntry const * > const *)
Definition AchievementScript.h:51

References ACHIEVEMENTHOOK_ON_BEFORE_CHECK_CRITERIA, CALL_ENABLED_HOOKS, and AchievementScript::OnBeforeCheckCriteria().

◆ OnBeforeConfigLoad()

void ScriptMgr::OnBeforeConfigLoad ( bool  reload)
38{
40}
@ WORLDHOOK_ON_BEFORE_CONFIG_LOAD
Definition WorldScript.h:30
virtual void OnBeforeConfigLoad(bool)
Definition WorldScript.h:59

References CALL_ENABLED_HOOKS, WorldScript::OnBeforeConfigLoad(), and WORLDHOOK_ON_BEFORE_CONFIG_LOAD.

◆ OnBeforeCreateInstanceScript()

void ScriptMgr::OnBeforeCreateInstanceScript ( InstanceMap instanceMap,
InstanceScript **  instanceData,
bool  load,
std::string  data,
uint32  completedEncounterMask 
)
267{
268 CALL_ENABLED_HOOKS(AllMapScript, ALLMAPHOOK_ON_BEFORE_CREATE_INSTANCE_SCRIPT, script->OnBeforeCreateInstanceScript(instanceMap, instanceData, load, data, completedEncounterMask));
269}
@ ALLMAPHOOK_ON_BEFORE_CREATE_INSTANCE_SCRIPT
Definition AllMapScript.h:28
Definition AllMapScript.h:37
virtual void OnBeforeCreateInstanceScript(InstanceMap *, InstanceScript **, bool, std::string, uint32)
This hook called before create instance script.
Definition AllMapScript.h:67

References ALLMAPHOOK_ON_BEFORE_CREATE_INSTANCE_SCRIPT, CALL_ENABLED_HOOKS, and AllMapScript::OnBeforeCreateInstanceScript().

◆ OnBeforeCreatureSelectLevel()

void ScriptMgr::OnBeforeCreatureSelectLevel ( const CreatureTemplate cinfo,
Creature creature,
uint8 level 
)
53{
54 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
55 {
56 script->OnBeforeCreatureSelectLevel(cinfo, creature, level);
57 });
58}
virtual void OnBeforeCreatureSelectLevel(const CreatureTemplate *, Creature *, uint8 &)
Definition AllCreatureScript.h:33

References AllCreatureScript::OnBeforeCreatureSelectLevel().

◆ OnBeforeDropAddItem()

void ScriptMgr::OnBeforeDropAddItem ( Player const *  player,
Loot loot,
bool  canRate,
uint16  lootMode,
LootStoreItem LootStoreItem,
LootStore const &  store 
)
48{
50}
@ GLOBALHOOK_ON_BEFORE_DROP_ADD_ITEM
Definition GlobalScript.h:34
virtual void OnBeforeDropAddItem(Player const *, Loot &, bool, uint16, LootStoreItem *, LootStore const &)
Definition GlobalScript.h:67

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_BEFORE_DROP_ADD_ITEM, and GlobalScript::OnBeforeDropAddItem().

◆ OnBeforeFinalizePlayerWorldSession()

void ScriptMgr::OnBeforeFinalizePlayerWorldSession ( uint32 cacheVersion)
78{
80}
@ WORLDHOOK_ON_BEFORE_FINALIZE_PLAYER_WORLD_SESSION
Definition WorldScript.h:38
virtual void OnBeforeFinalizePlayerWorldSession(uint32 &)
This hook runs before finalizing the player world session. Can be also used to mutate the cache versi...
Definition WorldScript.h:89

References CALL_ENABLED_HOOKS, WorldScript::OnBeforeFinalizePlayerWorldSession(), and WORLDHOOK_ON_BEFORE_FINALIZE_PLAYER_WORLD_SESSION.

◆ OnBeforeIsInvokerVisible()

bool ScriptMgr::OnBeforeIsInvokerVisible ( std::string  name,
Acore::Impl::ChatCommands::CommandPermissions  permissions,
ChatHandler const &  who 
)
34{
36}
@ ALLCOMMANDHOOK_ON_BEFORE_IS_INVOKER_VISIBLE
Definition AllCommandScript.h:29
Definition AllCommandScript.h:34
virtual bool OnBeforeIsInvokerVisible(std::string, Acore::Impl::ChatCommands::CommandPermissions, ChatHandler const &)
Definition AllCommandScript.h:51

References ALLCOMMANDHOOK_ON_BEFORE_IS_INVOKER_VISIBLE, CALL_ENABLED_BOOLEAN_HOOKS, and AllCommandScript::OnBeforeIsInvokerVisible().

◆ OnBeforeLootEqualChanced()

bool ScriptMgr::OnBeforeLootEqualChanced ( Player const *  player,
LootStoreItemList  EqualChanced,
Loot loot,
LootStore const &  store 
)
58{
60}
@ GLOBALHOOK_ON_BEFORE_LOOT_EQUAL_CHANCED
Definition GlobalScript.h:36
virtual bool OnBeforeLootEqualChanced(Player const *, std::list< LootStoreItem * >, Loot &, LootStore const &)
Definition GlobalScript.h:69

References CALL_ENABLED_BOOLEAN_HOOKS, GLOBALHOOK_ON_BEFORE_LOOT_EQUAL_CHANCED, and GlobalScript::OnBeforeLootEqualChanced().

◆ OnBeforeMailDraftSendMailTo()

void ScriptMgr::OnBeforeMailDraftSendMailTo ( MailDraft mailDraft,
MailReceiver const &  receiver,
MailSender const &  sender,
MailCheckMask checked,
uint32 deliver_delay,
uint32 custom_expiration,
bool &  deleteMailItemsFromDB,
bool &  sendMail 
)
23{
24 CALL_ENABLED_HOOKS(MailScript, MAILHOOK_ON_BEFORE_MAIL_DRAFT_SEND_MAIL_TO, script->OnBeforeMailDraftSendMailTo(mailDraft, receiver, sender, checked, deliver_delay, custom_expiration, deleteMailItemsFromDB, sendMail));
25}
@ MAILHOOK_ON_BEFORE_MAIL_DRAFT_SEND_MAIL_TO
Definition MailScript.h:26
Definition MailScript.h:31
virtual void OnBeforeMailDraftSendMailTo(MailDraft *, MailReceiver const &, MailSender const &, MailCheckMask &, uint32 &, uint32 &, bool &, bool &)
Definition MailScript.h:37

References CALL_ENABLED_HOOKS, MAILHOOK_ON_BEFORE_MAIL_DRAFT_SEND_MAIL_TO, and MailScript::OnBeforeMailDraftSendMailTo().

◆ OnBeforeRollMeleeOutcomeAgainst()

void ScriptMgr::OnBeforeRollMeleeOutcomeAgainst ( Unit const *  attacker,
Unit const *  victim,
WeaponAttackType  attType,
int32 attackerMaxSkillValueForLevel,
int32 victimMaxSkillValueForLevel,
int32 attackerWeaponSkill,
int32 victimDefenseSkill,
int32 crit_chance,
int32 miss_chance,
int32 dodge_chance,
int32 parry_chance,
int32 block_chance 
)
72{
73 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_BEFORE_ROLL_MELEE_OUTCOME_AGAINST, script->OnBeforeRollMeleeOutcomeAgainst(attacker, victim, attType, attackerMaxSkillValueForLevel, victimMaxSkillValueForLevel, attackerWeaponSkill, victimDefenseSkill, crit_chance, miss_chance, dodge_chance, parry_chance, block_chance));
74}
@ UNITHOOK_ON_BEFORE_ROLL_MELEE_OUTCOME_AGAINST
Definition UnitScript.h:32
virtual void OnBeforeRollMeleeOutcomeAgainst(Unit const *, Unit const *, WeaponAttackType, int32 &, int32 &, int32 &, int32 &, int32 &, int32 &, int32 &, int32 &, int32 &)
Definition UnitScript.h:84

References CALL_ENABLED_HOOKS, UnitScript::OnBeforeRollMeleeOutcomeAgainst(), and UNITHOOK_ON_BEFORE_ROLL_MELEE_OUTCOME_AGAINST.

◆ OnBeforeSendExitMessageArenaQueue()

bool ScriptMgr::OnBeforeSendExitMessageArenaQueue ( BattlegroundQueue queue,
GroupQueueInfo ginfo 
)
88{
90}
@ ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_EXIT_MESSAGE_ARENA_QUEUE
Definition AllBattlegroundScript.h:39
virtual bool OnBeforeSendExitMessageArenaQueue(BattlegroundQueue *, GroupQueueInfo *)
This hook runs before sending the exit message during the arena queue, allowing you to run extra oper...
Definition AllBattlegroundScript.h:112

References ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_EXIT_MESSAGE_ARENA_QUEUE, CALL_ENABLED_BOOLEAN_HOOKS, and AllBattlegroundScript::OnBeforeSendExitMessageArenaQueue().

◆ OnBeforeSendJoinMessageArenaQueue()

bool ScriptMgr::OnBeforeSendJoinMessageArenaQueue ( BattlegroundQueue queue,
Player leader,
GroupQueueInfo ginfo,
PvPDifficultyEntry const *  bracketEntry,
bool  isRated 
)
83{
85}
@ ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_JOIN_MESSAGE_ARENA_QUEUE
Definition AllBattlegroundScript.h:38
virtual bool OnBeforeSendJoinMessageArenaQueue(BattlegroundQueue *, Player *, GroupQueueInfo *, PvPDifficultyEntry const *, bool)
This hook runs before sending the join message during the arena queue, allowing you to run extra oper...
Definition AllBattlegroundScript.h:103

References ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_JOIN_MESSAGE_ARENA_QUEUE, CALL_ENABLED_BOOLEAN_HOOKS, and AllBattlegroundScript::OnBeforeSendJoinMessageArenaQueue().

◆ OnBeforeSetBossState()

void ScriptMgr::OnBeforeSetBossState ( uint32  id,
EncounterState  newState,
EncounterState  oldState,
Map instance 
)

Called when any raid boss has their state updated (e.g. pull, reset, kill).

Careful checks for old- and newState are required, since it can fire multiple times and not only when combat starts/ends.

Parameters
idThe id of the boss in the [instance]
newStateThe new boss state to be applied to this boss
oldStateThe previously assigned state of this boss
instanceA pointer to the [map] object of the instance
132{
134}
@ GLOBALHOOK_ON_BEFORE_SET_BOSS_STATE
Definition GlobalScript.h:48
virtual void OnBeforeSetBossState(uint32, EncounterState, EncounterState, Map *)
Definition GlobalScript.h:101

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_BEFORE_SET_BOSS_STATE, instance(), and GlobalScript::OnBeforeSetBossState().

◆ OnBeforeUpdateArenaPoints()

void ScriptMgr::OnBeforeUpdateArenaPoints ( ArenaTeam at,
std::map< ObjectGuid, uint32 > &  ap 
)
73{
75}
@ GLOBALHOOK_ON_BEFORE_UPDATE_ARENA_POINTS
Definition GlobalScript.h:39
virtual void OnBeforeUpdateArenaPoints(ArenaTeam *, std::map< ObjectGuid, uint32 > &)
Definition GlobalScript.h:74

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_BEFORE_UPDATE_ARENA_POINTS, and GlobalScript::OnBeforeUpdateArenaPoints().

◆ OnBeforeUpdatingPersonalRating()

void ScriptMgr::OnBeforeUpdatingPersonalRating ( int32 mod,
uint32  type 
)
66{
68}
@ FORMULAHOOK_ON_BEFORE_UPDATING_PERSONAL_RATING
Definition FormulaScript.h:34
virtual void OnBeforeUpdatingPersonalRating(int32 &, uint32)
Definition FormulaScript.h:71

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_BEFORE_UPDATING_PERSONAL_RATING, and FormulaScript::OnBeforeUpdatingPersonalRating().

◆ OnBeforeWorldInitialized()

void ScriptMgr::OnBeforeWorldInitialized ( )
83{
85}
@ WORLDHOOK_ON_BEFORE_WORLD_INITIALIZED
Definition WorldScript.h:39
virtual void OnBeforeWorldInitialized()
This hook runs after all scripts loading and before itialized.
Definition WorldScript.h:94

References CALL_ENABLED_HOOKS, WorldScript::OnBeforeWorldInitialized(), and WORLDHOOK_ON_BEFORE_WORLD_INITIALIZED.

◆ OnBeforeWorldObjectSetPhaseMask()

void ScriptMgr::OnBeforeWorldObjectSetPhaseMask ( WorldObject const *  worldObject,
uint32 oldPhaseMask,
uint32 newPhaseMask,
bool &  useCombinedPhases,
bool &  update 
)
83{
84 CALL_ENABLED_HOOKS(GlobalScript, GLOBALHOOK_ON_BEFORE_WORLDOBJECT_SET_PHASEMASK, script->OnBeforeWorldObjectSetPhaseMask(worldObject, oldPhaseMask, newPhaseMask, useCombinedPhases, update));
85}
@ GLOBALHOOK_ON_BEFORE_WORLDOBJECT_SET_PHASEMASK
Definition GlobalScript.h:41
virtual void OnBeforeWorldObjectSetPhaseMask(WorldObject const *, uint32 &, uint32 &, bool &, bool &)
Definition GlobalScript.h:80

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_BEFORE_WORLDOBJECT_SET_PHASEMASK, and GlobalScript::OnBeforeWorldObjectSetPhaseMask().

◆ OnCalcMaxDuration()

void ScriptMgr::OnCalcMaxDuration ( Aura const *  aura,
int32 maxDuration 
)
23{
25}
@ ALLSPELLHOOK_ON_CALC_MAX_DURATION
Definition AllSpellScript.h:26
virtual void OnCalcMaxDuration(Aura const *, int32 &)
Definition AllSpellScript.h:57

References ALLSPELLHOOK_ON_CALC_MAX_DURATION, CALL_ENABLED_HOOKS, and AllSpellScript::OnCalcMaxDuration().

◆ OnCalculateMaxTalentPointsForLevel()

void ScriptMgr::OnCalculateMaxTalentPointsForLevel ( Pet pet,
uint8  level,
uint8 points 
)
28{
30}
@ PETHOOK_ON_CALCULATE_MAX_TALENT_POINTS_FOR_LEVEL
Definition PetScript.h:27
virtual void OnCalculateMaxTalentPointsForLevel(Pet *, uint8, uint8 &)
Definition PetScript.h:45

References CALL_ENABLED_HOOKS, PetScript::OnCalculateMaxTalentPointsForLevel(), and PETHOOK_ON_CALCULATE_MAX_TALENT_POINTS_FOR_LEVEL.

◆ OnCastItemCombatSpell()

bool ScriptMgr::OnCastItemCombatSpell ( Player player,
Unit victim,
SpellInfo const *  spellInfo,
Item item 
)
103{
104 ASSERT(player);
105 ASSERT(victim);
106 ASSERT(spellInfo);
107 ASSERT(item);
108
110 return tempScript ? tempScript->OnCastItemCombatSpell(player, victim, spellInfo, item) : true;
111}
uint32 GetScriptId() const
Definition Item.h:364

References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().

◆ OnColorCodeCalculation()

void ScriptMgr::OnColorCodeCalculation ( XPColorChar color,
uint8  playerLevel,
uint8  mobLevel 
)
33{
35}
@ FORMULAHOOK_ON_COLOR_CODE_CALCULATION
Definition FormulaScript.h:28
virtual void OnColorCodeCalculation(XPColorChar &, uint8, uint8)
Definition FormulaScript.h:53

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_COLOR_CODE_CALCULATION, and FormulaScript::OnColorCodeCalculation().

◆ OnConditionCheck()

bool ScriptMgr::OnConditionCheck ( Condition condition,
ConditionSourceInfo sourceInfo 
)
22{
23 ASSERT(condition);
24
25 auto tempScript = ScriptRegistry<ConditionScript>::GetScriptById(condition->ScriptId);
26 return tempScript ? tempScript->OnConditionCheck(condition, sourceInfo) : true;
27}
uint32 ScriptId
Definition ConditionMgr.h:208

References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and Condition::ScriptId.

◆ OnConstructGroup()

void ScriptMgr::OnConstructGroup ( Group origin)
43{
45}
@ MISCHOOK_ON_CONSTRUCT_GROUP
Definition MiscScript.h:31
virtual void OnConstructGroup(Group *)
Definition MiscScript.h:64

References CALL_ENABLED_HOOKS, MISCHOOK_ON_CONSTRUCT_GROUP, and MiscScript::OnConstructGroup().

◆ OnConstructInstanceSave()

void ScriptMgr::OnConstructInstanceSave ( InstanceSave origin)
53{
55}
@ MISCHOOK_ON_CONSTRUCT_INSTANCE_SAVE
Definition MiscScript.h:33
virtual void OnConstructInstanceSave(InstanceSave *)
Definition MiscScript.h:68

References CALL_ENABLED_HOOKS, MISCHOOK_ON_CONSTRUCT_INSTANCE_SAVE, and MiscScript::OnConstructInstanceSave().

◆ OnConstructObject()

void ScriptMgr::OnConstructObject ( Object origin)
23{
25}
@ MISCHOOK_ON_CONSTRUCT_OBJECT
Definition MiscScript.h:27
virtual void OnConstructObject(Object *)
Definition MiscScript.h:56

References CALL_ENABLED_HOOKS, MISCHOOK_ON_CONSTRUCT_OBJECT, and MiscScript::OnConstructObject().

◆ OnConstructPlayer()

void ScriptMgr::OnConstructPlayer ( Player origin)
33{
35}
@ MISCHOOK_ON_CONSTRUCT_PLAYER
Definition MiscScript.h:29
virtual void OnConstructPlayer(Player *)
Definition MiscScript.h:60

References CALL_ENABLED_HOOKS, MISCHOOK_ON_CONSTRUCT_PLAYER, and MiscScript::OnConstructPlayer().

◆ OnCreate()

void ScriptMgr::OnCreate ( Group group,
Player leader 
)
63{
65}
@ GROUPHOOK_ON_CREATE
Definition GroupScript.h:33
virtual void OnCreate(Group *, Player *)
Definition GroupScript.h:64

References CALL_ENABLED_HOOKS, GROUPHOOK_ON_CREATE, and GroupScript::OnCreate().

◆ OnCreateMap()

void ScriptMgr::OnCreateMap ( Map map)
88{
89 ASSERT(map);
90
92
93 ForeachMaps<WorldMapScript>(map,
94 [&](WorldMapScript* script)
95 {
96 script->OnCreate(map);
97 });
98
99 ForeachMaps<InstanceMapScript>(map,
100 [&](InstanceMapScript* script)
101 {
102 script->OnCreate((InstanceMap*)map);
103 });
104
105 ForeachMaps<BattlegroundMapScript>(map,
106 [&](BattlegroundMapScript* script)
107 {
108 script->OnCreate((BattlegroundMap*)map);
109 });
110}
@ ALLMAPHOOK_ON_CREATE_MAP
Definition AllMapScript.h:30
virtual void OnCreateMap(Map *)
This hook called before creating map.
Definition AllMapScript.h:82
Definition BattlegroundMapScript.h:24
Definition Map.h:686
Definition InstanceMapScript.h:24
Definition Map.h:652
virtual void OnCreate(TMap *)
Definition ScriptObject.h:95
Definition WorldMapScript.h:24

References ALLMAPHOOK_ON_CREATE_MAP, ASSERT, CALL_ENABLED_HOOKS, MapScript< TMap >::OnCreate(), and AllMapScript::OnCreateMap().

◆ OnCreatureAddWorld()

void ScriptMgr::OnCreatureAddWorld ( Creature creature)
23{
24 ASSERT(creature);
25
26 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
27 {
28 script->OnCreatureAddWorld(creature);
29 });
30}
virtual void OnCreatureAddWorld(Creature *)
This hook runs after add creature in world.
Definition AllCreatureScript.h:43

References ASSERT, and AllCreatureScript::OnCreatureAddWorld().

◆ OnCreatureRemoveWorld()

void ScriptMgr::OnCreatureRemoveWorld ( Creature creature)
33{
34 ASSERT(creature);
35
36 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
37 {
38 script->OnCreatureRemoveWorld(creature);
39 });
40}
virtual void OnCreatureRemoveWorld(Creature *)
This hook runs after remove creature in world.
Definition AllCreatureScript.h:50

References ASSERT, and AllCreatureScript::OnCreatureRemoveWorld().

◆ OnCreatureSaveToDB()

void ScriptMgr::OnCreatureSaveToDB ( Creature creature)
43{
44 ASSERT(creature);
45
46 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
47 {
48 script->OnCreatureSaveToDB(creature);
49 });
50}
virtual void OnCreatureSaveToDB(Creature *)
This hook runs after creature has been saved to DB.
Definition AllCreatureScript.h:57

References ASSERT, and AllCreatureScript::OnCreatureSaveToDB().

◆ OnCreatureUpdate()

void ScriptMgr::OnCreatureUpdate ( Creature creature,
uint32  diff 
)
184{
185 ASSERT(creature);
186
187 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
188 {
189 script->OnAllCreatureUpdate(creature, diff);
190 });
191
192 if (auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId()))
193 {
194 tempScript->OnUpdate(creature, diff);
195 }
196}
virtual void OnAllCreatureUpdate(Creature *, uint32)
Definition AllCreatureScript.h:30

References ASSERT, Creature::GetScriptId(), and AllCreatureScript::OnAllCreatureUpdate().

◆ OnCriteriaCheck()

bool ScriptMgr::OnCriteriaCheck ( uint32  scriptId,
Player source,
Unit target,
uint32  criteria_id 
)
22{
23 ASSERT(source);
24 // target can be nullptr.
25
27 return tempScript ? tempScript->OnCheck(source, target, criteria_id) : false;
28}

References ASSERT, and ScriptRegistry< TScript >::GetScriptById().

◆ OnDamage()

void ScriptMgr::OnDamage ( Unit attacker,
Unit victim,
uint32 damage 
)
28{
29 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_DAMAGE, script->OnDamage(attacker, victim, damage));
30}
@ UNITHOOK_ON_DAMAGE
Definition UnitScript.h:27
virtual void OnDamage(Unit *, Unit *, uint32 &)
Definition UnitScript.h:66

References CALL_ENABLED_HOOKS, UnitScript::OnDamage(), and UNITHOOK_ON_DAMAGE.

◆ OnDestroyInstance()

void ScriptMgr::OnDestroyInstance ( MapInstanced mapInstanced,
Map map 
)
272{
274}
@ ALLMAPHOOK_ON_DESTROY_INSTANCE
Definition AllMapScript.h:29
virtual void OnDestroyInstance(MapInstanced *, Map *)
This hook called before destroy instance.
Definition AllMapScript.h:75

References ALLMAPHOOK_ON_DESTROY_INSTANCE, CALL_ENABLED_HOOKS, and AllMapScript::OnDestroyInstance().

◆ OnDestroyMap()

void ScriptMgr::OnDestroyMap ( Map map)
113{
114 ASSERT(map);
115
117
118 ForeachMaps<WorldMapScript>(map,
119 [&](WorldMapScript* script)
120 {
121 script->OnDestroy(map);
122 });
123
124 ForeachMaps<InstanceMapScript>(map,
125 [&](InstanceMapScript* script)
126 {
127 script->OnDestroy((InstanceMap*)map);
128 });
129
130 ForeachMaps<BattlegroundMapScript>(map,
131 [&](BattlegroundMapScript* script)
132 {
133 script->OnDestroy((BattlegroundMap*)map);
134 });
135}
@ ALLMAPHOOK_ON_DESTROY_MAP
Definition AllMapScript.h:31
virtual void OnDestroyMap(Map *)
This hook called before destroing map.
Definition AllMapScript.h:89
virtual void OnDestroy(TMap *)
Definition ScriptObject.h:98

References ALLMAPHOOK_ON_DESTROY_MAP, ASSERT, CALL_ENABLED_HOOKS, MapScript< TMap >::OnDestroy(), and AllMapScript::OnDestroyMap().

◆ OnDestructGroup()

void ScriptMgr::OnDestructGroup ( Group origin)
48{
50}
@ MISCHOOK_ON_DESTRUCT_GROUP
Definition MiscScript.h:32
virtual void OnDestructGroup(Group *)
Definition MiscScript.h:66

References CALL_ENABLED_HOOKS, MISCHOOK_ON_DESTRUCT_GROUP, and MiscScript::OnDestructGroup().

◆ OnDestructInstanceSave()

void ScriptMgr::OnDestructInstanceSave ( InstanceSave origin)
58{
60}
@ MISCHOOK_ON_DESTRUCT_INSTANCE_SAVE
Definition MiscScript.h:34
virtual void OnDestructInstanceSave(InstanceSave *)
Definition MiscScript.h:70

References CALL_ENABLED_HOOKS, MISCHOOK_ON_DESTRUCT_INSTANCE_SAVE, and MiscScript::OnDestructInstanceSave().

◆ OnDestructObject()

void ScriptMgr::OnDestructObject ( Object origin)
28{
30}
@ MISCHOOK_ON_DESTRUCT_OBJECT
Definition MiscScript.h:28
virtual void OnDestructObject(Object *)
Definition MiscScript.h:58

References CALL_ENABLED_HOOKS, MISCHOOK_ON_DESTRUCT_OBJECT, and MiscScript::OnDestructObject().

◆ OnDestructPlayer()

void ScriptMgr::OnDestructPlayer ( Player origin)
38{
40}
@ MISCHOOK_ON_DESTRUCT_PLAYER
Definition MiscScript.h:30
virtual void OnDestructPlayer(Player *)
Definition MiscScript.h:62

References CALL_ENABLED_HOOKS, MISCHOOK_ON_DESTRUCT_PLAYER, and MiscScript::OnDestructPlayer().

◆ OnDisplayIdChange()

void ScriptMgr::OnDisplayIdChange ( Unit unit,
uint32  displayId 
)
132{
134}
@ UNITHOOK_ON_DISPLAYID_CHANGE
Definition UnitScript.h:44
virtual void OnDisplayIdChange(Unit *, uint32)
Definition UnitScript.h:114

References CALL_ENABLED_HOOKS, UnitScript::OnDisplayIdChange(), and UNITHOOK_ON_DISPLAYID_CHANGE.

◆ OnDummyEffect() [1/3]

void ScriptMgr::OnDummyEffect ( WorldObject caster,
uint32  spellID,
SpellEffIndex  effIndex,
Creature creatureTarget 
)
78{
79 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_DUMMY_EFFECT_CREATURE, script->OnDummyEffect(caster, spellID, effIndex, creatureTarget));
80}
@ ALLSPELLHOOK_ON_DUMMY_EFFECT_CREATURE
Definition AllSpellScript.h:37
virtual void OnDummyEffect(WorldObject *, uint32, SpellEffIndex, GameObject *)
This hook called after spell dummy effect.
Definition AllSpellScript.h:85

References ALLSPELLHOOK_ON_DUMMY_EFFECT_CREATURE, CALL_ENABLED_HOOKS, and AllSpellScript::OnDummyEffect().

◆ OnDummyEffect() [2/3]

void ScriptMgr::OnDummyEffect ( WorldObject caster,
uint32  spellID,
SpellEffIndex  effIndex,
GameObject gameObjTarget 
)
73{
74 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_DUMMY_EFFECT_GAMEOBJECT, script->OnDummyEffect(caster, spellID, effIndex, gameObjTarget));
75}
@ ALLSPELLHOOK_ON_DUMMY_EFFECT_GAMEOBJECT
Definition AllSpellScript.h:36

References ALLSPELLHOOK_ON_DUMMY_EFFECT_GAMEOBJECT, CALL_ENABLED_HOOKS, and AllSpellScript::OnDummyEffect().

◆ OnDummyEffect() [3/3]

void ScriptMgr::OnDummyEffect ( WorldObject caster,
uint32  spellID,
SpellEffIndex  effIndex,
Item itemTarget 
)
83{
84 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_DUMMY_EFFECT_ITEM, script->OnDummyEffect(caster, spellID, effIndex, itemTarget));
85}
@ ALLSPELLHOOK_ON_DUMMY_EFFECT_ITEM
Definition AllSpellScript.h:38

References ALLSPELLHOOK_ON_DUMMY_EFFECT_ITEM, CALL_ENABLED_HOOKS, and AllSpellScript::OnDummyEffect().

◆ OnDynamicObjectUpdate()

void ScriptMgr::OnDynamicObjectUpdate ( DynamicObject dynobj,
uint32  diff 
)
22{
23 ASSERT(dynobj);
24
25 for (auto const& [scriptID, script] : ScriptRegistry<DynamicObjectScript>::ScriptPointerList)
26 {
27 script->OnUpdate(dynobj, diff);
28 }
29}
Definition DynamicObjectScript.h:24

References ASSERT.

◆ OnEmailChange()

void ScriptMgr::OnEmailChange ( uint32  accountId)
43{
45}
@ ACCOUNTHOOK_ON_EMAIL_CHANGE
Definition AccountScript.h:30
virtual void OnEmailChange(uint32)
Definition AccountScript.h:57

References ACCOUNTHOOK_ON_EMAIL_CHANGE, CALL_ENABLED_HOOKS, and AccountScript::OnEmailChange().

◆ OnFailedAccountLogin()

void ScriptMgr::OnFailedAccountLogin ( uint32  accountId)
38{
40}
@ ACCOUNTHOOK_ON_FAILED_ACCOUNT_LOGIN
Definition AccountScript.h:29
virtual void OnFailedAccountLogin(uint32)
Definition AccountScript.h:54

References ACCOUNTHOOK_ON_FAILED_ACCOUNT_LOGIN, CALL_ENABLED_HOOKS, and AccountScript::OnFailedAccountLogin().

◆ OnFailedEmailChange()

void ScriptMgr::OnFailedEmailChange ( uint32  accountId)
48{
50}
@ ACCOUNTHOOK_ON_FAILED_EMAIL_CHANGE
Definition AccountScript.h:31
virtual void OnFailedEmailChange(uint32)
Definition AccountScript.h:60

References ACCOUNTHOOK_ON_FAILED_EMAIL_CHANGE, CALL_ENABLED_HOOKS, and AccountScript::OnFailedEmailChange().

◆ OnFailedPasswordChange()

void ScriptMgr::OnFailedPasswordChange ( uint32  accountId)
58{
60}
@ ACCOUNTHOOK_ON_FAILED_PASSWORD_CHANGE
Definition AccountScript.h:33
virtual void OnFailedPasswordChange(uint32)
Definition AccountScript.h:66

References ACCOUNTHOOK_ON_FAILED_PASSWORD_CHANGE, CALL_ENABLED_HOOKS, and AccountScript::OnFailedPasswordChange().

◆ OnFfaPvpStateUpdate()

void ScriptMgr::OnFfaPvpStateUpdate ( Creature creature,
bool  InPvp 
)
176{
177 ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
178 {
179 script->OnFfaPvpStateUpdate(creature, InPvp);
180 });
181}
virtual void OnFfaPvpStateUpdate(Creature *, bool)
Definition AllCreatureScript.h:104

References AllCreatureScript::OnFfaPvpStateUpdate().

◆ OnGainCalculation()

void ScriptMgr::OnGainCalculation ( uint32 gain,
Player player,
Unit unit 
)
48{
49 ASSERT(player);
50 ASSERT(unit);
51
53}
@ FORMULAHOOK_ON_GAIN_CALCULATION
Definition FormulaScript.h:31
virtual void OnGainCalculation(uint32 &, Player *, Unit *)
Definition FormulaScript.h:62

References ASSERT, CALL_ENABLED_HOOKS, FORMULAHOOK_ON_GAIN_CALCULATION, and FormulaScript::OnGainCalculation().

◆ OnGameEventCheck()

void ScriptMgr::OnGameEventCheck ( uint16  EventID)
33{
35}
@ GAMEEVENTHOOK_ON_EVENT_CHECK
Definition GameEventScript.h:28
Definition GameEventScript.h:33
virtual void OnEventCheck(uint16)
Definition GameEventScript.h:45

References CALL_ENABLED_HOOKS, GAMEEVENTHOOK_ON_EVENT_CHECK, and GameEventScript::OnEventCheck().

◆ OnGameEventStart()

void ScriptMgr::OnGameEventStart ( uint16  EventID)
23{
25}
@ GAMEEVENTHOOK_ON_START
Definition GameEventScript.h:26
virtual void OnStart(uint16)
Definition GameEventScript.h:39

References CALL_ENABLED_HOOKS, GAMEEVENTHOOK_ON_START, and GameEventScript::OnStart().

◆ OnGameEventStop()

void ScriptMgr::OnGameEventStop ( uint16  EventID)
28{
30}
@ GAMEEVENTHOOK_ON_STOP
Definition GameEventScript.h:27
virtual void OnStop(uint16)
Definition GameEventScript.h:42

References CALL_ENABLED_HOOKS, GAMEEVENTHOOK_ON_STOP, and GameEventScript::OnStop().

◆ OnGameObjectAddWorld()

void ScriptMgr::OnGameObjectAddWorld ( GameObject go)
23{
24 ASSERT(go);
25
26 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
27 {
28 script->OnGameObjectAddWorld(go);
29 });
30}
virtual void OnGameObjectAddWorld(GameObject *)
This hook runs after add game object in world.
Definition AllGameObjectScript.h:34

References ASSERT, and AllGameObjectScript::OnGameObjectAddWorld().

◆ OnGameObjectDamaged()

void ScriptMgr::OnGameObjectDamaged ( GameObject go,
Player player 
)
150{
151 ASSERT(go);
152
153 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
154 {
155 script->OnGameObjectDamaged(go, player);
156 });
157
159 {
160 tempScript->OnDamaged(go, player);
161 }
162}
virtual void OnGameObjectDamaged(GameObject *, Player *)
Definition AllGameObjectScript.h:74

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectDamaged().

◆ OnGameObjectDestroyed()

void ScriptMgr::OnGameObjectDestroyed ( GameObject go,
Player player 
)
135{
136 ASSERT(go);
137
138 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
139 {
140 script->OnGameObjectDestroyed(go, player);
141 });
142
144 {
145 tempScript->OnDestroyed(go, player);
146 }
147}
virtual void OnGameObjectDestroyed(GameObject *, Player *)
Definition AllGameObjectScript.h:71

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectDestroyed().

◆ OnGameObjectLootStateChanged()

void ScriptMgr::OnGameObjectLootStateChanged ( GameObject go,
uint32  state,
Unit unit 
)
180{
181 ASSERT(go);
182
183 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
184 {
185 script->OnGameObjectLootStateChanged(go, state, unit);
186 });
187
189 {
190 tempScript->OnLootStateChanged(go, state, unit);
191 }
192}
virtual void OnGameObjectLootStateChanged(GameObject *, uint32, Unit *)
Definition AllGameObjectScript.h:80

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectLootStateChanged().

◆ OnGameObjectModifyHealth()

void ScriptMgr::OnGameObjectModifyHealth ( GameObject go,
Unit attackerOrHealer,
int32 change,
SpellInfo const *  spellInfo 
)
165{
166 ASSERT(go);
167
168 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
169 {
170 script->OnGameObjectModifyHealth(go, attackerOrHealer, change, spellInfo);
171 });
172
174 {
175 tempScript->OnModifyHealth(go, attackerOrHealer, change, spellInfo);
176 }
177}
virtual void OnGameObjectModifyHealth(GameObject *, Unit *, int32 &, SpellInfo const *)
Definition AllGameObjectScript.h:77

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectModifyHealth().

◆ OnGameObjectRemoveWorld()

void ScriptMgr::OnGameObjectRemoveWorld ( GameObject go)
33{
34 ASSERT(go);
35
36 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
37 {
38 script->OnGameObjectRemoveWorld(go);
39 });
40}
virtual void OnGameObjectRemoveWorld(GameObject *)
This hook runs after remove game object in world.
Definition AllGameObjectScript.h:46

References ASSERT, and AllGameObjectScript::OnGameObjectRemoveWorld().

◆ OnGameObjectSaveToDB()

void ScriptMgr::OnGameObjectSaveToDB ( GameObject go)
43{
44 ASSERT(go);
45
46 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
47 {
48 script->OnGameObjectSaveToDB(go);
49 });
50}
virtual void OnGameObjectSaveToDB(GameObject *)
This hook runs after the game object iis saved to the database.
Definition AllGameObjectScript.h:40

References ASSERT, and AllGameObjectScript::OnGameObjectSaveToDB().

◆ OnGameObjectStateChanged()

void ScriptMgr::OnGameObjectStateChanged ( GameObject go,
uint32  state 
)
195{
196 ASSERT(go);
197
198 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
199 {
200 script->OnGameObjectStateChanged(go, state);
201 });
202
204 {
205 tempScript->OnGameObjectStateChanged(go, state);
206 }
207}
virtual void OnGameObjectStateChanged(GameObject *, uint32)
Definition AllGameObjectScript.h:83

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectStateChanged().

◆ OnGameObjectUpdate()

void ScriptMgr::OnGameObjectUpdate ( GameObject go,
uint32  diff 
)
210{
211 ASSERT(go);
212
213 ExecuteScript<AllGameObjectScript>([&](AllGameObjectScript* script)
214 {
215 script->OnGameObjectUpdate(go, diff);
216 });
217
219 {
220 tempScript->OnUpdate(go, diff);
221 }
222}
virtual void OnGameObjectUpdate(GameObject *, uint32)
This hook runs after remove game object in world.
Definition AllGameObjectScript.h:53

References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectUpdate().

◆ OnGetArenaPoints()

void ScriptMgr::OnGetArenaPoints ( ArenaTeam at,
float &  points 
)
28{
30}
@ ARENATEAMHOOK_ON_GET_ARENA_POINTS
Definition ArenaTeamScript.h:28
virtual void OnGetArenaPoints(ArenaTeam *, float &)
Definition ArenaTeamScript.h:44

References ARENATEAMHOOK_ON_GET_ARENA_POINTS, CALL_ENABLED_HOOKS, and ArenaTeamScript::OnGetArenaPoints().

◆ OnGetPoints()

void ScriptMgr::OnGetPoints ( ArenaTeam team,
uint32  memberRating,
float &  points 
)
28{
29 CALL_ENABLED_HOOKS(ArenaScript, ARENAHOOK_ON_GET_POINTS, script->OnGetPoints(team, memberRating, points));
30}
@ ARENAHOOK_ON_GET_POINTS
Definition ArenaScript.h:28
virtual void OnGetPoints(ArenaTeam *, uint32, float &)
Definition ArenaScript.h:47

References ARENAHOOK_ON_GET_POINTS, CALL_ENABLED_HOOKS, and ArenaScript::OnGetPoints().

◆ OnGetSlotByType()

void ScriptMgr::OnGetSlotByType ( const uint32  type,
uint8 slot 
)
23{
25}
@ ARENATEAMHOOK_ON_GET_SLOT_BY_TYPE
Definition ArenaTeamScript.h:27
virtual void OnGetSlotByType(const uint32, uint8 &)
Definition ArenaTeamScript.h:43

References ARENATEAMHOOK_ON_GET_SLOT_BY_TYPE, CALL_ENABLED_HOOKS, and ArenaTeamScript::OnGetSlotByType().

◆ OnGlobalItemDelFromDB()

void ScriptMgr::OnGlobalItemDelFromDB ( CharacterDatabaseTransaction  trans,
ObjectGuid::LowType  itemGuid 
)
25{
26 ASSERT(trans);
27 ASSERT(itemGuid);
28
30}
@ GLOBALHOOK_ON_ITEM_DEL_FROM_DB
Definition GlobalScript.h:30
virtual void OnItemDelFromDB(CharacterDatabaseTransaction, ObjectGuid::LowType)
Definition GlobalScript.h:61

References ASSERT, CALL_ENABLED_HOOKS, GLOBALHOOK_ON_ITEM_DEL_FROM_DB, and GlobalScript::OnItemDelFromDB().

◆ OnGlobalMirrorImageDisplayItem()

void ScriptMgr::OnGlobalMirrorImageDisplayItem ( Item const *  item,
uint32 display 
)
33{
35}
@ GLOBALHOOK_ON_MIRRORIMAGE_DISPLAY_ITEM
Definition GlobalScript.h:31
virtual void OnMirrorImageDisplayItem(Item const *, uint32 &)
Definition GlobalScript.h:62

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_MIRRORIMAGE_DISPLAY_ITEM, and GlobalScript::OnMirrorImageDisplayItem().

◆ OnGossipHello() [1/2]

bool ScriptMgr::OnGossipHello ( Player player,
Creature creature 
)
25{
26 ASSERT(player);
27 ASSERT(creature);
28
29 auto ret = IsValidBoolScript<AllCreatureScript>([&](AllCreatureScript* script)
30 {
31 return script->CanCreatureGossipHello(player, creature);
32 });
33
34 if (ret && *ret)
35 {
36 return true;
37 }
38
40 ClearGossipMenuFor(player);
41 return tempScript ? tempScript->OnGossipHello(player, creature) : false;
42}
void ClearGossipMenuFor(Player *player)
Definition ScriptedGossip.cpp:22
virtual bool CanCreatureGossipHello(Player *, Creature *)
This hook called when a player opens a gossip dialog with the creature.
Definition AllCreatureScript.h:67

References ASSERT, AllCreatureScript::CanCreatureGossipHello(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnGossipHello() [2/2]

bool ScriptMgr::OnGossipHello ( Player player,
GameObject go 
)
25{
26 ASSERT(player);
27 ASSERT(go);
28
29 auto ret = IsValidBoolScript<AllGameObjectScript>([&](AllGameObjectScript* script)
30 {
31 return script->CanGameObjectGossipHello(player, go);
32 });
33
34 if (ret && *ret)
35 {
36 return true;
37 }
38
40 ClearGossipMenuFor(player);
41 return tempScript && tempScript->OnGossipHello(player, go);
42}
virtual bool CanGameObjectGossipHello(Player *, GameObject *)
Definition AllGameObjectScript.h:56

References ASSERT, AllGameObjectScript::CanGameObjectGossipHello(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ OnGossipSelect() [1/3]

bool ScriptMgr::OnGossipSelect ( Player player,
Creature creature,
uint32  sender,
uint32  action 
)
45{
46 ASSERT(player);
47 ASSERT(creature);
48
49 auto ret = IsValidBoolScript<AllCreatureScript>([&](AllCreatureScript* script)
50 {
51 return script->CanCreatureGossipSelect(player, creature, sender, action);
52 });
53
54 if (ret && *ret)
55 {
56 return true;
57 }
58
60 return tempScript ? tempScript->OnGossipSelect(player, creature, sender, action) : false;
61}
virtual bool CanCreatureGossipSelect(Player *, Creature *, uint32, uint32)
This hook called when a player selects a gossip item in the creature's gossip menu.
Definition AllCreatureScript.h:79

References ASSERT, AllCreatureScript::CanCreatureGossipSelect(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnGossipSelect() [2/3]

bool ScriptMgr::OnGossipSelect ( Player player,
GameObject go,
uint32  sender,
uint32  action 
)
45{
46 ASSERT(player);
47 ASSERT(go);
48
49 auto ret = IsValidBoolScript<AllGameObjectScript>([&](AllGameObjectScript* script)
50 {
51 return script->CanGameObjectGossipSelect(player, go, sender, action);
52 });
53
54 if (ret && *ret)
55 {
56 return true;
57 }
58
60 return tempScript ? tempScript->OnGossipSelect(player, go, sender, action) : false;
61}
virtual bool CanGameObjectGossipSelect(Player *, GameObject *, uint32, uint32)
Definition AllGameObjectScript.h:59

References ASSERT, AllGameObjectScript::CanGameObjectGossipSelect(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ OnGossipSelect() [3/3]

void ScriptMgr::OnGossipSelect ( Player player,
Item item,
uint32  sender,
uint32  action 
)
114{
115 ASSERT(player);
116 ASSERT(item);
117
118 ExecuteScript<AllItemScript>([&](AllItemScript* script)
119 {
120 script->OnItemGossipSelect(player, item, sender, action);
121 });
122
123 if (auto tempScript = ScriptRegistry<ItemScript>::GetScriptById(item->GetScriptId()))
124 {
125 tempScript->OnGossipSelect(player, item, sender, action);
126 }
127}
Definition AllItemScript.h:24
virtual void OnItemGossipSelect(Player *, Item *, uint32, uint32)
Definition AllItemScript.h:42

References ASSERT, Item::GetScriptId(), and AllItemScript::OnItemGossipSelect().

◆ OnGossipSelectCode() [1/3]

bool ScriptMgr::OnGossipSelectCode ( Player player,
Creature creature,
uint32  sender,
uint32  action,
const char *  code 
)
64{
65 ASSERT(player);
66 ASSERT(creature);
67 ASSERT(code);
68
69 auto ret = IsValidBoolScript<AllCreatureScript>([&](AllCreatureScript* script)
70 {
71 return script->CanCreatureGossipSelectCode(player, creature, sender, action, code);
72 });
73
74 if (ret && *ret)
75 {
76 return true;
77 }
78
80 return tempScript ? tempScript->OnGossipSelectCode(player, creature, sender, action, code) : false;
81}
virtual bool CanCreatureGossipSelectCode(Player *, Creature *, uint32, uint32, const char *)
This hook called when a player selects a gossip with a code in the creature's gossip menu.
Definition AllCreatureScript.h:92

References ASSERT, AllCreatureScript::CanCreatureGossipSelectCode(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnGossipSelectCode() [2/3]

bool ScriptMgr::OnGossipSelectCode ( Player player,
GameObject go,
uint32  sender,
uint32  action,
const char *  code 
)
64{
65 ASSERT(player);
66 ASSERT(go);
67 ASSERT(code);
68
69 auto ret = IsValidBoolScript<AllGameObjectScript>([&](AllGameObjectScript* script)
70 {
71 return script->CanGameObjectGossipSelectCode(player, go, sender, action, code);
72 });
73
74 if (ret && *ret)
75 {
76 return true;
77 }
78
80 return tempScript ? tempScript->OnGossipSelectCode(player, go, sender, action, code) : false;
81}
virtual bool CanGameObjectGossipSelectCode(Player *, GameObject *, uint32, uint32, const char *)
Definition AllGameObjectScript.h:62

References ASSERT, AllGameObjectScript::CanGameObjectGossipSelectCode(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ OnGossipSelectCode() [3/3]

void ScriptMgr::OnGossipSelectCode ( Player player,
Item item,
uint32  sender,
uint32  action,
const char *  code 
)
130{
131 ASSERT(player);
132 ASSERT(item);
133
134 ExecuteScript<AllItemScript>([&](AllItemScript* script)
135 {
136 script->OnItemGossipSelectCode(player, item, sender, action, code);
137 });
138
139 if (auto tempScript = ScriptRegistry<ItemScript>::GetScriptById(item->GetScriptId()))
140 {
141 tempScript->OnGossipSelectCode(player, item, sender, action, code);
142 }
143}
virtual void OnItemGossipSelectCode(Player *, Item *, uint32, uint32, const char *)
Definition AllItemScript.h:45

References ASSERT, Item::GetScriptId(), and AllItemScript::OnItemGossipSelectCode().

◆ OnGrayLevelCalculation()

void ScriptMgr::OnGrayLevelCalculation ( uint8 grayLevel,
uint8  playerLevel 
)
28{
30}
@ FORMULAHOOK_ON_GRAY_LEVEL_CALCULATION
Definition FormulaScript.h:27
virtual void OnGrayLevelCalculation(uint8 &, uint8)
Definition FormulaScript.h:50

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_GRAY_LEVEL_CALCULATION, and FormulaScript::OnGrayLevelCalculation().

◆ OnGroupAddMember()

void ScriptMgr::OnGroupAddMember ( Group group,
ObjectGuid  guid 
)
23{
24 ASSERT(group);
25
27}
@ GROUPHOOK_ON_ADD_MEMBER
Definition GroupScript.h:27
virtual void OnAddMember(Group *, ObjectGuid)
Definition GroupScript.h:48

References ASSERT, CALL_ENABLED_HOOKS, GROUPHOOK_ON_ADD_MEMBER, and GroupScript::OnAddMember().

◆ OnGroupChangeLeader()

void ScriptMgr::OnGroupChangeLeader ( Group group,
ObjectGuid  newLeaderGuid,
ObjectGuid  oldLeaderGuid 
)
44{
45 ASSERT(group);
46
47 CALL_ENABLED_HOOKS(GroupScript, GROUPHOOK_ON_CHANGE_LEADER, script->OnChangeLeader(group, newLeaderGuid, oldLeaderGuid));
48}
@ GROUPHOOK_ON_CHANGE_LEADER
Definition GroupScript.h:30
virtual void OnChangeLeader(Group *, ObjectGuid, ObjectGuid)
Definition GroupScript.h:57

References ASSERT, CALL_ENABLED_HOOKS, GROUPHOOK_ON_CHANGE_LEADER, and GroupScript::OnChangeLeader().

◆ OnGroupDisband()

void ScriptMgr::OnGroupDisband ( Group group)
51{
52 ASSERT(group);
53
55}
@ GROUPHOOK_ON_DISBAND
Definition GroupScript.h:31
virtual void OnDisband(Group *)
Definition GroupScript.h:60

References ASSERT, CALL_ENABLED_HOOKS, GROUPHOOK_ON_DISBAND, and GroupScript::OnDisband().

◆ OnGroupInviteMember()

void ScriptMgr::OnGroupInviteMember ( Group group,
ObjectGuid  guid 
)
30{
31 ASSERT(group);
32
34}
@ GROUPHOOK_ON_INVITE_MEMBER
Definition GroupScript.h:28
virtual void OnInviteMember(Group *, ObjectGuid)
Definition GroupScript.h:51

References ASSERT, CALL_ENABLED_HOOKS, GROUPHOOK_ON_INVITE_MEMBER, and GroupScript::OnInviteMember().

◆ OnGroupRateCalculation()

void ScriptMgr::OnGroupRateCalculation ( float &  rate,
uint32  count,
bool  isRaid 
)
56{
58}
@ FORMULAHOOK_ON_GROUP_RATE_CALCULATION
Definition FormulaScript.h:32
virtual void OnGroupRateCalculation(float &, uint32, bool)
Definition FormulaScript.h:65

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_GROUP_RATE_CALCULATION, and FormulaScript::OnGroupRateCalculation().

◆ OnGroupRemoveMember()

void ScriptMgr::OnGroupRemoveMember ( Group group,
ObjectGuid  guid,
RemoveMethod  method,
ObjectGuid  kicker,
const char *  reason 
)
37{
38 ASSERT(group);
39
40 CALL_ENABLED_HOOKS(GroupScript, GROUPHOOK_ON_REMOVE_MEMBER, script->OnRemoveMember(group, guid, method, kicker, reason));
41}
@ GROUPHOOK_ON_REMOVE_MEMBER
Definition GroupScript.h:29
virtual void OnRemoveMember(Group *, ObjectGuid, RemoveMethod, ObjectGuid, const char *)
Definition GroupScript.h:54

References ASSERT, CALL_ENABLED_HOOKS, GROUPHOOK_ON_REMOVE_MEMBER, and GroupScript::OnRemoveMember().

◆ OnGuildAddMember()

void ScriptMgr::OnGuildAddMember ( Guild guild,
Player player,
uint8 plRank 
)
23{
24 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_ADD_MEMBER, script->OnAddMember(guild, player, plRank));
25}
@ GUILDHOOK_ON_ADD_MEMBER
Definition GuildScript.h:27
virtual void OnAddMember(Guild *, Player *, uint8 &)
Definition GuildScript.h:51

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_ADD_MEMBER, and GuildScript::OnAddMember().

◆ OnGuildBankEvent()

void ScriptMgr::OnGuildBankEvent ( Guild guild,
uint8  eventType,
uint8  tabId,
ObjectGuid::LowType  playerGuid,
uint32  itemOrMoney,
uint16  itemStackCount,
uint8  destTabId 
)
73{
74 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_BANK_EVENT, script->OnBankEvent(guild, eventType, tabId, playerGuid, itemOrMoney, itemStackCount, destTabId));
75}
@ GUILDHOOK_ON_BANK_EVENT
Definition GuildScript.h:37
virtual void OnBankEvent(Guild *, uint8, uint8, ObjectGuid::LowType, uint32, uint16, uint8)
Definition GuildScript.h:79

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_BANK_EVENT, and GuildScript::OnBankEvent().

◆ OnGuildCreate()

void ScriptMgr::OnGuildCreate ( Guild guild,
Player leader,
const std::string &  name 
)
43{
44 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_CREATE, script->OnCreate(guild, leader, name));
45}
@ GUILDHOOK_ON_CREATE
Definition GuildScript.h:31
virtual void OnCreate(Guild *, Player *, const std::string &)
Definition GuildScript.h:63

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_CREATE, and GuildScript::OnCreate().

◆ OnGuildDisband()

void ScriptMgr::OnGuildDisband ( Guild guild)
48{
50}
@ GUILDHOOK_ON_DISBAND
Definition GuildScript.h:32
virtual void OnDisband(Guild *)
Definition GuildScript.h:66

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_DISBAND, and GuildScript::OnDisband().

◆ OnGuildEvent()

void ScriptMgr::OnGuildEvent ( Guild guild,
uint8  eventType,
ObjectGuid::LowType  playerGuid1,
ObjectGuid::LowType  playerGuid2,
uint8  newRank 
)
68{
69 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_EVENT, script->OnEvent(guild, eventType, playerGuid1, playerGuid2, newRank));
70}
@ GUILDHOOK_ON_EVENT
Definition GuildScript.h:36
virtual void OnEvent(Guild *, uint8, ObjectGuid::LowType, ObjectGuid::LowType, uint8)
Definition GuildScript.h:77

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_EVENT, and GuildScript::OnEvent().

◆ OnGuildInfoChanged()

void ScriptMgr::OnGuildInfoChanged ( Guild guild,
const std::string &  newInfo 
)
38{
40}
@ GUILDHOOK_ON_INFO_CHANGED
Definition GuildScript.h:30
virtual void OnInfoChanged(Guild *, const std::string &)
Definition GuildScript.h:60

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_INFO_CHANGED, and GuildScript::OnInfoChanged().

◆ OnGuildItemMove()

void ScriptMgr::OnGuildItemMove ( Guild guild,
Player player,
Item pItem,
bool  isSrcBank,
uint8  srcContainer,
uint8  srcSlotId,
bool  isDestBank,
uint8  destContainer,
uint8  destSlotId 
)
63{
64 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_ITEM_MOVE, script->OnItemMove(guild, player, pItem, isSrcBank, srcContainer, srcSlotId, isDestBank, destContainer, destSlotId));
65}
@ GUILDHOOK_ON_ITEM_MOVE
Definition GuildScript.h:35
virtual void OnItemMove(Guild *, Player *, Item *, bool, uint8, uint8, bool, uint8, uint8)
Definition GuildScript.h:75

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_ITEM_MOVE, and GuildScript::OnItemMove().

◆ OnGuildMemberDepositMoney()

void ScriptMgr::OnGuildMemberDepositMoney ( Guild guild,
Player player,
uint32 amount 
)
58{
60}
@ GUILDHOOK_ON_MEMBER_DEPOSIT_MONEY
Definition GuildScript.h:34
virtual void OnMemberDepositMoney(Guild *, Player *, uint32 &)
Definition GuildScript.h:72

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_MEMBER_DEPOSIT_MONEY, and GuildScript::OnMemberDepositMoney().

◆ OnGuildMemberWitdrawMoney()

void ScriptMgr::OnGuildMemberWitdrawMoney ( Guild guild,
Player player,
uint32 amount,
bool  isRepair 
)
53{
55}
@ GUILDHOOK_ON_MEMBER_WITDRAW_MONEY
Definition GuildScript.h:33
virtual void OnMemberWitdrawMoney(Guild *, Player *, uint32 &, bool)
Definition GuildScript.h:69

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_MEMBER_WITDRAW_MONEY, and GuildScript::OnMemberWitdrawMoney().

◆ OnGuildMOTDChanged()

void ScriptMgr::OnGuildMOTDChanged ( Guild guild,
const std::string &  newMotd 
)
33{
35}
@ GUILDHOOK_ON_MOTD_CHANGED
Definition GuildScript.h:29
virtual void OnMOTDChanged(Guild *, const std::string &)
Definition GuildScript.h:57

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_MOTD_CHANGED, and GuildScript::OnMOTDChanged().

◆ OnGuildRemoveMember()

void ScriptMgr::OnGuildRemoveMember ( Guild guild,
Player player,
bool  isDisbanding,
bool  isKicked 
)
28{
29 CALL_ENABLED_HOOKS(GuildScript, GUILDHOOK_ON_REMOVE_MEMBER, script->OnRemoveMember(guild, player, isDisbanding, isKicked));
30}
@ GUILDHOOK_ON_REMOVE_MEMBER
Definition GuildScript.h:28
virtual void OnRemoveMember(Guild *, Player *, bool, bool)
Definition GuildScript.h:54

References CALL_ENABLED_HOOKS, GUILDHOOK_ON_REMOVE_MEMBER, and GuildScript::OnRemoveMember().

◆ OnHandleDevCommand()

void ScriptMgr::OnHandleDevCommand ( Player player,
bool &  enable 
)
24{
26}
@ ALLCOMMANDHOOK_ON_HANDLE_DEV_COMMAND
Definition AllCommandScript.h:27
virtual void OnHandleDevCommand(Player *, bool &)
Definition AllCommandScript.h:41

References ALLCOMMANDHOOK_ON_HANDLE_DEV_COMMAND, CALL_ENABLED_HOOKS, and AllCommandScript::OnHandleDevCommand().

◆ OnHeal()

void ScriptMgr::OnHeal ( Unit healer,
Unit reciever,
uint32 gain 
)
23{
24 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_HEAL, script->OnHeal(healer, reciever, gain));
25}
@ UNITHOOK_ON_HEAL
Definition UnitScript.h:26
virtual void OnHeal(Unit *, Unit *, uint32 &)
Definition UnitScript.h:63

References CALL_ENABLED_HOOKS, UnitScript::OnHeal(), and UNITHOOK_ON_HEAL.

◆ OnHonorCalculation()

void ScriptMgr::OnHonorCalculation ( float &  honor,
uint8  level,
float  multiplier 
)
23{
25}
@ FORMULAHOOK_ON_HONOR_CALCULATION
Definition FormulaScript.h:26
virtual void OnHonorCalculation(float &, uint8, float)
Definition FormulaScript.h:47

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_HONOR_CALCULATION, and FormulaScript::OnHonorCalculation().

◆ OnInitializeLockedDungeons()

void ScriptMgr::OnInitializeLockedDungeons ( Player player,
uint8 level,
uint32 lockData,
lfg::LFGDungeonData const *  dungeon 
)
63{
65}
@ GLOBALHOOK_ON_INITIALIZE_LOCKED_DUNGEONS
Definition GlobalScript.h:37
virtual void OnInitializeLockedDungeons(Player *, uint8 &, uint32 &, lfg::LFGDungeonData const *)
Definition GlobalScript.h:70

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_INITIALIZE_LOCKED_DUNGEONS, and GlobalScript::OnInitializeLockedDungeons().

◆ OnInitStatsForLevel()

void ScriptMgr::OnInitStatsForLevel ( Guardian guardian,
uint8  petlevel 
)
23{
25}
@ PETHOOK_ON_INIT_STATS_FOR_LEVEL
Definition PetScript.h:26
virtual void OnInitStatsForLevel(Guardian *, uint8)
Definition PetScript.h:43

References CALL_ENABLED_HOOKS, PetScript::OnInitStatsForLevel(), and PETHOOK_ON_INIT_STATS_FOR_LEVEL.

◆ OnInstall()

void ScriptMgr::OnInstall ( Vehicle veh)
23{
24 ASSERT(veh);
25 ASSERT(veh->GetBase()->IsCreature());
26
28 {
29 tempScript->OnInstall(veh);
30 }
31}

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnInstallAccessory()

void ScriptMgr::OnInstallAccessory ( Vehicle veh,
Creature accessory 
)
56{
57 ASSERT(veh);
58 ASSERT(veh->GetBase()->IsCreature());
59 ASSERT(accessory);
60
62 {
63 tempScript->OnInstallAccessory(veh, accessory);
64 }
65}

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnInstanceIdRemoved()

void ScriptMgr::OnInstanceIdRemoved ( uint32  instanceId)

Called when an instance Id is deleted, usually because it expired or no players are bound to it anymore.

Parameters
instanceIdThe unique id of the instance
118{
120}
@ GLOBALHOOK_ON_INSTANCEID_REMOVED
Definition GlobalScript.h:47
virtual void OnInstanceIdRemoved(uint32)
Definition GlobalScript.h:98

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_INSTANCEID_REMOVED, and GlobalScript::OnInstanceIdRemoved().

◆ OnInstanceSave()

void ScriptMgr::OnInstanceSave ( InstanceSave instanceSave)
103{
105}
@ MISCHOOK_ON_INSTANCE_SAVE
Definition MiscScript.h:43
virtual void OnInstanceSave(InstanceSave *)
Definition MiscScript.h:88

References CALL_ENABLED_HOOKS, MISCHOOK_ON_INSTANCE_SAVE, and MiscScript::OnInstanceSave().

◆ OnIsAffectedBySpellModCheck()

bool ScriptMgr::OnIsAffectedBySpellModCheck ( SpellInfo const *  affectSpell,
SpellInfo const *  checkSpell,
SpellModifier const *  mod 
)
88{
90}
@ GLOBALHOOK_ON_IS_AFFECTED_BY_SPELL_MOD_CHECK
Definition GlobalScript.h:42
virtual bool OnIsAffectedBySpellModCheck(SpellInfo const *, SpellInfo const *, SpellModifier const *)
Definition GlobalScript.h:83

References CALL_ENABLED_BOOLEAN_HOOKS, GLOBALHOOK_ON_IS_AFFECTED_BY_SPELL_MOD_CHECK, and GlobalScript::OnIsAffectedBySpellModCheck().

◆ OnItemCreate()

void ScriptMgr::OnItemCreate ( Item item,
ItemTemplate const *  itemProto,
Player const *  owner 
)
63{
64 CALL_ENABLED_HOOKS(MiscScript, MISCHOOK_ON_ITEM_CREATE, script->OnItemCreate(item, itemProto, owner));
65}
@ MISCHOOK_ON_ITEM_CREATE
Definition MiscScript.h:35
virtual void OnItemCreate(Item *, ItemTemplate const *, Player const *)
Definition MiscScript.h:72

References CALL_ENABLED_HOOKS, MISCHOOK_ON_ITEM_CREATE, and MiscScript::OnItemCreate().

◆ OnItemExpire()

bool ScriptMgr::OnItemExpire ( Player player,
ItemTemplate const *  proto 
)
65{
66 ASSERT(player);
67 ASSERT(proto);
68
69 auto ret = IsValidBoolScript<AllItemScript>([&](AllItemScript* script)
70 {
71 return !script->CanItemExpire(player, proto);
72 });
73
74 if (ret && *ret)
75 {
76 return false;
77 }
78
79 auto tempScript = ScriptRegistry<ItemScript>::GetScriptById(proto->ScriptId);
80 return tempScript ? tempScript->OnExpire(player, proto) : false;
81}
virtual bool CanItemExpire(Player *, ItemTemplate const *)
Definition AllItemScript.h:39

References ASSERT, AllItemScript::CanItemExpire(), ScriptRegistry< TScript >::GetScriptById(), and ItemTemplate::ScriptId.

◆ OnItemRemove()

bool ScriptMgr::OnItemRemove ( Player player,
Item item 
)
84{
85 ASSERT(player);
86 ASSERT(item);
87
88 auto ret = IsValidBoolScript<AllItemScript>([&](AllItemScript* script)
89 {
90 return !script->CanItemRemove(player, item);
91 });
92
93 if (ret && *ret)
94 {
95 return false;
96 }
97
99 return tempScript ? tempScript->OnRemove(player, item) : false;
100}
virtual bool CanItemRemove(Player *, Item *)
Definition AllItemScript.h:36

References ASSERT, AllItemScript::CanItemRemove(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().

◆ OnItemRoll()

bool ScriptMgr::OnItemRoll ( Player const *  player,
LootStoreItem const *  LootStoreItem,
float &  chance,
Loot loot,
LootStore const &  store 
)
53{
54 CALL_ENABLED_BOOLEAN_HOOKS(GlobalScript, GLOBALHOOK_ON_ITEM_ROLL, !script->OnItemRoll(player, lootStoreItem, chance, loot, store));
55}
@ GLOBALHOOK_ON_ITEM_ROLL
Definition GlobalScript.h:35
virtual bool OnItemRoll(Player const *, LootStoreItem const *, float &, Loot &, LootStore const &)
Definition GlobalScript.h:68

References CALL_ENABLED_BOOLEAN_HOOKS, GLOBALHOOK_ON_ITEM_ROLL, and GlobalScript::OnItemRoll().

◆ OnItemUse()

bool ScriptMgr::OnItemUse ( Player player,
Item item,
SpellCastTargets const &  targets 
)
46{
47 ASSERT(player);
48 ASSERT(item);
49
50 auto ret = IsValidBoolScript<AllItemScript>([&](AllItemScript* script)
51 {
52 return script->CanItemUse(player, item, targets);
53 });
54
55 if (ret && *ret)
56 {
57 return true;
58 }
59
61 return tempScript ? tempScript->OnUse(player, item, targets) : false;
62}
virtual bool CanItemUse(Player *, Item *, SpellCastTargets const &)
Definition AllItemScript.h:33

References ASSERT, AllItemScript::CanItemUse(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().

◆ OnLastIpUpdate()

void ScriptMgr::OnLastIpUpdate ( uint32  accountId,
std::string  ip 
)
33{
35}
@ ACCOUNTHOOK_ON_LAST_IP_UPDATE
Definition AccountScript.h:28
virtual void OnLastIpUpdate(uint32, std::string)
Definition AccountScript.h:51

References ACCOUNTHOOK_ON_LAST_IP_UPDATE, CALL_ENABLED_HOOKS, and AccountScript::OnLastIpUpdate().

◆ OnLoadCustomDatabaseTable()

void ScriptMgr::OnLoadCustomDatabaseTable ( )
33{
35}
@ WORLDHOOK_ON_LOAD_CUSTOM_DATABASE_TABLE
Definition WorldScript.h:29
virtual void OnLoadCustomDatabaseTable()
Definition WorldScript.h:56

References CALL_ENABLED_HOOKS, WorldScript::OnLoadCustomDatabaseTable(), and WORLDHOOK_ON_LOAD_CUSTOM_DATABASE_TABLE.

◆ OnLoadGridMap()

void ScriptMgr::OnLoadGridMap ( Map map,
GridTerrainData gmap,
uint32  gx,
uint32  gy 
)
138{
139 ASSERT(map);
140
141 ForeachMaps<WorldMapScript>(map,
142 [&](WorldMapScript* script)
143 {
144 script->OnLoadGridMap(map, gmap, gx, gy);
145 });
146
147 ForeachMaps<InstanceMapScript>(map,
148 [&](InstanceMapScript* script)
149 {
150 script->OnLoadGridMap((InstanceMap*)map, gmap, gx, gy);
151 });
152
153 ForeachMaps<BattlegroundMapScript>(map,
154 [&](BattlegroundMapScript* script)
155 {
156 script->OnLoadGridMap((BattlegroundMap*)map, gmap, gx, gy);
157 });
158}
virtual void OnLoadGridMap(TMap *, GridTerrainData *, uint32, uint32)
Definition ScriptObject.h:101

References ASSERT, and MapScript< TMap >::OnLoadGridMap().

◆ OnLoadSpellCustomAttr()

void ScriptMgr::OnLoadSpellCustomAttr ( SpellInfo spell)
98{
100}
@ GLOBALHOOK_ON_LOAD_SPELL_CUSTOM_ATTR
Definition GlobalScript.h:44
virtual void OnLoadSpellCustomAttr(SpellInfo *)
Definition GlobalScript.h:89

References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_LOAD_SPELL_CUSTOM_ATTR, and GlobalScript::OnLoadSpellCustomAttr().

◆ OnLootMoney()

void ScriptMgr::OnLootMoney ( Player player,
uint32  gold 
)
23{
24 ASSERT(player);
25
27}
@ LOOTHOOK_ON_LOOT_MONEY
Definition LootScript.h:26
Definition LootScript.h:31
virtual void OnLootMoney(Player *, uint32)
This hook called before money loot.
Definition LootScript.h:44

References ASSERT, CALL_ENABLED_HOOKS, LOOTHOOK_ON_LOOT_MONEY, and LootScript::OnLootMoney().

◆ OnMapUpdate()

void ScriptMgr::OnMapUpdate ( Map map,
uint32  diff 
)
242{
243 ASSERT(map);
244
246
247 ForeachMaps<WorldMapScript>(map,
248 [&](WorldMapScript* script)
249 {
250 script->OnUpdate(map, diff);
251 });
252
253 ForeachMaps<InstanceMapScript>(map,
254 [&](InstanceMapScript* script)
255 {
256 script->OnUpdate((InstanceMap*)map, diff);
257 });
258
259 ForeachMaps<BattlegroundMapScript>(map,
260 [&](BattlegroundMapScript* script)
261 {
262 script->OnUpdate((BattlegroundMap*)map, diff);
263 });
264}
@ ALLMAPHOOK_ON_MAP_UPDATE
Definition AllMapScript.h:32
virtual void OnMapUpdate(Map *, uint32)
This hook called before updating map.
Definition AllMapScript.h:97
void OnUpdate(TMap *, uint32) override
Definition ScriptObject.h:113

References ALLMAPHOOK_ON_MAP_UPDATE, ASSERT, CALL_ENABLED_HOOKS, AllMapScript::OnMapUpdate(), and MapScript< TMap >::OnUpdate().

◆ OnMotdChange()

void ScriptMgr::OnMotdChange ( std::string &  newMotd,
LocaleConstant locale 
)
43{
45}
@ WORLDHOOK_ON_MOTD_CHANGE
Definition WorldScript.h:31
virtual void OnMotdChange(std::string &, LocaleConstant &)
Definition WorldScript.h:62

References CALL_ENABLED_HOOKS, WorldScript::OnMotdChange(), and WORLDHOOK_ON_MOTD_CHANGE.

◆ OnNetworkStart()

void ScriptMgr::OnNetworkStart ( )
23{
25}
@ SERVERHOOK_ON_NETWORK_START
Definition ServerScript.h:27
virtual void OnNetworkStart()
Definition ServerScript.h:43

References CALL_ENABLED_HOOKS, ServerScript::OnNetworkStart(), and SERVERHOOK_ON_NETWORK_START.

◆ OnNetworkStop()

void ScriptMgr::OnNetworkStop ( )
28{
30}
@ SERVERHOOK_ON_NETWORK_STOP
Definition ServerScript.h:28
virtual void OnNetworkStop()
Definition ServerScript.h:46

References CALL_ENABLED_HOOKS, ServerScript::OnNetworkStop(), and SERVERHOOK_ON_NETWORK_STOP.

◆ OnOpenStateChange()

void ScriptMgr::OnOpenStateChange ( bool  open)
23{
25}
@ WORLDHOOK_ON_OPEN_STATE_CHANGE
Definition WorldScript.h:27
virtual void OnOpenStateChange(bool)
Definition WorldScript.h:50

References CALL_ENABLED_HOOKS, WorldScript::OnOpenStateChange(), and WORLDHOOK_ON_OPEN_STATE_CHANGE.

◆ OnPasswordChange()

void ScriptMgr::OnPasswordChange ( uint32  accountId)
53{
55}
@ ACCOUNTHOOK_ON_PASSWORD_CHANGE
Definition AccountScript.h:32
virtual void OnPasswordChange(uint32)
Definition AccountScript.h:63

References ACCOUNTHOOK_ON_PASSWORD_CHANGE, CALL_ENABLED_HOOKS, and AccountScript::OnPasswordChange().

◆ OnPatchValuesUpdate()

void ScriptMgr::OnPatchValuesUpdate ( Unit const *  unit,
ByteBuffer valuesUpdateBuf,
BuildValuesCachePosPointers posPointers,
Player target 
)
122{
123 CALL_ENABLED_HOOKS(UnitScript, UNITHOOK_ON_PATCH_VALUES_UPDATE, script->OnPatchValuesUpdate(unit, valuesUpdateBuf, posPointers, target));
124}
@ UNITHOOK_ON_PATCH_VALUES_UPDATE
Definition UnitScript.h:42
virtual void OnPatchValuesUpdate(Unit const *, ByteBuffer &, BuildValuesCachePosPointers &, Player *)
Definition UnitScript.h:104

References CALL_ENABLED_HOOKS, UnitScript::OnPatchValuesUpdate(), and UNITHOOK_ON_PATCH_VALUES_UPDATE.

◆ OnPetAddToWorld()

void ScriptMgr::OnPetAddToWorld ( Pet pet)
48{
49 ASSERT(pet);
50
52}
@ PETHOOK_ON_PET_ADD_TO_WORLD
Definition PetScript.h:31
virtual void OnPetAddToWorld(Pet *)
This hook called after add pet in world.
Definition PetScript.h:58

References ASSERT, CALL_ENABLED_HOOKS, PetScript::OnPetAddToWorld(), and PETHOOK_ON_PET_ADD_TO_WORLD.

◆ OnPlayerAchievementComplete()

void ScriptMgr::OnPlayerAchievementComplete ( Player player,
AchievementEntry const *  achievement 
)
308{
310}
@ PLAYERHOOK_ON_ACHI_COMPLETE
Definition PlayerScript.h:84
virtual void OnPlayerAchievementComplete(Player *, AchievementEntry const *)
Definition PlayerScript.h:374

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAchievementComplete(), and PLAYERHOOK_ON_ACHI_COMPLETE.

◆ OnPlayerAchievementSave()

void ScriptMgr::OnPlayerAchievementSave ( CharacterDatabaseTransaction  trans,
Player player,
uint16  achiId,
CompletedAchievementData  achiData 
)
323{
324 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_ACHI_SAVE, script->OnPlayerAchievementSave(trans, player, achiId, achiData));
325}
@ PLAYERHOOK_ON_ACHI_SAVE
Definition PlayerScript.h:88
virtual void OnPlayerAchievementSave(CharacterDatabaseTransaction, Player *, uint16, CompletedAchievementData)
Definition PlayerScript.h:386

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAchievementSave(), and PLAYERHOOK_ON_ACHI_SAVE.

◆ OnPlayerAddToBattleground()

void ScriptMgr::OnPlayerAddToBattleground ( Player player,
Battleground bg 
)
288{
290}
@ PLAYERHOOK_ON_ADD_TO_BATTLEGROUND
Definition PlayerScript.h:81
virtual void OnPlayerAddToBattleground(Player *, Battleground *)
Definition PlayerScript.h:365

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAddToBattleground(), and PLAYERHOOK_ON_ADD_TO_BATTLEGROUND.

◆ OnPlayerAfterCreatureLoot()

void ScriptMgr::OnPlayerAfterCreatureLoot ( Player player)
533{
535}
@ PLAYERHOOK_ON_AFTER_CREATURE_LOOT
Definition PlayerScript.h:205
virtual void OnPlayerAfterCreatureLoot(Player *)
It is used when an item is taken from a creature.
Definition PlayerScript.h:766

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterCreatureLoot(), and PLAYERHOOK_ON_AFTER_CREATURE_LOOT.

◆ OnPlayerAfterCreatureLootMoney()

void ScriptMgr::OnPlayerAfterCreatureLootMoney ( Player player)
538{
540}
@ PLAYERHOOK_ON_AFTER_CREATURE_LOOT_MONEY
Definition PlayerScript.h:206
virtual void OnPlayerAfterCreatureLootMoney(Player *)
After a creature's money is taken.
Definition PlayerScript.h:773

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterCreatureLootMoney(), and PLAYERHOOK_ON_AFTER_CREATURE_LOOT_MONEY.

◆ OnPlayerAfterGuardianInitStatsForLevel()

void ScriptMgr::OnPlayerAfterGuardianInitStatsForLevel ( Player player,
Guardian guardian 
)
438{
440}
@ PLAYERHOOK_ON_AFTER_GUARDIAN_INIT_STATS_FOR_LEVEL
Definition PlayerScript.h:126
virtual void OnPlayerAfterGuardianInitStatsForLevel(Player *, Guardian *)
Definition PlayerScript.h:483

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterGuardianInitStatsForLevel(), and PLAYERHOOK_ON_AFTER_GUARDIAN_INIT_STATS_FOR_LEVEL.

◆ OnPlayerAfterMoveItemFromInventory()

void ScriptMgr::OnPlayerAfterMoveItemFromInventory ( Player player,
Item it,
uint8  bag,
uint8  slot,
bool  update 
)
343{
345}
@ PLAYERHOOK_ON_AFTER_MOVE_ITEM_FROM_INVENTORY
Definition PlayerScript.h:94
virtual void OnPlayerAfterMoveItemFromInventory(Player *, Item *, uint8, uint8, bool)
Definition PlayerScript.h:404

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterMoveItemFromInventory(), and PLAYERHOOK_ON_AFTER_MOVE_ITEM_FROM_INVENTORY.

◆ OnPlayerAfterSetVisibleItemSlot()

void ScriptMgr::OnPlayerAfterSetVisibleItemSlot ( Player player,
uint8  slot,
Item item 
)
338{
340}
@ PLAYERHOOK_ON_AFTER_SET_VISIBLE_ITEM_SLOT
Definition PlayerScript.h:93
virtual void OnPlayerAfterSetVisibleItemSlot(Player *, uint8, Item *)
Definition PlayerScript.h:401

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterSetVisibleItemSlot(), and PLAYERHOOK_ON_AFTER_SET_VISIBLE_ITEM_SLOT.

◆ OnPlayerAfterSpecSlotChanged()

void ScriptMgr::OnPlayerAfterSpecSlotChanged ( Player player,
uint8  newSlot 
)
113{
115}
@ PLAYERHOOK_ON_AFTER_SPEC_SLOT_CHANGED
Definition PlayerScript.h:45
virtual void OnPlayerAfterSpecSlotChanged(Player *, uint8)
Definition PlayerScript.h:265

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterSpecSlotChanged(), and PLAYERHOOK_ON_AFTER_SPEC_SLOT_CHANGED.

◆ OnPlayerAfterStoreOrEquipNewItem()

void ScriptMgr::OnPlayerAfterStoreOrEquipNewItem ( Player player,
uint32  vendorslot,
Item item,
uint8  count,
uint8  bag,
uint8  slot,
ItemTemplate const *  pProto,
Creature pVendor,
VendorItem const *  crItem,
bool  bStore 
)
453{
454 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_AFTER_STORE_OR_EQUIP_NEW_ITEM, script->OnPlayerAfterStoreOrEquipNewItem(player, vendorslot, item, count, bag, slot, pProto, pVendor, crItem, bStore));
455}
@ PLAYERHOOK_ON_AFTER_STORE_OR_EQUIP_NEW_ITEM
Definition PlayerScript.h:114
virtual void OnPlayerAfterStoreOrEquipNewItem(Player *, uint32, Item *, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
Definition PlayerScript.h:458

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterStoreOrEquipNewItem(), and PLAYERHOOK_ON_AFTER_STORE_OR_EQUIP_NEW_ITEM.

◆ OnPlayerAfterUpdateAttackPowerAndDamage()

void ScriptMgr::OnPlayerAfterUpdateAttackPowerAndDamage ( Player player,
float &  level,
float &  base_attPower,
float &  attPowerMod,
float &  attPowerMultiplier,
bool  ranged 
)
473{
474 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_AFTER_UPDATE_ATTACK_POWER_AND_DAMAGE, script->OnPlayerAfterUpdateAttackPowerAndDamage(player, level, base_attPower, attPowerMod, attPowerMultiplier, ranged));
475}
@ PLAYERHOOK_ON_AFTER_UPDATE_ATTACK_POWER_AND_DAMAGE
Definition PlayerScript.h:118
virtual void OnPlayerAfterUpdateAttackPowerAndDamage(Player *, float &, float &, float &, float &, bool)
Definition PlayerScript.h:465

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterUpdateAttackPowerAndDamage(), and PLAYERHOOK_ON_AFTER_UPDATE_ATTACK_POWER_AND_DAMAGE.

◆ OnPlayerAfterUpdateMaxHealth()

void ScriptMgr::OnPlayerAfterUpdateMaxHealth ( Player player,
float &  value 
)
463{
465}
@ PLAYERHOOK_ON_AFTER_UPDATE_MAX_HEALTH
Definition PlayerScript.h:116
virtual void OnPlayerAfterUpdateMaxHealth(Player *, float &)
Definition PlayerScript.h:462

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterUpdateMaxHealth(), and PLAYERHOOK_ON_AFTER_UPDATE_MAX_HEALTH.

◆ OnPlayerAfterUpdateMaxPower()

void ScriptMgr::OnPlayerAfterUpdateMaxPower ( Player player,
Powers power,
float &  value 
)
458{
460}
@ PLAYERHOOK_ON_AFTER_UPDATE_MAX_POWER
Definition PlayerScript.h:115
virtual void OnPlayerAfterUpdateMaxPower(Player *, Powers &, float &)
Definition PlayerScript.h:460

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerAfterUpdateMaxPower(), and PLAYERHOOK_ON_AFTER_UPDATE_MAX_POWER.

◆ OnPlayerApplyAmmoBonuses()

void ScriptMgr::OnPlayerApplyAmmoBonuses ( Player player,
ItemTemplate const *  proto,
float &  currentAmmoDPS 
)
688{
690}
@ PLAYERHOOK_ON_APPLY_AMMO_BONUSES
Definition PlayerScript.h:161
virtual void OnPlayerApplyAmmoBonuses(Player *, ItemTemplate const *, float &)
Definition PlayerScript.h:573

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerApplyAmmoBonuses(), and PLAYERHOOK_ON_APPLY_AMMO_BONUSES.

◆ OnPlayerApplyEnchantmentItemModsBefore()

void ScriptMgr::OnPlayerApplyEnchantmentItemModsBefore ( Player player,
Item item,
EnchantmentSlot  slot,
bool  apply,
uint32  enchant_spell_id,
uint32 enchant_amount 
)
643{
644 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_APPLY_ENCHANTMENT_ITEM_MODS_BEFORE, script->OnPlayerApplyEnchantmentItemModsBefore(player, item, slot, apply, enchant_spell_id, enchant_amount));
645}
@ PLAYERHOOK_ON_APPLY_ENCHANTMENT_ITEM_MODS_BEFORE
Definition PlayerScript.h:152
virtual void OnPlayerApplyEnchantmentItemModsBefore(Player *, Item *, EnchantmentSlot, bool, uint32, uint32 &)
Definition PlayerScript.h:555

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerApplyEnchantmentItemModsBefore(), and PLAYERHOOK_ON_APPLY_ENCHANTMENT_ITEM_MODS_BEFORE.

◆ OnPlayerApplyItemModsBefore()

void ScriptMgr::OnPlayerApplyItemModsBefore ( Player player,
uint8  slot,
bool  apply,
uint8  itemProtoStatNumber,
uint32  statType,
int32 val 
)
638{
639 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_APPLY_ITEM_MODS_BEFORE, script->OnPlayerApplyItemModsBefore(player, slot, apply, itemProtoStatNumber, statType, val));
640}
@ PLAYERHOOK_ON_APPLY_ITEM_MODS_BEFORE
Definition PlayerScript.h:151
virtual void OnPlayerApplyItemModsBefore(Player *, uint8, bool, uint8, uint32, int32 &)
Definition PlayerScript.h:553

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerApplyItemModsBefore(), and PLAYERHOOK_ON_APPLY_ITEM_MODS_BEFORE.

◆ OnPlayerApplyWeaponDamage()

void ScriptMgr::OnPlayerApplyWeaponDamage ( Player player,
uint8  slot,
ItemTemplate const *  proto,
float &  minDamage,
float &  maxDamage,
uint8  damageIndex 
)
648{
649 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_APPLY_WEAPON_DAMAGE, script->OnPlayerApplyWeaponDamage(player, slot, proto, minDamage, maxDamage, damageIndex));
650}
@ PLAYERHOOK_ON_APPLY_WEAPON_DAMAGE
Definition PlayerScript.h:153
virtual void OnPlayerApplyWeaponDamage(Player *, uint8, ItemTemplate const *, float &, float &, uint8)
Definition PlayerScript.h:557

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerApplyWeaponDamage(), and PLAYERHOOK_ON_APPLY_WEAPON_DAMAGE.

◆ OnPlayerBattlegroundDesertion()

void ScriptMgr::OnPlayerBattlegroundDesertion ( Player player,
BattlegroundDesertionType const  desertionType 
)
48{
50}
@ PLAYERHOOK_ON_BATTLEGROUND_DESERTION
Definition PlayerScript.h:35
virtual void OnPlayerBattlegroundDesertion(Player *, BattlegroundDesertionType const)
Definition PlayerScript.h:235

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBattlegroundDesertion(), and PLAYERHOOK_ON_BATTLEGROUND_DESERTION.

◆ OnPlayerBeforeAchievementComplete()

bool ScriptMgr::OnPlayerBeforeAchievementComplete ( Player player,
AchievementEntry const *  achievement 
)
303{
305}
@ PLAYERHOOK_ON_BEFORE_ACHI_COMPLETE
Definition PlayerScript.h:85
virtual bool OnPlayerBeforeAchievementComplete(Player *, AchievementEntry const *)
Definition PlayerScript.h:377

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerBeforeAchievementComplete(), and PLAYERHOOK_ON_BEFORE_ACHI_COMPLETE.

◆ OnPlayerBeforeBuyItemFromVendor()

void ScriptMgr::OnPlayerBeforeBuyItemFromVendor ( Player player,
ObjectGuid  vendorguid,
uint32  vendorslot,
uint32 item,
uint8  count,
uint8  bag,
uint8  slot 
)
448{
449 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_BUY_ITEM_FROM_VENDOR, script->OnPlayerBeforeBuyItemFromVendor(player, vendorguid, vendorslot, item, count, bag, slot));
450}
@ PLAYERHOOK_ON_BEFORE_BUY_ITEM_FROM_VENDOR
Definition PlayerScript.h:112
virtual void OnPlayerBeforeBuyItemFromVendor(Player *, ObjectGuid, uint32, uint32 &, uint8, uint8, uint8)
Definition PlayerScript.h:452

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeBuyItemFromVendor(), and PLAYERHOOK_ON_BEFORE_BUY_ITEM_FROM_VENDOR.

◆ OnPlayerBeforeChooseGraveyard()

void ScriptMgr::OnPlayerBeforeChooseGraveyard ( Player player,
TeamId  teamId,
bool  nearCorpse,
uint32 graveyardOverride 
)
813{
814 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_CHOOSE_GRAVEYARD, script->OnPlayerBeforeChooseGraveyard(player, teamId, nearCorpse, graveyardOverride));
815}
@ PLAYERHOOK_ON_BEFORE_CHOOSE_GRAVEYARD
Definition PlayerScript.h:185
virtual void OnPlayerBeforeChooseGraveyard(Player *, TeamId, bool, uint32 &)
Definition PlayerScript.h:633

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeChooseGraveyard(), and PLAYERHOOK_ON_BEFORE_CHOOSE_GRAVEYARD.

◆ OnPlayerBeforeCriteriaProgress()

bool ScriptMgr::OnPlayerBeforeCriteriaProgress ( Player player,
AchievementCriteriaEntry const *  criteria 
)
313{
315}
@ PLAYERHOOK_ON_BEFORE_CRITERIA_PROGRESS
Definition PlayerScript.h:87
virtual bool OnPlayerBeforeCriteriaProgress(Player *, AchievementCriteriaEntry const *)
Definition PlayerScript.h:383

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerBeforeCriteriaProgress(), and PLAYERHOOK_ON_BEFORE_CRITERIA_PROGRESS.

◆ OnPlayerBeforeDurabilityRepair()

void ScriptMgr::OnPlayerBeforeDurabilityRepair ( Player player,
ObjectGuid  npcGUID,
ObjectGuid  itemGUID,
float &  discountMod,
uint8  guildBank 
)
23{
24 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_DURABILITY_REPAIR, script->OnPlayerBeforeDurabilityRepair(player, npcGUID, itemGUID, discountMod, guildBank));
25}
@ PLAYERHOOK_ON_BEFORE_DURABILITY_REPAIR
Definition PlayerScript.h:111
virtual void OnPlayerBeforeDurabilityRepair(Player *, ObjectGuid, ObjectGuid, float &, uint8)
Definition PlayerScript.h:449

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeDurabilityRepair(), and PLAYERHOOK_ON_BEFORE_DURABILITY_REPAIR.

◆ OnPlayerBeforeFillQuestLootItem()

void ScriptMgr::OnPlayerBeforeFillQuestLootItem ( Player player,
LootItem item 
)
373{
375}
@ PLAYERHOOK_ON_BEFORE_FILL_QUEST_LOOT_ITEM
Definition PlayerScript.h:102
virtual void OnPlayerBeforeFillQuestLootItem(Player *, LootItem &)
Definition PlayerScript.h:422

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeFillQuestLootItem(), and PLAYERHOOK_ON_BEFORE_FILL_QUEST_LOOT_ITEM.

◆ OnPlayerBeforeGuardianInitStatsForLevel()

void ScriptMgr::OnPlayerBeforeGuardianInitStatsForLevel ( Player player,
Guardian guardian,
CreatureTemplate const *  cinfo,
PetType petType 
)
433{
435}
@ PLAYERHOOK_ON_BEFORE_GUARDIAN_INIT_STATS_FOR_LEVEL
Definition PlayerScript.h:125
virtual void OnPlayerBeforeGuardianInitStatsForLevel(Player *, Guardian *, CreatureTemplate const *, PetType &)
Definition PlayerScript.h:480

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeGuardianInitStatsForLevel(), and PLAYERHOOK_ON_BEFORE_GUARDIAN_INIT_STATS_FOR_LEVEL.

◆ OnPlayerBeforeInitTalentForLevel()

void ScriptMgr::OnPlayerBeforeInitTalentForLevel ( Player player,
uint8 level,
uint32 talentPointsForLevel 
)
478{
480}
@ PLAYERHOOK_ON_BEFORE_INIT_TALENT_FOR_LEVEL
Definition PlayerScript.h:119
virtual void OnPlayerBeforeInitTalentForLevel(Player *, uint8 &, uint32 &)
Definition PlayerScript.h:467

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeInitTalentForLevel(), and PLAYERHOOK_ON_BEFORE_INIT_TALENT_FOR_LEVEL.

◆ OnPlayerBeforeLoadPetFromDB()

void ScriptMgr::OnPlayerBeforeLoadPetFromDB ( Player player,
uint32 petentry,
uint32 petnumber,
bool &  current,
bool &  forceLoadFromDB 
)
443{
444 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_LOAD_PET_FROM_DB, script->OnPlayerBeforeLoadPetFromDB(player, petentry, petnumber, current, forceLoadFromDB));
445}
@ PLAYERHOOK_ON_BEFORE_LOAD_PET_FROM_DB
Definition PlayerScript.h:127
virtual void OnPlayerBeforeLoadPetFromDB(Player *, uint32 &, uint32 &, bool &, bool &)
Definition PlayerScript.h:486

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeLoadPetFromDB(), and PLAYERHOOK_ON_BEFORE_LOAD_PET_FROM_DB.

◆ OnPlayerBeforeLogout()

void ScriptMgr::OnPlayerBeforeLogout ( Player player)
233{
235}
@ PLAYERHOOK_ON_BEFORE_LOGOUT
Definition PlayerScript.h:69
virtual void OnPlayerBeforeLogout(Player *)
Definition PlayerScript.h:329

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeLogout(), and PLAYERHOOK_ON_BEFORE_LOGOUT.

◆ OnPlayerBeforeLootMoney()

void ScriptMgr::OnPlayerBeforeLootMoney ( Player player,
Loot loot 
)
123{
125}
@ PLAYERHOOK_ON_BEFORE_LOOT_MONEY
Definition PlayerScript.h:49
virtual void OnPlayerBeforeLootMoney(Player *, Loot *)
Definition PlayerScript.h:275

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeLootMoney(), and PLAYERHOOK_ON_BEFORE_LOOT_MONEY.

◆ OnPlayerBeforeOpenItem()

bool ScriptMgr::OnPlayerBeforeOpenItem ( Player player,
Item item 
)
403{
405}
@ PLAYERHOOK_ON_BEFORE_OPEN_ITEM
Definition PlayerScript.h:108
virtual bool OnPlayerBeforeOpenItem(Player *, Item *)
Definition PlayerScript.h:440

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerBeforeOpenItem(), and PLAYERHOOK_ON_BEFORE_OPEN_ITEM.

◆ OnPlayerBeforeQuestComplete()

bool ScriptMgr::OnPlayerBeforeQuestComplete ( Player player,
uint32  quest_id 
)
483{
485}
@ PLAYERHOOK_ON_BEFORE_QUEST_COMPLETE
Definition PlayerScript.h:109
virtual bool OnPlayerBeforeQuestComplete(Player *, uint32)
Definition PlayerScript.h:443

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerBeforeQuestComplete(), and PLAYERHOOK_ON_BEFORE_QUEST_COMPLETE.

◆ OnPlayerBeforeSendChatMessage()

void ScriptMgr::OnPlayerBeforeSendChatMessage ( Player player,
uint32 type,
uint32 lang,
std::string &  msg 
)
173{
175}
@ PLAYERHOOK_ON_BEFORE_SEND_CHAT_MESSAGE
Definition PlayerScript.h:59
virtual void OnPlayerBeforeSendChatMessage(Player *, uint32 &, uint32 &, std::string &)
Definition PlayerScript.h:304

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeSendChatMessage(), and PLAYERHOOK_ON_BEFORE_SEND_CHAT_MESSAGE.

◆ OnPlayerBeforeStoreOrEquipNewItem()

void ScriptMgr::OnPlayerBeforeStoreOrEquipNewItem ( Player player,
uint32  vendorslot,
uint32 item,
uint8  count,
uint8  bag,
uint8  slot,
ItemTemplate const *  pProto,
Creature pVendor,
VendorItem const *  crItem,
bool  bStore 
)
493{
494 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_STORE_OR_EQUIP_NEW_ITEM, script->OnPlayerBeforeStoreOrEquipNewItem(player, vendorslot, item, count, bag, slot, pProto, pVendor, crItem, bStore));
495}
@ PLAYERHOOK_ON_BEFORE_STORE_OR_EQUIP_NEW_ITEM
Definition PlayerScript.h:113
virtual void OnPlayerBeforeStoreOrEquipNewItem(Player *, uint32, uint32 &, uint8, uint8, uint8, ItemTemplate const *, Creature *, VendorItem const *, bool)
Definition PlayerScript.h:455

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeStoreOrEquipNewItem(), and PLAYERHOOK_ON_BEFORE_STORE_OR_EQUIP_NEW_ITEM.

◆ OnPlayerBeforeTeleport()

bool ScriptMgr::OnPlayerBeforeTeleport ( Player player,
uint32  mapid,
float  x,
float  y,
float  z,
float  orientation,
uint32  options,
Unit target 
)
278{
279 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_ON_BEFORE_TELEPORT, !script->OnPlayerBeforeTeleport(player, mapid, x, y, z, orientation, options, target));
280}
@ PLAYERHOOK_ON_BEFORE_TELEPORT
Definition PlayerScript.h:79
virtual bool OnPlayerBeforeTeleport(Player *, uint32, float, float, float, float, uint32, Unit *)
Definition PlayerScript.h:359

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerBeforeTeleport(), and PLAYERHOOK_ON_BEFORE_TELEPORT.

◆ OnPlayerBeforeTempSummonInitStats()

void ScriptMgr::OnPlayerBeforeTempSummonInitStats ( Player player,
TempSummon tempSummon,
uint32 duration 
)
428{
430}
@ PLAYERHOOK_ON_BEFORE_TEMP_SUMMON_INIT_STATS
Definition PlayerScript.h:124
virtual void OnPlayerBeforeTempSummonInitStats(Player *, TempSummon *, uint32 &)
Definition PlayerScript.h:477

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeTempSummonInitStats(), and PLAYERHOOK_ON_BEFORE_TEMP_SUMMON_INIT_STATS.

◆ OnPlayerBeforeUpdate()

void ScriptMgr::OnPlayerBeforeUpdate ( Player player,
uint32  p_time 
)
213{
215}
@ PLAYERHOOK_ON_BEFORE_UPDATE
Definition PlayerScript.h:46
virtual void OnPlayerBeforeUpdate(Player *, uint32)
Definition PlayerScript.h:268

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeUpdate(), and PLAYERHOOK_ON_BEFORE_UPDATE.

◆ OnPlayerBeforeUpdateAttackPowerAndDamage()

void ScriptMgr::OnPlayerBeforeUpdateAttackPowerAndDamage ( Player player,
float &  level,
float &  val2,
bool  ranged 
)
468{
470}
@ PLAYERHOOK_ON_BEFORE_UPDATE_ATTACK_POWER_AND_DAMAGE
Definition PlayerScript.h:117
virtual void OnPlayerBeforeUpdateAttackPowerAndDamage(Player *, float &, float &, bool)
Definition PlayerScript.h:464

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeUpdateAttackPowerAndDamage(), and PLAYERHOOK_ON_BEFORE_UPDATE_ATTACK_POWER_AND_DAMAGE.

◆ OnPlayerBeforeUpdateSkill()

void ScriptMgr::OnPlayerBeforeUpdateSkill ( Player player,
uint32  skill_id,
uint32 value,
uint32  max,
uint32  step 
)
904{
906}
@ PLAYERHOOK_ON_BEFORE_UPDATE_SKILL
Definition PlayerScript.h:208
virtual void OnPlayerBeforeUpdateSkill(Player *, uint32, uint32 &, uint32, uint32)
Definition PlayerScript.h:776

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeforeUpdateSkill(), and PLAYERHOOK_ON_BEFORE_UPDATE_SKILL.

◆ OnPlayerBeingCharmed()

void ScriptMgr::OnPlayerBeingCharmed ( Player player,
Unit charmer,
uint32  oldFactionId,
uint32  newFactionId 
)
333{
334 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BEING_CHARMED, script->OnPlayerBeingCharmed(player, charmer, oldFactionId, newFactionId));
335}
@ PLAYERHOOK_ON_BEING_CHARMED
Definition PlayerScript.h:92
virtual void OnPlayerBeingCharmed(Player *, Unit *, uint32, uint32)
Definition PlayerScript.h:398

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBeingCharmed(), and PLAYERHOOK_ON_BEING_CHARMED.

◆ OnPlayerBindToInstance()

void ScriptMgr::OnPlayerBindToInstance ( Player player,
Difficulty  difficulty,
uint32  mapid,
bool  permanent 
)
263{
264 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_BIND_TO_INSTANCE, script->OnPlayerBindToInstance(player, difficulty, mapid, permanent));
265}
@ PLAYERHOOK_ON_BIND_TO_INSTANCE
Definition PlayerScript.h:75
virtual void OnPlayerBindToInstance(Player *, Difficulty, uint32, bool)
Definition PlayerScript.h:347

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerBindToInstance(), and PLAYERHOOK_ON_BIND_TO_INSTANCE.

◆ OnPlayerCalculateTalentsPoints()

void ScriptMgr::OnPlayerCalculateTalentsPoints ( Player const *  player,
uint32 talentPointsForLevel 
)
58{
60}
@ PLAYERHOOK_ON_CALCULATE_TALENTS_POINTS
Definition PlayerScript.h:32
virtual void OnPlayerCalculateTalentsPoints(Player const *, uint32 &)
Definition PlayerScript.h:226

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCalculateTalentsPoints(), and PLAYERHOOK_ON_CALCULATE_TALENTS_POINTS.

◆ OnPlayerCanApplyEnchantment()

bool ScriptMgr::OnPlayerCanApplyEnchantment ( Player player,
Item item,
EnchantmentSlot  slot,
bool  apply,
bool  apply_dur,
bool  ignore_condition 
)
713{
714 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_APPLY_ENCHANTMENT, !script->OnPlayerCanApplyEnchantment(player, item, slot, apply, apply_dur, ignore_condition));
715}
@ PLAYERHOOK_CAN_APPLY_ENCHANTMENT
Definition PlayerScript.h:166
virtual bool OnPlayerCanApplyEnchantment(Player *, Item *, EnchantmentSlot, bool, bool, bool)
Definition PlayerScript.h:583

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanApplyEnchantment(), and PLAYERHOOK_CAN_APPLY_ENCHANTMENT.

◆ OnPlayerCanApplyEquipSpell()

bool ScriptMgr::OnPlayerCanApplyEquipSpell ( Player player,
SpellInfo const *  spellInfo,
Item item,
bool  apply,
bool  form_change 
)
668{
669 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_APPLY_EQUIP_SPELL, !script->OnPlayerCanApplyEquipSpell(player, spellInfo, item, apply, form_change));
670}
@ PLAYERHOOK_CAN_APPLY_EQUIP_SPELL
Definition PlayerScript.h:157
virtual bool OnPlayerCanApplyEquipSpell(Player *, SpellInfo const *, Item *, bool, bool)
Definition PlayerScript.h:565

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanApplyEquipSpell(), and PLAYERHOOK_CAN_APPLY_EQUIP_SPELL.

◆ OnPlayerCanApplyEquipSpellsItemSet()

bool ScriptMgr::OnPlayerCanApplyEquipSpellsItemSet ( Player player,
ItemSetEffect eff 
)
673{
675}
@ PLAYERHOOK_CAN_APPLY_EQUIP_SPELLS_ITEM_SET
Definition PlayerScript.h:158
virtual bool OnPlayerCanApplyEquipSpellsItemSet(Player *, ItemSetEffect *)
Definition PlayerScript.h:567

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanApplyEquipSpellsItemSet(), and PLAYERHOOK_CAN_APPLY_EQUIP_SPELLS_ITEM_SET.

◆ OnPlayerCanApplyWeaponDependentAuraDamageMod()

bool ScriptMgr::OnPlayerCanApplyWeaponDependentAuraDamageMod ( Player player,
Item item,
WeaponAttackType  attackType,
AuraEffect const *  aura,
bool  apply 
)
663{
665}
@ PLAYERHOOK_CAN_APPLY_WEAPON_DEPENDENT_AURA_DAMAGE_MOD
Definition PlayerScript.h:156
virtual bool OnPlayerCanApplyWeaponDependentAuraDamageMod(Player *, Item *, WeaponAttackType, AuraEffect const *, bool)
Definition PlayerScript.h:563

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanApplyWeaponDependentAuraDamageMod(), and PLAYERHOOK_CAN_APPLY_WEAPON_DEPENDENT_AURA_DAMAGE_MOD.

◆ OnPlayerCanAreaExploreAndOutdoor()

bool ScriptMgr::OnPlayerCanAreaExploreAndOutdoor ( Player player)
613{
615}
@ PLAYERHOOK_CAN_AREA_EXPLORE_AND_OUTDOOR
Definition PlayerScript.h:146
virtual bool OnPlayerCanAreaExploreAndOutdoor(Player *)
Definition PlayerScript.h:543

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanAreaExploreAndOutdoor(), and PLAYERHOOK_CAN_AREA_EXPLORE_AND_OUTDOOR.

◆ OnPlayerCanArmorDamageModifier()

bool ScriptMgr::OnPlayerCanArmorDamageModifier ( Player player)
653{
655}
@ PLAYERHOOK_CAN_ARMOR_DAMAGE_MODIFIER
Definition PlayerScript.h:154
virtual bool OnPlayerCanArmorDamageModifier(Player *)
Definition PlayerScript.h:559

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanArmorDamageModifier(), and PLAYERHOOK_CAN_ARMOR_DAMAGE_MODIFIER.

◆ OnPlayerCanBattleFieldPort()

bool ScriptMgr::OnPlayerCanBattleFieldPort ( Player player,
uint8  arenaType,
BattlegroundTypeId  BGTypeID,
uint8  action 
)
503{
505}
@ PLAYERHOOK_CAN_BATTLEFIELD_PORT
Definition PlayerScript.h:129
virtual bool OnPlayerCanBattleFieldPort(Player *, uint8, BattlegroundTypeId, uint8)
Definition PlayerScript.h:490

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanBattleFieldPort(), and PLAYERHOOK_CAN_BATTLEFIELD_PORT.

◆ OnPlayerCanCastItemCombatSpell()

bool ScriptMgr::OnPlayerCanCastItemCombatSpell ( Player player,
Unit target,
WeaponAttackType  attType,
uint32  procVictim,
uint32  procEx,
Item item,
ItemTemplate const *  proto 
)
678{
679 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_CAST_ITEM_COMBAT_SPELL, !script->OnPlayerCanCastItemCombatSpell(player, target, attType, procVictim, procEx, item, proto));
680}
@ PLAYERHOOK_CAN_CAST_ITEM_COMBAT_SPELL
Definition PlayerScript.h:159
virtual bool OnPlayerCanCastItemCombatSpell(Player *, Unit *, WeaponAttackType, uint32, uint32, Item *, ItemTemplate const *)
Definition PlayerScript.h:569

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanCastItemCombatSpell(), and PLAYERHOOK_CAN_CAST_ITEM_COMBAT_SPELL.

◆ OnPlayerCanCastItemUseSpell()

bool ScriptMgr::OnPlayerCanCastItemUseSpell ( Player player,
Item item,
SpellCastTargets const &  targets,
uint8  cast_count,
uint32  glyphIndex 
)
683{
684 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_CAST_ITEM_USE_SPELL, !script->OnPlayerCanCastItemUseSpell(player, item, targets, cast_count, glyphIndex));
685}
@ PLAYERHOOK_CAN_CAST_ITEM_USE_SPELL
Definition PlayerScript.h:160
virtual bool OnPlayerCanCastItemUseSpell(Player *, Item *, SpellCastTargets const &, uint8, uint32)
Definition PlayerScript.h:571

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanCastItemUseSpell(), and PLAYERHOOK_CAN_CAST_ITEM_USE_SPELL.

◆ OnPlayerCanEnterMap()

bool ScriptMgr::OnPlayerCanEnterMap ( Player player,
MapEntry const *  entry,
InstanceTemplate const *  instance,
MapDifficulty const *  mapDiff,
bool  loginCheck 
)
783{
785}
@ PLAYERHOOK_CAN_ENTER_MAP
Definition PlayerScript.h:179
virtual bool OnPlayerCanEnterMap(Player *, MapEntry const *, InstanceTemplate const *, MapDifficulty const *, bool)
Definition PlayerScript.h:612

References CALL_ENABLED_BOOLEAN_HOOKS, instance(), PlayerScript::OnPlayerCanEnterMap(), and PLAYERHOOK_CAN_ENTER_MAP.

◆ OnPlayerCanEquipItem()

bool ScriptMgr::OnPlayerCanEquipItem ( Player player,
uint8  slot,
uint16 dest,
Item pItem,
bool  swap,
bool  not_loading 
)
693{
694 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_EQUIP_ITEM, !script->OnPlayerCanEquipItem(player, slot, dest, pItem, swap, not_loading));
695}
@ PLAYERHOOK_CAN_EQUIP_ITEM
Definition PlayerScript.h:162
virtual bool OnPlayerCanEquipItem(Player *, uint8, uint16 &, Item *, bool, bool)
Definition PlayerScript.h:575

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanEquipItem(), and PLAYERHOOK_CAN_EQUIP_ITEM.

◆ OnPlayerCanFlyInZone()

bool ScriptMgr::OnPlayerCanFlyInZone ( Player player,
uint32  mapId,
uint32  zoneId,
SpellInfo const *  bySpell 
)
68{
70}
@ PLAYERHOOK_ON_CAN_PLAYER_FLY_IN_ZONE
Definition PlayerScript.h:196
virtual bool OnPlayerCanFlyInZone(Player *, uint32, uint32, SpellInfo const *)
This hook called before other CanFlyChecks are applied.
Definition PlayerScript.h:740

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanFlyInZone(), and PLAYERHOOK_ON_CAN_PLAYER_FLY_IN_ZONE.

◆ OnPlayerCanGiveLevel()

bool ScriptMgr::OnPlayerCanGiveLevel ( Player player,
uint8  newLevel 
)
919{
921}
@ PLAYERHOOK_ON_CAN_GIVE_LEVEL
Definition PlayerScript.h:211
virtual bool OnPlayerCanGiveLevel(Player *, uint8)
This hook is called, to cancel the normal level up flow.
Definition PlayerScript.h:796

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanGiveLevel(), and PLAYERHOOK_ON_CAN_GIVE_LEVEL.

◆ OnPlayerCanGiveMailRewardAtGiveLevel()

bool ScriptMgr::OnPlayerCanGiveMailRewardAtGiveLevel ( Player player,
uint8  level 
)
558{
560}
@ PLAYERHOOK_CAN_GIVE_MAIL_REWARD_AT_GIVE_LEVEL
Definition PlayerScript.h:137
virtual bool OnPlayerCanGiveMailRewardAtGiveLevel(Player *, uint8)
Definition PlayerScript.h:506

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanGiveMailRewardAtGiveLevel(), and PLAYERHOOK_CAN_GIVE_MAIL_REWARD_AT_GIVE_LEVEL.

◆ OnPlayerCanGroupAccept()

bool ScriptMgr::OnPlayerCanGroupAccept ( Player player,
Group group 
)
513{
515}
@ PLAYERHOOK_CAN_GROUP_ACCEPT
Definition PlayerScript.h:131
virtual bool OnPlayerCanGroupAccept(Player *, Group *)
Definition PlayerScript.h:494

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanGroupAccept(), and PLAYERHOOK_CAN_GROUP_ACCEPT.

◆ OnPlayerCanGroupInvite()

bool ScriptMgr::OnPlayerCanGroupInvite ( Player player,
std::string &  membername 
)
508{
510}
@ PLAYERHOOK_CAN_GROUP_INVITE
Definition PlayerScript.h:130
virtual bool OnPlayerCanGroupInvite(Player *, std::string &)
Definition PlayerScript.h:492

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanGroupInvite(), and PLAYERHOOK_CAN_GROUP_INVITE.

◆ OnPlayerCanInitTrade()

bool ScriptMgr::OnPlayerCanInitTrade ( Player player,
Player target 
)
788{
790}
@ PLAYERHOOK_CAN_INIT_TRADE
Definition PlayerScript.h:180
virtual bool OnPlayerCanInitTrade(Player *, Player *)
Definition PlayerScript.h:614

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanInitTrade(), and PLAYERHOOK_CAN_INIT_TRADE.

◆ OnPlayerCanJoinInArenaQueue()

bool ScriptMgr::OnPlayerCanJoinInArenaQueue ( Player player,
ObjectGuid  BattlemasterGuid,
uint8  arenaslot,
BattlegroundTypeId  BGTypeID,
uint8  joinAsGroup,
uint8  IsRated,
GroupJoinBattlegroundResult err 
)
498{
499 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_JOIN_IN_ARENA_QUEUE, !script->OnPlayerCanJoinInArenaQueue(player, BattlemasterGuid, arenaslot, BGTypeID, joinAsGroup, IsRated, err));
500}
@ PLAYERHOOK_CAN_JOIN_IN_ARENA_QUEUE
Definition PlayerScript.h:128
virtual bool OnPlayerCanJoinInArenaQueue(Player *, ObjectGuid, uint8, BattlegroundTypeId, uint8, uint8, GroupJoinBattlegroundResult &)
Definition PlayerScript.h:488

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanJoinInArenaQueue(), and PLAYERHOOK_CAN_JOIN_IN_ARENA_QUEUE.

◆ OnPlayerCanJoinInBattlegroundQueue()

bool ScriptMgr::OnPlayerCanJoinInBattlegroundQueue ( Player player,
ObjectGuid  BattlemasterGuid,
BattlegroundTypeId  BGTypeID,
uint8  joinAsGroup,
GroupJoinBattlegroundResult err 
)
418{
420}
@ PLAYERHOOK_CAN_JOIN_IN_BATTLEGROUND_QUEUE
Definition PlayerScript.h:122
virtual bool OnPlayerCanJoinInBattlegroundQueue(Player *, ObjectGuid, BattlegroundTypeId, uint8, GroupJoinBattlegroundResult &)
Definition PlayerScript.h:473

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanJoinInBattlegroundQueue(), and PLAYERHOOK_CAN_JOIN_IN_BATTLEGROUND_QUEUE.

◆ OnPlayerCanJoinLfg()

bool ScriptMgr::OnPlayerCanJoinLfg ( Player player,
uint8  roles,
lfg::LfgDungeonSet dungeons,
const std::string &  comment 
)
778{
779 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_JOIN_LFG, !script->OnPlayerCanJoinLfg(player, roles, dungeons, comment));
780}
@ PLAYERHOOK_CAN_JOIN_LFG
Definition PlayerScript.h:178
virtual bool OnPlayerCanJoinLfg(Player *, uint8, std::set< uint32 > &, const std::string &)
Definition PlayerScript.h:610

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanJoinLfg(), and PLAYERHOOK_CAN_JOIN_LFG.

◆ OnPlayerCanPlaceAuctionBid()

bool ScriptMgr::OnPlayerCanPlaceAuctionBid ( Player player,
AuctionEntry auction 
)
393{
395}
@ PLAYERHOOK_CAN_PLACE_AUCTION_BID
Definition PlayerScript.h:106
virtual bool OnPlayerCanPlaceAuctionBid(Player *, AuctionEntry *)
Definition PlayerScript.h:434

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanPlaceAuctionBid(), and PLAYERHOOK_CAN_PLACE_AUCTION_BID.

◆ OnPlayerCanRepopAtGraveyard()

bool ScriptMgr::OnPlayerCanRepopAtGraveyard ( Player player)
568{
570}
@ PLAYERHOOK_CAN_REPOP_AT_GRAVEYARD
Definition PlayerScript.h:139
virtual bool OnPlayerCanRepopAtGraveyard(Player *)
Definition PlayerScript.h:510

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanRepopAtGraveyard(), and PLAYERHOOK_CAN_REPOP_AT_GRAVEYARD.

◆ OnPlayerCanResurrect()

bool ScriptMgr::OnPlayerCanResurrect ( Player player)
914{
916}
@ PLAYERHOOK_CAN_RESURRECT
Definition PlayerScript.h:210
virtual bool OnPlayerCanResurrect(Player *)
This hook is called, to avoid player resurrect.
Definition PlayerScript.h:786

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanResurrect(), and PLAYERHOOK_CAN_RESURRECT.

◆ OnPlayerCanSaveEquipNewItem()

bool ScriptMgr::OnPlayerCanSaveEquipNewItem ( Player player,
Item item,
uint16  pos,
bool  update 
)
708{
710}
@ PLAYERHOOK_CAN_SAVE_EQUIP_NEW_ITEM
Definition PlayerScript.h:165
virtual bool OnPlayerCanSaveEquipNewItem(Player *, Item *, uint16, bool)
Definition PlayerScript.h:581

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanSaveEquipNewItem(), and PLAYERHOOK_CAN_SAVE_EQUIP_NEW_ITEM.

◆ OnPlayerCanSellItem()

bool ScriptMgr::OnPlayerCanSellItem ( Player player,
Item item,
Creature creature 
)
518{
520}
@ PLAYERHOOK_CAN_SELL_ITEM
Definition PlayerScript.h:132
virtual bool OnPlayerCanSellItem(Player *, Item *, Creature *)
Definition PlayerScript.h:496

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanSellItem(), and PLAYERHOOK_CAN_SELL_ITEM.

◆ OnPlayerCanSendErrorAlreadyLooted()

bool ScriptMgr::OnPlayerCanSendErrorAlreadyLooted ( Player player)
528{
530}
@ PLAYERHOOK_CAN_SEND_ERROR_ALREADY_LOOTED
Definition PlayerScript.h:204
virtual bool OnPlayerCanSendErrorAlreadyLooted(Player *)
This hook is called, to avoid displaying the error message that the body has already been stripped.
Definition PlayerScript.h:758

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanSendErrorAlreadyLooted(), and PLAYERHOOK_CAN_SEND_ERROR_ALREADY_LOOTED.

◆ OnPlayerCanSendMail()

bool ScriptMgr::OnPlayerCanSendMail ( Player player,
ObjectGuid  receiverGuid,
ObjectGuid  mailbox,
std::string &  subject,
std::string &  body,
uint32  money,
uint32  COD,
Item item 
)
523{
524 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_CAN_SEND_MAIL, !script->OnPlayerCanSendMail(player, receiverGuid, mailbox, subject, body, money, COD, item));
525}
@ PLAYERHOOK_CAN_SEND_MAIL
Definition PlayerScript.h:133
virtual bool OnPlayerCanSendMail(Player *, ObjectGuid, ObjectGuid, std::string &, std::string &, uint32, uint32, Item *)
Definition PlayerScript.h:498

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanSendMail(), and PLAYERHOOK_CAN_SEND_MAIL.

◆ OnPlayerCanSetTradeItem()

bool ScriptMgr::OnPlayerCanSetTradeItem ( Player player,
Item tradedItem,
uint8  tradeSlot 
)
793{
795}
@ PLAYERHOOK_CAN_SET_TRADE_ITEM
Definition PlayerScript.h:181
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 tr...
Definition PlayerScript.h:624

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanSetTradeItem(), and PLAYERHOOK_CAN_SET_TRADE_ITEM.

◆ OnPlayerCanUnequipItem()

bool ScriptMgr::OnPlayerCanUnequipItem ( Player player,
uint16  pos,
bool  swap 
)
698{
700}
@ PLAYERHOOK_CAN_UNEQUIP_ITEM
Definition PlayerScript.h:163
virtual bool OnPlayerCanUnequipItem(Player *, uint16, bool)
Definition PlayerScript.h:577

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUnequipItem(), and PLAYERHOOK_CAN_UNEQUIP_ITEM.

◆ OnPlayerCanUpdateSkill()

bool ScriptMgr::OnPlayerCanUpdateSkill ( Player player,
uint32  skillId 
)
899{
901}
@ PLAYERHOOK_ON_CAN_UPDATE_SKILL
Definition PlayerScript.h:207
virtual bool OnPlayerCanUpdateSkill(Player *, uint32)
Definition PlayerScript.h:775

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUpdateSkill(), and PLAYERHOOK_ON_CAN_UPDATE_SKILL.

◆ OnPlayerCanUseChat() [1/5]

bool ScriptMgr::OnPlayerCanUseChat ( Player player,
uint32  type,
uint32  language,
std::string &  msg 
)
818{
820}
@ PLAYERHOOK_CAN_PLAYER_USE_CHAT
Definition PlayerScript.h:186
virtual bool OnPlayerCanUseChat(Player *, uint32, uint32, std::string &)
This hook called before player sending message in default chat.
Definition PlayerScript.h:645

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseChat(), and PLAYERHOOK_CAN_PLAYER_USE_CHAT.

◆ OnPlayerCanUseChat() [2/5]

bool ScriptMgr::OnPlayerCanUseChat ( Player player,
uint32  type,
uint32  language,
std::string &  msg,
Channel channel 
)
838{
840}
@ PLAYERHOOK_CAN_PLAYER_USE_CHANNEL_CHAT
Definition PlayerScript.h:190

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseChat(), and PLAYERHOOK_CAN_PLAYER_USE_CHANNEL_CHAT.

◆ OnPlayerCanUseChat() [3/5]

bool ScriptMgr::OnPlayerCanUseChat ( Player player,
uint32  type,
uint32  language,
std::string &  msg,
Group group 
)
828{
830}
@ PLAYERHOOK_CAN_PLAYER_USE_GROUP_CHAT
Definition PlayerScript.h:188

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseChat(), and PLAYERHOOK_CAN_PLAYER_USE_GROUP_CHAT.

◆ OnPlayerCanUseChat() [4/5]

bool ScriptMgr::OnPlayerCanUseChat ( Player player,
uint32  type,
uint32  language,
std::string &  msg,
Guild guild 
)
833{
835}
@ PLAYERHOOK_CAN_PLAYER_USE_GUILD_CHAT
Definition PlayerScript.h:189

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseChat(), and PLAYERHOOK_CAN_PLAYER_USE_GUILD_CHAT.

◆ OnPlayerCanUseChat() [5/5]

bool ScriptMgr::OnPlayerCanUseChat ( Player player,
uint32  type,
uint32  language,
std::string &  msg,
Player receiver 
)
823{
825}
@ PLAYERHOOK_CAN_PLAYER_USE_PRIVATE_CHAT
Definition PlayerScript.h:187

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseChat(), and PLAYERHOOK_CAN_PLAYER_USE_PRIVATE_CHAT.

◆ OnPlayerCanUseItem()

bool ScriptMgr::OnPlayerCanUseItem ( Player player,
ItemTemplate const *  proto,
InventoryResult result 
)
703{
705}
@ PLAYERHOOK_CAN_USE_ITEM
Definition PlayerScript.h:164
virtual bool OnPlayerCanUseItem(Player *, ItemTemplate const *, InventoryResult &)
Definition PlayerScript.h:579

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCanUseItem(), and PLAYERHOOK_CAN_USE_ITEM.

◆ OnPlayerChat() [1/5]

void ScriptMgr::OnPlayerChat ( Player player,
uint32  type,
uint32  lang,
std::string &  msg 
)
168{
169 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CHAT, script->OnPlayerChat(player, type, lang, msg));
170}
@ PLAYERHOOK_ON_CHAT
Definition PlayerScript.h:58
virtual void OnPlayerChat(Player *, uint32, uint32, std::string &)
Definition PlayerScript.h:302

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerChat(), and PLAYERHOOK_ON_CHAT.

◆ OnPlayerChat() [2/5]

void ScriptMgr::OnPlayerChat ( Player player,
uint32  type,
uint32  lang,
std::string &  msg,
Channel channel 
)
193{
194 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CHAT_WITH_CHANNEL, script->OnPlayerChat(player, type, lang, msg, channel));
195}
@ PLAYERHOOK_ON_CHAT_WITH_CHANNEL
Definition PlayerScript.h:63

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerChat(), and PLAYERHOOK_ON_CHAT_WITH_CHANNEL.

◆ OnPlayerChat() [3/5]

void ScriptMgr::OnPlayerChat ( Player player,
uint32  type,
uint32  lang,
std::string &  msg,
Group group 
)
183{
184 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CHAT_WITH_GROUP, script->OnPlayerChat(player, type, lang, msg, group));
185}
@ PLAYERHOOK_ON_CHAT_WITH_GROUP
Definition PlayerScript.h:61

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerChat(), and PLAYERHOOK_ON_CHAT_WITH_GROUP.

◆ OnPlayerChat() [4/5]

void ScriptMgr::OnPlayerChat ( Player player,
uint32  type,
uint32  lang,
std::string &  msg,
Guild guild 
)
188{
189 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CHAT_WITH_GUILD, script->OnPlayerChat(player, type, lang, msg, guild));
190}
@ PLAYERHOOK_ON_CHAT_WITH_GUILD
Definition PlayerScript.h:62

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerChat(), and PLAYERHOOK_ON_CHAT_WITH_GUILD.

◆ OnPlayerChat() [5/5]

void ScriptMgr::OnPlayerChat ( Player player,
uint32  type,
uint32  lang,
std::string &  msg,
Player receiver 
)
178{
179 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CHAT_WITH_RECEIVER, script->OnPlayerChat(player, type, lang, msg, receiver));
180}
@ PLAYERHOOK_ON_CHAT_WITH_RECEIVER
Definition PlayerScript.h:60

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerChat(), and PLAYERHOOK_ON_CHAT_WITH_RECEIVER.

◆ OnPlayerCheckItemInSlotAtLoadInventory()

bool ScriptMgr::OnPlayerCheckItemInSlotAtLoadInventory ( Player player,
Item item,
uint8  slot,
uint8 err,
uint16 dest 
)
728{
730}
@ PLAYERHOOK_CHECK_ITEM_IN_SLOT_AT_LOAD_INVENTORY
Definition PlayerScript.h:168
virtual bool OnPlayerCheckItemInSlotAtLoadInventory(Player *, Item *, uint8, uint8 &, uint16 &)
Definition PlayerScript.h:589

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerCheckItemInSlotAtLoadInventory(), and PLAYERHOOK_CHECK_ITEM_IN_SLOT_AT_LOAD_INVENTORY.

◆ OnPlayerCompleteQuest()

void ScriptMgr::OnPlayerCompleteQuest ( Player player,
Quest const *  quest 
)
38{
40}
@ PLAYERHOOK_ON_PLAYER_COMPLETE_QUEST
Definition PlayerScript.h:36
virtual void OnPlayerCompleteQuest(Player *, Quest const *)
Definition PlayerScript.h:238

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCompleteQuest(), and PLAYERHOOK_ON_PLAYER_COMPLETE_QUEST.

◆ OnPlayerCreate()

void ScriptMgr::OnPlayerCreate ( Player player)
243{
245}
@ PLAYERHOOK_ON_CREATE
Definition PlayerScript.h:71
virtual void OnPlayerCreate(Player *)
Definition PlayerScript.h:335

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCreate(), and PLAYERHOOK_ON_CREATE.

◆ OnPlayerCreateItem()

void ScriptMgr::OnPlayerCreateItem ( Player player,
Item item,
uint32  count 
)
383{
385}
@ PLAYERHOOK_ON_CREATE_ITEM
Definition PlayerScript.h:104
virtual void OnPlayerCreateItem(Player *, Item *, uint32)
Definition PlayerScript.h:428

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCreateItem(), and PLAYERHOOK_ON_CREATE_ITEM.

◆ OnPlayerCreatureKill()

void ScriptMgr::OnPlayerCreatureKill ( Player killer,
Creature killed 
)
83{
85}
@ PLAYERHOOK_ON_CREATURE_KILL
Definition PlayerScript.h:39
virtual void OnPlayerCreatureKill(Player *, Creature *)
Definition PlayerScript.h:247

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCreatureKill(), and PLAYERHOOK_ON_CREATURE_KILL.

◆ OnPlayerCreatureKilledByPet()

void ScriptMgr::OnPlayerCreatureKilledByPet ( Player petOwner,
Creature killed 
)
88{
90}
@ PLAYERHOOK_ON_CREATURE_KILLED_BY_PET
Definition PlayerScript.h:40
virtual void OnPlayerCreatureKilledByPet(Player *, Creature *)
Definition PlayerScript.h:250

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCreatureKilledByPet(), and PLAYERHOOK_ON_CREATURE_KILLED_BY_PET.

◆ OnPlayerCriteriaProgress()

void ScriptMgr::OnPlayerCriteriaProgress ( Player player,
AchievementCriteriaEntry const *  criteria 
)
318{
320}
@ PLAYERHOOK_ON_CRITERIA_PROGRESS
Definition PlayerScript.h:86
virtual void OnPlayerCriteriaProgress(Player *, AchievementCriteriaEntry const *)
Definition PlayerScript.h:380

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCriteriaProgress(), and PLAYERHOOK_ON_CRITERIA_PROGRESS.

◆ OnPlayerCriteriaSave()

void ScriptMgr::OnPlayerCriteriaSave ( CharacterDatabaseTransaction  trans,
Player player,
uint16  critId,
CriteriaProgress  criteriaData 
)
328{
329 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CRITERIA_SAVE, script->OnPlayerCriteriaSave(trans, player, critId, criteriaData));
330}
@ PLAYERHOOK_ON_CRITERIA_SAVE
Definition PlayerScript.h:89
virtual void OnPlayerCriteriaSave(CharacterDatabaseTransaction, Player *, uint16, CriteriaProgress)
Definition PlayerScript.h:389

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCriteriaSave(), and PLAYERHOOK_ON_CRITERIA_SAVE.

◆ OnPlayerCustomScalingStatValue()

void ScriptMgr::OnPlayerCustomScalingStatValue ( Player player,
ItemTemplate const *  proto,
uint32 statType,
int32 val,
uint8  itemProtoStatNumber,
uint32  ScalingStatValue,
ScalingStatValuesEntry const *  ssv 
)
633{
634 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE, script->OnPlayerCustomScalingStatValue(player, proto, statType, val, itemProtoStatNumber, ScalingStatValue, ssv));
635}
@ PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE
Definition PlayerScript.h:150
virtual void OnPlayerCustomScalingStatValue(Player *, ItemTemplate const *, uint32 &, int32 &, uint8, uint32, ScalingStatValuesEntry const *)
Definition PlayerScript.h:551

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCustomScalingStatValue(), and PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE.

◆ OnPlayerCustomScalingStatValueBefore()

void ScriptMgr::OnPlayerCustomScalingStatValueBefore ( Player player,
ItemTemplate const *  proto,
uint8  slot,
bool  apply,
uint32 CustomScalingStatValue 
)
628{
630}
@ PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE_BEFORE
Definition PlayerScript.h:149
virtual void OnPlayerCustomScalingStatValueBefore(Player *, ItemTemplate const *, uint8, bool, uint32 &)
Definition PlayerScript.h:549

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerCustomScalingStatValueBefore(), and PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE_BEFORE.

◆ OnPlayerDelete()

void ScriptMgr::OnPlayerDelete ( ObjectGuid  guid,
uint32  accountId 
)
253{
255}
@ PLAYERHOOK_ON_DELETE
Definition PlayerScript.h:72
virtual void OnPlayerDelete(ObjectGuid, uint32)
Definition PlayerScript.h:338

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerDelete(), and PLAYERHOOK_ON_DELETE.

◆ OnPlayerDeleteFromDB()

void ScriptMgr::OnPlayerDeleteFromDB ( CharacterDatabaseTransaction  trans,
uint32  guid 
)
563{
565}
@ PLAYERHOOK_ON_DELETE_FROM_DB
Definition PlayerScript.h:138
virtual void OnPlayerDeleteFromDB(CharacterDatabaseTransaction, uint32)
Definition PlayerScript.h:508

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerDeleteFromDB(), and PLAYERHOOK_ON_DELETE_FROM_DB.

◆ OnPlayerDuelEnd()

void ScriptMgr::OnPlayerDuelEnd ( Player winner,
Player loser,
DuelCompleteType  type 
)
163{
165}
@ PLAYERHOOK_ON_DUEL_END
Definition PlayerScript.h:57
virtual void OnPlayerDuelEnd(Player *, Player *, DuelCompleteType)
Definition PlayerScript.h:299

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerDuelEnd(), and PLAYERHOOK_ON_DUEL_END.

◆ OnPlayerDuelRequest()

void ScriptMgr::OnPlayerDuelRequest ( Player target,
Player challenger 
)
153{
155}
@ PLAYERHOOK_ON_DUEL_REQUEST
Definition PlayerScript.h:55
virtual void OnPlayerDuelRequest(Player *, Player *)
Definition PlayerScript.h:293

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerDuelRequest(), and PLAYERHOOK_ON_DUEL_REQUEST.

◆ OnPlayerDuelStart()

void ScriptMgr::OnPlayerDuelStart ( Player player1,
Player player2 
)
158{
160}
@ PLAYERHOOK_ON_DUEL_START
Definition PlayerScript.h:56
virtual void OnPlayerDuelStart(Player *, Player *)
Definition PlayerScript.h:296

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerDuelStart(), and PLAYERHOOK_ON_DUEL_START.

◆ OnPlayerEmote()

void ScriptMgr::OnPlayerEmote ( Player player,
uint32  emote 
)
198{
200}
@ PLAYERHOOK_ON_EMOTE
Definition PlayerScript.h:64
virtual void OnPlayerEmote(Player *, uint32)
Definition PlayerScript.h:315

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerEmote(), and PLAYERHOOK_ON_EMOTE.

◆ OnPlayerEnterCombat()

void ScriptMgr::OnPlayerEnterCombat ( Player player,
Unit enemy 
)
848{
850}
@ PLAYERHOOK_ON_PLAYER_ENTER_COMBAT
Definition PlayerScript.h:192
virtual void OnPlayerEnterCombat(Player *, Unit *)
This hook called after player entering combat.
Definition PlayerScript.h:715

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerEnterCombat(), and PLAYERHOOK_ON_PLAYER_ENTER_COMBAT.

◆ OnPlayerEnterMap()

void ScriptMgr::OnPlayerEnterMap ( Map map,
Player player 
)
185{
186 ASSERT(map);
187 ASSERT(player);
188
190
191 ExecuteScript<PlayerScript>([=](PlayerScript* script)
192 {
193 script->OnPlayerMapChanged(player);
194 });
195
196 ForeachMaps<WorldMapScript>(map,
197 [&](WorldMapScript* script)
198 {
199 script->OnPlayerEnter(map, player);
200 });
201
202 ForeachMaps<InstanceMapScript>(map,
203 [&](InstanceMapScript* script)
204 {
205 script->OnPlayerEnter((InstanceMap*)map, player);
206 });
207
208 ForeachMaps<BattlegroundMapScript>(map,
209 [&](BattlegroundMapScript* script)
210 {
211 script->OnPlayerEnter((BattlegroundMap*)map, player);
212 });
213}
@ ALLMAPHOOK_ON_PLAYER_ENTER_ALL
Definition AllMapScript.h:26
virtual void OnPlayerEnterAll(Map *, Player *)
This hook called when a player enters any Map.
Definition AllMapScript.h:48
virtual void OnPlayerEnter(TMap *, Player *)
Definition ScriptObject.h:107
virtual void OnPlayerMapChanged(Player *)
Definition PlayerScript.h:356

References ALLMAPHOOK_ON_PLAYER_ENTER_ALL, ASSERT, CALL_ENABLED_HOOKS, AllMapScript::OnPlayerEnterAll(), and PlayerScript::OnPlayerMapChanged().

◆ OnPlayerEquip()

void ScriptMgr::OnPlayerEquip ( Player player,
Item it,
uint8  bag,
uint8  slot,
bool  update 
)
348{
349 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_EQUIP, script->OnPlayerEquip(player, it, bag, slot, update));
350}
@ PLAYERHOOK_ON_EQUIP
Definition PlayerScript.h:95
virtual void OnPlayerEquip(Player *, Item *, uint8, uint8, bool)
Definition PlayerScript.h:407

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerEquip(), and PLAYERHOOK_ON_EQUIP.

◆ OnPlayerFailedDelete()

void ScriptMgr::OnPlayerFailedDelete ( ObjectGuid  guid,
uint32  accountId 
)
258{
260}
@ PLAYERHOOK_ON_FAILED_DELETE
Definition PlayerScript.h:73
virtual void OnPlayerFailedDelete(ObjectGuid, uint32)
Definition PlayerScript.h:341

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerFailedDelete(), and PLAYERHOOK_ON_FAILED_DELETE.

◆ OnPlayerFfaPvpStateUpdate()

void ScriptMgr::OnPlayerFfaPvpStateUpdate ( Player player,
bool  result 
)
758{
760}
@ PLAYERHOOK_ON_FFA_PVP_STATE_UPDATE
Definition PlayerScript.h:174
virtual void OnPlayerFfaPvpStateUpdate(Player *, bool)
Definition PlayerScript.h:602

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerFfaPvpStateUpdate(), and PLAYERHOOK_ON_FFA_PVP_STATE_UPDATE.

◆ OnPlayerFirstLogin()

void ScriptMgr::OnPlayerFirstLogin ( Player player)
408{
410}
@ PLAYERHOOK_ON_FIRST_LOGIN
Definition PlayerScript.h:120
virtual void OnPlayerFirstLogin(Player *)
Definition PlayerScript.h:469

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerFirstLogin(), and PLAYERHOOK_ON_FIRST_LOGIN.

◆ OnPlayerForgotSpell()

void ScriptMgr::OnPlayerForgotSpell ( Player player,
uint32  spellID 
)
148{
150}
@ PLAYERHOOK_ON_FORGOT_SPELL
Definition PlayerScript.h:54
virtual void OnPlayerForgotSpell(Player *, uint32)
Definition PlayerScript.h:290

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerForgotSpell(), and PLAYERHOOK_ON_FORGOT_SPELL.

◆ OnPlayerFreeTalentPointsChanged()

void ScriptMgr::OnPlayerFreeTalentPointsChanged ( Player player,
uint32  newPoints 
)
103{
105}
@ PLAYERHOOK_ON_FREE_TALENT_POINTS_CHANGED
Definition PlayerScript.h:43
virtual void OnPlayerFreeTalentPointsChanged(Player *, uint32)
Definition PlayerScript.h:259

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerFreeTalentPointsChanged(), and PLAYERHOOK_ON_FREE_TALENT_POINTS_CHANGED.

◆ OnPlayerGetArenaPersonalRating()

void ScriptMgr::OnPlayerGetArenaPersonalRating ( Player player,
uint8  slot,
uint32 result 
)
743{
745}
@ PLAYERHOOK_ON_GET_ARENA_PERSONAL_RATING
Definition PlayerScript.h:171
virtual void OnPlayerGetArenaPersonalRating(Player *, uint8, uint32 &)
Definition PlayerScript.h:595

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetArenaPersonalRating(), and PLAYERHOOK_ON_GET_ARENA_PERSONAL_RATING.

◆ OnPlayerGetArenaTeamId()

void ScriptMgr::OnPlayerGetArenaTeamId ( Player player,
uint8  slot,
uint32 result 
)
748{
750}
@ PLAYERHOOK_ON_GET_ARENA_TEAM_ID
Definition PlayerScript.h:172
virtual void OnPlayerGetArenaTeamId(Player *, uint8, uint32 &)
Definition PlayerScript.h:597

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetArenaTeamId(), and PLAYERHOOK_ON_GET_ARENA_TEAM_ID.

◆ OnPlayerGetFeralApBonus()

void ScriptMgr::OnPlayerGetFeralApBonus ( Player player,
int32 feral_bonus,
int32  dpsMod,
ItemTemplate const *  proto,
ScalingStatValuesEntry const *  ssv 
)
658{
659 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_GET_FERAL_AP_BONUS, script->OnPlayerGetFeralApBonus(player, feral_bonus, dpsMod, proto, ssv));
660}
@ PLAYERHOOK_ON_GET_FERAL_AP_BONUS
Definition PlayerScript.h:155
virtual void OnPlayerGetFeralApBonus(Player *, int32 &, int32, ItemTemplate const *, ScalingStatValuesEntry const *)
Definition PlayerScript.h:561

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetFeralApBonus(), and PLAYERHOOK_ON_GET_FERAL_AP_BONUS.

◆ OnPlayerGetMaxPersonalArenaRatingRequirement()

void ScriptMgr::OnPlayerGetMaxPersonalArenaRatingRequirement ( Player const *  player,
uint32  minSlot,
uint32 maxArenaRating 
) const
363{
365}
@ PLAYERHOOK_ON_GET_MAX_PERSONAL_ARENA_RATING_REQUIREMENT
Definition PlayerScript.h:100
virtual void OnPlayerGetMaxPersonalArenaRatingRequirement(Player const *, uint32, uint32 &) const
Definition PlayerScript.h:416

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetMaxPersonalArenaRatingRequirement(), and PLAYERHOOK_ON_GET_MAX_PERSONAL_ARENA_RATING_REQUIREMENT.

◆ OnPlayerGetMaxSkillValue()

void ScriptMgr::OnPlayerGetMaxSkillValue ( Player player,
uint32  skill,
int32 result,
bool  IsPure 
)
588{
590}
@ PLAYERHOOK_ON_GET_MAX_SKILL_VALUE
Definition PlayerScript.h:141
virtual void OnPlayerGetMaxSkillValue(Player *, uint32, int32 &, bool)
Definition PlayerScript.h:514

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetMaxSkillValue(), and PLAYERHOOK_ON_GET_MAX_SKILL_VALUE.

◆ OnPlayerGetMaxSkillValueForLevel()

void ScriptMgr::OnPlayerGetMaxSkillValueForLevel ( Player player,
uint16 result 
)
768{
770}
@ PLAYERHOOK_ON_GET_MAX_SKILL_VALUE_FOR_LEVEL
Definition PlayerScript.h:176
virtual void OnPlayerGetMaxSkillValueForLevel(Player *, uint16 &)
Definition PlayerScript.h:606

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetMaxSkillValueForLevel(), and PLAYERHOOK_ON_GET_MAX_SKILL_VALUE_FOR_LEVEL.

◆ OnPlayerGetQuestRate()

void ScriptMgr::OnPlayerGetQuestRate ( Player player,
float &  result 
)
718{
720}
@ PLAYERHOOK_ON_GET_QUEST_RATE
Definition PlayerScript.h:195
virtual void OnPlayerGetQuestRate(Player *, float &)
Definition PlayerScript.h:585

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGetQuestRate(), and PLAYERHOOK_ON_GET_QUEST_RATE.

◆ OnPlayerGiveXP()

void ScriptMgr::OnPlayerGiveXP ( Player player,
uint32 amount,
Unit victim,
uint8  xpSource 
)
128{
129 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_GIVE_EXP, script->OnPlayerGiveXP(player, amount, victim, xpSource));
130}
@ PLAYERHOOK_ON_GIVE_EXP
Definition PlayerScript.h:50
virtual void OnPlayerGiveXP(Player *, uint32 &, Unit *, uint8)
Definition PlayerScript.h:278

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGiveXP(), and PLAYERHOOK_ON_GIVE_EXP.

◆ OnPlayerGossipSelect()

void ScriptMgr::OnPlayerGossipSelect ( Player player,
uint32  menu_id,
uint32  sender,
uint32  action 
)
28{
29 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_GOSSIP_SELECT, script->OnPlayerGossipSelect(player, menu_id, sender, action));
30}
@ PLAYERHOOK_ON_GOSSIP_SELECT
Definition PlayerScript.h:90
virtual void OnPlayerGossipSelect(Player *, uint32, uint32, uint32)
Definition PlayerScript.h:392

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGossipSelect(), and PLAYERHOOK_ON_GOSSIP_SELECT.

◆ OnPlayerGossipSelectCode()

void ScriptMgr::OnPlayerGossipSelectCode ( Player player,
uint32  menu_id,
uint32  sender,
uint32  action,
const char *  code 
)
33{
34 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_GOSSIP_SELECT_CODE, script->OnPlayerGossipSelectCode(player, menu_id, sender, action, code));
35}
@ PLAYERHOOK_ON_GOSSIP_SELECT_CODE
Definition PlayerScript.h:91
virtual void OnPlayerGossipSelectCode(Player *, uint32, uint32, uint32, const char *)
Definition PlayerScript.h:395

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGossipSelectCode(), and PLAYERHOOK_ON_GOSSIP_SELECT_CODE.

◆ OnPlayerGroupRollRewardItem()

void ScriptMgr::OnPlayerGroupRollRewardItem ( Player player,
Item item,
uint32  count,
RollVote  voteType,
Roll roll 
)
398{
400}
@ PLAYERHOOK_ON_GROUP_ROLL_REWARD_ITEM
Definition PlayerScript.h:107
virtual void OnPlayerGroupRollRewardItem(Player *, Item *, uint32, RollVote, Roll *)
Definition PlayerScript.h:437

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerGroupRollRewardItem(), and PLAYERHOOK_ON_GROUP_ROLL_REWARD_ITEM.

◆ OnPlayerHasActivePowerType()

bool ScriptMgr::OnPlayerHasActivePowerType ( Player const *  player,
Powers  power 
)
593{
595}
@ PLAYERHOOK_ON_PLAYER_HAS_ACTIVE_POWER_TYPE
Definition PlayerScript.h:142
virtual bool OnPlayerHasActivePowerType(Player const *, Powers)
Definition PlayerScript.h:516

References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, PlayerScript::OnPlayerHasActivePowerType(), and PLAYERHOOK_ON_PLAYER_HAS_ACTIVE_POWER_TYPE.

◆ OnPlayerIsClass()

Optional< bool > ScriptMgr::OnPlayerIsClass ( Player const *  player,
Classes  playerClass,
ClassContext  context 
)
573{
575 return {};
576
577 for (auto const& script : ScriptRegistry<PlayerScript>::EnabledHooks[PLAYERHOOK_ON_PLAYER_IS_CLASS])
578 {
579 Optional<bool> scriptResult = script->OnPlayerIsClass(player, unitClass, context);
580 if (scriptResult)
581 return scriptResult;
582 }
583
584 return {};
585}
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition Optional.h:24
@ PLAYERHOOK_ON_PLAYER_IS_CLASS
Definition PlayerScript.h:140

References PLAYERHOOK_ON_PLAYER_IS_CLASS.

◆ OnPlayerIsFFAPvP()

void ScriptMgr::OnPlayerIsFFAPvP ( Player player,
bool &  result 
)
753{
755}
@ PLAYERHOOK_ON_IS_FFA_PVP
Definition PlayerScript.h:173
virtual void OnPlayerIsFFAPvP(Player *, bool &)
Definition PlayerScript.h:599

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerIsFFAPvP(), and PLAYERHOOK_ON_IS_FFA_PVP.

◆ OnPlayerIsPvP()

void ScriptMgr::OnPlayerIsPvP ( Player player,
bool &  result 
)
763{
765}
@ PLAYERHOOK_ON_IS_PVP
Definition PlayerScript.h:175
virtual void OnPlayerIsPvP(Player *, bool &)
Definition PlayerScript.h:604

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerIsPvP(), and PLAYERHOOK_ON_IS_PVP.

◆ OnPlayerJoinArena()

void ScriptMgr::OnPlayerJoinArena ( Player player)
358{
360}
@ PLAYERHOOK_ON_PLAYER_JOIN_ARENA
Definition PlayerScript.h:97
virtual void OnPlayerJoinArena(Player *)
Definition PlayerScript.h:413

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerJoinArena(), and PLAYERHOOK_ON_PLAYER_JOIN_ARENA.

◆ OnPlayerJoinBG()

void ScriptMgr::OnPlayerJoinBG ( Player player)
353{
355}
@ PLAYERHOOK_ON_PLAYER_JOIN_BG
Definition PlayerScript.h:96
virtual void OnPlayerJoinBG(Player *)
Definition PlayerScript.h:410

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerJoinBG(), and PLAYERHOOK_ON_PLAYER_JOIN_BG.

◆ OnPlayerJustDied()

void ScriptMgr::OnPlayerJustDied ( Player player)
53{
55}
@ PLAYERHOOK_ON_PLAYER_JUST_DIED
Definition PlayerScript.h:31
virtual void OnPlayerJustDied(Player *)
Definition PlayerScript.h:223

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerJustDied(), and PLAYERHOOK_ON_PLAYER_JUST_DIED.

◆ OnPlayerKilledByCreature()

void ScriptMgr::OnPlayerKilledByCreature ( Creature killer,
Player killed 
)
93{
95}
@ PLAYERHOOK_ON_PLAYER_KILLED_BY_CREATURE
Definition PlayerScript.h:41
virtual void OnPlayerKilledByCreature(Creature *, Player *)
Definition PlayerScript.h:253

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerKilledByCreature(), and PLAYERHOOK_ON_PLAYER_KILLED_BY_CREATURE.

◆ OnPlayerLearnSpell()

void ScriptMgr::OnPlayerLearnSpell ( Player player,
uint32  spellID 
)
143{
145}
@ PLAYERHOOK_ON_LEARN_SPELL
Definition PlayerScript.h:53
virtual void OnPlayerLearnSpell(Player *, uint32)
Definition PlayerScript.h:287

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLearnSpell(), and PLAYERHOOK_ON_LEARN_SPELL.

◆ OnPlayerLearnTalents()

void ScriptMgr::OnPlayerLearnTalents ( Player player,
uint32  talentId,
uint32  talentRank,
uint32  spellid 
)
843{
844 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_PLAYER_LEARN_TALENTS, script->OnPlayerLearnTalents(player, talentId, talentRank, spellid));
845}
@ PLAYERHOOK_ON_PLAYER_LEARN_TALENTS
Definition PlayerScript.h:191
virtual void OnPlayerLearnTalents(Player *, uint32, uint32, uint32)
This hook called after player learning talents.
Definition PlayerScript.h:707

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLearnTalents(), and PLAYERHOOK_ON_PLAYER_LEARN_TALENTS.

◆ OnPlayerLeaveCombat()

void ScriptMgr::OnPlayerLeaveCombat ( Player player)
853{
855}
@ PLAYERHOOK_ON_PLAYER_LEAVE_COMBAT
Definition PlayerScript.h:193
virtual void OnPlayerLeaveCombat(Player *)
This hook called after player leave combat.
Definition PlayerScript.h:722

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLeaveCombat(), and PLAYERHOOK_ON_PLAYER_LEAVE_COMBAT.

◆ OnPlayerLeaveMap()

void ScriptMgr::OnPlayerLeaveMap ( Map map,
Player player 
)
216{
217 ASSERT(map);
218 ASSERT(player);
219
221
222 ForeachMaps<WorldMapScript>(map,
223 [&](WorldMapScript* script)
224 {
225 script->OnPlayerLeave(map, player);
226 });
227
228 ForeachMaps<InstanceMapScript>(map,
229 [&](InstanceMapScript* script)
230 {
231 script->OnPlayerLeave((InstanceMap*)map, player);
232 });
233
234 ForeachMaps<BattlegroundMapScript>(map,
235 [&](BattlegroundMapScript* script)
236 {
237 script->OnPlayerLeave((BattlegroundMap*)map, player);
238 });
239}
@ ALLMAPHOOK_ON_PLAYER_LEAVE_ALL
Definition AllMapScript.h:27
virtual void OnPlayerLeaveAll(Map *, Player *)
This hook called when a player leave any Map.
Definition AllMapScript.h:56
virtual void OnPlayerLeave(TMap *, Player *)
Definition ScriptObject.h:110

References ALLMAPHOOK_ON_PLAYER_LEAVE_ALL, ASSERT, CALL_ENABLED_HOOKS, MapScript< TMap >::OnPlayerLeave(), and AllMapScript::OnPlayerLeaveAll().

◆ OnPlayerLevelChanged()

void ScriptMgr::OnPlayerLevelChanged ( Player player,
uint8  oldLevel 
)
98{
100}
@ PLAYERHOOK_ON_LEVEL_CHANGED
Definition PlayerScript.h:42
virtual void OnPlayerLevelChanged(Player *, uint8)
Definition PlayerScript.h:256

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLevelChanged(), and PLAYERHOOK_ON_LEVEL_CHANGED.

◆ OnPlayerLoadFromDB()

void ScriptMgr::OnPlayerLoadFromDB ( Player player)
228{
230}
@ PLAYERHOOK_ON_LOAD_FROM_DB
Definition PlayerScript.h:67
virtual void OnPlayerLoadFromDB(Player *)
Definition PlayerScript.h:323

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLoadFromDB(), and PLAYERHOOK_ON_LOAD_FROM_DB.

◆ OnPlayerLogin()

void ScriptMgr::OnPlayerLogin ( Player player)
223{
225}
@ PLAYERHOOK_ON_LOGIN
Definition PlayerScript.h:68
virtual void OnPlayerLogin(Player *)
Definition PlayerScript.h:326

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLogin(), and PLAYERHOOK_ON_LOGIN.

◆ OnPlayerLogout()

void ScriptMgr::OnPlayerLogout ( Player player)
238{
240}
@ PLAYERHOOK_ON_LOGOUT
Definition PlayerScript.h:70
virtual void OnPlayerLogout(Player *)
Definition PlayerScript.h:332

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLogout(), and PLAYERHOOK_ON_LOGOUT.

◆ OnPlayerLootItem()

void ScriptMgr::OnPlayerLootItem ( Player player,
Item item,
uint32  count,
ObjectGuid  lootguid 
)
368{
369 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_LOOT_ITEM, script->OnPlayerLootItem(player, item, count, lootguid));
370}
@ PLAYERHOOK_ON_LOOT_ITEM
Definition PlayerScript.h:101
virtual void OnPlayerLootItem(Player *, Item *, uint32, ObjectGuid)
Definition PlayerScript.h:419

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerLootItem(), and PLAYERHOOK_ON_LOOT_ITEM.

◆ OnPlayerMoneyChanged()

void ScriptMgr::OnPlayerMoneyChanged ( Player player,
int32 amount 
)
118{
120}
@ PLAYERHOOK_ON_MONEY_CHANGED
Definition PlayerScript.h:48
virtual void OnPlayerMoneyChanged(Player *, int32 &)
Definition PlayerScript.h:272

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerMoneyChanged(), and PLAYERHOOK_ON_MONEY_CHANGED.

◆ OnPlayerMove()

void ScriptMgr::OnPlayerMove ( Player player,
MovementInfo  movementInfo,
uint32  opcode 
)
23{
25}
@ MOVEMENTHOOK_ON_PLAYER_MOVE
Definition MovementHandlerScript.h:27
Definition MovementHandlerScript.h:32
virtual void OnPlayerMove(Player *, MovementInfo, uint32)
Definition MovementHandlerScript.h:38

References CALL_ENABLED_HOOKS, MOVEMENTHOOK_ON_PLAYER_MOVE, and MovementHandlerScript::OnPlayerMove().

◆ OnPlayerNotAvoidSatisfy()

bool ScriptMgr::OnPlayerNotAvoidSatisfy ( Player player,
DungeonProgressionRequirements const *  ar,
uint32  target_map,
bool  report 
)
733{
735}
@ PLAYERHOOK_NOT_AVOID_SATISFY
Definition PlayerScript.h:169
virtual bool OnPlayerNotAvoidSatisfy(Player *, DungeonProgressionRequirements const *, uint32, bool)
Definition PlayerScript.h:591

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerNotAvoidSatisfy(), and PLAYERHOOK_NOT_AVOID_SATISFY.

◆ OnPlayerNotSetArenaTeamInfoField()

bool ScriptMgr::OnPlayerNotSetArenaTeamInfoField ( Player player,
uint8  slot,
ArenaTeamInfoType  type,
uint32  value 
)
773{
775}
@ PLAYERHOOK_NOT_SET_ARENA_TEAM_INFO_FIELD
Definition PlayerScript.h:177
virtual bool OnPlayerNotSetArenaTeamInfoField(Player *, uint8, ArenaTeamInfoType, uint32)
Definition PlayerScript.h:608

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerNotSetArenaTeamInfoField(), and PLAYERHOOK_NOT_SET_ARENA_TEAM_INFO_FIELD.

◆ OnPlayerNotVisibleGloballyFor()

bool ScriptMgr::OnPlayerNotVisibleGloballyFor ( Player player,
Player const *  u 
)
738{
740}
@ PLAYERHOOK_NOT_VISIBLE_GLOBALLY_FOR
Definition PlayerScript.h:170
virtual bool OnPlayerNotVisibleGloballyFor(Player *, Player const *)
Definition PlayerScript.h:593

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerNotVisibleGloballyFor(), and PLAYERHOOK_NOT_VISIBLE_GLOBALLY_FOR.

◆ OnPlayerPassedQuestKilledMonsterCredit()

bool ScriptMgr::OnPlayerPassedQuestKilledMonsterCredit ( Player player,
Quest const *  qinfo,
uint32  entry,
uint32  real_entry,
ObjectGuid  guid 
)
723{
725}
@ PLAYERHOOK_PASSED_QUEST_KILLED_MONSTER_CREDIT
Definition PlayerScript.h:167
virtual bool OnPlayerPassedQuestKilledMonsterCredit(Player *, Quest const *, uint32, uint32, ObjectGuid)
Definition PlayerScript.h:587

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerPassedQuestKilledMonsterCredit(), and PLAYERHOOK_PASSED_QUEST_KILLED_MONSTER_CREDIT.

◆ OnPlayerPetitionBuy()

void ScriptMgr::OnPlayerPetitionBuy ( Player player,
Creature creature,
uint32 charterid,
uint32 cost,
uint32 type 
)
543{
544 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_PETITION_BUY, script->OnPlayerPetitionBuy(player, creature, charterid, cost, type));
545}
@ PLAYERHOOK_PETITION_BUY
Definition PlayerScript.h:134
virtual void OnPlayerPetitionBuy(Player *, Creature *, uint32 &, uint32 &, uint32 &)
Definition PlayerScript.h:500

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerPetitionBuy(), and PLAYERHOOK_PETITION_BUY.

◆ OnPlayerPetitionShowList()

void ScriptMgr::OnPlayerPetitionShowList ( Player player,
Creature creature,
uint32 CharterEntry,
uint32 CharterDispayID,
uint32 CharterCost 
)
548{
549 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_PETITION_SHOW_LIST, script->OnPlayerPetitionShowList(player, creature, CharterEntry, CharterDispayID, CharterCost));
550}
@ PLAYERHOOK_PETITION_SHOW_LIST
Definition PlayerScript.h:135
virtual void OnPlayerPetitionShowList(Player *, Creature *, uint32 &, uint32 &, uint32 &)
Definition PlayerScript.h:502

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerPetitionShowList(), and PLAYERHOOK_PETITION_SHOW_LIST.

◆ OnPlayerPVPFlagChange()

void ScriptMgr::OnPlayerPVPFlagChange ( Player player,
bool  state 
)
78{
80}
@ PLAYERHOOK_ON_PLAYER_PVP_FLAG_CHANGE
Definition PlayerScript.h:38
virtual void OnPlayerPVPFlagChange(Player *, bool)
Definition PlayerScript.h:244

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerPVPFlagChange(), and PLAYERHOOK_ON_PLAYER_PVP_FLAG_CHANGE.

◆ OnPlayerPVPKill()

void ScriptMgr::OnPlayerPVPKill ( Player killer,
Player killed 
)
73{
75}
@ PLAYERHOOK_ON_PVP_KILL
Definition PlayerScript.h:37
virtual void OnPlayerPVPKill(Player *, Player *)
Definition PlayerScript.h:241

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerPVPKill(), and PLAYERHOOK_ON_PVP_KILL.

◆ OnPlayerQuestAbandon()

void ScriptMgr::OnPlayerQuestAbandon ( Player player,
uint32  questId 
)
858{
860}
@ PLAYERHOOK_ON_QUEST_ABANDON
Definition PlayerScript.h:194
virtual void OnPlayerQuestAbandon(Player *, uint32)
This hook called after player abandoning quest.
Definition PlayerScript.h:730

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerQuestAbandon(), and PLAYERHOOK_ON_QUEST_ABANDON.

◆ OnPlayerQuestComputeXP()

void ScriptMgr::OnPlayerQuestComputeXP ( Player player,
Quest const *  quest,
uint32 xpValue 
)
488{
490}
@ PLAYERHOOK_ON_QUEST_COMPUTE_EXP
Definition PlayerScript.h:110
virtual void OnPlayerQuestComputeXP(Player *, Quest const *, uint32 &)
Definition PlayerScript.h:446

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerQuestComputeXP(), and PLAYERHOOK_ON_QUEST_COMPUTE_EXP.

◆ OnPlayerQuestRewardItem()

void ScriptMgr::OnPlayerQuestRewardItem ( Player player,
Item item,
uint32  count 
)
388{
390}
@ PLAYERHOOK_ON_QUEST_REWARD_ITEM
Definition PlayerScript.h:105
virtual void OnPlayerQuestRewardItem(Player *, Item *, uint32)
Definition PlayerScript.h:431

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerQuestRewardItem(), and PLAYERHOOK_ON_QUEST_REWARD_ITEM.

◆ OnPlayerQueueRandomDungeon()

void ScriptMgr::OnPlayerQueueRandomDungeon ( Player player,
uint32 rDungeonId 
)
293{
295}
@ PLAYERHOOK_ON_QUEUE_RANDOM_DUNGEON
Definition PlayerScript.h:82
virtual void OnPlayerQueueRandomDungeon(Player *, uint32 &)
Definition PlayerScript.h:368

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerQueueRandomDungeon(), and PLAYERHOOK_ON_QUEUE_RANDOM_DUNGEON.

◆ OnPlayerReleasedGhost()

void ScriptMgr::OnPlayerReleasedGhost ( Player player)
63{
65}
@ PLAYERHOOK_ON_PLAYER_RELEASED_GHOST
Definition PlayerScript.h:33
virtual void OnPlayerReleasedGhost(Player *)
Definition PlayerScript.h:229

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerReleasedGhost(), and PLAYERHOOK_ON_PLAYER_RELEASED_GHOST.

◆ OnPlayerRemoveFromBattleground()

void ScriptMgr::OnPlayerRemoveFromBattleground ( Player player,
Battleground bg 
)
298{
300}
@ PLAYERHOOK_ON_REMOVE_FROM_BATTLEGROUND
Definition PlayerScript.h:83
virtual void OnPlayerRemoveFromBattleground(Player *, Battleground *)
Definition PlayerScript.h:371

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerRemoveFromBattleground(), and PLAYERHOOK_ON_REMOVE_FROM_BATTLEGROUND.

◆ OnPlayerReputationChange()

bool ScriptMgr::OnPlayerReputationChange ( Player player,
uint32  factionID,
int32 standing,
bool  incremental 
)
133{
134 CALL_ENABLED_BOOLEAN_HOOKS(PlayerScript, PLAYERHOOK_ON_REPUTATION_CHANGE, !script->OnPlayerReputationChange(player, factionID, standing, incremental));
135}
@ PLAYERHOOK_ON_REPUTATION_CHANGE
Definition PlayerScript.h:51
virtual bool OnPlayerReputationChange(Player *, uint32, int32 &, bool)
Definition PlayerScript.h:281

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerReputationChange(), and PLAYERHOOK_ON_REPUTATION_CHANGE.

◆ OnPlayerReputationRankChange()

void ScriptMgr::OnPlayerReputationRankChange ( Player player,
uint32  factionID,
ReputationRank  newRank,
ReputationRank  oldRank,
bool  increased 
)
138{
139 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_REPUTATION_RANK_CHANGE, script->OnPlayerReputationRankChange(player, factionID, newRank, oldRank, increased));
140}
@ PLAYERHOOK_ON_REPUTATION_RANK_CHANGE
Definition PlayerScript.h:52
virtual void OnPlayerReputationRankChange(Player *, uint32, ReputationRank, ReputationRank, bool)
Definition PlayerScript.h:284

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerReputationRankChange(), and PLAYERHOOK_ON_REPUTATION_RANK_CHANGE.

◆ OnPlayerResurrect()

void ScriptMgr::OnPlayerResurrect ( Player player,
float  restore_percent,
bool  applySickness 
)
808{
809 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_PLAYER_RESURRECT, script->OnPlayerResurrect(player, restore_percent, applySickness));
810}
@ PLAYERHOOK_ON_PLAYER_RESURRECT
Definition PlayerScript.h:184
virtual void OnPlayerResurrect(Player *, float, bool)
Definition PlayerScript.h:630

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerResurrect(), and PLAYERHOOK_ON_PLAYER_RESURRECT.

◆ OnPlayerRewardKillRewarder()

void ScriptMgr::OnPlayerRewardKillRewarder ( Player player,
KillRewarder rewarder,
bool  isDungeon,
float &  rate 
)
553{
555}
@ PLAYERHOOK_ON_REWARD_KILL_REWARDER
Definition PlayerScript.h:136
virtual void OnPlayerRewardKillRewarder(Player *, KillRewarder *, bool, float &)
Definition PlayerScript.h:504

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerRewardKillRewarder(), and PLAYERHOOK_ON_REWARD_KILL_REWARDER.

◆ OnPlayerSave()

void ScriptMgr::OnPlayerSave ( Player player)
248{
250}
@ PLAYERHOOK_ON_SAVE
Definition PlayerScript.h:74
virtual void OnPlayerSave(Player *)
Definition PlayerScript.h:344

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSave(), and PLAYERHOOK_ON_SAVE.

◆ OnPlayerSendInitialPacketsBeforeAddToMap()

void ScriptMgr::OnPlayerSendInitialPacketsBeforeAddToMap ( Player player,
WorldPacket data 
)
43{
45}
@ PLAYERHOOK_ON_SEND_INITIAL_PACKETS_BEFORE_ADD_TO_MAP
Definition PlayerScript.h:34
virtual void OnPlayerSendInitialPacketsBeforeAddToMap(Player *, WorldPacket &)
Definition PlayerScript.h:232

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSendInitialPacketsBeforeAddToMap(), and PLAYERHOOK_ON_SEND_INITIAL_PACKETS_BEFORE_ADD_TO_MAP.

◆ OnPlayerSendListInventory()

void ScriptMgr::OnPlayerSendListInventory ( Player player,
ObjectGuid  vendorGuid,
uint32 vendorEntry 
)
924{
926}
@ PLAYERHOOK_ON_SEND_LIST_INVENTORY
Definition PlayerScript.h:212
virtual void OnPlayerSendListInventory(Player *, ObjectGuid, uint32 &)
This hook is called whenever a player interacts with a vendor, and is then shown the vendor list.
Definition PlayerScript.h:805

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSendListInventory(), and PLAYERHOOK_ON_SEND_LIST_INVENTORY.

◆ OnPlayerSetMaxLevel()

void ScriptMgr::OnPlayerSetMaxLevel ( Player player,
uint32 maxPlayerLevel 
)
413{
415}
@ PLAYERHOOK_ON_SET_MAX_LEVEL
Definition PlayerScript.h:121
virtual void OnPlayerSetMaxLevel(Player *, uint32 &)
Definition PlayerScript.h:471

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSetMaxLevel(), and PLAYERHOOK_ON_SET_MAX_LEVEL.

◆ OnPlayerSetPhase()

void ScriptMgr::OnPlayerSetPhase ( const AuraEffect auraEff,
AuraApplication const *  aurApp,
uint8  mode,
bool  apply,
uint32 newPhase 
)
98{
99 CALL_ENABLED_HOOKS(MiscScript, MISCHOOK_ON_PLAYER_SET_PHASE, script->OnPlayerSetPhase(auraEff, aurApp, mode, apply, newPhase));
100}
@ MISCHOOK_ON_PLAYER_SET_PHASE
Definition MiscScript.h:42
virtual void OnPlayerSetPhase(const AuraEffect *, AuraApplication const *, uint8, bool, uint32 &)
Definition MiscScript.h:86

References CALL_ENABLED_HOOKS, MISCHOOK_ON_PLAYER_SET_PHASE, and MiscScript::OnPlayerSetPhase().

◆ OnPlayerSetServerSideVisibility()

void ScriptMgr::OnPlayerSetServerSideVisibility ( Player player,
ServerSideVisibilityType type,
AccountTypes sec 
)
798{
800}
@ PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY
Definition PlayerScript.h:182
virtual void OnPlayerSetServerSideVisibility(Player *, ServerSideVisibilityType &, AccountTypes &)
Definition PlayerScript.h:626

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSetServerSideVisibility(), and PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY.

◆ OnPlayerSetServerSideVisibilityDetect()

void ScriptMgr::OnPlayerSetServerSideVisibilityDetect ( Player player,
ServerSideVisibilityType type,
AccountTypes sec 
)
803{
805}
@ PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY_DETECT
Definition PlayerScript.h:183
virtual void OnPlayerSetServerSideVisibilityDetect(Player *, ServerSideVisibilityType &, AccountTypes &)
Definition PlayerScript.h:628

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSetServerSideVisibilityDetect(), and PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY_DETECT.

◆ OnPlayerShouldBeRewardedWithMoneyInsteadOfExp()

bool ScriptMgr::OnPlayerShouldBeRewardedWithMoneyInsteadOfExp ( Player player)

◆ OnPlayerSpellCast()

void ScriptMgr::OnPlayerSpellCast ( Player player,
Spell spell,
bool  skipCheck 
)
208{
210}
@ PLAYERHOOK_ON_SPELL_CAST
Definition PlayerScript.h:66
virtual void OnPlayerSpellCast(Player *, Spell *, bool)
Definition PlayerScript.h:320

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerSpellCast(), and PLAYERHOOK_ON_SPELL_CAST.

◆ OnPlayerStoreNewItem()

void ScriptMgr::OnPlayerStoreNewItem ( Player player,
Item item,
uint32  count 
)
378{
380}
@ PLAYERHOOK_ON_STORE_NEW_ITEM
Definition PlayerScript.h:103
virtual void OnPlayerStoreNewItem(Player *, Item *, uint32)
Definition PlayerScript.h:425

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerStoreNewItem(), and PLAYERHOOK_ON_STORE_NEW_ITEM.

◆ OnPlayerTalentsReset()

void ScriptMgr::OnPlayerTalentsReset ( Player player,
bool  noCost 
)
108{
110}
@ PLAYERHOOK_ON_TALENTS_RESET
Definition PlayerScript.h:44
virtual void OnPlayerTalentsReset(Player *, bool)
Definition PlayerScript.h:262

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerTalentsReset(), and PLAYERHOOK_ON_TALENTS_RESET.

◆ OnPlayerTextEmote()

void ScriptMgr::OnPlayerTextEmote ( Player player,
uint32  textEmote,
uint32  emoteNum,
ObjectGuid  guid 
)
203{
204 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_TEXT_EMOTE, script->OnPlayerTextEmote(player, textEmote, emoteNum, guid));
205}
@ PLAYERHOOK_ON_TEXT_EMOTE
Definition PlayerScript.h:65
virtual void OnPlayerTextEmote(Player *, uint32, uint32, ObjectGuid)
Definition PlayerScript.h:317

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerTextEmote(), and PLAYERHOOK_ON_TEXT_EMOTE.

◆ OnPlayerUpdate()

void ScriptMgr::OnPlayerUpdate ( Player player,
uint32  p_time 
)
218{
220}
@ PLAYERHOOK_ON_UPDATE
Definition PlayerScript.h:47
virtual void OnPlayerUpdate(Player *, uint32)
Definition PlayerScript.h:269

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdate(), and PLAYERHOOK_ON_UPDATE.

◆ OnPlayerUpdateArea()

void ScriptMgr::OnPlayerUpdateArea ( Player player,
uint32  oldArea,
uint32  newArea 
)
273{
275}
@ PLAYERHOOK_ON_UPDATE_AREA
Definition PlayerScript.h:77
virtual void OnPlayerUpdateArea(Player *, uint32, uint32)
Definition PlayerScript.h:353

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateArea(), and PLAYERHOOK_ON_UPDATE_AREA.

◆ OnPlayerUpdateCraftingSkill()

void ScriptMgr::OnPlayerUpdateCraftingSkill ( Player player,
SkillLineAbilityEntry const *  skill,
uint32  currentLevel,
uint32 gain 
)
603{
605}
@ PLAYERHOOK_ON_UPDATE_CRAFTING_SKILL
Definition PlayerScript.h:144
virtual void OnPlayerUpdateCraftingSkill(Player *, SkillLineAbilityEntry const *, uint32, uint32 &)
This hook is called before crafting skill gain is applied to the character.
Definition PlayerScript.h:539

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateCraftingSkill(), and PLAYERHOOK_ON_UPDATE_CRAFTING_SKILL.

◆ OnPlayerUpdateFaction()

void ScriptMgr::OnPlayerUpdateFaction ( Player player)
283{
285}
@ PLAYERHOOK_ON_UPDATE_FACTION
Definition PlayerScript.h:80
virtual void OnPlayerUpdateFaction(Player *)
Definition PlayerScript.h:362

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateFaction(), and PLAYERHOOK_ON_UPDATE_FACTION.

◆ OnPlayerUpdateFishingSkill()

bool ScriptMgr::OnPlayerUpdateFishingSkill ( Player player,
int32  skill,
int32  zone_skill,
int32  chance,
int32  roll 
)
608{
610}
@ PLAYERHOOK_ON_UPDATE_FISHING_SKILL
Definition PlayerScript.h:145
virtual bool OnPlayerUpdateFishingSkill(Player *, int32, int32, int32, int32)
Definition PlayerScript.h:541

References CALL_ENABLED_BOOLEAN_HOOKS, PlayerScript::OnPlayerUpdateFishingSkill(), and PLAYERHOOK_ON_UPDATE_FISHING_SKILL.

◆ OnPlayerUpdateGatheringSkill()

void ScriptMgr::OnPlayerUpdateGatheringSkill ( Player player,
uint32  skillId,
uint32  currentLevel,
uint32  gray,
uint32  green,
uint32  yellow,
uint32 gain 
)
598{
599 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_UPDATE_GATHERING_SKILL, script->OnPlayerUpdateGatheringSkill(player, skillId, currentLevel, gray, green, yellow, gain));
600}
@ PLAYERHOOK_ON_UPDATE_GATHERING_SKILL
Definition PlayerScript.h:143
virtual void OnPlayerUpdateGatheringSkill(Player *, uint32, uint32, uint32, uint32, uint32, uint32 &)
This hook called before gathering skill gain is applied to the character.
Definition PlayerScript.h:529

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateGatheringSkill(), and PLAYERHOOK_ON_UPDATE_GATHERING_SKILL.

◆ OnPlayerUpdateSkill()

void ScriptMgr::OnPlayerUpdateSkill ( Player player,
uint32  skillId,
uint32  value,
uint32  max,
uint32  step,
uint32  newValue 
)
909{
910 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_UPDATE_SKILL, script->OnPlayerUpdateSkill(player, skillId, value, max, step, newValue));
911}
@ PLAYERHOOK_ON_UPDATE_SKILL
Definition PlayerScript.h:209
virtual void OnPlayerUpdateSkill(Player *, uint32, uint32, uint32, uint32, uint32)
Definition PlayerScript.h:777

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateSkill(), and PLAYERHOOK_ON_UPDATE_SKILL.

◆ OnPlayerUpdateZone()

void ScriptMgr::OnPlayerUpdateZone ( Player player,
uint32  newZone,
uint32  newArea 
)
268{
270}
@ PLAYERHOOK_ON_UPDATE_ZONE
Definition PlayerScript.h:76
virtual void OnPlayerUpdateZone(Player *, uint32, uint32)
Definition PlayerScript.h:350

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerUpdateZone(), and PLAYERHOOK_ON_UPDATE_ZONE.

◆ OnPlayerVictimRewardAfter()

void ScriptMgr::OnPlayerVictimRewardAfter ( Player player,
Player victim,
uint32 killer_title,
uint32 victim_rank,
float &  honor_f 
)
623{
624 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_VICTIM_REWARD_AFTER, script->OnPlayerVictimRewardAfter(player, victim, killer_title, victim_rank, honor_f));
625}
@ PLAYERHOOK_ON_VICTIM_REWARD_AFTER
Definition PlayerScript.h:148
virtual void OnPlayerVictimRewardAfter(Player *, Player *, uint32 &, uint32 &, float &)
Definition PlayerScript.h:547

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerVictimRewardAfter(), and PLAYERHOOK_ON_VICTIM_REWARD_AFTER.

◆ OnPlayerVictimRewardBefore()

void ScriptMgr::OnPlayerVictimRewardBefore ( Player player,
Player victim,
uint32 killer_title,
uint32 victim_title 
)
618{
619 CALL_ENABLED_HOOKS(PlayerScript, PLAYERHOOK_ON_VICTIM_REWARD_BEFORE, script->OnPlayerVictimRewardBefore(player, victim, killer_title, victim_title));
620}
@ PLAYERHOOK_ON_VICTIM_REWARD_BEFORE
Definition PlayerScript.h:147
virtual void OnPlayerVictimRewardBefore(Player *, Player *, uint32 &, uint32 &)
Definition PlayerScript.h:545

References CALL_ENABLED_HOOKS, PlayerScript::OnPlayerVictimRewardBefore(), and PLAYERHOOK_ON_VICTIM_REWARD_BEFORE.

◆ OnQuestAccept() [1/3]

bool ScriptMgr::OnQuestAccept ( Player player,
Creature creature,
Quest const *  quest 
)
84{
85 ASSERT(player);
86 ASSERT(creature);
87 ASSERT(quest);
88
89 auto ret = IsValidBoolScript<AllCreatureScript>([&](AllCreatureScript* script)
90 {
91 return script->CanCreatureQuestAccept(player, creature, quest);
92 });
93
94 if (ret && *ret)
95 {
96 return true;
97 }
98
100 ClearGossipMenuFor(player);
101 return tempScript ? tempScript->OnQuestAccept(player, creature, quest) : false;
102}
virtual bool CanCreatureQuestAccept(Player *, Creature *, Quest const *)
Definition AllCreatureScript.h:95

References ASSERT, AllCreatureScript::CanCreatureQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnQuestAccept() [2/3]

bool ScriptMgr::OnQuestAccept ( Player player,
GameObject go,
Quest const *  quest 
)
84{
85 ASSERT(player);
86 ASSERT(go);
87 ASSERT(quest);
88
89 auto ret = IsValidBoolScript<AllGameObjectScript>([&](AllGameObjectScript* script)
90 {
91 return script->CanGameObjectQuestAccept(player, go, quest);
92 });
93
94 if (ret && *ret)
95 {
96 return true;
97 }
98
100 ClearGossipMenuFor(player);
101 return tempScript ? tempScript->OnQuestAccept(player, go, quest) : false;
102}
virtual bool CanGameObjectQuestAccept(Player *, GameObject *, Quest const *)
Definition AllGameObjectScript.h:65

References ASSERT, AllGameObjectScript::CanGameObjectQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ OnQuestAccept() [3/3]

bool ScriptMgr::OnQuestAccept ( Player player,
Item item,
Quest const *  quest 
)
25{
26 ASSERT(player);
27 ASSERT(item);
28 ASSERT(quest);
29
30 auto ret = IsValidBoolScript<AllItemScript>([&](AllItemScript* script)
31 {
32 return !script->CanItemQuestAccept(player, item, quest);
33 });
34
35 if (ret && *ret)
36 {
37 return false;
38 }
39
41 ClearGossipMenuFor(player);
42 return tempScript ? tempScript->OnQuestAccept(player, item, quest) : false;
43}
virtual bool CanItemQuestAccept(Player *, Item *, Quest const *)
Definition AllItemScript.h:30

References ASSERT, AllItemScript::CanItemQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().

◆ OnQuestComplete()

bool ScriptMgr::OnQuestComplete ( Player player,
Creature creature,
Quest const *  quest 
)
116{
117 ASSERT(player);
118 ASSERT(creature);
119 ASSERT(quest);
120
121 auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId());
122 ClearGossipMenuFor(player);
123 return tempScript ? tempScript->OnQuestComplete(player, creature, quest) : false;
124}

References ASSERT, ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnQuestReward() [1/2]

bool ScriptMgr::OnQuestReward ( Player player,
Creature creature,
Quest const *  quest,
uint32  opt 
)
127{
128 ASSERT(player);
129 ASSERT(creature);
130 ASSERT(quest);
131
132 auto ret = IsValidBoolScript<AllCreatureScript>([&](AllCreatureScript* script)
133 {
134 return script->CanCreatureQuestReward(player, creature, quest, opt);
135 });
136
137 if (ret && *ret)
138 {
139 return false;
140 }
141
142 auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId());
143 ClearGossipMenuFor(player);
144 return tempScript ? tempScript->OnQuestReward(player, creature, quest, opt) : false;
145}
virtual bool CanCreatureQuestReward(Player *, Creature *, Quest const *, uint32)
Definition AllCreatureScript.h:98

References ASSERT, AllCreatureScript::CanCreatureQuestReward(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnQuestReward() [2/2]

bool ScriptMgr::OnQuestReward ( Player player,
GameObject go,
Quest const *  quest,
uint32  opt 
)
105{
106 ASSERT(player);
107 ASSERT(go);
108 ASSERT(quest);
109
110 auto ret = IsValidBoolScript<AllGameObjectScript>([&](AllGameObjectScript* script)
111 {
112 return script->CanGameObjectQuestReward(player, go, quest, opt);
113 });
114
115 if (ret && *ret)
116 {
117 return false;
118 }
119
121 ClearGossipMenuFor(player);
122 return tempScript ? tempScript->OnQuestReward(player, go, quest, opt) : false;
123}
virtual bool CanGameObjectQuestReward(Player *, GameObject *, Quest const *, uint32)
Definition AllGameObjectScript.h:68

References ASSERT, AllGameObjectScript::CanGameObjectQuestReward(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().

◆ OnQuestSelect()

bool ScriptMgr::OnQuestSelect ( Player player,
Creature creature,
Quest const *  quest 
)
105{
106 ASSERT(player);
107 ASSERT(creature);
108 ASSERT(quest);
109
110 auto tempScript = ScriptRegistry<CreatureScript>::GetScriptById(creature->GetScriptId());
111 ClearGossipMenuFor(player);
112 return tempScript ? tempScript->OnQuestSelect(player, creature, quest) : false;
113}

References ASSERT, ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().

◆ OnQueueUpdate()

void ScriptMgr::OnQueueUpdate ( BattlegroundQueue queue,
uint32  diff,
BattlegroundTypeId  bgTypeId,
BattlegroundBracketId  bracket_id,
uint8  arenaType,
bool  isRated,
uint32  arenaRating 
)
53{
54 CALL_ENABLED_HOOKS(AllBattlegroundScript, ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE, script->OnQueueUpdate(queue, diff, bgTypeId, bracket_id, arenaType, isRated, arenaRating));
55}
@ ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE
Definition AllBattlegroundScript.h:32
virtual void OnQueueUpdate(BattlegroundQueue *, uint32, BattlegroundTypeId, BattlegroundBracketId, uint8, bool, uint32)
Definition AllBattlegroundScript.h:80

References ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE, CALL_ENABLED_HOOKS, and AllBattlegroundScript::OnQueueUpdate().

◆ OnQueueUpdateValidity()

bool ScriptMgr::OnQueueUpdateValidity ( BattlegroundQueue queue,
uint32  diff,
BattlegroundTypeId  bgTypeId,
BattlegroundBracketId  bracket_id,
uint8  arenaType,
bool  isRated,
uint32  arenaRating 
)
58{
59 CALL_ENABLED_BOOLEAN_HOOKS(AllBattlegroundScript, ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE_VALIDITY, !script->OnQueueUpdateValidity(queue, diff, bgTypeId, bracket_id, arenaType, isRated, arenaRating));
60}
@ ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE_VALIDITY
Definition AllBattlegroundScript.h:33
virtual bool OnQueueUpdateValidity(BattlegroundQueue *, uint32, BattlegroundTypeId, BattlegroundBracketId, uint8, bool, uint32)
Definition AllBattlegroundScript.h:82

References ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE_VALIDITY, CALL_ENABLED_BOOLEAN_HOOKS, and AllBattlegroundScript::OnQueueUpdateValidity().

◆ OnRelocate()

void ScriptMgr::OnRelocate ( Transport transport,
uint32  waypointId,
uint32  mapId,
float  x,
float  y,
float  z 
)
66{
67 if (auto tempScript = ScriptRegistry<TransportScript>::GetScriptById(transport->GetScriptId()))
68 {
69 tempScript->OnRelocate(transport, waypointId, mapId, x, y, z);
70 }
71}

References GameObject::GetScriptId().

◆ OnRemoveAuraScaleTargets()

void ScriptMgr::OnRemoveAuraScaleTargets ( Spell spell,
TargetInfo targetInfo,
uint8  auraScaleMask,
bool &  needErase 
)
63{
65}
@ ALLSPELLHOOK_ON_REMOVE_AURA_SCALE_TARGETS
Definition AllSpellScript.h:34
virtual void OnRemoveAuraScaleTargets(Spell *, TargetInfo &, uint8, bool &)
Definition AllSpellScript.h:73

References ALLSPELLHOOK_ON_REMOVE_AURA_SCALE_TARGETS, CALL_ENABLED_HOOKS, and AllSpellScript::OnRemoveAuraScaleTargets().

◆ OnRemovePassenger() [1/2]

void ScriptMgr::OnRemovePassenger ( Transport transport,
Player player 
)
45{
46 ASSERT(transport);
47 ASSERT(player);
48
49 if (auto tempScript = ScriptRegistry<TransportScript>::GetScriptById(transport->GetScriptId()))
50 {
51 tempScript->OnRemovePassenger(transport, player);
52 }
53}

References ASSERT, and GameObject::GetScriptId().

◆ OnRemovePassenger() [2/2]

void ScriptMgr::OnRemovePassenger ( Vehicle veh,
Unit passenger 
)
80{
81 ASSERT(veh);
82 ASSERT(veh->GetBase()->IsCreature());
83 ASSERT(passenger);
84
86 {
87 tempScript->OnRemovePassenger(veh, passenger);
88 }
89}

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnReset()

void ScriptMgr::OnReset ( Vehicle veh)
45{
46 ASSERT(veh);
47 ASSERT(veh->GetBase()->IsCreature());
48
50 {
51 tempScript->OnReset(veh);
52 }
53}

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnScaleAuraUnitAdd()

void ScriptMgr::OnScaleAuraUnitAdd ( Spell spell,
Unit target,
uint32  effectMask,
bool  checkIfValid,
bool  implicit,
uint8  auraScaleMask,
TargetInfo targetInfo 
)
58{
59 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_SCALE_AURA_UNIT_ADD, script->OnScaleAuraUnitAdd(spell, target, effectMask, checkIfValid, implicit, auraScaleMask, targetInfo));
60}
@ ALLSPELLHOOK_ON_SCALE_AURA_UNIT_ADD
Definition AllSpellScript.h:33
virtual void OnScaleAuraUnitAdd(Spell *, Unit *, uint32, bool, bool, uint8, TargetInfo &)
Definition AllSpellScript.h:71

References ALLSPELLHOOK_ON_SCALE_AURA_UNIT_ADD, CALL_ENABLED_HOOKS, and AllSpellScript::OnScaleAuraUnitAdd().

◆ OnSetArenaMaxPlayersPerTeam()

void ScriptMgr::OnSetArenaMaxPlayersPerTeam ( const uint8  arenaType,
uint32 maxPlayerPerTeam 
)
43{
45}
@ ARENATEAMHOOK_ON_SET_ARENA_MAX_PLAYERS_PER_TEAM
Definition ArenaTeamScript.h:31
virtual void OnSetArenaMaxPlayersPerTeam(const uint8, uint32 &)
Definition ArenaTeamScript.h:47

References ARENATEAMHOOK_ON_SET_ARENA_MAX_PLAYERS_PER_TEAM, CALL_ENABLED_HOOKS, and ArenaTeamScript::OnSetArenaMaxPlayersPerTeam().

◆ OnShutdown()

void ScriptMgr::OnShutdown ( )
68{
70}
@ WORLDHOOK_ON_SHUTDOWN
Definition WorldScript.h:36
virtual void OnShutdown()
Definition WorldScript.h:77

References CALL_ENABLED_HOOKS, WorldScript::OnShutdown(), and WORLDHOOK_ON_SHUTDOWN.

◆ OnShutdownCancel()

void ScriptMgr::OnShutdownCancel ( )
53{
55}
@ WORLDHOOK_ON_SHUTDOWN_CANCEL
Definition WorldScript.h:33
virtual void OnShutdownCancel()
Definition WorldScript.h:68

References CALL_ENABLED_HOOKS, WorldScript::OnShutdownCancel(), and WORLDHOOK_ON_SHUTDOWN_CANCEL.

◆ OnShutdownInitiate()

void ScriptMgr::OnShutdownInitiate ( ShutdownExitCode  code,
ShutdownMask  mask 
)
48{
50}
@ WORLDHOOK_ON_SHUTDOWN_INITIATE
Definition WorldScript.h:32
virtual void OnShutdownInitiate(ShutdownExitCode, ShutdownMask)
Definition WorldScript.h:65

References CALL_ENABLED_HOOKS, WorldScript::OnShutdownInitiate(), and WORLDHOOK_ON_SHUTDOWN_INITIATE.

◆ OnSocketClose()

void ScriptMgr::OnSocketClose ( std::shared_ptr< WorldSocket socket)
40{
41 ASSERT(socket);
42
44}
@ SERVERHOOK_ON_SOCKET_CLOSE
Definition ServerScript.h:30
virtual void OnSocketClose(std::shared_ptr< WorldSocket >)
Definition ServerScript.h:53

References ASSERT, CALL_ENABLED_HOOKS, ServerScript::OnSocketClose(), and SERVERHOOK_ON_SOCKET_CLOSE.

◆ OnSocketOpen()

void ScriptMgr::OnSocketOpen ( std::shared_ptr< WorldSocket socket)
33{
34 ASSERT(socket);
35
37}
@ SERVERHOOK_ON_SOCKET_OPEN
Definition ServerScript.h:29
virtual void OnSocketOpen(std::shared_ptr< WorldSocket >)
Definition ServerScript.h:49

References ASSERT, CALL_ENABLED_HOOKS, ServerScript::OnSocketOpen(), and SERVERHOOK_ON_SOCKET_OPEN.

◆ OnSpellCast()

void ScriptMgr::OnSpellCast ( Spell spell,
Unit caster,
SpellInfo const *  spellInfo,
bool  skipCheck 
)
93{
94 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_CAST, script->OnSpellCast(spell, caster, spellInfo, skipCheck));
95}
@ ALLSPELLHOOK_ON_CAST
Definition AllSpellScript.h:40
virtual void OnSpellCast(Spell *, Unit *, SpellInfo const *, bool)
Definition AllSpellScript.h:109

References ALLSPELLHOOK_ON_CAST, CALL_ENABLED_HOOKS, and AllSpellScript::OnSpellCast().

◆ OnSpellCastCancel()

void ScriptMgr::OnSpellCastCancel ( Spell spell,
Unit caster,
SpellInfo const *  spellInfo,
bool  bySelf 
)
88{
89 CALL_ENABLED_HOOKS(AllSpellScript, ALLSPELLHOOK_ON_CAST_CANCEL, script->OnSpellCastCancel(spell, caster, spellInfo, bySelf));
90}
@ ALLSPELLHOOK_ON_CAST_CANCEL
Definition AllSpellScript.h:39
virtual void OnSpellCastCancel(Spell *, Unit *, SpellInfo const *, bool)
Definition AllSpellScript.h:107

References ALLSPELLHOOK_ON_CAST_CANCEL, CALL_ENABLED_HOOKS, and AllSpellScript::OnSpellCastCancel().

◆ OnSpellCheckCast()

void ScriptMgr::OnSpellCheckCast ( Spell spell,
bool  strict,
SpellCastResult res 
)
38{
40}
@ ALLSPELLHOOK_ON_SPELL_CHECK_CAST
Definition AllSpellScript.h:29
virtual void OnSpellCheckCast(Spell *, bool, SpellCastResult &)
Definition AllSpellScript.h:63

References ALLSPELLHOOK_ON_SPELL_CHECK_CAST, CALL_ENABLED_HOOKS, and AllSpellScript::OnSpellCheckCast().

◆ OnSpellHealingBonusTakenNegativeModifiers()

bool ScriptMgr::OnSpellHealingBonusTakenNegativeModifiers ( Unit const *  target,
Unit const *  caster,
SpellInfo const *  spellInfo,
float &  val 
)
93{
95}
@ GLOBALHOOK_ON_SPELL_HEALING_BONUS_TAKEN_NEGATIVE_MODIFIERS
Definition GlobalScript.h:43
virtual bool OnSpellHealingBonusTakenNegativeModifiers(Unit const *, Unit const *, SpellInfo const *, float &)
Definition GlobalScript.h:86

References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, GLOBALHOOK_ON_SPELL_HEALING_BONUS_TAKEN_NEGATIVE_MODIFIERS, and GlobalScript::OnSpellHealingBonusTakenNegativeModifiers().

◆ OnSpellPrepare()

void ScriptMgr::OnSpellPrepare ( Spell spell,
Unit caster,
SpellInfo const *  spellInfo 
)
98{
100}
@ ALLSPELLHOOK_ON_PREPARE
Definition AllSpellScript.h:41
virtual void OnSpellPrepare(Spell *, Unit *, SpellInfo const *)
Definition AllSpellScript.h:111

References ALLSPELLHOOK_ON_PREPARE, CALL_ENABLED_HOOKS, and AllSpellScript::OnSpellPrepare().

◆ OnStartup()

void ScriptMgr::OnStartup ( )
63{
65}
@ WORLDHOOK_ON_STARTUP
Definition WorldScript.h:35
virtual void OnStartup()
Definition WorldScript.h:74

References CALL_ENABLED_HOOKS, WorldScript::OnStartup(), and WORLDHOOK_ON_STARTUP.

◆ OnTicketClose()

void ScriptMgr::OnTicketClose ( GmTicket ticket)
33{
35}
@ TICKETHOOK_ON_TICKET_CLOSE
Definition TicketScript.h:29
Definition TicketScript.h:36
virtual void OnTicketClose(GmTicket *)
Definition TicketScript.h:45

References CALL_ENABLED_HOOKS, TicketScript::OnTicketClose(), and TICKETHOOK_ON_TICKET_CLOSE.

◆ OnTicketCreate()

void ScriptMgr::OnTicketCreate ( GmTicket ticket)
23{
25}
@ TICKETHOOK_ON_TICKET_CREATE
Definition TicketScript.h:27
virtual void OnTicketCreate(GmTicket *)
Definition TicketScript.h:43

References CALL_ENABLED_HOOKS, TicketScript::OnTicketCreate(), and TICKETHOOK_ON_TICKET_CREATE.

◆ OnTicketResolve()

void ScriptMgr::OnTicketResolve ( GmTicket ticket)
43{
45}
@ TICKETHOOK_ON_TICKET_RESOLVE
Definition TicketScript.h:31
virtual void OnTicketResolve(GmTicket *)
Definition TicketScript.h:47

References CALL_ENABLED_HOOKS, TicketScript::OnTicketResolve(), and TICKETHOOK_ON_TICKET_RESOLVE.

◆ OnTicketStatusUpdate()

void ScriptMgr::OnTicketStatusUpdate ( GmTicket ticket)
38{
40}
@ TICKETHOOK_ON_TICKET_STATUS_UPDATE
Definition TicketScript.h:30
virtual void OnTicketStatusUpdate(GmTicket *)
Definition TicketScript.h:46

References CALL_ENABLED_HOOKS, TicketScript::OnTicketStatusUpdate(), and TICKETHOOK_ON_TICKET_STATUS_UPDATE.

◆ OnTicketUpdateLastChange()

void ScriptMgr::OnTicketUpdateLastChange ( GmTicket ticket)
28{
30}
@ TICKETHOOK_ON_TICKET_UPDATE_LAST_CHANGE
Definition TicketScript.h:28
virtual void OnTicketUpdateLastChange(GmTicket *)
Definition TicketScript.h:44

References CALL_ENABLED_HOOKS, TicketScript::OnTicketUpdateLastChange(), and TICKETHOOK_ON_TICKET_UPDATE_LAST_CHANGE.

◆ OnTransportUpdate()

void ScriptMgr::OnTransportUpdate ( Transport transport,
uint32  diff 
)
56{
57 ASSERT(transport);
58
59 if (auto tempScript = ScriptRegistry<TransportScript>::GetScriptById(transport->GetScriptId()))
60 {
61 tempScript->OnUpdate(transport, diff);
62 }
63}

References ASSERT, and GameObject::GetScriptId().

◆ OnTryExecuteCommand()

bool ScriptMgr::OnTryExecuteCommand ( ChatHandler handler,
std::string_view  cmdStr 
)
29{
31}
@ ALLCOMMANDHOOK_ON_TRY_EXECUTE_COMMAND
Definition AllCommandScript.h:28
virtual bool OnTryExecuteCommand(ChatHandler &, std::string_view)
This hook is triggered when a command is parsed, but before it is executed.
Definition AllCommandScript.h:49

References ALLCOMMANDHOOK_ON_TRY_EXECUTE_COMMAND, CALL_ENABLED_BOOLEAN_HOOKS, and AllCommandScript::OnTryExecuteCommand().

◆ OnUninstall()

void ScriptMgr::OnUninstall ( Vehicle veh)
34{
35 ASSERT(veh);
36 ASSERT(veh->GetBase()->IsCreature());
37
39 {
40 tempScript->OnUninstall(veh);
41 }
42}

References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().

◆ OnUnitDeath()

void ScriptMgr::OnUnitDeath ( Unit unit,
Unit killer 
)
147{
149}
@ UNITHOOK_ON_UNIT_DEATH
Definition UnitScript.h:47
virtual void OnUnitDeath(Unit *, Unit *)
Definition UnitScript.h:118

References CALL_ENABLED_HOOKS, UnitScript::OnUnitDeath(), and UNITHOOK_ON_UNIT_DEATH.

◆ OnUnitEnterCombat()

void ScriptMgr::OnUnitEnterCombat ( Unit unit,
Unit victim 
)
142{
144}
@ UNITHOOK_ON_UNIT_ENTER_COMBAT
Definition UnitScript.h:46
virtual void OnUnitEnterCombat(Unit *, Unit *)
Definition UnitScript.h:117

References CALL_ENABLED_HOOKS, UnitScript::OnUnitEnterCombat(), and UNITHOOK_ON_UNIT_ENTER_COMBAT.

◆ OnUnitEnterEvadeMode()

void ScriptMgr::OnUnitEnterEvadeMode ( Unit unit,
uint8  why 
)
137{
139}
@ UNITHOOK_ON_UNIT_ENTER_EVADE_MODE
Definition UnitScript.h:45
virtual void OnUnitEnterEvadeMode(Unit *, uint8)
Definition UnitScript.h:116

References CALL_ENABLED_HOOKS, UnitScript::OnUnitEnterEvadeMode(), and UNITHOOK_ON_UNIT_ENTER_EVADE_MODE.

◆ OnUnitSetShapeshiftForm()

void ScriptMgr::OnUnitSetShapeshiftForm ( Unit unit,
uint8  form 
)
152{
154}
@ UNITHOOK_ON_UNIT_SET_SHAPESHIFT_FORM
Definition UnitScript.h:48
virtual void OnUnitSetShapeshiftForm(Unit *, uint8)
Definition UnitScript.h:119

References CALL_ENABLED_HOOKS, UnitScript::OnUnitSetShapeshiftForm(), and UNITHOOK_ON_UNIT_SET_SHAPESHIFT_FORM.

◆ OnUnitUpdate()

void ScriptMgr::OnUnitUpdate ( Unit unit,
uint32  diff 
)
127{
129}
@ UNITHOOK_ON_UNIT_UPDATE
Definition UnitScript.h:43
virtual void OnUnitUpdate(Unit *, uint32)
This hook runs in Unit::Update.
Definition UnitScript.h:112

References CALL_ENABLED_HOOKS, UnitScript::OnUnitUpdate(), and UNITHOOK_ON_UNIT_UPDATE.

◆ OnUnloadGridMap()

void ScriptMgr::OnUnloadGridMap ( Map map,
GridTerrainData gmap,
uint32  gx,
uint32  gy 
)
161{
162 ASSERT(map);
163 ASSERT(gmap);
164
165 ForeachMaps<WorldMapScript>(map,
166 [&](WorldMapScript* script)
167 {
168 script->OnUnloadGridMap(map, gmap, gx, gy);
169 });
170
171 ForeachMaps<InstanceMapScript>(map,
172 [&](InstanceMapScript* script)
173 {
174 script->OnUnloadGridMap((InstanceMap*)map, gmap, gx, gy);
175 });
176
177 ForeachMaps<BattlegroundMapScript>(map,
178 [&](BattlegroundMapScript* script)
179 {
180 script->OnUnloadGridMap((BattlegroundMap*)map, gmap, gx, gy);
181 });
182}
virtual void OnUnloadGridMap(TMap *, GridTerrainData *, uint32, uint32)
Definition ScriptObject.h:104

References ASSERT, and MapScript< TMap >::OnUnloadGridMap().

◆ OnWeatherChange()

void ScriptMgr::OnWeatherChange ( Weather weather,
WeatherState  state,
float  grade 
)
24{
25 ASSERT(weather);
26
27 ExecuteScript<ElunaScript>([&](ElunaScript* script)
28 {
29 script->OnWeatherChange(weather, state, grade);
30 });
31
32 if (auto tempScript = ScriptRegistry<WeatherScript>::GetScriptById(weather->GetScriptId()))
33 {
34 tempScript->OnChange(weather, state, grade);
35 }
36}
virtual void OnWeatherChange(Weather *, WeatherState, float)
This hook called when the weather changes in the zone this script is associated with.
Definition ElunaScript.h:36
uint32 GetScriptId() const
Definition Weather.h:78

References ASSERT, Weather::GetScriptId(), and ElunaScript::OnWeatherChange().

◆ OnWeatherUpdate()

void ScriptMgr::OnWeatherUpdate ( Weather weather,
uint32  diff 
)
39{
40 ASSERT(weather);
41
42 if (auto tempScript = ScriptRegistry<WeatherScript>::GetScriptById(weather->GetScriptId()))
43 {
44 tempScript->OnUpdate(weather, diff);
45 }
46}

References ASSERT, and Weather::GetScriptId().

◆ OnWorldObjectCreate()

void ScriptMgr::OnWorldObjectCreate ( WorldObject object)
30{
31 ASSERT(object);
32
34}
@ WORLDOBJECTHOOK_ON_WORLD_OBJECT_CREATE
Definition WorldObjectScript.h:27
Definition WorldObjectScript.h:35
virtual void OnWorldObjectCreate(WorldObject *)
This hook called after create world object.
Definition WorldObjectScript.h:54

References ASSERT, CALL_ENABLED_HOOKS, WorldObjectScript::OnWorldObjectCreate(), and WORLDOBJECTHOOK_ON_WORLD_OBJECT_CREATE.

◆ OnWorldObjectDestroy()

void ScriptMgr::OnWorldObjectDestroy ( WorldObject object)
23{
24 ASSERT(object);
25
27}
@ WORLDOBJECTHOOK_ON_WORLD_OBJECT_DESTROY
Definition WorldObjectScript.h:26
virtual void OnWorldObjectDestroy(WorldObject *)
This hook called before destroy world object.
Definition WorldObjectScript.h:47

References ASSERT, CALL_ENABLED_HOOKS, WorldObjectScript::OnWorldObjectDestroy(), and WORLDOBJECTHOOK_ON_WORLD_OBJECT_DESTROY.

◆ OnWorldObjectResetMap()

void ScriptMgr::OnWorldObjectResetMap ( WorldObject object)
44{
45 ASSERT(object);
46
48}
@ WORLDOBJECTHOOK_ON_WORLD_OBJECT_RESET_MAP
Definition WorldObjectScript.h:29
virtual void OnWorldObjectResetMap(WorldObject *)
This hook called after world object reset.
Definition WorldObjectScript.h:68

References ASSERT, CALL_ENABLED_HOOKS, WorldObjectScript::OnWorldObjectResetMap(), and WORLDOBJECTHOOK_ON_WORLD_OBJECT_RESET_MAP.

◆ OnWorldObjectSetMap()

void ScriptMgr::OnWorldObjectSetMap ( WorldObject object,
Map map 
)
37{
38 ASSERT(object);
39
41}
@ WORLDOBJECTHOOK_ON_WORLD_OBJECT_SET_MAP
Definition WorldObjectScript.h:28
virtual void OnWorldObjectSetMap(WorldObject *, Map *)
This hook called after world object set to map.
Definition WorldObjectScript.h:61

References ASSERT, CALL_ENABLED_HOOKS, WorldObjectScript::OnWorldObjectSetMap(), and WORLDOBJECTHOOK_ON_WORLD_OBJECT_SET_MAP.

◆ OnWorldObjectUpdate()

void ScriptMgr::OnWorldObjectUpdate ( WorldObject object,
uint32  diff 
)
51{
52 ASSERT(object);
53
55}
@ WORLDOBJECTHOOK_ON_WORLD_OBJECT_UPDATE
Definition WorldObjectScript.h:30
virtual void OnWorldObjectUpdate(WorldObject *, uint32)
This hook called after world object update.
Definition WorldObjectScript.h:76

References ASSERT, CALL_ENABLED_HOOKS, WorldObjectScript::OnWorldObjectUpdate(), and WORLDOBJECTHOOK_ON_WORLD_OBJECT_UPDATE.

◆ OnWorldUpdate()

void ScriptMgr::OnWorldUpdate ( uint32  diff)
58{
60}
@ WORLDHOOK_ON_UPDATE
Definition WorldScript.h:34
virtual void OnUpdate(uint32)
Definition WorldScript.h:71

References CALL_ENABLED_HOOKS, WorldScript::OnUpdate(), and WORLDHOOK_ON_UPDATE.

◆ OnZeroDifferenceCalculation()

void ScriptMgr::OnZeroDifferenceCalculation ( uint8 diff,
uint8  playerLevel 
)
38{
40}
@ FORMULAHOOK_ON_ZERO_DIFFERENCE_CALCULATION
Definition FormulaScript.h:29
virtual void OnZeroDifferenceCalculation(uint8 &, uint8)
Definition FormulaScript.h:56

References CALL_ENABLED_HOOKS, FORMULAHOOK_ON_ZERO_DIFFERENCE_CALCULATION, and FormulaScript::OnZeroDifferenceCalculation().

◆ ScriptsVersion()

std::string_view ScriptMgr::ScriptsVersion ( ) const
inline
124{ return "Integrated Azeroth Scripts"; }

◆ SetModulesLoader()

void ScriptMgr::SetModulesLoader ( ModulesLoaderCallbackType  script_loader_callback)
inline

Sets the modules loader callback which is invoked to load modules (Workaround for circular dependency game <-> modules)

143 {
144 _modules_loader_callback = script_loader_callback;
145 }

References _modules_loader_callback.

◆ SetRealmCompleted()

void ScriptMgr::SetRealmCompleted ( AchievementEntry const *  achievement)
23{
25}
@ ACHIEVEMENTHOOK_SET_REALM_COMPLETED
Definition AchievementScript.h:28
virtual void SetRealmCompleted(AchievementEntry const *)
Definition AchievementScript.h:45

References ACHIEVEMENTHOOK_SET_REALM_COMPLETED, CALL_ENABLED_HOOKS, and AchievementScript::SetRealmCompleted().

◆ SetScriptLoader()

void ScriptMgr::SetScriptLoader ( ScriptLoaderCallbackType  script_loader_callback)
inline

Sets the script loader callback which is invoked to load scripts (Workaround for circular dependency game <-> scripts)

136 {
137 _script_loader_callback = script_loader_callback;
138 }

References _script_loader_callback.

◆ ShouldTrackValuesUpdatePosByIndex()

bool ScriptMgr::ShouldTrackValuesUpdatePosByIndex ( Unit const *  unit,
uint8  updateType,
uint16  index 
)
117{
119}
@ UNITHOOK_SHOULD_TRACK_VALUES_UPDATE_POS_BY_INDEX
Definition UnitScript.h:41
virtual bool ShouldTrackValuesUpdatePosByIndex(Unit const *, uint8, uint16)
Definition UnitScript.h:102

References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, UnitScript::ShouldTrackValuesUpdatePosByIndex(), and UNITHOOK_SHOULD_TRACK_VALUES_UPDATE_POS_BY_INDEX.

◆ Unload()

void ScriptMgr::Unload ( )
109{
110 SCR_CLEAR<AccountScript>();
111 SCR_CLEAR<AchievementCriteriaScript>();
112 SCR_CLEAR<AchievementScript>();
113 SCR_CLEAR<AllCreatureScript>();
114 SCR_CLEAR<AllGameObjectScript>();
115 SCR_CLEAR<AllItemScript>();
116 SCR_CLEAR<AllMapScript>();
117 SCR_CLEAR<AreaTriggerScript>();
118 SCR_CLEAR<ArenaScript>();
119 SCR_CLEAR<ArenaTeamScript>();
120 SCR_CLEAR<AuctionHouseScript>();
121 SCR_CLEAR<BGScript>();
122 SCR_CLEAR<BattlegroundMapScript>();
123 SCR_CLEAR<BattlegroundScript>();
124 SCR_CLEAR<CommandSC>();
125 SCR_CLEAR<CommandScript>();
126 SCR_CLEAR<ConditionScript>();
127 SCR_CLEAR<CreatureScript>();
128 SCR_CLEAR<DatabaseScript>();
129 SCR_CLEAR<DynamicObjectScript>();
130 SCR_CLEAR<ElunaScript>();
131 SCR_CLEAR<FormulaScript>();
132 SCR_CLEAR<GameEventScript>();
133 SCR_CLEAR<GameObjectScript>();
134 SCR_CLEAR<GlobalScript>();
135 SCR_CLEAR<GroupScript>();
136 SCR_CLEAR<GuildScript>();
137 SCR_CLEAR<InstanceMapScript>();
138 SCR_CLEAR<ItemScript>();
139 SCR_CLEAR<LootScript>();
140 SCR_CLEAR<MailScript>();
141 SCR_CLEAR<MiscScript>();
142 SCR_CLEAR<MovementHandlerScript>();
143 SCR_CLEAR<OutdoorPvPScript>();
144 SCR_CLEAR<PetScript>();
145 SCR_CLEAR<PlayerScript>();
146 SCR_CLEAR<ServerScript>();
147 SCR_CLEAR<SpellSC>();
148 SCR_CLEAR<SpellScriptLoader>();
149 SCR_CLEAR<TicketScript>();
150 SCR_CLEAR<TransportScript>();
151 SCR_CLEAR<UnitScript>();
152 SCR_CLEAR<VehicleScript>();
153 SCR_CLEAR<WeatherScript>();
154 SCR_CLEAR<WorldMapScript>();
155 SCR_CLEAR<WorldObjectScript>();
156 SCR_CLEAR<WorldScript>();
157
158 delete[] SpellSummary;
159}

References SpellSummary.

◆ ValidateSpellAtCastSpell()

void ScriptMgr::ValidateSpellAtCastSpell ( Player player,
uint32 oldSpellId,
uint32 spellId,
uint8 castCount,
uint8 castFlags 
)
83{
84 CALL_ENABLED_HOOKS(MiscScript, MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL, script->ValidateSpellAtCastSpell(player, oldSpellId, spellId, castCount, castFlags));
85}
@ MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL
Definition MiscScript.h:39
virtual void ValidateSpellAtCastSpell(Player *, uint32 &, uint32 &, uint8 &, uint8 &)
Definition MiscScript.h:80

References CALL_ENABLED_HOOKS, MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL, and MiscScript::ValidateSpellAtCastSpell().

◆ ValidateSpellAtCastSpellResult()

void ScriptMgr::ValidateSpellAtCastSpellResult ( Player player,
Unit mover,
Spell spell,
uint32  oldSpellId,
uint32  spellId 
)
88{
90}
@ MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL_RESULT
Definition MiscScript.h:40
virtual void ValidateSpellAtCastSpellResult(Player *, Unit *, Spell *, uint32, uint32)
Definition MiscScript.h:82

References CALL_ENABLED_HOOKS, MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL_RESULT, and MiscScript::ValidateSpellAtCastSpellResult().

◆ ~ScriptMgr()

ScriptMgr::~ScriptMgr ( )
privatevirtual
53{ }

Friends And Related Symbol Documentation

◆ ScriptObject

friend class ScriptObject
friend

Member Data Documentation

◆ _modules_loader_callback

ModulesLoaderCallbackType ScriptMgr::_modules_loader_callback
private

Referenced by Initialize(), and SetModulesLoader().

◆ _scheduledScripts

std::atomic<long> ScriptMgr::_scheduledScripts
private

◆ _script_loader_callback

ScriptLoaderCallbackType ScriptMgr::_script_loader_callback
private

Referenced by Initialize(), and SetScriptLoader().

◆ _scriptCount

uint32 ScriptMgr::_scriptCount
private

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