TrinityCore
Loading...
Searching...
No Matches
ChatLogScript Class Reference
+ Inheritance diagram for ChatLogScript:

Public Member Functions

 ChatLogScript ()
 
void OnChat (Player *player, uint32 type, uint32 lang, std::string &msg) override
 
void OnChat (Player *player, uint32, uint32 lang, std::string &msg, Player *receiver) override
 
void OnChat (Player *player, uint32 type, uint32 lang, std::string &msg, Group *group) override
 
void OnChat (Player *player, uint32 type, uint32 lang, std::string &msg, Guild *guild) override
 
void OnChat (Player *player, uint32, uint32 lang, std::string &msg, Channel *channel) override
 
- Public Member Functions inherited from PlayerScript
 ~PlayerScript ()
 
virtual void OnPVPKill (Player *killer, Player *killed)
 
virtual void OnCreatureKill (Player *killer, Creature *killed)
 
virtual void OnPlayerKilledByCreature (Creature *killer, Player *killed)
 
virtual void OnLevelChanged (Player *player, uint8 oldLevel)
 
virtual void OnFreeTalentPointsChanged (Player *player, uint32 points)
 
virtual void OnTalentsReset (Player *player, bool involuntarily)
 
virtual void OnMoneyChanged (Player *player, int64 &amount)
 
virtual void OnMoneyLimit (Player *player, int64 amount)
 
virtual void OnGiveXP (Player *player, uint32 &amount, Unit *victim)
 
virtual void OnReputationChange (Player *player, uint32 factionId, int32 &standing, bool incremental)
 
virtual void OnDuelRequest (Player *target, Player *challenger)
 
virtual void OnDuelStart (Player *player1, Player *player2)
 
virtual void OnDuelEnd (Player *winner, Player *loser, DuelCompleteType type)
 
virtual void OnClearEmote (Player *player)
 
virtual void OnTextEmote (Player *player, uint32 textEmote, uint32 emoteNum, ObjectGuid guid)
 
virtual void OnSpellCast (Player *player, Spell *spell, bool skipCheck)
 
virtual void OnLogin (Player *player, bool firstLogin)
 
virtual void OnLogout (Player *player)
 
virtual void OnCreate (Player *player)
 
virtual void OnDelete (ObjectGuid guid, uint32 accountId)
 
virtual void OnFailedDelete (ObjectGuid guid, uint32 accountId)
 
virtual void OnSave (Player *player)
 
virtual void OnBindToInstance (Player *player, Difficulty difficulty, uint32 mapId, bool permanent, uint8 extendState)
 
virtual void OnUpdateZone (Player *player, uint32 newZone, uint32 newArea)
 
virtual void OnMapChanged (Player *player)
 
virtual void OnQuestStatusChange (Player *player, uint32 questId)
 
virtual void OnPlayerRepop (Player *player)
 
virtual void OnMovieComplete (Player *player, uint32 movieId)
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObject & operator= (ScriptObject const &right)=delete
 
ScriptObject & operator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from PlayerScript
 PlayerScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 31 of file chat_log.cpp.

Constructor & Destructor Documentation

◆ ChatLogScript()

ChatLogScript::ChatLogScript ( )
inline

Definition at line 34 of file chat_log.cpp.

Member Function Documentation

◆ OnChat() [1/5]

void ChatLogScript::OnChat ( Player *  player,
uint32  type,
uint32  lang,
std::string &  msg 
)
inlineoverridevirtual

Reimplemented from PlayerScript.

Definition at line 36 of file chat_log.cpp.

References CHAT_MSG_EMOTE, CHAT_MSG_SAY, CHAT_MSG_YELL, WorldObject::GetName(), and TC_LOG_CHAT.

◆ OnChat() [2/5]

void ChatLogScript::OnChat ( Player *  player,
uint32  type,
uint32  lang,
std::string &  msg,
Group *  group 
)
inlineoverridevirtual

NOTE: LANG_ADDON can only be sent by client in "PARTY", "RAID", "GUILD", "BATTLEGROUND", "WHISPER"

Reimplemented from PlayerScript.

Definition at line 63 of file chat_log.cpp.

References CHAT_MSG_INSTANCE_CHAT, CHAT_MSG_INSTANCE_CHAT_LEADER, CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER, CHAT_MSG_RAID, CHAT_MSG_RAID_LEADER, CHAT_MSG_RAID_WARNING, Group::GetLeaderName(), WorldObject::GetName(), and TC_LOG_CHAT.

◆ OnChat() [3/5]

void ChatLogScript::OnChat ( Player *  player,
uint32  type,
uint32  lang,
std::string &  msg,
Guild *  guild 
)
inlineoverridevirtual

Reimplemented from PlayerScript.

Definition at line 106 of file chat_log.cpp.

References CHAT_MSG_GUILD, CHAT_MSG_OFFICER, WorldObject::GetName(), Guild::GetName(), and TC_LOG_CHAT.

◆ OnChat() [4/5]

void ChatLogScript::OnChat ( Player *  player,
uint32  ,
uint32  lang,
std::string &  msg,
Channel *  channel 
)
inlineoverridevirtual

◆ OnChat() [5/5]

void ChatLogScript::OnChat ( Player *  player,
uint32  ,
uint32  lang,
std::string &  msg,
Player *  receiver 
)
inlineoverridevirtual

Reimplemented from PlayerScript.

Definition at line 57 of file chat_log.cpp.

References WorldObject::GetName(), and TC_LOG_CHAT.


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