From c7b48c1ca9200edb8d3ef02fac58788a08804d71 Mon Sep 17 00:00:00 2001 From: silinoron Date: Wed, 11 Aug 2010 22:53:31 -0700 Subject: Add PlayerScript hooks: * OnMoneyChanged * OnGiveXP * OnReputationChange * OnChat * OnEmote * OnTextEmote --HG-- branch : trunk --- src/server/game/Reputation/ReputationMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/Reputation/ReputationMgr.cpp') diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index dbe3cd3833b..224092097ce 100644 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -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; -- cgit v1.2.3