TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PlayerScript Class Reference

#include <ScriptMgr.h>

Public Member Functions

virtual void OnPVPKill (Player *, Player *)
 
virtual void OnCreatureKill (Player *, Creature *)
 
virtual void OnPlayerKilledByCreature (Creature *, Player *)
 
virtual void OnLevelChanged (Player *, uint8)
 
virtual void OnFreeTalentPointsChanged (Player *, uint32)
 
virtual void OnTalentsReset (Player *, bool)
 
virtual void OnMoneyChanged (Player *, int64 &)
 
virtual void OnMoneyLimit (Player *, int64)
 
virtual void OnGiveXP (Player *, uint32 &, Unit *)
 
virtual void OnReputationChange (Player *, uint32, int32 &, bool)
 
virtual void OnDuelRequest (Player *, Player *)
 
virtual void OnDuelStart (Player *, Player *)
 
virtual void OnDuelEnd (Player *, Player *, DuelCompleteType)
 
virtual void OnChat (Player *, uint32, uint32, std::string &)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Player *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Group *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Guild *)
 
virtual void OnChat (Player *, uint32, uint32, std::string &, Channel *)
 
virtual void OnClearEmote (Player *)
 
virtual void OnTextEmote (Player *, uint32, uint32, ObjectGuid)
 
virtual void OnSpellCast (Player *, Spell *, bool)
 
virtual void OnLogin (Player *, bool)
 
virtual void OnLogout (Player *)
 
virtual void OnCreate (Player *)
 
virtual void OnDelete (ObjectGuid, uint32)
 
virtual void OnFailedDelete (ObjectGuid, uint32)
 
virtual void OnSave (Player *)
 
virtual void OnBindToInstance (Player *, Difficulty, uint32, bool, uint8)
 
virtual void OnUpdateZone (Player *, uint32, uint32)
 
virtual void OnMapChanged (Player *)
 
virtual void OnQuestStatusChange (Player *, uint32, QuestStatus)
 
- Public Member Functions inherited from UnitScript
virtual void OnHeal (Unit *, Unit *, uint32 &)
 
virtual void OnDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifyPeriodicDamageAurasTick (Unit *, Unit *, uint32 &)
 
virtual void ModifyMeleeDamage (Unit *, Unit *, uint32 &)
 
virtual void ModifySpellDamageTaken (Unit *, Unit *, int32 &)
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Protected Member Functions

 PlayerScript (const char *name)
 
- Protected Member Functions inherited from UnitScript
 UnitScript (const char *name, bool addToScripts=true)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

PlayerScript::PlayerScript ( const char *  name)
protected
1665  : UnitScript(name, false)
1666 {
1668 }
static void AddScript(TScript *const script, bool addToDeleteContainer=true)
Definition: ScriptMgr.cpp:111
UnitScript(const char *name, bool addToScripts=true)
Definition: ScriptMgr.cpp:1547

+ Here is the call graph for this function:

Member Function Documentation

virtual void PlayerScript::OnBindToInstance ( Player ,
Difficulty  ,
uint32  ,
bool  ,
uint8   
)
inlinevirtual
732 { }
virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &   
)
inlinevirtual

Reimplemented in ChatLogScript.

695 { }
virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Player  
)
inlinevirtual

Reimplemented in ChatLogScript.

697 { }
virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Group  
)
inlinevirtual

Reimplemented in ChatLogScript.

699 { }
virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Guild  
)
inlinevirtual

Reimplemented in ChatLogScript.

701 { }
virtual void PlayerScript::OnChat ( Player ,
uint32  ,
uint32  ,
std::string &  ,
Channel  
)
inlinevirtual

Reimplemented in ChatLogScript.

703 { }
virtual void PlayerScript::OnClearEmote ( Player )
inlinevirtual
706 { }
virtual void PlayerScript::OnCreate ( Player )
inlinevirtual

Reimplemented in CharacterActionIpLogger.

720 { }
virtual void PlayerScript::OnCreatureKill ( Player ,
Creature  
)
inlinevirtual
659 { }
virtual void PlayerScript::OnDelete ( ObjectGuid  ,
uint32   
)
inlinevirtual

Reimplemented in CharacterDeleteActionIpLogger.

723 { }
virtual void PlayerScript::OnDuelEnd ( Player ,
Player ,
DuelCompleteType   
)
inlinevirtual

Reimplemented in DuelResetScript.

692 { }
virtual void PlayerScript::OnDuelRequest ( Player ,
Player  
)
inlinevirtual
686 { }
virtual void PlayerScript::OnDuelStart ( Player ,
Player  
)
inlinevirtual

Reimplemented in DuelResetScript.

689 { }
virtual void PlayerScript::OnFailedDelete ( ObjectGuid  ,
uint32   
)
inlinevirtual

Reimplemented in CharacterDeleteActionIpLogger.

726 { }
virtual void PlayerScript::OnFreeTalentPointsChanged ( Player ,
uint32   
)
inlinevirtual
668 { }
virtual void PlayerScript::OnGiveXP ( Player ,
uint32 ,
Unit  
)
inlinevirtual
680 { }
virtual void PlayerScript::OnLevelChanged ( Player ,
uint8   
)
inlinevirtual
665 { }
virtual void PlayerScript::OnLogin ( Player ,
bool   
)
inlinevirtual

Reimplemented in CharacterActionIpLogger, and lfg::LFGPlayerScript.

714 { }
virtual void PlayerScript::OnLogout ( Player )
inlinevirtual

Reimplemented in CharacterActionIpLogger, and lfg::LFGPlayerScript.

717 { }
virtual void PlayerScript::OnMapChanged ( Player )
inlinevirtual

Reimplemented in lfg::LFGPlayerScript.

738 { }
virtual void PlayerScript::OnMoneyChanged ( Player ,
int64  
)
inlinevirtual
674 { }
virtual void PlayerScript::OnMoneyLimit ( Player ,
int64   
)
inlinevirtual
677 { }
virtual void PlayerScript::OnPlayerKilledByCreature ( Creature ,
Player  
)
inlinevirtual
662 { }
virtual void PlayerScript::OnPVPKill ( Player ,
Player  
)
inlinevirtual
656 { }
virtual void PlayerScript::OnQuestStatusChange ( Player ,
uint32  ,
QuestStatus   
)
inlinevirtual
741 { }
virtual void PlayerScript::OnReputationChange ( Player ,
uint32  ,
int32 ,
bool   
)
inlinevirtual
683 { }
virtual void PlayerScript::OnSave ( Player )
inlinevirtual
729 { }
virtual void PlayerScript::OnSpellCast ( Player ,
Spell ,
bool   
)
inlinevirtual
711 { }
virtual void PlayerScript::OnTalentsReset ( Player ,
bool   
)
inlinevirtual
671 { }
virtual void PlayerScript::OnTextEmote ( Player ,
uint32  ,
uint32  ,
ObjectGuid   
)
inlinevirtual
708 { }
virtual void PlayerScript::OnUpdateZone ( Player ,
uint32  ,
uint32   
)
inlinevirtual
735 { }

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