Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
HookMgr Struct Reference

#include <HookMgr.h>

Classes

struct  ElunaCreatureAI
struct  ElunaGameObjectAI
struct  ElunaWorldAI

Public Member Functions

CreatureAIGetAI (Creature *creature)
GameObjectAIGetAI (GameObject *gameObject)
Optional< QuestGiverStatusGetDialogStatus (Player *pPlayer, Creature *pCreature)
Optional< QuestGiverStatusGetDialogStatus (Player *pPlayer, GameObject *pGameObject)
void HandleGossipSelectOption (Player *pPlayer, Item *item, uint32 sender, uint32 action, std::string code)
void HandleGossipSelectOption (Player *pPlayer, uint32 menuId, uint32 sender, uint32 action, std::string code)
void OnAdd (AuctionHouseObject *ah)
void OnAddCreaturePassenger (Transport *transport, Creature *creature)
void OnAddMember (Group *group, uint64 guid)
void OnAddMember (Guild *guild, Player *player, uint32 plRank)
void OnAddPassenger (Transport *transport, Player *player)
void OnAddPassenger (Vehicle *vehicle, Unit *passenger, int8 seatId)
bool OnAreaTrigger (Player *pPlayer, AreaTriggerEntry const *pTrigger, bool entered)
void OnBankEvent (Guild *guild, uint8 eventType, uint8 tabId, uint32 playerGuid, uint32 itemOrMoney, uint16 itemStackCount, uint8 destTabId)
void OnBindToInstance (Player *pPlayer, Difficulty difficulty, uint32 mapid, bool permanent)
InventoryResult OnCanUseItem (const Player *pPlayer, uint32 itemEntry)
void OnChange (Weather *weather, WeatherState state, float grade)
void OnChangeLeader (Group *group, uint64 newLeaderGuid, uint64 oldLeaderGuid)
bool OnChat (Player *pPlayer, uint32 type, uint32 lang, std::string &msg)
bool OnChat (Player *pPlayer, uint32 type, uint32 lang, std::string &msg, Channel *pChannel)
bool OnChat (Player *pPlayer, uint32 type, uint32 lang, std::string &msg, Group *pGroup)
bool OnChat (Player *pPlayer, uint32 type, uint32 lang, std::string &msg, Guild *pGuild)
void OnChat (Player *pPlayer, uint32 type, uint32 lang, std::string &msg, Player *pReceiver)
bool OnConditionCheck (const Condition *condition, ConditionSourceInfo &sourceInfo)
void OnCreate (Group *group, uint64 leaderGuid, GroupType groupType)
void OnCreate (Guild *guild, Player *leader, const std::string &name)
void OnCreate (Player *pPlayer)
void OnCreatureKill (Player *pKiller, Creature *pKilled)
void OnDamaged (GameObject *pGameObject, Player *pPlayer)
void OnDelete (uint32 guid)
void OnDestroyed (GameObject *pGameObject, Player *pPlayer)
void OnDisband (Group *group)
void OnDisband (Guild *guild)
void OnDuelEnd (Player *pWinner, Player *pLoser, DuelCompleteType type)
void OnDuelRequest (Player *pTarget, Player *pChallenger)
void OnDuelStart (Player *pStarter, Player *pChallenger)
bool OnDummyEffect (Unit *pCaster, uint32 spellId, SpellEffIndex effIndex, Creature *pTarget)
bool OnDummyEffect (Unit *pCaster, uint32 spellId, SpellEffIndex effIndex, GameObject *pTarget)
bool OnDummyEffect (Unit *pCaster, uint32 spellId, SpellEffIndex effIndex, Item *pTarget)
void OnEmote (Player *pPlayer, uint32 emote)
void OnEngineRestart ()
void OnEquip (Player *pPlayer, Item *pItem, uint8 bag, uint8 slot)
void OnEvent (Guild *guild, uint8 eventType, uint32 playerGuid1, uint32 playerGuid2, uint8 newRank)
void OnExpire (AuctionHouseObject *ah)
bool OnExpire (Player *pPlayer, ItemTemplate const *pProto)
void OnFirstLogin (Player *pPlayer)
void OnFreeTalentPointsChanged (Player *pPlayer, uint32 newPoints)
void OnGameObjectStateChanged (GameObject *pGameObject, uint32 state)
bool OnGameObjectUse (Player *pPlayer, GameObject *pGameObject)
void OnGiveXP (Player *pPlayer, uint32 &amount, Unit *pVictim)
bool OnGossipHello (Player *pPlayer, Creature *pCreature)
bool OnGossipHello (Player *pPlayer, GameObject *pGameObject)
bool OnGossipSelect (Player *pPlayer, Creature *pCreature, uint32 sender, uint32 action)
bool OnGossipSelect (Player *pPlayer, GameObject *pGameObject, uint32 sender, uint32 action)
bool OnGossipSelectCode (Player *pPlayer, Creature *pCreature, uint32 sender, uint32 action, const char *code)
bool OnGossipSelectCode (Player *pPlayer, GameObject *pGameObject, uint32 sender, uint32 action, const char *code)
void OnInfoChanged (Guild *guild, const std::string &newInfo)
void OnInstall (Vehicle *vehicle)
void OnInstallAccessory (Vehicle *vehicle, Creature *accessory)
void OnInviteMember (Group *group, uint64 guid)
void OnItemMove (Guild *guild, Player *player, Item *pItem, bool isSrcBank, uint8 srcContainer, uint8 srcSlotId, bool isDestBank, uint8 destContainer, uint8 destSlotId)
void OnLevelChanged (Player *pPlayer, uint8 oldLevel)
void OnLogin (Player *pPlayer)
void OnLogout (Player *pPlayer)
void OnLootItem (Player *pPlayer, Item *pItem, uint32 count, uint64 guid)
void OnLootMoney (Player *pPlayer, uint32 amount)
void OnLootStateChanged (GameObject *pGameObject, uint32 state, Unit *pUnit)
void OnMapChanged (Player *pPlayer)
void OnMemberDepositMoney (Guild *guild, Player *player, uint64 &amount)
void OnMemberWitdrawMoney (Guild *guild, Player *player, uint64 &amount, bool isRepair)
void OnMoneyChanged (Player *pPlayer, int64 &amount)
void OnMOTDChanged (Guild *guild, const std::string &newMotd)
void OnPlayerJustEngagedWith (Player *pPlayer, Unit *pEnemy)
void OnPlayerKilledByCreature (Creature *pKiller, Player *pKilled)
void OnPlayerLeaveCombat (Player *pPlayer)
void OnPVPKill (Player *pKiller, Player *pKilled)
bool OnQuestAccept (Player *pPlayer, Creature *pCreature, Quest const *pQuest)
bool OnQuestAccept (Player *pPlayer, GameObject *pGameObject, Quest const *pQuest)
bool OnQuestAccept (Player *pPlayer, Item *pItem, Quest const *pQuest)
bool OnQuestComplete (Player *pPlayer, Creature *pCreature, Quest const *pQuest)
bool OnQuestComplete (Player *pPlayer, GameObject *pGameObject, Quest const *pQuest)
bool OnQuestReward (Player *pPlayer, Creature *pCreature, Quest const *pQuest)
bool OnQuestReward (Player *pPlayer, GameObject *pGameObject, Quest const *pQuest)
bool OnQuestSelect (Player *pPlayer, Creature *pCreature, Quest const *pQuest)
void OnRelocate (Transport *transport, uint32 waypointId, uint32 mapId, float x, float y, float z)
void OnRemove (AuctionHouseObject *ah)
void OnRemoveMember (Group *group, uint64 guid, uint8 method, uint64 kicker, const char *reason)
void OnRemoveMember (Guild *guild, Player *player, bool isDisbanding, bool isKicked)
void OnRemovePassenger (Transport *transport, Player *player)
void OnRemovePassenger (Vehicle *vehicle, Unit *passenger)
void OnRepop (Player *pPlayer)
void OnReputationChange (Player *pPlayer, uint32 factionID, int32 &standing, bool incremental)
void OnReset (Vehicle *vehicle)
void OnResurrect (Player *pPlayer)
void OnSave (Player *pPlayer)
void OnSpellCast (Player *pPlayer, Spell *pSpell, bool skipCheck)
void OnSuccessful (AuctionHouseObject *ah)
void OnTalentsReset (Player *pPlayer, bool noCost)
void OnTextEmote (Player *pPlayer, uint32 textEmote, uint32 emoteNum, uint64 guid)
void OnUninstall (Vehicle *vehicle)
void OnUpdateZone (Player *pPlayer, uint32 newZone, uint32 newArea)
bool OnUse (Player *pPlayer, Item *pItem, SpellCastTargets const &targets)
void OnWorldUpdate (uint32 diff)

Static Public Member Functions

static HookMgrinstance ()

Detailed Description

Definition at line 266 of file HookMgr.h.

Member Function Documentation

◆ GetAI() [1/2]

CreatureAI * HookMgr::GetAI ( Creature * creature)

Definition at line 1984 of file HookMgr.cpp.

References Object::GetEntry(), and sEluna.

◆ GetAI() [2/2]

GameObjectAI * HookMgr::GetAI ( GameObject * gameObject)

Definition at line 1991 of file HookMgr.cpp.

References Object::GetEntry(), and sEluna.

◆ GetDialogStatus() [1/2]

Optional< QuestGiverStatus > HookMgr::GetDialogStatus ( Player * pPlayer,
Creature * pCreature )

◆ GetDialogStatus() [2/2]

Optional< QuestGiverStatus > HookMgr::GetDialogStatus ( Player * pPlayer,
GameObject * pGameObject )

◆ HandleGossipSelectOption() [1/2]

void HookMgr::HandleGossipSelectOption ( Player * pPlayer,
Item * item,
uint32 sender,
uint32 action,
std::string code )

◆ HandleGossipSelectOption() [2/2]

void HookMgr::HandleGossipSelectOption ( Player * pPlayer,
uint32 menuId,
uint32 sender,
uint32 action,
std::string code )

◆ instance()

HookMgr * HookMgr::instance ( )
static

Definition at line 16 of file HookMgr.cpp.

References instance().

Referenced by instance().

◆ OnAdd()

void HookMgr::OnAdd ( AuctionHouseObject * ah)

Definition at line 1120 of file HookMgr.cpp.

References AUCTION_EVENT_ON_ADD, and sEluna.

◆ OnAddCreaturePassenger()

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

Definition at line 1110 of file HookMgr.cpp.

◆ OnAddMember() [1/2]

void HookMgr::OnAddMember ( Group * group,
uint64 guid )

Definition at line 1902 of file HookMgr.cpp.

References GROUP_EVENT_ON_MEMBER_ADD, and sEluna.

◆ OnAddMember() [2/2]

void HookMgr::OnAddMember ( Guild * guild,
Player * player,
uint32 plRank )

Definition at line 1737 of file HookMgr.cpp.

References GUILD_EVENT_ON_ADD_MEMBER, and sEluna.

◆ OnAddPassenger() [1/2]

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

Definition at line 1107 of file HookMgr.cpp.

◆ OnAddPassenger() [2/2]

void HookMgr::OnAddPassenger ( Vehicle * vehicle,
Unit * passenger,
int8 seatId )

Definition at line 1050 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_ADD_PASSENGER.

◆ OnAreaTrigger()

bool HookMgr::OnAreaTrigger ( Player * pPlayer,
AreaTriggerEntry const * pTrigger,
bool entered )

Definition at line 1078 of file HookMgr.cpp.

References AreaTriggerEntry::id, sEluna, and TRIGGER_EVENT_ON_TRIGGER.

◆ OnBankEvent()

void HookMgr::OnBankEvent ( Guild * guild,
uint8 eventType,
uint8 tabId,
uint32 playerGuid,
uint32 itemOrMoney,
uint16 itemStackCount,
uint8 destTabId )

Definition at line 1884 of file HookMgr.cpp.

References GUILD_EVENT_ON_BANK_EVENT, and sEluna.

◆ OnBindToInstance()

void HookMgr::OnBindToInstance ( Player * pPlayer,
Difficulty difficulty,
uint32 mapid,
bool permanent )

Definition at line 865 of file HookMgr.cpp.

References PLAYER_EVENT_ON_BIND_TO_INSTANCE, and sEluna.

◆ OnCanUseItem()

InventoryResult HookMgr::OnCanUseItem ( const Player * pPlayer,
uint32 itemEntry )

Definition at line 114 of file HookMgr.cpp.

References EQUIP_ERR_OK, PLAYER_EVENT_ON_CAN_USE_ITEM, and sEluna.

◆ OnChange()

void HookMgr::OnChange ( Weather * weather,
WeatherState state,
float grade )

Definition at line 1093 of file HookMgr.cpp.

References Weather::GetZone(), sEluna, and WEATHER_EVENT_ON_CHANGE.

◆ OnChangeLeader()

void HookMgr::OnChangeLeader ( Group * group,
uint64 newLeaderGuid,
uint64 oldLeaderGuid )

Definition at line 1944 of file HookMgr.cpp.

References GROUP_EVENT_ON_LEADER_CHANGE, and sEluna.

◆ OnChat() [1/5]

bool HookMgr::OnChat ( Player * pPlayer,
uint32 type,
uint32 lang,
std::string & msg )

Definition at line 906 of file HookMgr.cpp.

References PLAYER_EVENT_ON_CHAT, and sEluna.

◆ OnChat() [2/5]

bool HookMgr::OnChat ( Player * pPlayer,
uint32 type,
uint32 lang,
std::string & msg,
Channel * pChannel )

Definition at line 977 of file HookMgr.cpp.

References Channel::GetChannelId(), PLAYER_EVENT_ON_CHANNEL_CHAT, and sEluna.

◆ OnChat() [3/5]

bool HookMgr::OnChat ( Player * pPlayer,
uint32 type,
uint32 lang,
std::string & msg,
Group * pGroup )

Definition at line 929 of file HookMgr.cpp.

References PLAYER_EVENT_ON_GROUP_CHAT, and sEluna.

◆ OnChat() [4/5]

bool HookMgr::OnChat ( Player * pPlayer,
uint32 type,
uint32 lang,
std::string & msg,
Guild * pGuild )

Definition at line 953 of file HookMgr.cpp.

References PLAYER_EVENT_ON_GUILD_CHAT, and sEluna.

◆ OnChat() [5/5]

void HookMgr::OnChat ( Player * pPlayer,
uint32 type,
uint32 lang,
std::string & msg,
Player * pReceiver )

Definition at line 747 of file HookMgr.cpp.

References PLAYER_EVENT_ON_WHISPER, and sEluna.

◆ OnConditionCheck()

bool HookMgr::OnConditionCheck ( const Condition * condition,
ConditionSourceInfo & sourceInfo )
inline

Definition at line 364 of file HookMgr.h.

◆ OnCreate() [1/3]

void HookMgr::OnCreate ( Group * group,
uint64 leaderGuid,
GroupType groupType )

Definition at line 1970 of file HookMgr.cpp.

References GROUP_EVENT_ON_CREATE, and sEluna.

◆ OnCreate() [2/3]

void HookMgr::OnCreate ( Guild * guild,
Player * leader,
const std::string & name )

Definition at line 1792 of file HookMgr.cpp.

References GUILD_EVENT_ON_CREATE, and sEluna.

◆ OnCreate() [3/3]

void HookMgr::OnCreate ( Player * pPlayer)

Definition at line 829 of file HookMgr.cpp.

References PLAYER_EVENT_ON_CHARACTER_CREATE, and sEluna.

◆ OnCreatureKill()

void HookMgr::OnCreatureKill ( Player * pKiller,
Creature * pKilled )

Definition at line 600 of file HookMgr.cpp.

References PLAYER_EVENT_ON_KILL_CREATURE, and sEluna.

◆ OnDamaged()

void HookMgr::OnDamaged ( GameObject * pGameObject,
Player * pPlayer )

Definition at line 525 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_DAMAGED, Object::GetEntry(), and sEluna.

◆ OnDelete()

void HookMgr::OnDelete ( uint32 guid)

Definition at line 841 of file HookMgr.cpp.

References PLAYER_EVENT_ON_CHARACTER_DELETE, and sEluna.

◆ OnDestroyed()

void HookMgr::OnDestroyed ( GameObject * pGameObject,
Player * pPlayer )

Definition at line 513 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_DESTROYED, Object::GetEntry(), and sEluna.

◆ OnDisband() [1/2]

void HookMgr::OnDisband ( Group * group)

Definition at line 1958 of file HookMgr.cpp.

References GROUP_EVENT_ON_DISBAND, and sEluna.

◆ OnDisband() [2/2]

void HookMgr::OnDisband ( Guild * guild)

Definition at line 1806 of file HookMgr.cpp.

References GUILD_EVENT_ON_DISBAND, and sEluna.

◆ OnDuelEnd()

void HookMgr::OnDuelEnd ( Player * pWinner,
Player * pLoser,
DuelCompleteType type )

Definition at line 733 of file HookMgr.cpp.

References PLAYER_EVENT_ON_DUEL_END, and sEluna.

◆ OnDuelRequest()

void HookMgr::OnDuelRequest ( Player * pTarget,
Player * pChallenger )

Definition at line 707 of file HookMgr.cpp.

References PLAYER_EVENT_ON_DUEL_REQUEST, and sEluna.

◆ OnDuelStart()

void HookMgr::OnDuelStart ( Player * pStarter,
Player * pChallenger )

Definition at line 720 of file HookMgr.cpp.

References PLAYER_EVENT_ON_DUEL_START, and sEluna.

◆ OnDummyEffect() [1/3]

bool HookMgr::OnDummyEffect ( Unit * pCaster,
uint32 spellId,
SpellEffIndex effIndex,
Creature * pTarget )

Definition at line 265 of file HookMgr.cpp.

References CREATURE_EVENT_ON_DUMMY_EFFECT, Object::GetEntry(), and sEluna.

◆ OnDummyEffect() [2/3]

bool HookMgr::OnDummyEffect ( Unit * pCaster,
uint32 spellId,
SpellEffIndex effIndex,
GameObject * pTarget )

Definition at line 396 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_DUMMY_EFFECT, Object::GetEntry(), and sEluna.

◆ OnDummyEffect() [3/3]

bool HookMgr::OnDummyEffect ( Unit * pCaster,
uint32 spellId,
SpellEffIndex effIndex,
Item * pTarget )

Definition at line 188 of file HookMgr.cpp.

References Object::GetEntry(), ITEM_EVENT_ON_DUMMY_EFFECT, and sEluna.

◆ OnEmote()

void HookMgr::OnEmote ( Player * pPlayer,
uint32 emote )

Definition at line 763 of file HookMgr.cpp.

References PLAYER_EVENT_ON_EMOTE, and sEluna.

◆ OnEngineRestart()

void HookMgr::OnEngineRestart ( )

Definition at line 176 of file HookMgr.cpp.

References ELUNA_EVENT_ON_RESTART, and sEluna.

◆ OnEquip()

void HookMgr::OnEquip ( Player * pPlayer,
Item * pItem,
uint8 bag,
uint8 slot )

Definition at line 99 of file HookMgr.cpp.

References PLAYER_EVENT_ON_EQUIP, and sEluna.

◆ OnEvent()

void HookMgr::OnEvent ( Guild * guild,
uint8 eventType,
uint32 playerGuid1,
uint32 playerGuid2,
uint8 newRank )

Definition at line 1868 of file HookMgr.cpp.

References GUILD_EVENT_ON_EVENT, and sEluna.

◆ OnExpire() [1/2]

void HookMgr::OnExpire ( AuctionHouseObject * ah)

Definition at line 1156 of file HookMgr.cpp.

References AUCTION_EVENT_ON_EXPIRE, and sEluna.

◆ OnExpire() [2/2]

bool HookMgr::OnExpire ( Player * pPlayer,
ItemTemplate const * pProto )

Definition at line 252 of file HookMgr.cpp.

References ITEM_EVENT_ON_EXPIRE, ItemTemplate::ItemId, and sEluna.

◆ OnFirstLogin()

void HookMgr::OnFirstLogin ( Player * pPlayer)

Definition at line 63 of file HookMgr.cpp.

References PLAYER_EVENT_ON_FIRST_LOGIN, and sEluna.

◆ OnFreeTalentPointsChanged()

void HookMgr::OnFreeTalentPointsChanged ( Player * pPlayer,
uint32 newPoints )

Definition at line 639 of file HookMgr.cpp.

References PLAYER_EVENT_ON_TALENTS_CHANGE, and sEluna.

◆ OnGameObjectStateChanged()

void HookMgr::OnGameObjectStateChanged ( GameObject * pGameObject,
uint32 state )

Definition at line 550 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_GO_STATE_CHANGED, Object::GetEntry(), and sEluna.

◆ OnGameObjectUse()

bool HookMgr::OnGameObjectUse ( Player * pPlayer,
GameObject * pGameObject )
inline

Definition at line 309 of file HookMgr.h.

◆ OnGiveXP()

void HookMgr::OnGiveXP ( Player * pPlayer,
uint32 & amount,
Unit * pVictim )

Definition at line 678 of file HookMgr.cpp.

References PLAYER_EVENT_ON_GIVE_XP, and sEluna.

◆ OnGossipHello() [1/2]

bool HookMgr::OnGossipHello ( Player * pPlayer,
Creature * pCreature )

◆ OnGossipHello() [2/2]

bool HookMgr::OnGossipHello ( Player * pPlayer,
GameObject * pGameObject )

◆ OnGossipSelect() [1/2]

bool HookMgr::OnGossipSelect ( Player * pPlayer,
Creature * pCreature,
uint32 sender,
uint32 action )

◆ OnGossipSelect() [2/2]

bool HookMgr::OnGossipSelect ( Player * pPlayer,
GameObject * pGameObject,
uint32 sender,
uint32 action )

◆ OnGossipSelectCode() [1/2]

bool HookMgr::OnGossipSelectCode ( Player * pPlayer,
Creature * pCreature,
uint32 sender,
uint32 action,
const char * code )

◆ OnGossipSelectCode() [2/2]

bool HookMgr::OnGossipSelectCode ( Player * pPlayer,
GameObject * pGameObject,
uint32 sender,
uint32 action,
const char * code )

◆ OnInfoChanged()

void HookMgr::OnInfoChanged ( Guild * guild,
const std::string & newInfo )

Definition at line 1779 of file HookMgr.cpp.

References GUILD_EVENT_ON_INFO_CHANGE, and sEluna.

◆ OnInstall()

void HookMgr::OnInstall ( Vehicle * vehicle)

Definition at line 1001 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_INSTALL.

◆ OnInstallAccessory()

void HookMgr::OnInstallAccessory ( Vehicle * vehicle,
Creature * accessory )

Definition at line 1037 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_INSTALL_ACCESSORY.

◆ OnInviteMember()

void HookMgr::OnInviteMember ( Group * group,
uint64 guid )

Definition at line 1915 of file HookMgr.cpp.

References GROUP_EVENT_ON_MEMBER_INVITE, and sEluna.

◆ OnItemMove()

void HookMgr::OnItemMove ( Guild * guild,
Player * player,
Item * pItem,
bool isSrcBank,
uint8 srcContainer,
uint8 srcSlotId,
bool isDestBank,
uint8 destContainer,
uint8 destSlotId )

Definition at line 1847 of file HookMgr.cpp.

References GUILD_EVENT_ON_ITEM_MOVE, and sEluna.

◆ OnLevelChanged()

void HookMgr::OnLevelChanged ( Player * pPlayer,
uint8 oldLevel )

Definition at line 626 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LEVEL_CHANGE, and sEluna.

◆ OnLogin()

void HookMgr::OnLogin ( Player * pPlayer)

Definition at line 805 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LOGIN, and sEluna.

◆ OnLogout()

void HookMgr::OnLogout ( Player * pPlayer)

Definition at line 817 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LOGOUT, and sEluna.

◆ OnLootItem()

void HookMgr::OnLootItem ( Player * pPlayer,
Item * pItem,
uint32 count,
uint64 guid )

Definition at line 35 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LOOT_ITEM, and sEluna.

◆ OnLootMoney()

void HookMgr::OnLootMoney ( Player * pPlayer,
uint32 amount )

Definition at line 50 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LOOT_MONEY, and sEluna.

◆ OnLootStateChanged()

void HookMgr::OnLootStateChanged ( GameObject * pGameObject,
uint32 state,
Unit * pUnit )

Definition at line 537 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_LOOT_STATE_CHANGE, Object::GetEntry(), and sEluna.

◆ OnMapChanged()

void HookMgr::OnMapChanged ( Player * pPlayer)

Definition at line 894 of file HookMgr.cpp.

References PLAYER_EVENT_ON_MAP_CHANGE, and sEluna.

◆ OnMemberDepositMoney()

void HookMgr::OnMemberDepositMoney ( Guild * guild,
Player * player,
uint64 & amount )

Definition at line 1833 of file HookMgr.cpp.

References GUILD_EVENT_ON_MONEY_DEPOSIT, and sEluna.

◆ OnMemberWitdrawMoney()

void HookMgr::OnMemberWitdrawMoney ( Guild * guild,
Player * player,
uint64 & amount,
bool isRepair )

Definition at line 1818 of file HookMgr.cpp.

References GUILD_EVENT_ON_MONEY_WITHDRAW, and sEluna.

◆ OnMoneyChanged()

void HookMgr::OnMoneyChanged ( Player * pPlayer,
int64 & amount )

Definition at line 665 of file HookMgr.cpp.

References PLAYER_EVENT_ON_MONEY_CHANGE, and sEluna.

◆ OnMOTDChanged()

void HookMgr::OnMOTDChanged ( Guild * guild,
const std::string & newMotd )

Definition at line 1766 of file HookMgr.cpp.

References GUILD_EVENT_ON_MOTD_CHANGE, and sEluna.

◆ OnPlayerJustEngagedWith()

void HookMgr::OnPlayerJustEngagedWith ( Player * pPlayer,
Unit * pEnemy )

Definition at line 562 of file HookMgr.cpp.

References PLAYER_EVENT_ON_ENTER_COMBAT, and sEluna.

◆ OnPlayerKilledByCreature()

void HookMgr::OnPlayerKilledByCreature ( Creature * pKiller,
Player * pKilled )

Definition at line 613 of file HookMgr.cpp.

References PLAYER_EVENT_ON_KILLED_BY_CREATURE, and sEluna.

◆ OnPlayerLeaveCombat()

void HookMgr::OnPlayerLeaveCombat ( Player * pPlayer)

Definition at line 575 of file HookMgr.cpp.

References PLAYER_EVENT_ON_LEAVE_COMBAT, and sEluna.

◆ OnPVPKill()

void HookMgr::OnPVPKill ( Player * pKiller,
Player * pKilled )

Definition at line 587 of file HookMgr.cpp.

References PLAYER_EVENT_ON_KILL_PLAYER, and sEluna.

◆ OnQuestAccept() [1/3]

bool HookMgr::OnQuestAccept ( Player * pPlayer,
Creature * pCreature,
Quest const * pQuest )

Definition at line 327 of file HookMgr.cpp.

References CREATURE_EVENT_ON_QUEST_ACCEPT, Object::GetEntry(), and sEluna.

◆ OnQuestAccept() [2/3]

bool HookMgr::OnQuestAccept ( Player * pPlayer,
GameObject * pGameObject,
Quest const * pQuest )

Definition at line 458 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_QUEST_ACCEPT, Object::GetEntry(), and sEluna.

◆ OnQuestAccept() [3/3]

bool HookMgr::OnQuestAccept ( Player * pPlayer,
Item * pItem,
Quest const * pQuest )

Definition at line 203 of file HookMgr.cpp.

References Object::GetEntry(), ITEM_EVENT_ON_QUEST_ACCEPT, and sEluna.

◆ OnQuestComplete() [1/2]

bool HookMgr::OnQuestComplete ( Player * pPlayer,
Creature * pCreature,
Quest const * pQuest )

Definition at line 355 of file HookMgr.cpp.

References CREATURE_EVENT_ON_QUEST_COMPLETE, Object::GetEntry(), and sEluna.

◆ OnQuestComplete() [2/2]

bool HookMgr::OnQuestComplete ( Player * pPlayer,
GameObject * pGameObject,
Quest const * pQuest )

Definition at line 472 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_QUEST_COMPLETE, Object::GetEntry(), and sEluna.

◆ OnQuestReward() [1/2]

bool HookMgr::OnQuestReward ( Player * pPlayer,
Creature * pCreature,
Quest const * pQuest )

Definition at line 369 of file HookMgr.cpp.

References CREATURE_EVENT_ON_QUEST_REWARD, Object::GetEntry(), and sEluna.

◆ OnQuestReward() [2/2]

bool HookMgr::OnQuestReward ( Player * pPlayer,
GameObject * pGameObject,
Quest const * pQuest )

Definition at line 486 of file HookMgr.cpp.

References GAMEOBJECT_EVENT_ON_QUEST_REWARD, Object::GetEntry(), and sEluna.

◆ OnQuestSelect()

bool HookMgr::OnQuestSelect ( Player * pPlayer,
Creature * pCreature,
Quest const * pQuest )

Definition at line 341 of file HookMgr.cpp.

References CREATURE_EVENT_ON_QUEST_SELECT, Object::GetEntry(), and sEluna.

◆ OnRelocate()

void HookMgr::OnRelocate ( Transport * transport,
uint32 waypointId,
uint32 mapId,
float x,
float y,
float z )

Definition at line 1116 of file HookMgr.cpp.

◆ OnRemove()

void HookMgr::OnRemove ( AuctionHouseObject * ah)

Definition at line 1132 of file HookMgr.cpp.

References AUCTION_EVENT_ON_REMOVE, and sEluna.

◆ OnRemoveMember() [1/2]

void HookMgr::OnRemoveMember ( Group * group,
uint64 guid,
uint8 method,
uint64 kicker,
const char * reason )

Definition at line 1928 of file HookMgr.cpp.

References GROUP_EVENT_ON_MEMBER_REMOVE, and sEluna.

◆ OnRemoveMember() [2/2]

void HookMgr::OnRemoveMember ( Guild * guild,
Player * player,
bool isDisbanding,
bool isKicked )

Definition at line 1751 of file HookMgr.cpp.

References GUILD_EVENT_ON_REMOVE_MEMBER, and sEluna.

◆ OnRemovePassenger() [1/2]

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

Definition at line 1113 of file HookMgr.cpp.

◆ OnRemovePassenger() [2/2]

void HookMgr::OnRemovePassenger ( Vehicle * vehicle,
Unit * passenger )

Definition at line 1064 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_REMOVE_PASSENGER.

◆ OnRepop()

void HookMgr::OnRepop ( Player * pPlayer)

Definition at line 75 of file HookMgr.cpp.

References PLAYER_EVENT_ON_REPOP, and sEluna.

◆ OnReputationChange()

void HookMgr::OnReputationChange ( Player * pPlayer,
uint32 factionID,
int32 & standing,
bool incremental )

Definition at line 692 of file HookMgr.cpp.

References PLAYER_EVENT_ON_REPUTATION_CHANGE, and sEluna.

◆ OnReset()

void HookMgr::OnReset ( Vehicle * vehicle)

Definition at line 1025 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_RESET.

◆ OnResurrect()

void HookMgr::OnResurrect ( Player * pPlayer)

Definition at line 87 of file HookMgr.cpp.

References PLAYER_EVENT_ON_RESURRECT, and sEluna.

◆ OnSave()

void HookMgr::OnSave ( Player * pPlayer)

Definition at line 853 of file HookMgr.cpp.

References PLAYER_EVENT_ON_SAVE, and sEluna.

◆ OnSpellCast()

void HookMgr::OnSpellCast ( Player * pPlayer,
Spell * pSpell,
bool skipCheck )

Definition at line 791 of file HookMgr.cpp.

References PLAYER_EVENT_ON_SPELL_CAST, and sEluna.

◆ OnSuccessful()

void HookMgr::OnSuccessful ( AuctionHouseObject * ah)

Definition at line 1144 of file HookMgr.cpp.

References AUCTION_EVENT_ON_SUCCESSFUL, and sEluna.

◆ OnTalentsReset()

void HookMgr::OnTalentsReset ( Player * pPlayer,
bool noCost )

Definition at line 652 of file HookMgr.cpp.

References PLAYER_EVENT_ON_TALENTS_RESET, and sEluna.

◆ OnTextEmote()

void HookMgr::OnTextEmote ( Player * pPlayer,
uint32 textEmote,
uint32 emoteNum,
uint64 guid )

Definition at line 776 of file HookMgr.cpp.

References PLAYER_EVENT_ON_TEXT_EMOTE, and sEluna.

◆ OnUninstall()

void HookMgr::OnUninstall ( Vehicle * vehicle)

Definition at line 1013 of file HookMgr.cpp.

References sEluna, and VEHICLE_EVENT_ON_UNINSTALL.

◆ OnUpdateZone()

void HookMgr::OnUpdateZone ( Player * pPlayer,
uint32 newZone,
uint32 newArea )

Definition at line 880 of file HookMgr.cpp.

References PLAYER_EVENT_ON_UPDATE_ZONE, and sEluna.

◆ OnUse()

◆ OnWorldUpdate()

void HookMgr::OnWorldUpdate ( uint32 diff)

Definition at line 22 of file HookMgr.cpp.

References sEluna, and WORLD_EVENT_ON_UPDATE.


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