AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#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) |
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, GridMap *gmap, uint32 gx, uint32 gy) |
void | OnUnloadGridMap (Map *map, GridMap *gmap, uint32 gx, uint32 gy) |
void | OnPlayerEnterMap (Map *map, Player *player) |
void | OnPlayerLeaveMap (Map *map, Player *player) |
void | OnMapUpdate (Map *map, uint32 diff) |
InstanceScript * | CreateInstanceScript (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) |
CreatureAI * | GetCreatureAI (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) |
GameObjectAI * | GetGameObjectAI (GameObject *go) |
void | OnGameObjectAddWorld (GameObject *go) |
void | OnGameObjectRemoveWorld (GameObject *go) |
bool | OnAreaTrigger (Player *player, AreaTrigger const *trigger) |
Battleground * | CreateBattleground (BattlegroundTypeId typeId) |
OutdoorPvP * | CreateOutdoorPvP (OutdoorPvPData const *data) |
std::vector< Acore::ChatCommands::ChatCommandBuilder > | GetChatCommands () |
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 | OnBeforePlayerUpdate (Player *player, uint32 p_time) |
void | OnPlayerUpdate (Player *player, uint32 p_time) |
void | OnSendInitialPacketsBeforeAddToMap (Player *player, WorldPacket &data) |
void | OnPlayerJustDied (Player *player) |
void | OnCalculateTalentsPoints (Player const *player, uint32 &talentPointsForLevel) |
void | OnPlayerReleasedGhost (Player *player) |
void | OnPVPKill (Player *killer, Player *killed) |
void | OnPlayerPVPFlagChange (Player *player, bool state) |
void | OnCreatureKill (Player *killer, Creature *killed) |
void | OnCreatureKilledByPet (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 | OnAfterSpecSlotChanged (Player *player, uint8 newSlot) |
void | OnPlayerMoneyChanged (Player *player, int32 &amount) |
void | OnBeforeLootMoney (Player *player, Loot *loot) |
void | OnGivePlayerXP (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 | OnBeforeSendChatMessage (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 | OnBeforePlayerLogout (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 | OnBeforePlayerTeleport (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 | OnAchievementComplete (Player *player, AchievementEntry const *achievement) |
bool | OnBeforeAchievementComplete (Player *player, AchievementEntry const *achievement) |
void | OnCriteriaProgress (Player *player, AchievementCriteriaEntry const *criteria) |
bool | OnBeforeCriteriaProgress (Player *player, AchievementCriteriaEntry const *criteria) |
void | OnAchievementSave (CharacterDatabaseTransaction trans, Player *player, uint16 achiId, CompletedAchievementData achiData) |
void | OnCriteriaSave (CharacterDatabaseTransaction trans, Player *player, uint16 critId, CriteriaProgress criteriaData) |
void | OnGossipSelect (Player *player, uint32 menu_id, uint32 sender, uint32 action) |
void | OnGossipSelectCode (Player *player, uint32 menu_id, uint32 sender, uint32 action, const char *code) |
void | OnPlayerBeingCharmed (Player *player, Unit *charmer, uint32 oldFactionId, uint32 newFactionId) |
void | OnAfterPlayerSetVisibleItemSlot (Player *player, uint8 slot, Item *item) |
void | OnAfterPlayerMoveItemFromInventory (Player *player, Item *it, uint8 bag, uint8 slot, bool update) |
void | OnEquip (Player *player, Item *it, uint8 bag, uint8 slot, bool update) |
void | OnPlayerJoinBG (Player *player) |
void | OnPlayerJoinArena (Player *player) |
void | OnGetMaxPersonalArenaRatingRequirement (Player const *player, uint32 minSlot, uint32 &maxArenaRating) const |
void | OnLootItem (Player *player, Item *item, uint32 count, ObjectGuid lootguid) |
void | OnBeforeFillQuestLootItem (Player *player, LootItem &item) |
void | OnStoreNewItem (Player *player, Item *item, uint32 count) |
void | OnCreateItem (Player *player, Item *item, uint32 count) |
void | OnQuestRewardItem (Player *player, Item *item, uint32 count) |
bool | CanPlaceAuctionBid (Player *player, AuctionEntry *auction) |
void | OnGroupRollRewardItem (Player *player, Item *item, uint32 count, RollVote voteType, Roll *roll) |
bool | OnBeforeOpenItem (Player *player, Item *item) |
bool | OnBeforePlayerQuestComplete (Player *player, uint32 quest_id) |
void | OnQuestComputeXP (Player *player, Quest const *quest, uint32 &xpValue) |
void | OnBeforePlayerDurabilityRepair (Player *player, ObjectGuid npcGUID, ObjectGuid itemGUID, float &discountMod, uint8 guildBank) |
void | OnBeforeBuyItemFromVendor (Player *player, ObjectGuid vendorguid, uint32 vendorslot, uint32 &item, uint8 count, uint8 bag, uint8 slot) |
void | OnBeforeStoreOrEquipNewItem (Player *player, uint32 vendorslot, uint32 &item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore) |
void | OnAfterStoreOrEquipNewItem (Player *player, uint32 vendorslot, Item *item, uint8 count, uint8 bag, uint8 slot, ItemTemplate const *pProto, Creature *pVendor, VendorItem const *crItem, bool bStore) |
void | OnAfterUpdateMaxPower (Player *player, Powers &power, float &value) |
void | OnAfterUpdateMaxHealth (Player *player, float &value) |
void | OnBeforeUpdateAttackPowerAndDamage (Player *player, float &level, float &val2, bool ranged) |
void | OnAfterUpdateAttackPowerAndDamage (Player *player, float &level, float &base_attPower, float &attPowerMod, float &attPowerMultiplier, bool ranged) |
void | OnBeforeInitTalentForLevel (Player *player, uint8 &level, uint32 &talentPointsForLevel) |
void | OnFirstLogin (Player *player) |
void | OnSetMaxLevel (Player *player, uint32 &maxPlayerLevel) |
void | OnPlayerCompleteQuest (Player *player, Quest const *quest) |
void | OnBattlegroundDesertion (Player *player, BattlegroundDesertionType const desertionType) |
bool | CanJoinInBattlegroundQueue (Player *player, ObjectGuid BattlemasterGuid, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, GroupJoinBattlegroundResult &err) |
bool | ShouldBeRewardedWithMoneyInsteadOfExp (Player *player) |
void | OnBeforeTempSummonInitStats (Player *player, TempSummon *tempSummon, uint32 &duration) |
void | OnBeforeGuardianInitStatsForLevel (Player *player, Guardian *guardian, CreatureTemplate const *cinfo, PetType &petType) |
void | OnAfterGuardianInitStatsForLevel (Player *player, Guardian *guardian) |
void | OnBeforeLoadPetFromDB (Player *player, uint32 &petentry, uint32 &petnumber, bool ¤t, bool &forceLoadFromDB) |
bool | CanJoinInArenaQueue (Player *player, ObjectGuid BattlemasterGuid, uint8 arenaslot, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, uint8 IsRated, GroupJoinBattlegroundResult &err) |
bool | CanBattleFieldPort (Player *player, uint8 arenaType, BattlegroundTypeId BGTypeID, uint8 action) |
bool | CanGroupInvite (Player *player, std::string &membername) |
bool | CanGroupAccept (Player *player, Group *group) |
bool | CanSellItem (Player *player, Item *item, Creature *creature) |
bool | CanSendMail (Player *player, ObjectGuid receiverGuid, ObjectGuid mailbox, std::string &subject, std::string &body, uint32 money, uint32 COD, Item *item) |
void | PetitionBuy (Player *player, Creature *creature, uint32 &charterid, uint32 &cost, uint32 &type) |
void | PetitionShowList (Player *player, Creature *creature, uint32 &CharterEntry, uint32 &CharterDispayID, uint32 &CharterCost) |
void | OnRewardKillRewarder (Player *player, KillRewarder *rewarder, bool isDungeon, float &rate) |
bool | CanGiveMailRewardAtGiveLevel (Player *player, uint8 level) |
void | OnDeleteFromDB (CharacterDatabaseTransaction trans, uint32 guid) |
bool | CanRepopAtGraveyard (Player *player) |
std::optional< bool > | OnPlayerIsClass (Player const *player, Classes playerClass, ClassContext context) |
void | OnGetMaxSkillValue (Player *player, uint32 skill, int32 &result, bool IsPure) |
bool | OnPlayerHasActivePowerType (Player const *player, Powers power) |
void | OnUpdateGatheringSkill (Player *player, uint32 skillId, uint32 currentLevel, uint32 gray, uint32 green, uint32 yellow, uint32 &gain) |
void | OnUpdateCraftingSkill (Player *player, SkillLineAbilityEntry const *skill, uint32 currentLevel, uint32 &gain) |
bool | OnUpdateFishingSkill (Player *player, int32 skill, int32 zone_skill, int32 chance, int32 roll) |
bool | CanAreaExploreAndOutdoor (Player *player) |
void | OnVictimRewardBefore (Player *player, Player *victim, uint32 &killer_title, uint32 &victim_title) |
void | OnVictimRewardAfter (Player *player, Player *victim, uint32 &killer_title, uint32 &victim_rank, float &honor_f) |
void | OnCustomScalingStatValueBefore (Player *player, ItemTemplate const *proto, uint8 slot, bool apply, uint32 &CustomScalingStatValue) |
void | OnCustomScalingStatValue (Player *player, ItemTemplate const *proto, uint32 &statType, int32 &val, uint8 itemProtoStatNumber, uint32 ScalingStatValue, ScalingStatValuesEntry const *ssv) |
void | OnApplyItemModsBefore (Player *player, uint8 slot, bool apply, uint8 itemProtoStatNumber, uint32 statType, int32 &val) |
void | OnApplyEnchantmentItemModsBefore (Player *player, Item *item, EnchantmentSlot slot, bool apply, uint32 enchant_spell_id, uint32 &enchant_amount) |
bool | CanArmorDamageModifier (Player *player) |
void | OnGetFeralApBonus (Player *player, int32 &feral_bonus, int32 dpsMod, ItemTemplate const *proto, ScalingStatValuesEntry const *ssv) |
bool | CanApplyWeaponDependentAuraDamageMod (Player *player, Item *item, WeaponAttackType attackType, AuraEffect const *aura, bool apply) |
bool | CanApplyEquipSpell (Player *player, SpellInfo const *spellInfo, Item *item, bool apply, bool form_change) |
bool | CanApplyEquipSpellsItemSet (Player *player, ItemSetEffect *eff) |
bool | CanCastItemCombatSpell (Player *player, Unit *target, WeaponAttackType attType, uint32 procVictim, uint32 procEx, Item *item, ItemTemplate const *proto) |
bool | CanCastItemUseSpell (Player *player, Item *item, SpellCastTargets const &targets, uint8 cast_count, uint32 glyphIndex) |
void | OnApplyAmmoBonuses (Player *player, ItemTemplate const *proto, float ¤tAmmoDPS) |
bool | CanEquipItem (Player *player, uint8 slot, uint16 &dest, Item *pItem, bool swap, bool not_loading) |
bool | CanUnequipItem (Player *player, uint16 pos, bool swap) |
bool | CanUseItem (Player *player, ItemTemplate const *proto, InventoryResult &result) |
bool | CanSaveEquipNewItem (Player *player, Item *item, uint16 pos, bool update) |
bool | CanApplyEnchantment (Player *player, Item *item, EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition) |
void | OnGetQuestRate (Player *player, float &result) |
bool | PassedQuestKilledMonsterCredit (Player *player, Quest const *qinfo, uint32 entry, uint32 real_entry, ObjectGuid guid) |
bool | CheckItemInSlotAtLoadInventory (Player *player, Item *item, uint8 slot, uint8 &err, uint16 &dest) |
bool | NotAvoidSatisfy (Player *player, DungeonProgressionRequirements const *ar, uint32 target_map, bool report) |
bool | NotVisibleGloballyFor (Player *player, Player const *u) |
void | OnGetArenaPersonalRating (Player *player, uint8 slot, uint32 &result) |
void | OnFfaPvpStateUpdate (Player *player, bool result) |
void | OnGetArenaTeamId (Player *player, uint8 slot, uint32 &result) |
void | OnIsFFAPvP (Player *player, bool &result) |
void | OnIsPvP (Player *player, bool &result) |
void | OnGetMaxSkillValueForLevel (Player *player, uint16 &result) |
bool | NotSetArenaTeamInfoField (Player *player, uint8 slot, ArenaTeamInfoType type, uint32 value) |
bool | CanJoinLfg (Player *player, uint8 roles, lfg::LfgDungeonSet &dungeons, const std::string &comment) |
bool | CanEnterMap (Player *player, MapEntry const *entry, InstanceTemplate const *instance, MapDifficulty const *mapDiff, bool loginCheck) |
bool | CanInitTrade (Player *player, Player *target) |
bool | CanSetTradeItem (Player *player, Item *tradedItem, uint8 tradeSlot) |
void | OnSetServerSideVisibility (Player *player, ServerSideVisibilityType &type, AccountTypes &sec) |
void | OnSetServerSideVisibilityDetect (Player *player, ServerSideVisibilityType &type, AccountTypes &sec) |
void | OnPlayerResurrect (Player *player, float restore_percent, bool applySickness) |
void | OnBeforeChooseGraveyard (Player *player, TeamId teamId, bool nearCorpse, uint32 &graveyardOverride) |
bool | CanPlayerUseChat (Player *player, uint32 type, uint32 language, std::string &msg) |
bool | CanPlayerUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Player *receiver) |
bool | CanPlayerUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Group *group) |
bool | CanPlayerUseChat (Player *player, uint32 type, uint32 language, std::string &msg, Guild *guild) |
bool | CanPlayerUseChat (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 | OnQuestAbandon (Player *player, uint32 questId) |
bool | CanSendErrorAlreadyLooted (Player *player) |
void | OnAfterCreatureLoot (Player *player) |
void | OnAfterCreatureLootMoney (Player *player) |
bool | OnCanPlayerFlyInZone (Player *player, uint32 mapId, uint32 zoneId, SpellInfo const *bySpell) |
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. More... | |
void | OnBeforeSetBossState (uint32 id, EncounterState newState, EncounterState oldState, Map *instance) |
Called when any raid boss has their state updated (e.g. pull, reset, kill). More... | |
void | AfterInstanceGameObjectCreate (Map *instance, GameObject *go) |
Called when a game object is created inside an instance. More... | |
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 | 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 | 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) |
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) |
Static Public Member Functions | |
static ScriptMgr * | instance () |
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 |
typedef void(* ScriptMgr::ModulesLoaderCallbackType) () |
typedef void(* ScriptMgr::ScriptLoaderCallbackType) () |
|
private |
void ScriptMgr::AfterInstanceGameObjectCreate | ( | Map * | instance, |
GameObject * | go | ||
) |
Called when a game object is created inside an instance.
instance | A pointer to the [map] object of the instance |
go | The object being added |
References CALL_ENABLED_HOOKS, GLOBALHOOK_AFTER_INSTANCE_GAME_OBJECT_CREATE, and instance().
bool ScriptMgr::AnticheatCheckMovementInfo | ( | Player * | player, |
MovementInfo const & | movementInfo, | ||
Unit * | mover, | ||
bool | jump | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ANTICHEAT_CHECK_MOVEMENT_INFO.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ANTICHEAT_HANDLE_DOUBLE_JUMP.
void ScriptMgr::AnticheatSetCanFlybyServer | ( | Player * | player, |
bool | apply | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_CAN_FLY_BY_SERVER.
void ScriptMgr::AnticheatSetJumpingbyOpcode | ( | Player * | player, |
bool | jump | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_JUMPING_BY_OPCODE.
void ScriptMgr::AnticheatSetRootACKUpd | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_ROOT_ACK_UPD.
void ScriptMgr::AnticheatSetUnderACKmount | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_SET_UNDER_ACK_MOUNT.
void ScriptMgr::AnticheatUpdateMovementInfo | ( | Player * | player, |
MovementInfo const & | movementInfo | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ANTICHEAT_UPDATE_MOVEMENT_INFO.
References ACCOUNTHOOK_CAN_ACCOUNT_CREATE_CHARACTER, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanAddMember | ( | ArenaTeam * | team, |
ObjectGuid | PlayerGuid | ||
) |
References ARENAHOOK_CAN_ADD_MEMBER, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanApplyEnchantment | ( | Player * | player, |
Item * | item, | ||
EnchantmentSlot | slot, | ||
bool | apply, | ||
bool | apply_dur, | ||
bool | ignore_condition | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_APPLY_ENCHANTMENT.
bool ScriptMgr::CanApplyEquipSpell | ( | Player * | player, |
SpellInfo const * | spellInfo, | ||
Item * | item, | ||
bool | apply, | ||
bool | form_change | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_APPLY_EQUIP_SPELL.
bool ScriptMgr::CanApplyEquipSpellsItemSet | ( | Player * | player, |
ItemSetEffect * | eff | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_APPLY_EQUIP_SPELLS_ITEM_SET.
bool ScriptMgr::CanApplySoulboundFlag | ( | Item * | item, |
ItemTemplate const * | proto | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and MISCHOOK_CAN_APPLY_SOULBOUND_FLAG.
bool ScriptMgr::CanApplyWeaponDependentAuraDamageMod | ( | Player * | player, |
Item * | item, | ||
WeaponAttackType | attackType, | ||
AuraEffect const * | aura, | ||
bool | apply | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_APPLY_WEAPON_DEPENDENT_AURA_DAMAGE_MOD.
bool ScriptMgr::CanAreaExploreAndOutdoor | ( | Player * | player | ) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_AREA_EXPLORE_AND_OUTDOOR.
bool ScriptMgr::CanArmorDamageModifier | ( | Player * | player | ) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_ARMOR_DAMAGE_MODIFIER.
bool ScriptMgr::CanBattleFieldPort | ( | Player * | player, |
uint8 | arenaType, | ||
BattlegroundTypeId | BGTypeID, | ||
uint8 | action | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_BATTLEFIELD_PORT.
bool ScriptMgr::CanCastItemCombatSpell | ( | Player * | player, |
Unit * | target, | ||
WeaponAttackType | attType, | ||
uint32 | procVictim, | ||
uint32 | procEx, | ||
Item * | item, | ||
ItemTemplate const * | proto | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_CAST_ITEM_COMBAT_SPELL.
bool ScriptMgr::CanCastItemUseSpell | ( | Player * | player, |
Item * | item, | ||
SpellCastTargets const & | targets, | ||
uint8 | cast_count, | ||
uint32 | glyphIndex | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_CAST_ITEM_USE_SPELL.
bool ScriptMgr::CanCheckCriteria | ( | AchievementMgr * | mgr, |
AchievementCriteriaEntry const * | achievementCriteria | ||
) |
References ACHIEVEMENTHOOK_CAN_CHECK_CRITERIA, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanEnterMap | ( | Player * | player, |
MapEntry const * | entry, | ||
InstanceTemplate const * | instance, | ||
MapDifficulty const * | mapDiff, | ||
bool | loginCheck | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, instance(), and PLAYERHOOK_CAN_ENTER_MAP.
bool ScriptMgr::CanEquipItem | ( | Player * | player, |
uint8 | slot, | ||
uint16 & | dest, | ||
Item * | pItem, | ||
bool | swap, | ||
bool | not_loading | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_EQUIP_ITEM.
bool ScriptMgr::CanFillPlayersToBG | ( | BattlegroundQueue * | queue, |
Battleground * | bg, | ||
BattlegroundBracketId | bracket_id | ||
) |
References ALLBATTLEGROUNDHOOK_CAN_FILL_PLAYERS_TO_BG, and CALL_ENABLED_BOOLEAN_HOOKS.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_GIVE_MAIL_REWARD_AT_GIVE_LEVEL.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_GROUP_ACCEPT.
bool ScriptMgr::CanGroupInvite | ( | Player * | player, |
std::string & | membername | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_GROUP_INVITE.
bool ScriptMgr::CanGroupJoinBattlegroundQueue | ( | Group const * | group, |
Player * | member, | ||
Battleground const * | bgTemplate, | ||
uint32 | MinPlayerCount, | ||
bool | isRated, | ||
uint32 | arenaSlot | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GROUPHOOK_CAN_GROUP_JOIN_BATTLEGROUND_QUEUE.
bool ScriptMgr::CanGuildSendBankList | ( | Guild const * | guild, |
WorldSession * | session, | ||
uint8 | tabId, | ||
bool | sendAllSlots | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GUILDHOOK_CAN_GUILD_SEND_BANK_LIST.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_INIT_TRADE.
References CALL_ENABLED_BOOLEAN_HOOKS, and MISCHOOK_CAN_ITEM_APPLY_EQUIP_SPELL.
bool ScriptMgr::CanJoinInArenaQueue | ( | Player * | player, |
ObjectGuid | BattlemasterGuid, | ||
uint8 | arenaslot, | ||
BattlegroundTypeId | BGTypeID, | ||
uint8 | joinAsGroup, | ||
uint8 | IsRated, | ||
GroupJoinBattlegroundResult & | err | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_JOIN_IN_ARENA_QUEUE.
bool ScriptMgr::CanJoinInBattlegroundQueue | ( | Player * | player, |
ObjectGuid | BattlemasterGuid, | ||
BattlegroundTypeId | BGTypeID, | ||
uint8 | joinAsGroup, | ||
GroupJoinBattlegroundResult & | err | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_JOIN_IN_BATTLEGROUND_QUEUE.
bool ScriptMgr::CanJoinLfg | ( | Player * | player, |
uint8 | roles, | ||
lfg::LfgDungeonSet & | dungeons, | ||
const std::string & | comment | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_JOIN_LFG.
bool ScriptMgr::CanModAuraEffectDamageDone | ( | AuraEffect const * | auraEff, |
Unit * | target, | ||
AuraApplication const * | aurApp, | ||
uint8 | mode, | ||
bool | apply | ||
) |
References ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_DAMAGE_DONE, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanModAuraEffectModDamagePercentDone | ( | AuraEffect const * | auraEff, |
Unit * | target, | ||
AuraApplication const * | aurApp, | ||
uint8 | mode, | ||
bool | apply | ||
) |
References ALLSPELLHOOK_CAN_MOD_AURA_EFFECT_MOD_DAMAGE_PERCENT_DONE, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanPacketReceive | ( | WorldSession * | session, |
WorldPacket const & | packet | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and SERVERHOOK_CAN_PACKET_RECEIVE.
bool ScriptMgr::CanPacketSend | ( | WorldSession * | session, |
WorldPacket const & | packet | ||
) |
References ASSERT, CALL_ENABLED_BOOLEAN_HOOKS, and SERVERHOOK_CAN_PACKET_SEND.
bool ScriptMgr::CanPlaceAuctionBid | ( | Player * | player, |
AuctionEntry * | auction | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLACE_AUCTION_BID.
bool ScriptMgr::CanPlayerUseChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | language, | ||
std::string & | msg | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLAYER_USE_CHAT.
bool ScriptMgr::CanPlayerUseChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | language, | ||
std::string & | msg, | ||
Channel * | channel | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLAYER_USE_CHANNEL_CHAT.
bool ScriptMgr::CanPlayerUseChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | language, | ||
std::string & | msg, | ||
Group * | group | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLAYER_USE_GROUP_CHAT.
bool ScriptMgr::CanPlayerUseChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | language, | ||
std::string & | msg, | ||
Guild * | guild | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLAYER_USE_GUILD_CHAT.
bool ScriptMgr::CanPlayerUseChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | language, | ||
std::string & | msg, | ||
Player * | receiver | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_PLAYER_USE_PRIVATE_CHAT.
bool ScriptMgr::CanPrepare | ( | Spell * | spell, |
SpellCastTargets const * | targets, | ||
AuraEffect const * | triggeredByAura | ||
) |
References ALLSPELLHOOK_CAN_PREPARE, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanRepopAtGraveyard | ( | Player * | player | ) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_REPOP_AT_GRAVEYARD.
bool ScriptMgr::CanResetTalents | ( | Pet * | pet | ) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PETHOOK_CAN_RESET_TALENTS.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_SAVE_EQUIP_NEW_ITEM.
bool ScriptMgr::CanSaveToDB | ( | ArenaTeam * | team | ) |
References ARENAHOOK_CAN_SAVE_TO_DB, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::CanScalingEverything | ( | Spell * | spell | ) |
References ALLSPELLHOOK_CAN_SCALING_EVERYTHING, and CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE.
bool ScriptMgr::CanSelectSpecTalent | ( | Spell * | spell | ) |
References ALLSPELLHOOK_CAN_SELECT_SPEC_TALENT, and CALL_ENABLED_BOOLEAN_HOOKS.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_SELL_ITEM.
bool ScriptMgr::CanSendAuctionHello | ( | WorldSession const * | session, |
ObjectGuid | guid, | ||
Creature * | creature | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and MISCHOOK_CAN_SEND_AUCTIONHELLO.
bool ScriptMgr::CanSendErrorAlreadyLooted | ( | Player * | player | ) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_SEND_ERROR_ALREADY_LOOTED.
bool ScriptMgr::CanSendMail | ( | Player * | player, |
ObjectGuid | receiverGuid, | ||
ObjectGuid | mailbox, | ||
std::string & | subject, | ||
std::string & | body, | ||
uint32 | money, | ||
uint32 | COD, | ||
Item * | item | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_SEND_MAIL.
bool ScriptMgr::CanSendMessageBGQueue | ( | BattlegroundQueue * | queue, |
Player * | leader, | ||
Battleground * | bg, | ||
PvPDifficultyEntry const * | bracketEntry | ||
) |
References ALLBATTLEGROUNDHOOK_CAN_SEND_MESSAGE_BG_QUEUE, and CALL_ENABLED_BOOLEAN_HOOKS.
References CALL_ENABLED_BOOLEAN_HOOKS, and UNITHOOK_CAN_SET_PHASE_MASK.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_SET_TRADE_ITEM.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_UNEQUIP_ITEM.
References CALL_ENABLED_BOOLEAN_HOOKS, and PETHOOK_CAN_UNLEARN_SPELL_DEFAULT.
References CALL_ENABLED_BOOLEAN_HOOKS, and PETHOOK_CAN_UNLEARN_SPELL_SET.
bool ScriptMgr::CanUseItem | ( | Player * | player, |
ItemTemplate const * | proto, | ||
InventoryResult & | result | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CAN_USE_ITEM.
void ScriptMgr::CheckIfScriptsInDatabaseExist | ( | ) |
References LOG_ERROR, and sObjectMgr.
Referenced by LoadDatabase().
bool ScriptMgr::CheckItemInSlotAtLoadInventory | ( | Player * | player, |
Item * | item, | ||
uint8 | slot, | ||
uint8 & | err, | ||
uint16 & | dest | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_CHECK_ITEM_IN_SLOT_AT_LOAD_INVENTORY.
void ScriptMgr::CreateAuraScripts | ( | uint32 | spellId, |
std::list< AuraScript * > & | scriptVector | ||
) |
References _SpellScript::_Init(), SpellScriptLoader::GetAuraScript(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.
Battleground * ScriptMgr::CreateBattleground | ( | BattlegroundTypeId | typeId | ) |
InstanceScript * ScriptMgr::CreateInstanceScript | ( | InstanceMap * | map | ) |
References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and InstanceMap::GetScriptId().
OutdoorPvP * ScriptMgr::CreateOutdoorPvP | ( | OutdoorPvPData const * | data | ) |
References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and OutdoorPvPData::ScriptId.
void ScriptMgr::CreateSpellScriptLoaders | ( | uint32 | spellId, |
std::vector< std::pair< SpellScriptLoader *, std::multimap< uint32, uint32 >::iterator > > & | scriptVector | ||
) |
References ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.
void ScriptMgr::CreateSpellScripts | ( | uint32 | spellId, |
std::list< SpellScript * > & | scriptVector | ||
) |
References _SpellScript::_Init(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), SpellScriptLoader::GetSpellScript(), and sObjectMgr.
void ScriptMgr::Creature_SelectLevel | ( | const CreatureTemplate * | cinfo, |
Creature * | creature | ||
) |
References AllCreatureScript::Creature_SelectLevel().
uint32 ScriptMgr::DealDamage | ( | Unit * | AttackerUnit, |
Unit * | pVictim, | ||
uint32 | damage, | ||
DamageEffectType | damagetype | ||
) |
|
inline |
References _scheduledScripts.
|
inline |
References _scheduledScripts.
|
inline |
References _scriptCount.
void ScriptMgr::FillSpellSummary | ( | ) |
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().
Acore::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands | ( | ) |
CreatureAI * ScriptMgr::GetCreatureAI | ( | Creature * | creature | ) |
References ASSERT, AllCreatureScript::GetCreatureAI(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
References ASSERT, DIALOG_STATUS_SCRIPTED_NO_STATUS, ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
uint32 ScriptMgr::GetDialogStatus | ( | Player * | player, |
GameObject * | go | ||
) |
References ASSERT, DIALOG_STATUS_SCRIPTED_NO_STATUS, ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
References CALL_ENABLED_HOOKS, and MISCHOOK_GET_DIALOG_STATUS.
GameObjectAI * ScriptMgr::GetGameObjectAI | ( | GameObject * | go | ) |
References ASSERT, AllGameObjectScript::GetGameObjectAI(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
|
inline |
bool ScriptMgr::IfNormalReaction | ( | Unit const * | unit, |
Unit const * | target, | ||
ReputationRank & | repRank | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and UNITHOOK_IF_NORMAL_REACTION.
|
inline |
References _scheduledScripts.
|
inline |
References _scriptCount.
void ScriptMgr::Initialize | ( | ) |
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, UNITHOOK_END, WORLDHOOK_END, and WORLDOBJECTHOOK_END.
|
static |
References instance().
Referenced by AfterInstanceGameObjectCreate(), CanEnterMap(), instance(), and OnBeforeSetBossState().
bool ScriptMgr::IsCheckNormalMatch | ( | BattlegroundQueue * | queue, |
Battleground * | bgTemplate, | ||
BattlegroundBracketId | bracket_id, | ||
uint32 | minPlayers, | ||
uint32 | maxPlayers | ||
) |
References ALLBATTLEGROUNDHOOK_IS_CHECK_NORMAL_MATCH, and CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE.
bool ScriptMgr::IsCompletedCriteria | ( | AchievementMgr * | mgr, |
AchievementCriteriaEntry const * | achievementCriteria, | ||
AchievementEntry const * | achievement, | ||
CriteriaProgress const * | progress | ||
) |
References ACHIEVEMENTHOOK_IS_COMPLETED_CRITERIA, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::IsCustomBuildValuesUpdate | ( | Unit const * | unit, |
uint8 | updateType, | ||
ByteBuffer & | fieldBuffer, | ||
Player const * | target, | ||
uint16 | index | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and UNITHOOK_IS_CUSTOM_BUILD_VALUES_UPDATE.
bool ScriptMgr::IsNeedModHealPercent | ( | Unit const * | unit, |
AuraEffect * | auraEff, | ||
float & | doneTotalMod, | ||
SpellInfo const * | spellProto | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and UNITHOOK_IS_NEEDMOD_HEAL_PERCENT.
bool ScriptMgr::IsNeedModMeleeDamagePercent | ( | Unit const * | unit, |
AuraEffect * | auraEff, | ||
float & | doneTotalMod, | ||
SpellInfo const * | spellProto | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and UNITHOOK_IS_NEEDMOD_MELEE_DAMAGE_PERCENT.
bool ScriptMgr::IsNeedModSpellDamagePercent | ( | Unit const * | unit, |
AuraEffect * | auraEff, | ||
float & | doneTotalMod, | ||
SpellInfo const * | spellProto | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and UNITHOOK_IS_NEEDMOD_SPELL_DAMAGE_PERCENT.
bool ScriptMgr::IsRealmCompleted | ( | AchievementGlobalMgr const * | globalmgr, |
AchievementEntry const * | achievement, | ||
std::chrono::system_clock::time_point | completionTime | ||
) |
References ACHIEVEMENTHOOK_IS_REALM_COMPLETED, and CALL_ENABLED_BOOLEAN_HOOKS.
|
inline |
References _scheduledScripts.
void ScriptMgr::LoadDatabase | ( | ) |
References ScriptRegistry< TScript >::AddALScripts(), CheckIfScriptsInDatabaseExist(), FillSpellSummary(), getMSTime(), GetMSTimeDiffToNow(), GetScriptCount(), LOG_INFO, and sScriptSystemMgr.
void ScriptMgr::ModifyHealReceived | ( | Unit * | target, |
Unit * | healer, | ||
uint32 & | addHealth, | ||
SpellInfo const * | spellInfo | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_MODIFY_HEAL_RECEIVED.
References CALL_ENABLED_HOOKS, and UNITHOOK_MODIFY_MELEE_DAMAGE.
void ScriptMgr::ModifyPeriodicDamageAurasTick | ( | Unit * | target, |
Unit * | attacker, | ||
uint32 & | damage, | ||
SpellInfo const * | spellInfo | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_MODIFY_PERIODIC_DAMAGE_AURAS_TICK.
void ScriptMgr::ModifySpellDamageTaken | ( | Unit * | target, |
Unit * | attacker, | ||
int32 & | damage, | ||
SpellInfo const * | spellInfo | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_MODIFY_SPELL_DAMAGE_TAKEN.
bool ScriptMgr::NotAvoidSatisfy | ( | Player * | player, |
DungeonProgressionRequirements const * | ar, | ||
uint32 | target_map, | ||
bool | report | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_NOT_AVOID_SATISFY.
bool ScriptMgr::NotSetArenaTeamInfoField | ( | Player * | player, |
uint8 | slot, | ||
ArenaTeamInfoType | type, | ||
uint32 | value | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_NOT_SET_ARENA_TEAM_INFO_FIELD.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_NOT_VISIBLE_GLOBALLY_FOR.
void ScriptMgr::OnAccountLogin | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_ACCOUNT_LOGIN, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnAchievementComplete | ( | Player * | player, |
AchievementEntry const * | achievement | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_ACHI_COMPLETE.
void ScriptMgr::OnAchievementSave | ( | CharacterDatabaseTransaction | trans, |
Player * | player, | ||
uint16 | achiId, | ||
CompletedAchievementData | achiData | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_ACHI_SAVE.
References ASSERT, and GameObject::GetScriptId().
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 | ||
) |
References ALLBATTLEGROUNDHOOK_ON_ADD_GROUP, and CALL_ENABLED_HOOKS.
References ASSERT, and GameObject::GetScriptId().
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
void ScriptMgr::OnAfterArenaRatingCalculation | ( | Battleground *const | bg, |
int32 & | winnerMatchmakerChange, | ||
int32 & | loserMatchmakerChange, | ||
int32 & | winnerChange, | ||
int32 & | loserChange | ||
) |
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_AFTER_ARENA_RATING_CALCULATION.
void ScriptMgr::OnAfterCalculateLootGroupAmount | ( | Player const * | player, |
Loot & | loot, | ||
uint16 | lootMode, | ||
uint32 & | groupAmount, | ||
LootStore const & | store | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_AFTER_CALCULATE_LOOT_GROUP_AMOUNT.
void ScriptMgr::OnAfterConfigLoad | ( | bool | reload | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_AFTER_CONFIG_LOAD.
void ScriptMgr::OnAfterCreatureLoot | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_CREATURE_LOOT.
void ScriptMgr::OnAfterCreatureLootMoney | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_CREATURE_LOOT_MONEY.
void ScriptMgr::OnAfterDatabaseLoadCreatureTemplates | ( | std::vector< CreatureTemplate * > | creatureTemplateStore | ) |
References CALL_ENABLED_HOOKS, and DATABASEHOOK_ON_AFTER_DATABASE_LOAD_CREATURETEMPLATES.
void ScriptMgr::OnAfterDatabasesLoaded | ( | uint32 | updateFlags | ) |
References CALL_ENABLED_HOOKS, and DATABASEHOOK_ON_AFTER_DATABASES_LOADED.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_GUARDIAN_INIT_STATS_FOR_LEVEL.
void ScriptMgr::OnAfterInitializeLockedDungeons | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_AFTER_INITIALIZE_LOCKED_DUNGEONS.
void ScriptMgr::OnAfterLootTemplateProcess | ( | Loot * | loot, |
LootTemplate const * | tab, | ||
LootStore const & | store, | ||
Player * | lootOwner, | ||
bool | personal, | ||
bool | noEmptyError, | ||
uint16 | lootMode | ||
) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_AFTER_LOOT_TEMPLATE_PROCESS.
void ScriptMgr::OnAfterPlayerMoveItemFromInventory | ( | Player * | player, |
Item * | it, | ||
uint8 | bag, | ||
uint8 | slot, | ||
bool | update | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_MOVE_ITEM_FROM_INVENTORY.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_SET_VISIBLE_ITEM_SLOT.
void ScriptMgr::OnAfterRefCount | ( | Player const * | player, |
Loot & | loot, | ||
bool | canRate, | ||
uint16 | lootMode, | ||
LootStoreItem * | LootStoreItem, | ||
uint32 & | maxcount, | ||
LootStore const & | store | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_AFTER_REF_COUNT.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_SPEC_SLOT_CHANGED.
void ScriptMgr::OnAfterStoreOrEquipNewItem | ( | Player * | player, |
uint32 | vendorslot, | ||
Item * | item, | ||
uint8 | count, | ||
uint8 | bag, | ||
uint8 | slot, | ||
ItemTemplate const * | pProto, | ||
Creature * | pVendor, | ||
VendorItem const * | crItem, | ||
bool | bStore | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_STORE_OR_EQUIP_NEW_ITEM.
void ScriptMgr::OnAfterUnloadAllMaps | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_AFTER_UNLOAD_ALL_MAPS.
void ScriptMgr::OnAfterUpdateAttackPowerAndDamage | ( | Player * | player, |
float & | level, | ||
float & | base_attPower, | ||
float & | attPowerMod, | ||
float & | attPowerMultiplier, | ||
bool | ranged | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_UPDATE_ATTACK_POWER_AND_DAMAGE.
void ScriptMgr::OnAfterUpdateEncounterState | ( | Map * | map, |
EncounterCreditType | type, | ||
uint32 | creditEntry, | ||
Unit * | source, | ||
Difficulty | difficulty_fixed, | ||
DungeonEncounterList const * | encounters, | ||
uint32 | dungeonCompleted, | ||
bool | updated | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_AFTER_UPDATE_ENCOUNTER_STATE.
void ScriptMgr::OnAfterUpdateMaxHealth | ( | Player * | player, |
float & | value | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_UPDATE_MAX_HEALTH.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_AFTER_UPDATE_MAX_POWER.
bool ScriptMgr::OnAllowedForPlayerLootCheck | ( | Player const * | player, |
ObjectGuid | source | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GLOBALHOOK_ON_ALLOWED_FOR_PLAYER_LOOT_CHECK.
bool ScriptMgr::OnAllowedToLootContainerCheck | ( | Player const * | player, |
ObjectGuid | source | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GLOBALHOOK_ON_ALLOWED_TO_LOOT_CONTAINER_CHECK.
void ScriptMgr::OnApplyAmmoBonuses | ( | Player * | player, |
ItemTemplate const * | proto, | ||
float & | currentAmmoDPS | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_APPLY_AMMO_BONUSES.
void ScriptMgr::OnApplyEnchantmentItemModsBefore | ( | Player * | player, |
Item * | item, | ||
EnchantmentSlot | slot, | ||
bool | apply, | ||
uint32 | enchant_spell_id, | ||
uint32 & | enchant_amount | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_APPLY_ENCHANTMENT_ITEM_MODS_BEFORE.
void ScriptMgr::OnApplyItemModsBefore | ( | Player * | player, |
uint8 | slot, | ||
bool | apply, | ||
uint8 | itemProtoStatNumber, | ||
uint32 | statType, | ||
int32 & | val | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_APPLY_ITEM_MODS_BEFORE.
bool ScriptMgr::OnAreaTrigger | ( | Player * | player, |
AreaTrigger const * | trigger | ||
) |
void ScriptMgr::OnArenaQueueIdToArenaType | ( | const BattlegroundQueueTypeId | bgQueueTypeId, |
uint8 & | ArenaType | ||
) |
References ARENATEAMHOOK_ON_QUEUEID_TO_ARENA_TYPE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnArenaStart | ( | Battleground *const | bg | ) |
References ARENAHOOK_ON_ARENA_START, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnArenaTypeIDToQueueID | ( | const BattlegroundTypeId | bgTypeId, |
const uint8 | arenaType, | ||
uint32 & | queueTypeID | ||
) |
References ARENATEAMHOOK_ON_TYPEID_TO_QUEUEID, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnAuctionAdd | ( | AuctionHouseObject * | ah, |
AuctionEntry * | entry | ||
) |
References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_ADD, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnAuctionExpire | ( | AuctionHouseObject * | ah, |
AuctionEntry * | entry | ||
) |
References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_EXPIRE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnAuctionRemove | ( | AuctionHouseObject * | ah, |
AuctionEntry * | entry | ||
) |
References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_REMOVE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnAuctionSuccessful | ( | AuctionHouseObject * | ah, |
AuctionEntry * | entry | ||
) |
References ASSERT, AUCTIONHOUSEHOOK_ON_AUCTION_SUCCESSFUL, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_AURA_APPLY.
void ScriptMgr::OnAuraRemove | ( | Unit * | unit, |
AuraApplication * | aurApp, | ||
AuraRemoveMode | mode | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_AURA_REMOVE.
void ScriptMgr::OnBaseGainCalculation | ( | uint32 & | gain, |
uint8 | playerLevel, | ||
uint8 | mobLevel, | ||
ContentLevels | content | ||
) |
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_BASE_GAIN_CALCULATION.
void ScriptMgr::OnBattlegroundAddPlayer | ( | Battleground * | bg, |
Player * | player | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_ADD_PLAYER, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundBeforeAddPlayer | ( | Battleground * | bg, |
Player * | player | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_BEFORE_ADD_PLAYER, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundCreate | ( | Battleground * | bg | ) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_CREATE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundDesertion | ( | Player * | player, |
BattlegroundDesertionType const | desertionType | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BATTLEGROUND_DESERTION.
void ScriptMgr::OnBattlegroundDestroy | ( | Battleground * | bg | ) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_DESTROY, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundEnd | ( | Battleground * | bg, |
TeamId | winnerTeamId | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundEndReward | ( | Battleground * | bg, |
Player * | player, | ||
TeamId | winnerTeamId | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_END_REWARD, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundRemovePlayerAtLeave | ( | Battleground * | bg, |
Player * | player | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_REMOVE_PLAYER_AT_LEAVE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundStart | ( | Battleground * | bg | ) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_START, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBattlegroundUpdate | ( | Battleground * | bg, |
uint32 | diff | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BATTLEGROUND_UPDATE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAccountDelete | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_BEFORE_ACCOUNT_DELETE, and CALL_ENABLED_HOOKS.
bool ScriptMgr::OnBeforeAchievementComplete | ( | Player * | player, |
AchievementEntry const * | achievement | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_BEFORE_ACHI_COMPLETE.
bool ScriptMgr::OnBeforeArenaCheckWinConditions | ( | Battleground *const | bg | ) |
References ARENAHOOK_ON_BEFORE_CHECK_WIN_CONDITION, and CALL_ENABLED_BOOLEAN_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | bidder, | ||
uint32 & | bidder_accId, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_CANCELLED_TO_BIDDER_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionExpiredMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | owner, | ||
uint32 & | owner_accId, | ||
bool & | sendNotification, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_EXPIRED_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | oldBidder, | ||
uint32 & | oldBidder_accId, | ||
Player * | newBidder, | ||
uint32 & | newPrice, | ||
bool & | sendNotification, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_OUTBIDDED_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionSalePendingMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | owner, | ||
uint32 & | owner_accId, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SALE_PENDING_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | owner, | ||
uint32 & | owner_accId, | ||
uint32 & | profit, | ||
bool & | sendNotification, | ||
bool & | updateAchievementCriteria, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_SUCCESSFUL_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrSendAuctionWonMail | ( | AuctionHouseMgr * | auctionHouseMgr, |
AuctionEntry * | auction, | ||
Player * | bidder, | ||
uint32 & | bidder_accId, | ||
bool & | sendNotification, | ||
bool & | updateAchievementCriteria, | ||
bool & | sendMail | ||
) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_SEND_AUCTION_WON_MAIL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuctionHouseMgrUpdate | ( | ) |
References AUCTIONHOUSEHOOK_ON_BEFORE_AUCTIONHOUSEMGR_UPDATE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeAuraRankForLevel | ( | SpellInfo const * | spellInfo, |
SpellInfo const * | latestSpellInfo, | ||
uint8 | level | ||
) |
References ALLSPELLHOOK_ON_BEFORE_AURA_RANK_FOR_LEVEL, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeBuyItemFromVendor | ( | Player * | player, |
ObjectGuid | vendorguid, | ||
uint32 | vendorslot, | ||
uint32 & | item, | ||
uint8 | count, | ||
uint8 | bag, | ||
uint8 | slot | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_BUY_ITEM_FROM_VENDOR.
void ScriptMgr::OnBeforeCheckCriteria | ( | AchievementMgr * | mgr, |
AchievementCriteriaEntryList const * | achievementCriteriaList | ||
) |
References ACHIEVEMENTHOOK_ON_BEFORE_CHECK_CRITERIA, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeChooseGraveyard | ( | Player * | player, |
TeamId | teamId, | ||
bool | nearCorpse, | ||
uint32 & | graveyardOverride | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_CHOOSE_GRAVEYARD.
void ScriptMgr::OnBeforeConfigLoad | ( | bool | reload | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_BEFORE_CONFIG_LOAD.
void ScriptMgr::OnBeforeCreateInstanceScript | ( | InstanceMap * | instanceMap, |
InstanceScript ** | instanceData, | ||
bool | load, | ||
std::string | data, | ||
uint32 | completedEncounterMask | ||
) |
References ALLMAPHOOK_ON_BEFORE_CREATE_INSTANCE_SCRIPT, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnBeforeCreatureSelectLevel | ( | const CreatureTemplate * | cinfo, |
Creature * | creature, | ||
uint8 & | level | ||
) |
References AllCreatureScript::OnBeforeCreatureSelectLevel().
bool ScriptMgr::OnBeforeCriteriaProgress | ( | Player * | player, |
AchievementCriteriaEntry const * | criteria | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_BEFORE_CRITERIA_PROGRESS.
void ScriptMgr::OnBeforeDropAddItem | ( | Player const * | player, |
Loot & | loot, | ||
bool | canRate, | ||
uint16 | lootMode, | ||
LootStoreItem * | LootStoreItem, | ||
LootStore const & | store | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_BEFORE_DROP_ADD_ITEM.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_FILL_QUEST_LOOT_ITEM.
void ScriptMgr::OnBeforeFinalizePlayerWorldSession | ( | uint32 & | cacheVersion | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_BEFORE_FINALIZE_PLAYER_WORLD_SESSION.
void ScriptMgr::OnBeforeGuardianInitStatsForLevel | ( | Player * | player, |
Guardian * | guardian, | ||
CreatureTemplate const * | cinfo, | ||
PetType & | petType | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_GUARDIAN_INIT_STATS_FOR_LEVEL.
void ScriptMgr::OnBeforeInitTalentForLevel | ( | Player * | player, |
uint8 & | level, | ||
uint32 & | talentPointsForLevel | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_INIT_TALENT_FOR_LEVEL.
void ScriptMgr::OnBeforeLoadPetFromDB | ( | Player * | player, |
uint32 & | petentry, | ||
uint32 & | petnumber, | ||
bool & | current, | ||
bool & | forceLoadFromDB | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_LOAD_PET_FROM_DB.
bool ScriptMgr::OnBeforeLootEqualChanced | ( | Player const * | player, |
LootStoreItemList | EqualChanced, | ||
Loot & | loot, | ||
LootStore const & | store | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GLOBALHOOK_ON_BEFORE_LOOT_EQUAL_CHANCED.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_LOOT_MONEY.
void ScriptMgr::OnBeforeMailDraftSendMailTo | ( | MailDraft * | mailDraft, |
MailReceiver const & | receiver, | ||
MailSender const & | sender, | ||
MailCheckMask & | checked, | ||
uint32 & | deliver_delay, | ||
uint32 & | custom_expiration, | ||
bool & | deleteMailItemsFromDB, | ||
bool & | sendMail | ||
) |
References CALL_ENABLED_HOOKS, and MAILHOOK_ON_BEFORE_MAIL_DRAFT_SEND_MAIL_TO.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_BEFORE_OPEN_ITEM.
void ScriptMgr::OnBeforePlayerDurabilityRepair | ( | Player * | player, |
ObjectGuid | npcGUID, | ||
ObjectGuid | itemGUID, | ||
float & | discountMod, | ||
uint8 | guildBank | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_DURABILITY_REPAIR.
void ScriptMgr::OnBeforePlayerLogout | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_LOGOUT.
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_BEFORE_QUEST_COMPLETE.
bool ScriptMgr::OnBeforePlayerTeleport | ( | Player * | player, |
uint32 | mapid, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | orientation, | ||
uint32 | options, | ||
Unit * | target | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_BEFORE_TELEPORT.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_UPDATE.
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 | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_BEFORE_ROLL_MELEE_OUTCOME_AGAINST.
void ScriptMgr::OnBeforeSendChatMessage | ( | Player * | player, |
uint32 & | type, | ||
uint32 & | lang, | ||
std::string & | msg | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_SEND_CHAT_MESSAGE.
bool ScriptMgr::OnBeforeSendExitMessageArenaQueue | ( | BattlegroundQueue * | queue, |
GroupQueueInfo * | ginfo | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_EXIT_MESSAGE_ARENA_QUEUE, and CALL_ENABLED_BOOLEAN_HOOKS.
bool ScriptMgr::OnBeforeSendJoinMessageArenaQueue | ( | BattlegroundQueue * | queue, |
Player * | leader, | ||
GroupQueueInfo * | ginfo, | ||
PvPDifficultyEntry const * | bracketEntry, | ||
bool | isRated | ||
) |
References ALLBATTLEGROUNDHOOK_ON_BEFORE_SEND_JOIN_MESSAGE_ARENA_QUEUE, and CALL_ENABLED_BOOLEAN_HOOKS.
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.
id | The id of the boss in the [instance] |
newState | The new boss state to be applied to this boss |
oldState | The previously assigned state of this boss |
instance | A pointer to the [map] object of the instance |
References CALL_ENABLED_HOOKS, GLOBALHOOK_ON_BEFORE_SET_BOSS_STATE, and instance().
void ScriptMgr::OnBeforeStoreOrEquipNewItem | ( | Player * | player, |
uint32 | vendorslot, | ||
uint32 & | item, | ||
uint8 | count, | ||
uint8 | bag, | ||
uint8 | slot, | ||
ItemTemplate const * | pProto, | ||
Creature * | pVendor, | ||
VendorItem const * | crItem, | ||
bool | bStore | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_STORE_OR_EQUIP_NEW_ITEM.
void ScriptMgr::OnBeforeTempSummonInitStats | ( | Player * | player, |
TempSummon * | tempSummon, | ||
uint32 & | duration | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_TEMP_SUMMON_INIT_STATS.
void ScriptMgr::OnBeforeUpdateArenaPoints | ( | ArenaTeam * | at, |
std::map< ObjectGuid, uint32 > & | ap | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_BEFORE_UPDATE_ARENA_POINTS.
void ScriptMgr::OnBeforeUpdateAttackPowerAndDamage | ( | Player * | player, |
float & | level, | ||
float & | val2, | ||
bool | ranged | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEFORE_UPDATE_ATTACK_POWER_AND_DAMAGE.
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_BEFORE_UPDATING_PERSONAL_RATING.
void ScriptMgr::OnBeforeWorldInitialized | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_BEFORE_WORLD_INITIALIZED.
void ScriptMgr::OnBeforeWorldObjectSetPhaseMask | ( | WorldObject const * | worldObject, |
uint32 & | oldPhaseMask, | ||
uint32 & | newPhaseMask, | ||
bool & | useCombinedPhases, | ||
bool & | update | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_BEFORE_WORLDOBJECT_SET_PHASEMASK.
References ALLSPELLHOOK_ON_CALC_MAX_DURATION, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and PETHOOK_ON_CALCULATE_MAX_TALENT_POINTS_FOR_LEVEL.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CALCULATE_TALENTS_POINTS.
bool ScriptMgr::OnCanPlayerFlyInZone | ( | Player * | player, |
uint32 | mapId, | ||
uint32 | zoneId, | ||
SpellInfo const * | bySpell | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_CAN_PLAYER_FLY_IN_ZONE.
bool ScriptMgr::OnCastItemCombatSpell | ( | Player * | player, |
Unit * | victim, | ||
SpellInfo const * | spellInfo, | ||
Item * | item | ||
) |
References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().
void ScriptMgr::OnColorCodeCalculation | ( | XPColorChar & | color, |
uint8 | playerLevel, | ||
uint8 | mobLevel | ||
) |
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_COLOR_CODE_CALCULATION.
bool ScriptMgr::OnConditionCheck | ( | Condition * | condition, |
ConditionSourceInfo & | sourceInfo | ||
) |
References ASSERT, ScriptRegistry< TScript >::GetScriptById(), and Condition::ScriptId.
void ScriptMgr::OnConstructGroup | ( | Group * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_CONSTRUCT_GROUP.
void ScriptMgr::OnConstructInstanceSave | ( | InstanceSave * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_CONSTRUCT_INSTANCE_SAVE.
void ScriptMgr::OnConstructObject | ( | Object * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_CONSTRUCT_OBJECT.
void ScriptMgr::OnConstructPlayer | ( | Player * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_CONSTRUCT_PLAYER.
References CALL_ENABLED_HOOKS, and GROUPHOOK_ON_CREATE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CREATE_ITEM.
void ScriptMgr::OnCreateMap | ( | Map * | map | ) |
References ALLMAPHOOK_ON_CREATE_MAP, ASSERT, CALL_ENABLED_HOOKS, and MapScript< TMap >::OnCreate().
void ScriptMgr::OnCreatureAddWorld | ( | Creature * | creature | ) |
References ASSERT, and AllCreatureScript::OnCreatureAddWorld().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CREATURE_KILL.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CREATURE_KILLED_BY_PET.
void ScriptMgr::OnCreatureRemoveWorld | ( | Creature * | creature | ) |
References ASSERT, and AllCreatureScript::OnCreatureRemoveWorld().
void ScriptMgr::OnCreatureSaveToDB | ( | Creature * | creature | ) |
References ASSERT, and AllCreatureScript::OnCreatureSaveToDB().
References ASSERT, Creature::GetScriptId(), and AllCreatureScript::OnAllCreatureUpdate().
bool ScriptMgr::OnCriteriaCheck | ( | uint32 | scriptId, |
Player * | source, | ||
Unit * | target, | ||
uint32 | criteria_id | ||
) |
References ASSERT, and ScriptRegistry< TScript >::GetScriptById().
void ScriptMgr::OnCriteriaProgress | ( | Player * | player, |
AchievementCriteriaEntry const * | criteria | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CRITERIA_PROGRESS.
void ScriptMgr::OnCriteriaSave | ( | CharacterDatabaseTransaction | trans, |
Player * | player, | ||
uint16 | critId, | ||
CriteriaProgress | criteriaData | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CRITERIA_SAVE.
void ScriptMgr::OnCustomScalingStatValue | ( | Player * | player, |
ItemTemplate const * | proto, | ||
uint32 & | statType, | ||
int32 & | val, | ||
uint8 | itemProtoStatNumber, | ||
uint32 | ScalingStatValue, | ||
ScalingStatValuesEntry const * | ssv | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE.
void ScriptMgr::OnCustomScalingStatValueBefore | ( | Player * | player, |
ItemTemplate const * | proto, | ||
uint8 | slot, | ||
bool | apply, | ||
uint32 & | CustomScalingStatValue | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CUSTOM_SCALING_STAT_VALUE_BEFORE.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_DAMAGE.
void ScriptMgr::OnDeleteFromDB | ( | CharacterDatabaseTransaction | trans, |
uint32 | guid | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_DELETE_FROM_DB.
void ScriptMgr::OnDestroyInstance | ( | MapInstanced * | mapInstanced, |
Map * | map | ||
) |
References ALLMAPHOOK_ON_DESTROY_INSTANCE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnDestroyMap | ( | Map * | map | ) |
References ALLMAPHOOK_ON_DESTROY_MAP, ASSERT, CALL_ENABLED_HOOKS, and MapScript< TMap >::OnDestroy().
void ScriptMgr::OnDestructGroup | ( | Group * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_DESTRUCT_GROUP.
void ScriptMgr::OnDestructInstanceSave | ( | InstanceSave * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_DESTRUCT_INSTANCE_SAVE.
void ScriptMgr::OnDestructObject | ( | Object * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_DESTRUCT_OBJECT.
void ScriptMgr::OnDestructPlayer | ( | Player * | origin | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_DESTRUCT_PLAYER.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_DISPLAYID_CHANGE.
void ScriptMgr::OnDummyEffect | ( | WorldObject * | caster, |
uint32 | spellID, | ||
SpellEffIndex | effIndex, | ||
Creature * | creatureTarget | ||
) |
References ALLSPELLHOOK_ON_DUMMY_EFFECT_CREATURE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnDummyEffect | ( | WorldObject * | caster, |
uint32 | spellID, | ||
SpellEffIndex | effIndex, | ||
GameObject * | gameObjTarget | ||
) |
References ALLSPELLHOOK_ON_DUMMY_EFFECT_GAMEOBJECT, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnDummyEffect | ( | WorldObject * | caster, |
uint32 | spellID, | ||
SpellEffIndex | effIndex, | ||
Item * | itemTarget | ||
) |
References ALLSPELLHOOK_ON_DUMMY_EFFECT_ITEM, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnDynamicObjectUpdate | ( | DynamicObject * | dynobj, |
uint32 | diff | ||
) |
void ScriptMgr::OnEmailChange | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_EMAIL_CHANGE, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_EQUIP.
void ScriptMgr::OnFailedAccountLogin | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_FAILED_ACCOUNT_LOGIN, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnFailedEmailChange | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_FAILED_EMAIL_CHANGE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnFailedPasswordChange | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_FAILED_PASSWORD_CHANGE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnFfaPvpStateUpdate | ( | Creature * | creature, |
bool | InPvp | ||
) |
References AllCreatureScript::OnFfaPvpStateUpdate().
void ScriptMgr::OnFfaPvpStateUpdate | ( | Player * | player, |
bool | result | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_FFA_PVP_STATE_UPDATE.
void ScriptMgr::OnFirstLogin | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_FIRST_LOGIN.
References ASSERT, CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_GAIN_CALCULATION.
void ScriptMgr::OnGameEventCheck | ( | uint16 | EventID | ) |
References CALL_ENABLED_HOOKS, and GAMEEVENTHOOK_ON_EVENT_CHECK.
void ScriptMgr::OnGameEventStart | ( | uint16 | EventID | ) |
References CALL_ENABLED_HOOKS, and GAMEEVENTHOOK_ON_START.
void ScriptMgr::OnGameEventStop | ( | uint16 | EventID | ) |
References CALL_ENABLED_HOOKS, and GAMEEVENTHOOK_ON_STOP.
void ScriptMgr::OnGameObjectAddWorld | ( | GameObject * | go | ) |
References ASSERT, and AllGameObjectScript::OnGameObjectAddWorld().
void ScriptMgr::OnGameObjectDamaged | ( | GameObject * | go, |
Player * | player | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectDamaged().
void ScriptMgr::OnGameObjectDestroyed | ( | GameObject * | go, |
Player * | player | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectDestroyed().
void ScriptMgr::OnGameObjectLootStateChanged | ( | GameObject * | go, |
uint32 | state, | ||
Unit * | unit | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectLootStateChanged().
void ScriptMgr::OnGameObjectModifyHealth | ( | GameObject * | go, |
Unit * | attackerOrHealer, | ||
int32 & | change, | ||
SpellInfo const * | spellInfo | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectModifyHealth().
void ScriptMgr::OnGameObjectRemoveWorld | ( | GameObject * | go | ) |
References ASSERT, and AllGameObjectScript::OnGameObjectRemoveWorld().
void ScriptMgr::OnGameObjectSaveToDB | ( | GameObject * | go | ) |
References ASSERT, and AllGameObjectScript::OnGameObjectSaveToDB().
void ScriptMgr::OnGameObjectStateChanged | ( | GameObject * | go, |
uint32 | state | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectStateChanged().
void ScriptMgr::OnGameObjectUpdate | ( | GameObject * | go, |
uint32 | diff | ||
) |
References ASSERT, GameObject::GetScriptId(), and AllGameObjectScript::OnGameObjectUpdate().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_ARENA_PERSONAL_RATING.
void ScriptMgr::OnGetArenaPoints | ( | ArenaTeam * | at, |
float & | points | ||
) |
References ARENATEAMHOOK_ON_GET_ARENA_POINTS, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_ARENA_TEAM_ID.
void ScriptMgr::OnGetFeralApBonus | ( | Player * | player, |
int32 & | feral_bonus, | ||
int32 | dpsMod, | ||
ItemTemplate const * | proto, | ||
ScalingStatValuesEntry const * | ssv | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_FERAL_AP_BONUS.
void ScriptMgr::OnGetMaxPersonalArenaRatingRequirement | ( | Player const * | player, |
uint32 | minSlot, | ||
uint32 & | maxArenaRating | ||
) | const |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_MAX_PERSONAL_ARENA_RATING_REQUIREMENT.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_MAX_SKILL_VALUE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_MAX_SKILL_VALUE_FOR_LEVEL.
References ARENAHOOK_ON_GET_POINTS, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnGetQuestRate | ( | Player * | player, |
float & | result | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GET_QUEST_RATE.
References ARENATEAMHOOK_ON_GET_SLOT_BY_TYPE, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GIVE_EXP.
void ScriptMgr::OnGlobalItemDelFromDB | ( | CharacterDatabaseTransaction | trans, |
ObjectGuid::LowType | itemGuid | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_ITEM_DEL_FROM_DB.
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_MIRRORIMAGE_DISPLAY_ITEM.
References ASSERT, AllCreatureScript::CanCreatureGossipHello(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
bool ScriptMgr::OnGossipHello | ( | Player * | player, |
GameObject * | go | ||
) |
References ASSERT, AllGameObjectScript::CanGameObjectGossipHello(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
bool ScriptMgr::OnGossipSelect | ( | Player * | player, |
Creature * | creature, | ||
uint32 | sender, | ||
uint32 | action | ||
) |
References ASSERT, AllCreatureScript::CanCreatureGossipSelect(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
bool ScriptMgr::OnGossipSelect | ( | Player * | player, |
GameObject * | go, | ||
uint32 | sender, | ||
uint32 | action | ||
) |
References ASSERT, AllGameObjectScript::CanGameObjectGossipSelect(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
References ASSERT, Item::GetScriptId(), and AllItemScript::OnItemGossipSelect().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GOSSIP_SELECT.
bool ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
Creature * | creature, | ||
uint32 | sender, | ||
uint32 | action, | ||
const char * | code | ||
) |
References ASSERT, AllCreatureScript::CanCreatureGossipSelectCode(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
bool ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
GameObject * | go, | ||
uint32 | sender, | ||
uint32 | action, | ||
const char * | code | ||
) |
References ASSERT, AllGameObjectScript::CanGameObjectGossipSelectCode(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
void ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
Item * | item, | ||
uint32 | sender, | ||
uint32 | action, | ||
const char * | code | ||
) |
References ASSERT, Item::GetScriptId(), and AllItemScript::OnItemGossipSelectCode().
void ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
uint32 | menu_id, | ||
uint32 | sender, | ||
uint32 | action, | ||
const char * | code | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GOSSIP_SELECT_CODE.
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_GRAY_LEVEL_CALCULATION.
void ScriptMgr::OnGroupAddMember | ( | Group * | group, |
ObjectGuid | guid | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and GROUPHOOK_ON_ADD_MEMBER.
void ScriptMgr::OnGroupChangeLeader | ( | Group * | group, |
ObjectGuid | newLeaderGuid, | ||
ObjectGuid | oldLeaderGuid | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and GROUPHOOK_ON_CHANGE_LEADER.
void ScriptMgr::OnGroupDisband | ( | Group * | group | ) |
References ASSERT, CALL_ENABLED_HOOKS, and GROUPHOOK_ON_DISBAND.
void ScriptMgr::OnGroupInviteMember | ( | Group * | group, |
ObjectGuid | guid | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and GROUPHOOK_ON_INVITE_MEMBER.
void ScriptMgr::OnGroupRateCalculation | ( | float & | rate, |
uint32 | count, | ||
bool | isRaid | ||
) |
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_GROUP_RATE_CALCULATION.
void ScriptMgr::OnGroupRemoveMember | ( | Group * | group, |
ObjectGuid | guid, | ||
RemoveMethod | method, | ||
ObjectGuid | kicker, | ||
const char * | reason | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and GROUPHOOK_ON_REMOVE_MEMBER.
void ScriptMgr::OnGroupRollRewardItem | ( | Player * | player, |
Item * | item, | ||
uint32 | count, | ||
RollVote | voteType, | ||
Roll * | roll | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_GROUP_ROLL_REWARD_ITEM.
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_ADD_MEMBER.
void ScriptMgr::OnGuildBankEvent | ( | Guild * | guild, |
uint8 | eventType, | ||
uint8 | tabId, | ||
ObjectGuid::LowType | playerGuid, | ||
uint32 | itemOrMoney, | ||
uint16 | itemStackCount, | ||
uint8 | destTabId | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_BANK_EVENT.
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_CREATE.
void ScriptMgr::OnGuildDisband | ( | Guild * | guild | ) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_DISBAND.
void ScriptMgr::OnGuildEvent | ( | Guild * | guild, |
uint8 | eventType, | ||
ObjectGuid::LowType | playerGuid1, | ||
ObjectGuid::LowType | playerGuid2, | ||
uint8 | newRank | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_EVENT.
void ScriptMgr::OnGuildInfoChanged | ( | Guild * | guild, |
const std::string & | newInfo | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_INFO_CHANGED.
void ScriptMgr::OnGuildItemMove | ( | Guild * | guild, |
Player * | player, | ||
Item * | pItem, | ||
bool | isSrcBank, | ||
uint8 | srcContainer, | ||
uint8 | srcSlotId, | ||
bool | isDestBank, | ||
uint8 | destContainer, | ||
uint8 | destSlotId | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_ITEM_MOVE.
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_MEMBER_DEPOSIT_MONEY.
void ScriptMgr::OnGuildMemberWitdrawMoney | ( | Guild * | guild, |
Player * | player, | ||
uint32 & | amount, | ||
bool | isRepair | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_MEMBER_WITDRAW_MONEY.
void ScriptMgr::OnGuildMOTDChanged | ( | Guild * | guild, |
const std::string & | newMotd | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_MOTD_CHANGED.
void ScriptMgr::OnGuildRemoveMember | ( | Guild * | guild, |
Player * | player, | ||
bool | isDisbanding, | ||
bool | isKicked | ||
) |
References CALL_ENABLED_HOOKS, and GUILDHOOK_ON_REMOVE_MEMBER.
void ScriptMgr::OnHandleDevCommand | ( | Player * | player, |
bool & | enable | ||
) |
References ALLCOMMANDHOOK_ON_HANDLE_DEV_COMMAND, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_HEAL.
void ScriptMgr::OnHonorCalculation | ( | float & | honor, |
uint8 | level, | ||
float | multiplier | ||
) |
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_HONOR_CALCULATION.
void ScriptMgr::OnInitializeLockedDungeons | ( | Player * | player, |
uint8 & | level, | ||
uint32 & | lockData, | ||
lfg::LFGDungeonData const * | dungeon | ||
) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_INITIALIZE_LOCKED_DUNGEONS.
References CALL_ENABLED_HOOKS, and PETHOOK_ON_INIT_STATS_FOR_LEVEL.
void ScriptMgr::OnInstall | ( | Vehicle * | veh | ) |
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
void ScriptMgr::OnInstanceIdRemoved | ( | uint32 | instanceId | ) |
Called when an instance Id is deleted, usually because it expired or no players are bound to it anymore.
instanceId | The unique id of the instance |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_INSTANCEID_REMOVED.
void ScriptMgr::OnInstanceSave | ( | InstanceSave * | instanceSave | ) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_INSTANCE_SAVE.
bool ScriptMgr::OnIsAffectedBySpellModCheck | ( | SpellInfo const * | affectSpell, |
SpellInfo const * | checkSpell, | ||
SpellModifier const * | mod | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GLOBALHOOK_ON_IS_AFFECTED_BY_SPELL_MOD_CHECK.
void ScriptMgr::OnIsFFAPvP | ( | Player * | player, |
bool & | result | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_IS_FFA_PVP.
void ScriptMgr::OnIsPvP | ( | Player * | player, |
bool & | result | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_IS_PVP.
void ScriptMgr::OnItemCreate | ( | Item * | item, |
ItemTemplate const * | itemProto, | ||
Player const * | owner | ||
) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_ITEM_CREATE.
bool ScriptMgr::OnItemExpire | ( | Player * | player, |
ItemTemplate const * | proto | ||
) |
References ASSERT, AllItemScript::CanItemExpire(), ScriptRegistry< TScript >::GetScriptById(), and ItemTemplate::ScriptId.
References ASSERT, AllItemScript::CanItemRemove(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().
bool ScriptMgr::OnItemRoll | ( | Player const * | player, |
LootStoreItem const * | LootStoreItem, | ||
float & | chance, | ||
Loot & | loot, | ||
LootStore const & | store | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and GLOBALHOOK_ON_ITEM_ROLL.
bool ScriptMgr::OnItemUse | ( | Player * | player, |
Item * | item, | ||
SpellCastTargets const & | targets | ||
) |
References ASSERT, AllItemScript::CanItemUse(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().
void ScriptMgr::OnLastIpUpdate | ( | uint32 | accountId, |
std::string | ip | ||
) |
References ACCOUNTHOOK_ON_LAST_IP_UPDATE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnLoadCustomDatabaseTable | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_LOAD_CUSTOM_DATABASE_TABLE.
References ASSERT, and MapScript< TMap >::OnLoadGridMap().
void ScriptMgr::OnLoadSpellCustomAttr | ( | SpellInfo * | spell | ) |
References CALL_ENABLED_HOOKS, and GLOBALHOOK_ON_LOAD_SPELL_CUSTOM_ATTR.
void ScriptMgr::OnLootItem | ( | Player * | player, |
Item * | item, | ||
uint32 | count, | ||
ObjectGuid | lootguid | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LOOT_ITEM.
References ASSERT, CALL_ENABLED_HOOKS, and LOOTHOOK_ON_LOOT_MONEY.
References ALLMAPHOOK_ON_MAP_UPDATE, ASSERT, CALL_ENABLED_HOOKS, and MapScript< TMap >::OnUpdate().
void ScriptMgr::OnMotdChange | ( | std::string & | newMotd | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_MOTD_CHANGE.
void ScriptMgr::OnNetworkStart | ( | ) |
References CALL_ENABLED_HOOKS, and SERVERHOOK_ON_NETWORK_START.
void ScriptMgr::OnNetworkStop | ( | ) |
References CALL_ENABLED_HOOKS, and SERVERHOOK_ON_NETWORK_STOP.
void ScriptMgr::OnOpenStateChange | ( | bool | open | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_OPEN_STATE_CHANGE.
void ScriptMgr::OnPasswordChange | ( | uint32 | accountId | ) |
References ACCOUNTHOOK_ON_PASSWORD_CHANGE, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnPatchValuesUpdate | ( | Unit const * | unit, |
ByteBuffer & | valuesUpdateBuf, | ||
BuildValuesCachePosPointers & | posPointers, | ||
Player * | target | ||
) |
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_PATCH_VALUES_UPDATE.
void ScriptMgr::OnPetAddToWorld | ( | Pet * | pet | ) |
References ASSERT, CALL_ENABLED_HOOKS, and PETHOOK_ON_PET_ADD_TO_WORLD.
void ScriptMgr::OnPlayerAddToBattleground | ( | Player * | player, |
Battleground * | bg | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_ADD_TO_BATTLEGROUND.
void ScriptMgr::OnPlayerBeingCharmed | ( | Player * | player, |
Unit * | charmer, | ||
uint32 | oldFactionId, | ||
uint32 | newFactionId | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BEING_CHARMED.
void ScriptMgr::OnPlayerBindToInstance | ( | Player * | player, |
Difficulty | difficulty, | ||
uint32 | mapid, | ||
bool | permanent | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_BIND_TO_INSTANCE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CHAT.
void ScriptMgr::OnPlayerChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | lang, | ||
std::string & | msg, | ||
Channel * | channel | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CHAT_WITH_CHANNEL.
void ScriptMgr::OnPlayerChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | lang, | ||
std::string & | msg, | ||
Group * | group | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CHAT_WITH_GROUP.
void ScriptMgr::OnPlayerChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | lang, | ||
std::string & | msg, | ||
Guild * | guild | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CHAT_WITH_GUILD.
void ScriptMgr::OnPlayerChat | ( | Player * | player, |
uint32 | type, | ||
uint32 | lang, | ||
std::string & | msg, | ||
Player * | receiver | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CHAT_WITH_RECEIVER.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_COMPLETE_QUEST.
void ScriptMgr::OnPlayerCreate | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_CREATE.
void ScriptMgr::OnPlayerDelete | ( | ObjectGuid | guid, |
uint32 | accountId | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_DELETE.
void ScriptMgr::OnPlayerDuelEnd | ( | Player * | winner, |
Player * | loser, | ||
DuelCompleteType | type | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_DUEL_END.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_DUEL_REQUEST.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_DUEL_START.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_EMOTE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_ENTER_COMBAT.
References ALLMAPHOOK_ON_PLAYER_ENTER_ALL, ASSERT, CALL_ENABLED_HOOKS, and PlayerScript::OnMapChanged().
void ScriptMgr::OnPlayerFailedDelete | ( | ObjectGuid | guid, |
uint32 | accountId | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_FAILED_DELETE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_FORGOT_SPELL.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_FREE_TALENT_POINTS_CHANGED.
References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and PLAYERHOOK_ON_PLAYER_HAS_ACTIVE_POWER_TYPE.
Optional< bool > ScriptMgr::OnPlayerIsClass | ( | Player const * | player, |
Classes | playerClass, | ||
ClassContext | context | ||
) |
References PLAYERHOOK_ON_PLAYER_IS_CLASS.
void ScriptMgr::OnPlayerJoinArena | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_JOIN_ARENA.
void ScriptMgr::OnPlayerJoinBG | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_JOIN_BG.
void ScriptMgr::OnPlayerJustDied | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_JUST_DIED.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_KILLED_BY_CREATURE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LEARN_SPELL.
void ScriptMgr::OnPlayerLearnTalents | ( | Player * | player, |
uint32 | talentId, | ||
uint32 | talentRank, | ||
uint32 | spellid | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_LEARN_TALENTS.
void ScriptMgr::OnPlayerLeaveCombat | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_LEAVE_COMBAT.
References ALLMAPHOOK_ON_PLAYER_LEAVE_ALL, ASSERT, CALL_ENABLED_HOOKS, and MapScript< TMap >::OnPlayerLeave().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LEVEL_CHANGED.
void ScriptMgr::OnPlayerLoadFromDB | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LOAD_FROM_DB.
void ScriptMgr::OnPlayerLogin | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LOGIN.
void ScriptMgr::OnPlayerLogout | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_LOGOUT.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_MONEY_CHANGED.
void ScriptMgr::OnPlayerMove | ( | Player * | player, |
MovementInfo | movementInfo, | ||
uint32 | opcode | ||
) |
References CALL_ENABLED_HOOKS, and MOVEMENTHOOK_ON_PLAYER_MOVE.
void ScriptMgr::OnPlayerPVPFlagChange | ( | Player * | player, |
bool | state | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_PVP_FLAG_CHANGE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_QUEUE_RANDOM_DUNGEON.
void ScriptMgr::OnPlayerReleasedGhost | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_RELEASED_GHOST.
void ScriptMgr::OnPlayerRemoveFromBattleground | ( | Player * | player, |
Battleground * | bg | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_REMOVE_FROM_BATTLEGROUND.
bool ScriptMgr::OnPlayerReputationChange | ( | Player * | player, |
uint32 | factionID, | ||
int32 & | standing, | ||
bool | incremental | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_REPUTATION_CHANGE.
void ScriptMgr::OnPlayerReputationRankChange | ( | Player * | player, |
uint32 | factionID, | ||
ReputationRank | newRank, | ||
ReputationRank | oldRank, | ||
bool | increased | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_REPUTATION_RANK_CHANGE.
void ScriptMgr::OnPlayerResurrect | ( | Player * | player, |
float | restore_percent, | ||
bool | applySickness | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PLAYER_RESURRECT.
void ScriptMgr::OnPlayerSave | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SAVE.
void ScriptMgr::OnPlayerSetPhase | ( | const AuraEffect * | auraEff, |
AuraApplication const * | aurApp, | ||
uint8 | mode, | ||
bool | apply, | ||
uint32 & | newPhase | ||
) |
References CALL_ENABLED_HOOKS, and MISCHOOK_ON_PLAYER_SET_PHASE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SPELL_CAST.
void ScriptMgr::OnPlayerTalentsReset | ( | Player * | player, |
bool | noCost | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_TALENTS_RESET.
void ScriptMgr::OnPlayerTextEmote | ( | Player * | player, |
uint32 | textEmote, | ||
uint32 | emoteNum, | ||
ObjectGuid | guid | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_TEXT_EMOTE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE_AREA.
void ScriptMgr::OnPlayerUpdateFaction | ( | Player * | player | ) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE_FACTION.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE_ZONE.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_PVP_KILL.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_QUEST_ABANDON.
References ASSERT, AllCreatureScript::CanCreatureQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
bool ScriptMgr::OnQuestAccept | ( | Player * | player, |
GameObject * | go, | ||
Quest const * | quest | ||
) |
References ASSERT, AllGameObjectScript::CanGameObjectQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
References ASSERT, AllItemScript::CanItemQuestAccept(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Item::GetScriptId().
References ASSERT, ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_QUEST_COMPUTE_EXP.
bool ScriptMgr::OnQuestReward | ( | Player * | player, |
Creature * | creature, | ||
Quest const * | quest, | ||
uint32 | opt | ||
) |
References ASSERT, AllCreatureScript::CanCreatureQuestReward(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
bool ScriptMgr::OnQuestReward | ( | Player * | player, |
GameObject * | go, | ||
Quest const * | quest, | ||
uint32 | opt | ||
) |
References ASSERT, AllGameObjectScript::CanGameObjectQuestReward(), ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and GameObject::GetScriptId().
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_QUEST_REWARD_ITEM.
References ASSERT, ClearGossipMenuFor(), ScriptRegistry< TScript >::GetScriptById(), and Creature::GetScriptId().
void ScriptMgr::OnQueueUpdate | ( | BattlegroundQueue * | queue, |
uint32 | diff, | ||
BattlegroundTypeId | bgTypeId, | ||
BattlegroundBracketId | bracket_id, | ||
uint8 | arenaType, | ||
bool | isRated, | ||
uint32 | arenaRating | ||
) |
References ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE, and CALL_ENABLED_HOOKS.
bool ScriptMgr::OnQueueUpdateValidity | ( | BattlegroundQueue * | queue, |
uint32 | diff, | ||
BattlegroundTypeId | bgTypeId, | ||
BattlegroundBracketId | bracket_id, | ||
uint8 | arenaType, | ||
bool | isRated, | ||
uint32 | arenaRating | ||
) |
References ALLBATTLEGROUNDHOOK_ON_QUEUE_UPDATE_VALIDITY, and CALL_ENABLED_BOOLEAN_HOOKS.
void ScriptMgr::OnRelocate | ( | Transport * | transport, |
uint32 | waypointId, | ||
uint32 | mapId, | ||
float | x, | ||
float | y, | ||
float | z | ||
) |
References GameObject::GetScriptId().
void ScriptMgr::OnRemoveAuraScaleTargets | ( | Spell * | spell, |
TargetInfo & | targetInfo, | ||
uint8 | auraScaleMask, | ||
bool & | needErase | ||
) |
References ALLSPELLHOOK_ON_REMOVE_AURA_SCALE_TARGETS, and CALL_ENABLED_HOOKS.
References ASSERT, and GameObject::GetScriptId().
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
void ScriptMgr::OnReset | ( | Vehicle * | veh | ) |
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
void ScriptMgr::OnRewardKillRewarder | ( | Player * | player, |
KillRewarder * | rewarder, | ||
bool | isDungeon, | ||
float & | rate | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_REWARD_KILL_REWARDER.
void ScriptMgr::OnScaleAuraUnitAdd | ( | Spell * | spell, |
Unit * | target, | ||
uint32 | effectMask, | ||
bool | checkIfValid, | ||
bool | implicit, | ||
uint8 | auraScaleMask, | ||
TargetInfo & | targetInfo | ||
) |
References ALLSPELLHOOK_ON_SCALE_AURA_UNIT_ADD, and CALL_ENABLED_HOOKS.
void ScriptMgr::OnSendInitialPacketsBeforeAddToMap | ( | Player * | player, |
WorldPacket & | data | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SEND_INITIAL_PACKETS_BEFORE_ADD_TO_MAP.
References ARENATEAMHOOK_ON_SET_ARENA_MAX_PLAYERS_PER_TEAM, and CALL_ENABLED_HOOKS.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SET_MAX_LEVEL.
void ScriptMgr::OnSetServerSideVisibility | ( | Player * | player, |
ServerSideVisibilityType & | type, | ||
AccountTypes & | sec | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY.
void ScriptMgr::OnSetServerSideVisibilityDetect | ( | Player * | player, |
ServerSideVisibilityType & | type, | ||
AccountTypes & | sec | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_SET_SERVER_SIDE_VISIBILITY_DETECT.
void ScriptMgr::OnShutdown | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_SHUTDOWN.
void ScriptMgr::OnShutdownCancel | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_SHUTDOWN_CANCEL.
void ScriptMgr::OnShutdownInitiate | ( | ShutdownExitCode | code, |
ShutdownMask | mask | ||
) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_SHUTDOWN_INITIATE.
void ScriptMgr::OnSocketClose | ( | std::shared_ptr< WorldSocket > | socket | ) |
References ASSERT, CALL_ENABLED_HOOKS, and SERVERHOOK_ON_SOCKET_CLOSE.
void ScriptMgr::OnSocketOpen | ( | std::shared_ptr< WorldSocket > | socket | ) |
References ASSERT, CALL_ENABLED_HOOKS, and SERVERHOOK_ON_SOCKET_OPEN.
void ScriptMgr::OnSpellCheckCast | ( | Spell * | spell, |
bool | strict, | ||
SpellCastResult & | res | ||
) |
References ALLSPELLHOOK_ON_SPELL_CHECK_CAST, and CALL_ENABLED_HOOKS.
bool ScriptMgr::OnSpellHealingBonusTakenNegativeModifiers | ( | Unit const * | target, |
Unit const * | caster, | ||
SpellInfo const * | spellInfo, | ||
float & | val | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and GLOBALHOOK_ON_SPELL_HEALING_BONUS_TAKEN_NEGATIVE_MODIFIERS.
void ScriptMgr::OnStartup | ( | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_STARTUP.
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_STORE_NEW_ITEM.
References ASSERT, and GameObject::GetScriptId().
bool ScriptMgr::OnTryExecuteCommand | ( | ChatHandler & | handler, |
std::string_view | cmdStr | ||
) |
References ALLCOMMANDHOOK_ON_TRY_EXECUTE_COMMAND, and CALL_ENABLED_BOOLEAN_HOOKS.
void ScriptMgr::OnUninstall | ( | Vehicle * | veh | ) |
References ASSERT, Vehicle::GetBase(), Creature::GetScriptId(), Object::IsCreature(), and Object::ToCreature().
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_UNIT_DEATH.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_UNIT_ENTER_COMBAT.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_UNIT_ENTER_EVADE_MODE.
References CALL_ENABLED_HOOKS, and UNITHOOK_ON_UNIT_UPDATE.
References ASSERT, and MapScript< TMap >::OnUnloadGridMap().
void ScriptMgr::OnUpdateCraftingSkill | ( | Player * | player, |
SkillLineAbilityEntry const * | skill, | ||
uint32 | currentLevel, | ||
uint32 & | gain | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE_CRAFTING_SKILL.
bool ScriptMgr::OnUpdateFishingSkill | ( | Player * | player, |
int32 | skill, | ||
int32 | zone_skill, | ||
int32 | chance, | ||
int32 | roll | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_ON_UPDATE_FISHING_SKILL.
void ScriptMgr::OnUpdateGatheringSkill | ( | Player * | player, |
uint32 | skillId, | ||
uint32 | currentLevel, | ||
uint32 | gray, | ||
uint32 | green, | ||
uint32 | yellow, | ||
uint32 & | gain | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_UPDATE_GATHERING_SKILL.
void ScriptMgr::OnVictimRewardAfter | ( | Player * | player, |
Player * | victim, | ||
uint32 & | killer_title, | ||
uint32 & | victim_rank, | ||
float & | honor_f | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_VICTIM_REWARD_AFTER.
void ScriptMgr::OnVictimRewardBefore | ( | Player * | player, |
Player * | victim, | ||
uint32 & | killer_title, | ||
uint32 & | victim_title | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_ON_VICTIM_REWARD_BEFORE.
void ScriptMgr::OnWeatherChange | ( | Weather * | weather, |
WeatherState | state, | ||
float | grade | ||
) |
References ASSERT, Weather::GetScriptId(), and ElunaScript::OnWeatherChange().
References ASSERT, and Weather::GetScriptId().
void ScriptMgr::OnWorldObjectCreate | ( | WorldObject * | object | ) |
References ASSERT, CALL_ENABLED_HOOKS, and WORLDOBJECTHOOK_ON_WORLD_OBJECT_CREATE.
void ScriptMgr::OnWorldObjectDestroy | ( | WorldObject * | object | ) |
References ASSERT, CALL_ENABLED_HOOKS, and WORLDOBJECTHOOK_ON_WORLD_OBJECT_DESTROY.
void ScriptMgr::OnWorldObjectResetMap | ( | WorldObject * | object | ) |
References ASSERT, CALL_ENABLED_HOOKS, and WORLDOBJECTHOOK_ON_WORLD_OBJECT_RESET_MAP.
void ScriptMgr::OnWorldObjectSetMap | ( | WorldObject * | object, |
Map * | map | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and WORLDOBJECTHOOK_ON_WORLD_OBJECT_SET_MAP.
void ScriptMgr::OnWorldObjectUpdate | ( | WorldObject * | object, |
uint32 | diff | ||
) |
References ASSERT, CALL_ENABLED_HOOKS, and WORLDOBJECTHOOK_ON_WORLD_OBJECT_UPDATE.
void ScriptMgr::OnWorldUpdate | ( | uint32 | diff | ) |
References CALL_ENABLED_HOOKS, and WORLDHOOK_ON_UPDATE.
References CALL_ENABLED_HOOKS, and FORMULAHOOK_ON_ZERO_DIFFERENCE_CALCULATION.
bool ScriptMgr::PassedQuestKilledMonsterCredit | ( | Player * | player, |
Quest const * | qinfo, | ||
uint32 | entry, | ||
uint32 | real_entry, | ||
ObjectGuid | guid | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS, and PLAYERHOOK_PASSED_QUEST_KILLED_MONSTER_CREDIT.
void ScriptMgr::PetitionBuy | ( | Player * | player, |
Creature * | creature, | ||
uint32 & | charterid, | ||
uint32 & | cost, | ||
uint32 & | type | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_PETITION_BUY.
void ScriptMgr::PetitionShowList | ( | Player * | player, |
Creature * | creature, | ||
uint32 & | CharterEntry, | ||
uint32 & | CharterDispayID, | ||
uint32 & | CharterCost | ||
) |
References CALL_ENABLED_HOOKS, and PLAYERHOOK_PETITION_SHOW_LIST.
|
inline |
|
inline |
Sets the modules loader callback which is invoked to load modules (Workaround for circular dependency game <-> modules)
References _modules_loader_callback.
void ScriptMgr::SetRealmCompleted | ( | AchievementEntry const * | achievement | ) |
References ACHIEVEMENTHOOK_SET_REALM_COMPLETED, and CALL_ENABLED_HOOKS.
|
inline |
Sets the script loader callback which is invoked to load scripts (Workaround for circular dependency game <-> scripts)
References _script_loader_callback.
bool ScriptMgr::ShouldBeRewardedWithMoneyInsteadOfExp | ( | Player * | player | ) |
References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and PLAYERHOOK_SHOULD_BE_REWARDED_WITH_MONEY_INSTEAD_OF_EXP.
bool ScriptMgr::ShouldTrackValuesUpdatePosByIndex | ( | Unit const * | unit, |
uint8 | updateType, | ||
uint16 | index | ||
) |
References CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE, and UNITHOOK_SHOULD_TRACK_VALUES_UPDATE_POS_BY_INDEX.
void ScriptMgr::Unload | ( | ) |
References SpellSummary.
void ScriptMgr::ValidateSpellAtCastSpell | ( | Player * | player, |
uint32 & | oldSpellId, | ||
uint32 & | spellId, | ||
uint8 & | castCount, | ||
uint8 & | castFlags | ||
) |
References CALL_ENABLED_HOOKS, and MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL.
void ScriptMgr::ValidateSpellAtCastSpellResult | ( | Player * | player, |
Unit * | mover, | ||
Spell * | spell, | ||
uint32 | oldSpellId, | ||
uint32 | spellId | ||
) |
References CALL_ENABLED_HOOKS, and MISCHOOK_VALIDATE_SPELL_AT_CAST_SPELL_RESULT.
|
privatevirtual |
|
friend |
|
private |
Referenced by Initialize(), and SetModulesLoader().
|
private |
Referenced by DecreaseScheduledScriptCount(), IncreaseScheduledScriptsCount(), and IsScriptScheduled().
|
private |
Referenced by Initialize(), and SetScriptLoader().
|
private |
Referenced by DecreaseScriptCount(), GetScriptCount(), and IncreaseScriptCount().