Add PlayerScript hooks:

* OnMoneyChanged
* OnGiveXP
* OnReputationChange
* OnChat
* OnEmote
* OnTextEmote

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-11 22:53:31 -07:00
parent ce29cfa7f7
commit c7b48c1ca9
6 changed files with 98 additions and 20 deletions

View File

@@ -22,6 +22,7 @@
#include "WorldPacket.h"
#include "World.h"
#include "ObjectMgr.h"
#include "ScriptMgr.h"
const int32 ReputationMgr::PointsInRank[MAX_REPUTATION_RANK] = {36000, 3000, 3000, 3000, 6000, 12000, 21000, 1000};
@@ -251,6 +252,8 @@ void ReputationMgr::Initialize()
bool ReputationMgr::SetReputation(FactionEntry const* factionEntry, int32 standing, bool incremental)
{
sScriptMgr.OnPlayerReputationChange(m_player, factionEntry->ID, standing, incremental);
if (SimpleFactionsList const* flist = GetFactionTeamList(factionEntry->ID))
{
bool res = false;