|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ScriptMgr.h>
Public Member Functions | |
| void | CreateAuraScripts (uint32 spellId, std::list< AuraScript * > &scriptVector) |
| Battleground * | CreateBattleground (BattlegroundTypeId typeId) |
| InstanceScript * | CreateInstanceData (InstanceMap *map) |
| OutdoorPvP * | CreateOutdoorPvP (OutdoorPvPData const *data) |
| void | CreateSpellScriptLoaders (uint32 spellId, std::vector< std::pair< SpellScriptLoader *, std::multimap< uint32, uint32 >::iterator > > &scriptVector) |
| void | CreateSpellScripts (uint32 spellId, std::list< SpellScript * > &scriptVector) |
| uint32 | DecreaseScheduledScriptCount () |
| uint32 | DecreaseScheduledScriptCount (size_t count) |
| void | FillSpellSummary () |
| std::vector< ChatCommand > | GetChatCommands () |
| CreatureAI * | GetCreatureAI (Creature *creature) |
| uint32 | GetDialogStatus (Player *player, Creature *creature) |
| uint32 | GetDialogStatus (Player *player, GameObject *go) |
| GameObjectAI * | GetGameObjectAI (GameObject *go) |
| uint32 | GetScriptCount () const |
| uint32 | IncreaseScheduledScriptsCount () |
| void | IncrementScriptCount () |
| void | Initialize () |
| bool | IsScriptScheduled () const |
| void | LoadDatabase () |
| void | ModifyMeleeDamage (Unit *target, Unit *attacker, uint32 &damage) |
| void | ModifyPeriodicDamageAurasTick (Unit *target, Unit *attacker, uint32 &damage) |
| void | ModifySpellDamageTaken (Unit *target, Unit *attacker, int32 &damage) |
| void | OnAddCreaturePassenger (Transport *transport, Creature *creature) |
| void | OnAddPassenger (Transport *transport, Player *player) |
| void | OnAddPassenger (Vehicle *veh, Unit *passenger, int8 seatId) |
| bool | OnAreaTrigger (Player *player, AreaTriggerEntry const *trigger) |
| void | OnAuctionAdd (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionExpire (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionRemove (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionSuccessful (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnBaseGainCalculation (uint32 &gain, uint8 playerLevel, uint8 mobLevel, ContentLevels content) |
| void | OnColorCodeCalculation (XPColorChar &color, uint8 playerLevel, uint8 mobLevel) |
| bool | OnConditionCheck (Condition *condition, ConditionSourceInfo &sourceInfo) |
| void | OnConfigLoad (bool reload) |
| void | OnCreateMap (Map *map) |
| void | OnCreatureKill (Player *killer, Creature *killed) |
| void | OnCreatureUpdate (Creature *creature, uint32 diff) |
| bool | OnCriteriaCheck (uint32 scriptId, Player *source, Unit *target) |
| void | OnDamage (Unit *attacker, Unit *victim, uint32 &damage) |
| void | OnDestroyMap (Map *map) |
| bool | OnDummyEffect (Unit *caster, uint32 spellId, SpellEffIndex effIndex, Creature *target) |
| bool | OnDummyEffect (Unit *caster, uint32 spellId, SpellEffIndex effIndex, GameObject *target) |
| bool | OnDummyEffect (Unit *caster, uint32 spellId, SpellEffIndex effIndex, Item *target) |
| void | OnDynamicObjectUpdate (DynamicObject *dynobj, uint32 diff) |
| void | OnGainCalculation (uint32 &gain, Player *player, Unit *unit) |
| void | OnGameObjectDamaged (GameObject *go, Player *player) |
| void | OnGameObjectDestroyed (GameObject *go, Player *player) |
| void | OnGameObjectLootStateChanged (GameObject *go, uint32 state, Unit *unit) |
| void | OnGameObjectStateChanged (GameObject *go, uint32 state) |
| void | OnGameObjectUpdate (GameObject *go, uint32 diff) |
| void | OnGivePlayerXP (Player *player, uint32 &amount, Unit *victim) |
| bool | OnGossipHello (Player *player, Creature *creature) |
| bool | OnGossipHello (Player *player, GameObject *go) |
| bool | OnGossipSelect (Player *player, Creature *creature, uint32 sender, uint32 action) |
| bool | OnGossipSelect (Player *player, GameObject *go, uint32 sender, uint32 action) |
| bool | OnGossipSelectCode (Player *player, Creature *creature, uint32 sender, uint32 action, const char *code) |
| bool | OnGossipSelectCode (Player *player, GameObject *go, uint32 sender, uint32 action, const char *code) |
| void | OnGrayLevelCalculation (uint8 &grayLevel, uint8 playerLevel) |
| void | OnGroupAddMember (Group *group, uint64 guid) |
| void | OnGroupChangeLeader (Group *group, uint64 newLeaderGuid, uint64 oldLeaderGuid) |
| void | OnGroupDisband (Group *group) |
| void | OnGroupInviteMember (Group *group, uint64 guid) |
| void | OnGroupRateCalculation (float &rate, uint32 count, bool isRaid) |
| void | OnGroupRemoveMember (Group *group, uint64 guid, RemoveMethod method, uint64 kicker, const char *reason) |
| void | OnGuildAddMember (Guild *guild, Player *player, uint8 &plRank) |
| void | OnGuildBankEvent (Guild *guild, uint8 eventType, uint8 tabId, uint32 playerGuid, uint32 itemOrMoney, uint16 itemStackCount, uint8 destTabId) |
| void | OnGuildCreate (Guild *guild, Player *leader, const std::string &name) |
| void | OnGuildDisband (Guild *guild) |
| void | OnGuildEvent (Guild *guild, uint8 eventType, uint32 playerGuid1, uint32 playerGuid2, uint8 newRank) |
| void | OnGuildInfoChanged (Guild *guild, const std::string &newInfo) |
| void | OnGuildItemMove (Guild *guild, Player *player, Item *pItem, bool isSrcBank, uint8 srcContainer, uint8 srcSlotId, bool isDestBank, uint8 destContainer, uint8 destSlotId) |
| void | OnGuildMemberDepositMoney (Guild *guild, Player *player, uint64 &amount) |
| void | OnGuildMemberWitdrawMoney (Guild *guild, Player *player, uint64 &amount, bool isRepair) |
| void | OnGuildMOTDChanged (Guild *guild, const std::string &newMotd) |
| void | OnGuildRemoveMember (Guild *guild, Player *player, bool isDisbanding, bool isKicked) |
| void | OnHeal (Unit *healer, Unit *reciever, uint32 &gain) |
| void | OnHonorCalculation (float &honor, uint8 level, float multiplier) |
| void | OnInstall (Vehicle *veh) |
| void | OnInstallAccessory (Vehicle *veh, Creature *accessory) |
| bool | OnItemExpire (Player *player, ItemTemplate const *proto) |
| bool | OnItemUse (Player *player, Item *item, SpellCastTargets const &targets) |
| void | OnLoadGridMap (Map *map, GridMap *gmap, uint32 gx, uint32 gy) |
| void | OnMapUpdate (Map *map, uint32 diff) |
| void | OnMotdChange (std::string &newMotd) |
| void | OnNetworkStart () |
| void | OnNetworkStop () |
| void | OnOpenStateChange (bool open) |
| void | OnPacketReceive (WorldSocket *socket, WorldPacket packet) |
| void | OnPacketSend (WorldSocket *socket, WorldPacket packet) |
| void | OnPlayerBindToInstance (Player *player, DifficultyID difficulty, uint32 mapid, bool permanent) |
| void | OnPlayerChat (Player *player, ChatMsg type, Language lang, std::string &msg) |
| void | OnPlayerChat (Player *player, ChatMsg type, Language lang, std::string &msg, Channel *channel) |
| void | OnPlayerChat (Player *player, ChatMsg type, Language lang, std::string &msg, Group *group) |
| void | OnPlayerChat (Player *player, ChatMsg type, Language lang, std::string &msg, Guild *guild) |
| void | OnPlayerChat (Player *player, ChatMsg type, Language lang, std::string &msg, Player *receiver) |
| void | OnPlayerCreate (Player *player) |
| void | OnPlayerDelete (uint64 guid) |
| void | OnPlayerDuelEnd (Player *winner, Player *loser, DuelCompleteType type) |
| void | OnPlayerDuelRequest (Player *target, Player *challenger) |
| void | OnPlayerDuelStart (Player *player1, Player *player2) |
| void | OnPlayerEmote (Player *player, uint32 emote) |
| void | OnPlayerEnterMap (Map *map, Player *player) |
| void | OnPlayerFreeTalentPointsChanged (Player *player, uint32 newPoints) |
| void | OnPlayerKilledByCreature (Creature *killer, Player *killed) |
| void | OnPlayerLeaveMap (Map *map, Player *player) |
| void | OnPlayerLevelChanged (Player *player, uint8 oldLevel) |
| void | OnPlayerLogin (Player *player, bool firstLogin) |
| void | OnPlayerLogout (Player *player) |
| void | OnPlayerMoneyChanged (Player *player, int64 &amount) |
| void | OnPlayerReputationChange (Player *player, uint32 factionID, int32 &standing, bool incremental) |
| void | OnPlayerSave (Player *player) |
| void | OnPlayerSpellCast (Player *player, Spell *spell, bool skipCheck) |
| void | OnPlayerTalentsReset (Player *player, bool noCost) |
| void | OnPlayerTextEmote (Player *player, uint32 textEmote, uint32 emoteNum, uint64 guid) |
| void | OnPlayerUpdateZone (Player *player, uint32 newZone, uint32 newArea) |
| void | OnPVPKill (Player *killer, Player *killed) |
| bool | OnQuestAccept (Player *player, Creature *creature, Quest const *quest) |
| bool | OnQuestAccept (Player *player, GameObject *go, Quest const *quest) |
| bool | OnQuestAccept (Player *player, Item *item, Quest const *quest) |
| bool | OnQuestComplete (Player *player, Creature *creature, Quest const *quest) |
| bool | OnQuestReward (Player *player, Creature *creature, Quest const *quest, uint32 opt) |
| bool | OnQuestReward (Player *player, GameObject *go, Quest const *quest, uint32 opt) |
| bool | OnQuestSelect (Player *player, Creature *creature, Quest const *quest) |
| void | OnRelocate (Transport *transport, uint32 waypointId, uint32 mapId, float x, float y, float z) |
| void | OnRemovePassenger (Transport *transport, Player *player) |
| void | OnRemovePassenger (Vehicle *veh, Unit *passenger) |
| void | OnReset (Vehicle *veh) |
| void | OnShutdown () |
| void | OnShutdownCancel () |
| void | OnShutdownInitiate (ShutdownExitCode code, ShutdownMask mask) |
| void | OnSocketClose (WorldSocket *socket, bool wasNew) |
| void | OnSocketOpen (WorldSocket *socket) |
| void | OnStartup () |
| void | OnTransportUpdate (Transport *transport, uint32 diff) |
| void | OnUninstall (Vehicle *veh) |
| void | OnUnknownPacketReceive (WorldSocket *socket, WorldPacket packet) |
| void | OnUnloadGridMap (Map *map, GridMap *gmap, uint32 gx, uint32 gy) |
| void | OnWeatherChange (Weather *weather, WeatherState state, float grade) |
| void | OnWeatherUpdate (Weather *weather, uint32 diff) |
| void | OnWorldUpdate (uint32 diff) |
| void | OnZeroDifferenceCalculation (uint8 &diff, uint8 playerLevel) |
| const char * | ScriptsVersion () const |
| void | Unload () |
Private Member Functions | |
| ScriptMgr () | |
| virtual | ~ScriptMgr () |
Private Attributes | |
| std::atomic< long > | _scheduledScripts |
| uint32 | _scriptCount |
Friends | |
| class | ScriptObject |
| class | Skyfire::Singleton< ScriptMgr, Skyfire::NullMutex > |
Definition at line 767 of file ScriptMgr.h.
|
private |
Definition at line 160 of file ScriptMgr.cpp.
References _scheduledScripts, and _scriptCount.
Referenced by ScriptObject.
| void ScriptMgr::CreateAuraScripts | ( | uint32 | spellId, |
| std::list< AuraScript * > & | scriptVector ) |
Definition at line 337 of file ScriptMgr.cpp.
References _SpellScript::_Init(), SpellScriptLoader::GetAuraScript(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.
| Battleground * ScriptMgr::CreateBattleground | ( | BattlegroundTypeId | typeId | ) |
Definition at line 913 of file ScriptMgr.cpp.
References ASSERT.
| InstanceScript * ScriptMgr::CreateInstanceData | ( | InstanceMap * | map | ) |
Definition at line 630 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and InstanceMap::GetScriptId().
| OutdoorPvP * ScriptMgr::CreateOutdoorPvP | ( | OutdoorPvPData const * | data | ) |
Definition at line 920 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and OutdoorPvPData::ScriptId.
| void ScriptMgr::CreateSpellScriptLoaders | ( | uint32 | spellId, |
| std::vector< std::pair< SpellScriptLoader *, std::multimap< uint32, uint32 >::iterator > > & | scriptVector ) |
Definition at line 358 of file ScriptMgr.cpp.
References ScriptRegistry< TScript >::GetScriptById(), and sObjectMgr.
| void ScriptMgr::CreateSpellScripts | ( | uint32 | spellId, |
| std::list< SpellScript * > & | scriptVector ) |
Definition at line 316 of file ScriptMgr.cpp.
References _SpellScript::_Init(), ScriptObject::GetName(), ScriptRegistry< TScript >::GetScriptById(), SpellScriptLoader::GetSpellScript(), and sObjectMgr.
|
inline |
Definition at line 973 of file ScriptMgr.h.
References _scheduledScripts.
|
inline |
Definition at line 974 of file ScriptMgr.h.
References _scheduledScripts.
| void ScriptMgr::FillSpellSummary | ( | ) |
Definition at line 228 of file ScriptMgr.cpp.
References SpellEffectInfo::ApplyAuraName, SpellEffectInfo::Effect, SpellInfo::Effects, UnitAI::FillAISpellInfo(), SpellImplicitTargetInfo::GetTarget(), 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, TARGET_UNIT_TARGET_PARTY_TARGET_RAID, and SpellEffectInfo::TargetA.
Referenced by Initialize(), and ScriptObject.
| std::vector< ChatCommand > ScriptMgr::GetChatCommands | ( | ) |
Definition at line 928 of file ScriptMgr.cpp.
References FOR_SCRIPTS_RET, and table.
| CreatureAI * ScriptMgr::GetCreatureAI | ( | Creature * | creature | ) |
Definition at line 769 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Creature::GetScriptId().
Definition at line 758 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| uint32 ScriptMgr::GetDialogStatus | ( | Player * | player, |
| GameObject * | go ) |
Definition at line 844 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, GameObject::GetScriptId(), and Player::PlayerTalkClass.
| GameObjectAI * ScriptMgr::GetGameObjectAI | ( | GameObject * | go | ) |
Definition at line 777 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and GameObject::GetScriptId().
|
inline |
|
inline |
Definition at line 972 of file ScriptMgr.h.
References _scheduledScripts.
|
inline |
Definition at line 783 of file ScriptMgr.h.
References _scriptCount.
| void ScriptMgr::Initialize | ( | ) |
Definition at line 165 of file ScriptMgr.cpp.
References AddScripts(), FillSpellSummary(), getMSTime(), GetMSTimeDiffToNow(), GetScriptCount(), LoadDatabase(), and SF_LOG_INFO.
Referenced by ScriptObject.
|
inline |
Definition at line 975 of file ScriptMgr.h.
References _scheduledScripts.
| void ScriptMgr::LoadDatabase | ( | ) |
Definition at line 223 of file ScriptMgr.cpp.
References sScriptSystemMgr.
Referenced by Initialize(), and ScriptObject.
Definition at line 1362 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1357 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1367 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1071 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
Definition at line 1062 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
Definition at line 1034 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
| bool ScriptMgr::OnAreaTrigger | ( | Player * | player, |
| AreaTriggerEntry const * | trigger ) |
Definition at line 904 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, AreaTriggerEntry::id, and sObjectMgr.
| void ScriptMgr::OnAuctionAdd | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry ) |
Definition at line 957 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnAuctionExpire | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry ) |
Definition at line 981 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnAuctionRemove | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry ) |
Definition at line 965 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnAuctionSuccessful | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry ) |
Definition at line 973 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnBaseGainCalculation | ( | uint32 & | gain, |
| uint8 | playerLevel, | ||
| uint8 | mobLevel, | ||
| ContentLevels | content ) |
Definition at line 468 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnColorCodeCalculation | ( | XPColorChar & | color, |
| uint8 | playerLevel, | ||
| uint8 | mobLevel ) |
Definition at line 458 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| bool ScriptMgr::OnConditionCheck | ( | Condition * | condition, |
| ConditionSourceInfo & | sourceInfo ) |
Definition at line 989 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Condition::ScriptId.
| void ScriptMgr::OnConfigLoad | ( | bool | reload | ) |
Definition at line 423 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnCreateMap | ( | Map * | map | ) |
Definition at line 502 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
Definition at line 1128 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 785 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and Creature::GetScriptId().
Definition at line 1113 of file ScriptMgr.cpp.
References ASSERT, and GET_SCRIPT_RET.
Definition at line 1352 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnDestroyMap | ( | Map * | map | ) |
Definition at line 519 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
| bool ScriptMgr::OnDummyEffect | ( | Unit * | caster, |
| uint32 | spellId, | ||
| SpellEffIndex | effIndex, | ||
| Creature * | target ) |
Definition at line 676 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Creature::GetScriptId().
| bool ScriptMgr::OnDummyEffect | ( | Unit * | caster, |
| uint32 | spellId, | ||
| SpellEffIndex | effIndex, | ||
| GameObject * | target ) |
Definition at line 895 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and GameObject::GetScriptId().
| bool ScriptMgr::OnDummyEffect | ( | Unit * | caster, |
| uint32 | spellId, | ||
| SpellEffIndex | effIndex, | ||
| Item * | target ) |
Definition at line 638 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Item::GetScriptId().
| void ScriptMgr::OnDynamicObjectUpdate | ( | DynamicObject * | dynobj, |
| uint32 | diff ) |
Definition at line 1054 of file ScriptMgr.cpp.
References ASSERT, and FOR_SCRIPTS.
Definition at line 473 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnGameObjectDamaged | ( | GameObject * | go, |
| Player * | player ) |
Definition at line 863 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
| void ScriptMgr::OnGameObjectDestroyed | ( | GameObject * | go, |
| Player * | player ) |
Definition at line 855 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
| void ScriptMgr::OnGameObjectLootStateChanged | ( | GameObject * | go, |
| uint32 | state, | ||
| Unit * | unit ) |
Definition at line 871 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
| void ScriptMgr::OnGameObjectStateChanged | ( | GameObject * | go, |
| uint32 | state ) |
Definition at line 879 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
| void ScriptMgr::OnGameObjectUpdate | ( | GameObject * | go, |
| uint32 | diff ) |
Definition at line 887 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
Definition at line 1158 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 685 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| bool ScriptMgr::OnGossipHello | ( | Player * | player, |
| GameObject * | go ) |
Definition at line 793 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, GameObject::GetScriptId(), and Player::PlayerTalkClass.
| bool ScriptMgr::OnGossipSelect | ( | Player * | player, |
| Creature * | creature, | ||
| uint32 | sender, | ||
| uint32 | action ) |
Definition at line 695 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Creature::GetScriptId().
| bool ScriptMgr::OnGossipSelect | ( | Player * | player, |
| GameObject * | go, | ||
| uint32 | sender, | ||
| uint32 | action ) |
Definition at line 803 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and GameObject::GetScriptId().
| bool ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
| Creature * | creature, | ||
| uint32 | sender, | ||
| uint32 | action, | ||
| const char * | code ) |
Definition at line 704 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Creature::GetScriptId().
| bool ScriptMgr::OnGossipSelectCode | ( | Player * | player, |
| GameObject * | go, | ||
| uint32 | sender, | ||
| uint32 | action, | ||
| const char * | code ) |
Definition at line 812 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and GameObject::GetScriptId().
Definition at line 453 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1316 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
Definition at line 1334 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnGroupDisband | ( | Group * | group | ) |
Definition at line 1340 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
Definition at line 1322 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnGroupRateCalculation | ( | float & | rate, |
| uint32 | count, | ||
| bool | isRaid ) |
Definition at line 481 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGroupRemoveMember | ( | Group * | group, |
| uint64 | guid, | ||
| RemoveMethod | method, | ||
| uint64 | kicker, | ||
| const char * | reason ) |
Definition at line 1328 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
Definition at line 1259 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildBankEvent | ( | Guild * | guild, |
| uint8 | eventType, | ||
| uint8 | tabId, | ||
| uint32 | playerGuid, | ||
| uint32 | itemOrMoney, | ||
| uint16 | itemStackCount, | ||
| uint8 | destTabId ) |
Definition at line 1310 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1279 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildDisband | ( | Guild * | guild | ) |
Definition at line 1284 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildEvent | ( | Guild * | guild, |
| uint8 | eventType, | ||
| uint32 | playerGuid1, | ||
| uint32 | playerGuid2, | ||
| uint8 | newRank ) |
Definition at line 1305 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildInfoChanged | ( | Guild * | guild, |
| const std::string & | newInfo ) |
Definition at line 1274 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildItemMove | ( | Guild * | guild, |
| Player * | player, | ||
| Item * | pItem, | ||
| bool | isSrcBank, | ||
| uint8 | srcContainer, | ||
| uint8 | srcSlotId, | ||
| bool | isDestBank, | ||
| uint8 | destContainer, | ||
| uint8 | destSlotId ) |
Definition at line 1299 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1294 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildMemberWitdrawMoney | ( | Guild * | guild, |
| Player * | player, | ||
| uint64 & | amount, | ||
| bool | isRepair ) |
Definition at line 1289 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildMOTDChanged | ( | Guild * | guild, |
| const std::string & | newMotd ) |
Definition at line 1269 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnGuildRemoveMember | ( | Guild * | guild, |
| Player * | player, | ||
| bool | isDisbanding, | ||
| bool | isKicked ) |
Definition at line 1264 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1347 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnHonorCalculation | ( | float & | honor, |
| uint8 | level, | ||
| float | multiplier ) |
Definition at line 448 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnInstall | ( | Vehicle * | veh | ) |
Definition at line 997 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
Definition at line 1024 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
| bool ScriptMgr::OnItemExpire | ( | Player * | player, |
| ItemTemplate const * | proto ) |
Definition at line 667 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and ItemTemplate::ScriptId.
| bool ScriptMgr::OnItemUse | ( | Player * | player, |
| Item * | item, | ||
| SpellCastTargets const & | targets ) |
Definition at line 658 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT_RET, and Item::GetScriptId().
Definition at line 536 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
Definition at line 610 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
| void ScriptMgr::OnMotdChange | ( | std::string & | newMotd | ) |
Definition at line 428 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnNetworkStart | ( | ) |
Definition at line 373 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnNetworkStop | ( | ) |
Definition at line 378 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnOpenStateChange | ( | bool | open | ) |
Definition at line 418 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPacketReceive | ( | WorldSocket * | socket, |
| WorldPacket | packet ) |
Definition at line 397 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnPacketSend | ( | WorldSocket * | socket, |
| WorldPacket | packet ) |
Definition at line 404 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerBindToInstance | ( | Player * | player, |
| DifficultyID | difficulty, | ||
| uint32 | mapid, | ||
| bool | permanent ) |
Definition at line 1248 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1183 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| ChatMsg | type, | ||
| Language | lang, | ||
| std::string & | msg, | ||
| Channel * | channel ) |
Definition at line 1203 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| ChatMsg | type, | ||
| Language | lang, | ||
| std::string & | msg, | ||
| Group * | group ) |
Definition at line 1193 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| ChatMsg | type, | ||
| Language | lang, | ||
| std::string & | msg, | ||
| Guild * | guild ) |
Definition at line 1198 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| ChatMsg | type, | ||
| Language | lang, | ||
| std::string & | msg, | ||
| Player * | receiver ) |
Definition at line 1188 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerCreate | ( | Player * | player | ) |
Definition at line 1233 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerDelete | ( | uint64 | guid | ) |
Definition at line 1238 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerDuelEnd | ( | Player * | winner, |
| Player * | loser, | ||
| DuelCompleteType | type ) |
Definition at line 1178 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1168 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1173 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1208 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 572 of file ScriptMgr.cpp.
References ASSERT, FOREACH_SCRIPT, SCR_MAP_BGN, and SCR_MAP_END.
Definition at line 1143 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1133 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 592 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
Definition at line 1138 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerLogin | ( | Player * | player, |
| bool | firstLogin ) |
Definition at line 1223 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerLogout | ( | Player * | player | ) |
Definition at line 1228 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1153 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerReputationChange | ( | Player * | player, |
| uint32 | factionID, | ||
| int32 & | standing, | ||
| bool | incremental ) |
Definition at line 1163 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerSave | ( | Player * | player | ) |
Definition at line 1243 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1218 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerTalentsReset | ( | Player * | player, |
| bool | noCost ) |
Definition at line 1148 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnPlayerTextEmote | ( | Player * | player, |
| uint32 | textEmote, | ||
| uint32 | emoteNum, | ||
| uint64 | guid ) |
Definition at line 1213 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1253 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1123 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 714 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| bool ScriptMgr::OnQuestAccept | ( | Player * | player, |
| GameObject * | go, | ||
| Quest const * | quest ) |
Definition at line 822 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, GameObject::GetScriptId(), and Player::PlayerTalkClass.
Definition at line 647 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Item::GetScriptId(), and Player::PlayerTalkClass.
Definition at line 736 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| bool ScriptMgr::OnQuestReward | ( | Player * | player, |
| Creature * | creature, | ||
| Quest const * | quest, | ||
| uint32 | opt ) |
Definition at line 747 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| bool ScriptMgr::OnQuestReward | ( | Player * | player, |
| GameObject * | go, | ||
| Quest const * | quest, | ||
| uint32 | opt ) |
Definition at line 833 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, GameObject::GetScriptId(), and Player::PlayerTalkClass.
Definition at line 725 of file ScriptMgr.cpp.
References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.
| void ScriptMgr::OnRelocate | ( | Transport * | transport, |
| uint32 | waypointId, | ||
| uint32 | mapId, | ||
| float | x, | ||
| float | y, | ||
| float | z ) |
Definition at line 1097 of file ScriptMgr.cpp.
References GET_SCRIPT, and GameObject::GetScriptId().
Definition at line 1080 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
Definition at line 1044 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
| void ScriptMgr::OnReset | ( | Vehicle * | veh | ) |
Definition at line 1015 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
| void ScriptMgr::OnShutdown | ( | ) |
Definition at line 1108 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnShutdownCancel | ( | ) |
Definition at line 438 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnShutdownInitiate | ( | ShutdownExitCode | code, |
| ShutdownMask | mask ) |
Definition at line 433 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
| void ScriptMgr::OnSocketClose | ( | WorldSocket * | socket, |
| bool | wasNew ) |
Definition at line 390 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnSocketOpen | ( | WorldSocket * | socket | ) |
Definition at line 383 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
| void ScriptMgr::OnStartup | ( | ) |
Definition at line 1103 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 1089 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().
| void ScriptMgr::OnUninstall | ( | Vehicle * | veh | ) |
Definition at line 1006 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, Vehicle::GetBase(), Creature::GetScriptId(), Object::GetTypeId(), Object::ToCreature(), and TYPEID_UNIT.
| void ScriptMgr::OnUnknownPacketReceive | ( | WorldSocket * | socket, |
| WorldPacket | packet ) |
Definition at line 411 of file ScriptMgr.cpp.
References ASSERT, and FOREACH_SCRIPT.
Definition at line 554 of file ScriptMgr.cpp.
References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.
| void ScriptMgr::OnWeatherChange | ( | Weather * | weather, |
| WeatherState | state, | ||
| float | grade ) |
Definition at line 941 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and Weather::GetScriptId().
Definition at line 949 of file ScriptMgr.cpp.
References ASSERT, GET_SCRIPT, and Weather::GetScriptId().
| void ScriptMgr::OnWorldUpdate | ( | uint32 | diff | ) |
Definition at line 443 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
Definition at line 463 of file ScriptMgr.cpp.
References FOREACH_SCRIPT.
|
inline |
Definition at line 781 of file ScriptMgr.h.
References ScriptsVersion().
Referenced by ScriptsVersion().
| void ScriptMgr::Unload | ( | ) |
Definition at line 179 of file ScriptMgr.cpp.
References UnitAI::AISpellInfo, SCR_CLEAR, and SpellSummary.
|
privatevirtual |
Definition at line 163 of file ScriptMgr.cpp.
|
friend |
Definition at line 770 of file ScriptMgr.h.
References FillSpellSummary(), Initialize(), LoadDatabase(), ScriptMgr(), and ScriptObject.
Referenced by ScriptObject.
|
friend |
Definition at line 760 of file ScriptMgr.h.
|
private |
Definition at line 981 of file ScriptMgr.h.
Referenced by DecreaseScheduledScriptCount(), DecreaseScheduledScriptCount(), IncreaseScheduledScriptsCount(), IsScriptScheduled(), and ScriptMgr().
|
private |
Definition at line 978 of file ScriptMgr.h.
Referenced by GetScriptCount(), IncrementScriptCount(), and ScriptMgr().