Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ScriptMgr Class Reference

#include <ScriptMgr.h>

Public Member Functions

void CreateAuraScripts (uint32 spellId, std::list< AuraScript * > &scriptVector)
BattlegroundCreateBattleground (BattlegroundTypeId typeId)
InstanceScriptCreateInstanceData (InstanceMap *map)
OutdoorPvPCreateOutdoorPvP (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< ChatCommandGetChatCommands ()
CreatureAIGetCreatureAI (Creature *creature)
uint32 GetDialogStatus (Player *player, Creature *creature)
uint32 GetDialogStatus (Player *player, GameObject *go)
GameObjectAIGetGameObjectAI (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 >

Detailed Description

Definition at line 767 of file ScriptMgr.h.

Constructor & Destructor Documentation

◆ ScriptMgr()

ScriptMgr::ScriptMgr ( )
private

Definition at line 160 of file ScriptMgr.cpp.

References _scheduledScripts, and _scriptCount.

Referenced by ScriptObject.

Member Function Documentation

◆ CreateAuraScripts()

void ScriptMgr::CreateAuraScripts ( uint32 spellId,
std::list< AuraScript * > & scriptVector )

◆ CreateBattleground()

Battleground * ScriptMgr::CreateBattleground ( BattlegroundTypeId typeId)
Todo
Implement script-side battlegrounds.

Definition at line 913 of file ScriptMgr.cpp.

References ASSERT.

◆ CreateInstanceData()

InstanceScript * ScriptMgr::CreateInstanceData ( InstanceMap * map)

Definition at line 630 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and InstanceMap::GetScriptId().

◆ CreateOutdoorPvP()

OutdoorPvP * ScriptMgr::CreateOutdoorPvP ( OutdoorPvPData const * data)

Definition at line 920 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and OutdoorPvPData::ScriptId.

◆ CreateSpellScriptLoaders()

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.

◆ CreateSpellScripts()

void ScriptMgr::CreateSpellScripts ( uint32 spellId,
std::list< SpellScript * > & scriptVector )

◆ DecreaseScheduledScriptCount() [1/2]

uint32 ScriptMgr::DecreaseScheduledScriptCount ( )
inline

Definition at line 973 of file ScriptMgr.h.

References _scheduledScripts.

◆ DecreaseScheduledScriptCount() [2/2]

uint32 ScriptMgr::DecreaseScheduledScriptCount ( size_t count)
inline

Definition at line 974 of file ScriptMgr.h.

References _scheduledScripts.

◆ FillSpellSummary()

◆ GetChatCommands()

std::vector< ChatCommand > ScriptMgr::GetChatCommands ( )

Definition at line 928 of file ScriptMgr.cpp.

References FOR_SCRIPTS_RET, and table.

◆ GetCreatureAI()

CreatureAI * ScriptMgr::GetCreatureAI ( Creature * creature)

Definition at line 769 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and Creature::GetScriptId().

◆ GetDialogStatus() [1/2]

uint32 ScriptMgr::GetDialogStatus ( Player * player,
Creature * creature )
Todo
100 is a funny magic number to have hanging around here...

Definition at line 758 of file ScriptMgr.cpp.

References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, Creature::GetScriptId(), and Player::PlayerTalkClass.

◆ GetDialogStatus() [2/2]

uint32 ScriptMgr::GetDialogStatus ( Player * player,
GameObject * go )
Todo
100 is a funny magic number to have hanging around here...

Definition at line 844 of file ScriptMgr.cpp.

References ASSERT, PlayerMenu::ClearMenus(), GET_SCRIPT_RET, GameObject::GetScriptId(), and Player::PlayerTalkClass.

◆ GetGameObjectAI()

GameObjectAI * ScriptMgr::GetGameObjectAI ( GameObject * go)

Definition at line 777 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and GameObject::GetScriptId().

◆ GetScriptCount()

uint32 ScriptMgr::GetScriptCount ( ) const
inline

Definition at line 784 of file ScriptMgr.h.

References _scriptCount.

Referenced by Initialize().

◆ IncreaseScheduledScriptsCount()

uint32 ScriptMgr::IncreaseScheduledScriptsCount ( )
inline

Definition at line 972 of file ScriptMgr.h.

References _scheduledScripts.

◆ IncrementScriptCount()

void ScriptMgr::IncrementScriptCount ( )
inline

Definition at line 783 of file ScriptMgr.h.

References _scriptCount.

◆ Initialize()

void ScriptMgr::Initialize ( )

◆ IsScriptScheduled()

bool ScriptMgr::IsScriptScheduled ( ) const
inline

Definition at line 975 of file ScriptMgr.h.

References _scheduledScripts.

◆ LoadDatabase()

void ScriptMgr::LoadDatabase ( )

Definition at line 223 of file ScriptMgr.cpp.

References sScriptSystemMgr.

Referenced by Initialize(), and ScriptObject.

◆ ModifyMeleeDamage()

void ScriptMgr::ModifyMeleeDamage ( Unit * target,
Unit * attacker,
uint32 & damage )

Definition at line 1362 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ ModifyPeriodicDamageAurasTick()

void ScriptMgr::ModifyPeriodicDamageAurasTick ( Unit * target,
Unit * attacker,
uint32 & damage )

Definition at line 1357 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ ModifySpellDamageTaken()

void ScriptMgr::ModifySpellDamageTaken ( Unit * target,
Unit * attacker,
int32 & damage )

Definition at line 1367 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnAddCreaturePassenger()

void ScriptMgr::OnAddCreaturePassenger ( Transport * transport,
Creature * creature )

Definition at line 1071 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnAddPassenger() [1/2]

void ScriptMgr::OnAddPassenger ( Transport * transport,
Player * player )

Definition at line 1062 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnAddPassenger() [2/2]

void ScriptMgr::OnAddPassenger ( Vehicle * veh,
Unit * passenger,
int8 seatId )

◆ OnAreaTrigger()

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.

◆ OnAuctionAdd()

void ScriptMgr::OnAuctionAdd ( AuctionHouseObject * ah,
AuctionEntry * entry )

Definition at line 957 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnAuctionExpire()

void ScriptMgr::OnAuctionExpire ( AuctionHouseObject * ah,
AuctionEntry * entry )

Definition at line 981 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnAuctionRemove()

void ScriptMgr::OnAuctionRemove ( AuctionHouseObject * ah,
AuctionEntry * entry )

Definition at line 965 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnAuctionSuccessful()

void ScriptMgr::OnAuctionSuccessful ( AuctionHouseObject * ah,
AuctionEntry * entry )

Definition at line 973 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnBaseGainCalculation()

void ScriptMgr::OnBaseGainCalculation ( uint32 & gain,
uint8 playerLevel,
uint8 mobLevel,
ContentLevels content )

Definition at line 468 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnColorCodeCalculation()

void ScriptMgr::OnColorCodeCalculation ( XPColorChar & color,
uint8 playerLevel,
uint8 mobLevel )

Definition at line 458 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnConditionCheck()

bool ScriptMgr::OnConditionCheck ( Condition * condition,
ConditionSourceInfo & sourceInfo )

Definition at line 989 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and Condition::ScriptId.

◆ OnConfigLoad()

void ScriptMgr::OnConfigLoad ( bool reload)

Definition at line 423 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnCreateMap()

void ScriptMgr::OnCreateMap ( Map * map)

Definition at line 502 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnCreatureKill()

void ScriptMgr::OnCreatureKill ( Player * killer,
Creature * killed )

Definition at line 1128 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnCreatureUpdate()

void ScriptMgr::OnCreatureUpdate ( Creature * creature,
uint32 diff )

Definition at line 785 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and Creature::GetScriptId().

◆ OnCriteriaCheck()

bool ScriptMgr::OnCriteriaCheck ( uint32 scriptId,
Player * source,
Unit * target )

Definition at line 1113 of file ScriptMgr.cpp.

References ASSERT, and GET_SCRIPT_RET.

◆ OnDamage()

void ScriptMgr::OnDamage ( Unit * attacker,
Unit * victim,
uint32 & damage )

Definition at line 1352 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnDestroyMap()

void ScriptMgr::OnDestroyMap ( Map * map)

Definition at line 519 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnDummyEffect() [1/3]

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().

◆ OnDummyEffect() [2/3]

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().

◆ OnDummyEffect() [3/3]

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().

◆ OnDynamicObjectUpdate()

void ScriptMgr::OnDynamicObjectUpdate ( DynamicObject * dynobj,
uint32 diff )

Definition at line 1054 of file ScriptMgr.cpp.

References ASSERT, and FOR_SCRIPTS.

◆ OnGainCalculation()

void ScriptMgr::OnGainCalculation ( uint32 & gain,
Player * player,
Unit * unit )

Definition at line 473 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnGameObjectDamaged()

void ScriptMgr::OnGameObjectDamaged ( GameObject * go,
Player * player )

Definition at line 863 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnGameObjectDestroyed()

void ScriptMgr::OnGameObjectDestroyed ( GameObject * go,
Player * player )

Definition at line 855 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnGameObjectLootStateChanged()

void ScriptMgr::OnGameObjectLootStateChanged ( GameObject * go,
uint32 state,
Unit * unit )

Definition at line 871 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnGameObjectStateChanged()

void ScriptMgr::OnGameObjectStateChanged ( GameObject * go,
uint32 state )

Definition at line 879 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnGameObjectUpdate()

void ScriptMgr::OnGameObjectUpdate ( GameObject * go,
uint32 diff )

Definition at line 887 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnGivePlayerXP()

void ScriptMgr::OnGivePlayerXP ( Player * player,
uint32 & amount,
Unit * victim )

Definition at line 1158 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGossipHello() [1/2]

bool ScriptMgr::OnGossipHello ( Player * player,
Creature * creature )

◆ OnGossipHello() [2/2]

bool ScriptMgr::OnGossipHello ( Player * player,
GameObject * go )

◆ OnGossipSelect() [1/2]

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().

◆ OnGossipSelect() [2/2]

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().

◆ OnGossipSelectCode() [1/2]

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().

◆ OnGossipSelectCode() [2/2]

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().

◆ OnGrayLevelCalculation()

void ScriptMgr::OnGrayLevelCalculation ( uint8 & grayLevel,
uint8 playerLevel )

Definition at line 453 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGroupAddMember()

void ScriptMgr::OnGroupAddMember ( Group * group,
uint64 guid )

Definition at line 1316 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnGroupChangeLeader()

void ScriptMgr::OnGroupChangeLeader ( Group * group,
uint64 newLeaderGuid,
uint64 oldLeaderGuid )

Definition at line 1334 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnGroupDisband()

void ScriptMgr::OnGroupDisband ( Group * group)

Definition at line 1340 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnGroupInviteMember()

void ScriptMgr::OnGroupInviteMember ( Group * group,
uint64 guid )

Definition at line 1322 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnGroupRateCalculation()

void ScriptMgr::OnGroupRateCalculation ( float & rate,
uint32 count,
bool isRaid )

Definition at line 481 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGroupRemoveMember()

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.

◆ OnGuildAddMember()

void ScriptMgr::OnGuildAddMember ( Guild * guild,
Player * player,
uint8 & plRank )

Definition at line 1259 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildBankEvent()

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.

◆ OnGuildCreate()

void ScriptMgr::OnGuildCreate ( Guild * guild,
Player * leader,
const std::string & name )

Definition at line 1279 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildDisband()

void ScriptMgr::OnGuildDisband ( Guild * guild)

Definition at line 1284 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildEvent()

void ScriptMgr::OnGuildEvent ( Guild * guild,
uint8 eventType,
uint32 playerGuid1,
uint32 playerGuid2,
uint8 newRank )

Definition at line 1305 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildInfoChanged()

void ScriptMgr::OnGuildInfoChanged ( Guild * guild,
const std::string & newInfo )

Definition at line 1274 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildItemMove()

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.

◆ OnGuildMemberDepositMoney()

void ScriptMgr::OnGuildMemberDepositMoney ( Guild * guild,
Player * player,
uint64 & amount )

Definition at line 1294 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildMemberWitdrawMoney()

void ScriptMgr::OnGuildMemberWitdrawMoney ( Guild * guild,
Player * player,
uint64 & amount,
bool isRepair )

Definition at line 1289 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildMOTDChanged()

void ScriptMgr::OnGuildMOTDChanged ( Guild * guild,
const std::string & newMotd )

Definition at line 1269 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnGuildRemoveMember()

void ScriptMgr::OnGuildRemoveMember ( Guild * guild,
Player * player,
bool isDisbanding,
bool isKicked )

Definition at line 1264 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnHeal()

void ScriptMgr::OnHeal ( Unit * healer,
Unit * reciever,
uint32 & gain )

Definition at line 1347 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnHonorCalculation()

void ScriptMgr::OnHonorCalculation ( float & honor,
uint8 level,
float multiplier )

Definition at line 448 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnInstall()

void ScriptMgr::OnInstall ( Vehicle * veh)

◆ OnInstallAccessory()

void ScriptMgr::OnInstallAccessory ( Vehicle * veh,
Creature * accessory )

◆ OnItemExpire()

bool ScriptMgr::OnItemExpire ( Player * player,
ItemTemplate const * proto )

Definition at line 667 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT_RET, and ItemTemplate::ScriptId.

◆ OnItemUse()

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().

◆ OnLoadGridMap()

void ScriptMgr::OnLoadGridMap ( Map * map,
GridMap * gmap,
uint32 gx,
uint32 gy )

Definition at line 536 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnMapUpdate()

void ScriptMgr::OnMapUpdate ( Map * map,
uint32 diff )

Definition at line 610 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnMotdChange()

void ScriptMgr::OnMotdChange ( std::string & newMotd)

Definition at line 428 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnNetworkStart()

void ScriptMgr::OnNetworkStart ( )

Definition at line 373 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnNetworkStop()

void ScriptMgr::OnNetworkStop ( )

Definition at line 378 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnOpenStateChange()

void ScriptMgr::OnOpenStateChange ( bool open)

Definition at line 418 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPacketReceive()

void ScriptMgr::OnPacketReceive ( WorldSocket * socket,
WorldPacket packet )

Definition at line 397 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnPacketSend()

void ScriptMgr::OnPacketSend ( WorldSocket * socket,
WorldPacket packet )

Definition at line 404 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnPlayerBindToInstance()

void ScriptMgr::OnPlayerBindToInstance ( Player * player,
DifficultyID difficulty,
uint32 mapid,
bool permanent )

Definition at line 1248 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerChat() [1/5]

void ScriptMgr::OnPlayerChat ( Player * player,
ChatMsg type,
Language lang,
std::string & msg )

Definition at line 1183 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerChat() [2/5]

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.

◆ OnPlayerChat() [3/5]

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.

◆ OnPlayerChat() [4/5]

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.

◆ OnPlayerChat() [5/5]

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.

◆ OnPlayerCreate()

void ScriptMgr::OnPlayerCreate ( Player * player)

Definition at line 1233 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerDelete()

void ScriptMgr::OnPlayerDelete ( uint64 guid)

Definition at line 1238 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerDuelEnd()

void ScriptMgr::OnPlayerDuelEnd ( Player * winner,
Player * loser,
DuelCompleteType type )

Definition at line 1178 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerDuelRequest()

void ScriptMgr::OnPlayerDuelRequest ( Player * target,
Player * challenger )

Definition at line 1168 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerDuelStart()

void ScriptMgr::OnPlayerDuelStart ( Player * player1,
Player * player2 )

Definition at line 1173 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerEmote()

void ScriptMgr::OnPlayerEmote ( Player * player,
uint32 emote )

Definition at line 1208 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerEnterMap()

void ScriptMgr::OnPlayerEnterMap ( Map * map,
Player * player )

Definition at line 572 of file ScriptMgr.cpp.

References ASSERT, FOREACH_SCRIPT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnPlayerFreeTalentPointsChanged()

void ScriptMgr::OnPlayerFreeTalentPointsChanged ( Player * player,
uint32 newPoints )

Definition at line 1143 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerKilledByCreature()

void ScriptMgr::OnPlayerKilledByCreature ( Creature * killer,
Player * killed )

Definition at line 1133 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerLeaveMap()

void ScriptMgr::OnPlayerLeaveMap ( Map * map,
Player * player )

Definition at line 592 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnPlayerLevelChanged()

void ScriptMgr::OnPlayerLevelChanged ( Player * player,
uint8 oldLevel )

Definition at line 1138 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerLogin()

void ScriptMgr::OnPlayerLogin ( Player * player,
bool firstLogin )

Definition at line 1223 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerLogout()

void ScriptMgr::OnPlayerLogout ( Player * player)

Definition at line 1228 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerMoneyChanged()

void ScriptMgr::OnPlayerMoneyChanged ( Player * player,
int64 & amount )

Definition at line 1153 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerReputationChange()

void ScriptMgr::OnPlayerReputationChange ( Player * player,
uint32 factionID,
int32 & standing,
bool incremental )

Definition at line 1163 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerSave()

void ScriptMgr::OnPlayerSave ( Player * player)

Definition at line 1243 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerSpellCast()

void ScriptMgr::OnPlayerSpellCast ( Player * player,
Spell * spell,
bool skipCheck )

Definition at line 1218 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerTalentsReset()

void ScriptMgr::OnPlayerTalentsReset ( Player * player,
bool noCost )

Definition at line 1148 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerTextEmote()

void ScriptMgr::OnPlayerTextEmote ( Player * player,
uint32 textEmote,
uint32 emoteNum,
uint64 guid )

Definition at line 1213 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPlayerUpdateZone()

void ScriptMgr::OnPlayerUpdateZone ( Player * player,
uint32 newZone,
uint32 newArea )

Definition at line 1253 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnPVPKill()

void ScriptMgr::OnPVPKill ( Player * killer,
Player * killed )

Definition at line 1123 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnQuestAccept() [1/3]

bool ScriptMgr::OnQuestAccept ( Player * player,
Creature * creature,
Quest const * quest )

◆ OnQuestAccept() [2/3]

bool ScriptMgr::OnQuestAccept ( Player * player,
GameObject * go,
Quest const * quest )

◆ OnQuestAccept() [3/3]

bool ScriptMgr::OnQuestAccept ( Player * player,
Item * item,
Quest const * quest )

◆ OnQuestComplete()

bool ScriptMgr::OnQuestComplete ( Player * player,
Creature * creature,
Quest const * quest )

◆ OnQuestReward() [1/2]

bool ScriptMgr::OnQuestReward ( Player * player,
Creature * creature,
Quest const * quest,
uint32 opt )

◆ OnQuestReward() [2/2]

bool ScriptMgr::OnQuestReward ( Player * player,
GameObject * go,
Quest const * quest,
uint32 opt )

◆ OnQuestSelect()

bool ScriptMgr::OnQuestSelect ( Player * player,
Creature * creature,
Quest const * quest )

◆ OnRelocate()

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().

◆ OnRemovePassenger() [1/2]

void ScriptMgr::OnRemovePassenger ( Transport * transport,
Player * player )

Definition at line 1080 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnRemovePassenger() [2/2]

void ScriptMgr::OnRemovePassenger ( Vehicle * veh,
Unit * passenger )

◆ OnReset()

void ScriptMgr::OnReset ( Vehicle * veh)

◆ OnShutdown()

void ScriptMgr::OnShutdown ( )

Definition at line 1108 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnShutdownCancel()

void ScriptMgr::OnShutdownCancel ( )

Definition at line 438 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnShutdownInitiate()

void ScriptMgr::OnShutdownInitiate ( ShutdownExitCode code,
ShutdownMask mask )

Definition at line 433 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnSocketClose()

void ScriptMgr::OnSocketClose ( WorldSocket * socket,
bool wasNew )

Definition at line 390 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnSocketOpen()

void ScriptMgr::OnSocketOpen ( WorldSocket * socket)

Definition at line 383 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnStartup()

void ScriptMgr::OnStartup ( )

Definition at line 1103 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnTransportUpdate()

void ScriptMgr::OnTransportUpdate ( Transport * transport,
uint32 diff )

Definition at line 1089 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and GameObject::GetScriptId().

◆ OnUninstall()

void ScriptMgr::OnUninstall ( Vehicle * veh)

◆ OnUnknownPacketReceive()

void ScriptMgr::OnUnknownPacketReceive ( WorldSocket * socket,
WorldPacket packet )

Definition at line 411 of file ScriptMgr.cpp.

References ASSERT, and FOREACH_SCRIPT.

◆ OnUnloadGridMap()

void ScriptMgr::OnUnloadGridMap ( Map * map,
GridMap * gmap,
uint32 gx,
uint32 gy )

Definition at line 554 of file ScriptMgr.cpp.

References ASSERT, SCR_MAP_BGN, and SCR_MAP_END.

◆ OnWeatherChange()

void ScriptMgr::OnWeatherChange ( Weather * weather,
WeatherState state,
float grade )

Definition at line 941 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and Weather::GetScriptId().

◆ OnWeatherUpdate()

void ScriptMgr::OnWeatherUpdate ( Weather * weather,
uint32 diff )

Definition at line 949 of file ScriptMgr.cpp.

References ASSERT, GET_SCRIPT, and Weather::GetScriptId().

◆ OnWorldUpdate()

void ScriptMgr::OnWorldUpdate ( uint32 diff)

Definition at line 443 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ OnZeroDifferenceCalculation()

void ScriptMgr::OnZeroDifferenceCalculation ( uint8 & diff,
uint8 playerLevel )

Definition at line 463 of file ScriptMgr.cpp.

References FOREACH_SCRIPT.

◆ ScriptsVersion()

const char * ScriptMgr::ScriptsVersion ( ) const
inline

Definition at line 781 of file ScriptMgr.h.

References ScriptsVersion().

Referenced by ScriptsVersion().

◆ Unload()

void ScriptMgr::Unload ( )

Definition at line 179 of file ScriptMgr.cpp.

References UnitAI::AISpellInfo, SCR_CLEAR, and SpellSummary.

◆ ~ScriptMgr()

ScriptMgr::~ScriptMgr ( )
privatevirtual

Definition at line 163 of file ScriptMgr.cpp.

◆ ScriptObject

friend class ScriptObject
friend

Definition at line 770 of file ScriptMgr.h.

References FillSpellSummary(), Initialize(), LoadDatabase(), ScriptMgr(), and ScriptObject.

Referenced by ScriptObject.

◆ Skyfire::Singleton< ScriptMgr, Skyfire::NullMutex >

Definition at line 760 of file ScriptMgr.h.

Member Data Documentation

◆ _scheduledScripts

std::atomic<long> ScriptMgr::_scheduledScripts
private

◆ _scriptCount

uint32 ScriptMgr::_scriptCount
private

Definition at line 978 of file ScriptMgr.h.

Referenced by GetScriptCount(), IncrementScriptCount(), and ScriptMgr().


The documentation for this class was generated from the following files: