Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ABPlayerScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
#include "ABUtils.h"
#include "Message.h"

void AutoBalance_PlayerScript::OnLogin(Player* Player)
void AutoBalance_PlayerScript::OnPlayerLogin(Player* Player)
{
if (EnableGlobal && Announcement) {
ChatHandler(Player->GetSession()).SendSysMessage("This server is running the |cff4CFF00AutoBalance |rmodule.");
}
}

void AutoBalance_PlayerScript::OnLevelChanged(Player* player, uint8 oldlevel)
void AutoBalance_PlayerScript::OnPlayerLevelChanged(Player* player, uint8 oldlevel)
{
LOG_DEBUG("module.AutoBalance", "AutoBalance:: ------------------------------------------------");

Expand All @@ -41,7 +41,7 @@ void AutoBalance_PlayerScript::OnLevelChanged(Player* player, uint8 oldlevel)
mapABInfo->mapConfigTime = GetCurrentConfigTime();
}

void AutoBalance_PlayerScript::OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 /*xpSource*/)
void AutoBalance_PlayerScript::OnPlayerGiveXP(Player* player, uint32& amount, Unit* victim, uint8 /*xpSource*/)
{
Map* map = player->GetMap();

Expand Down Expand Up @@ -80,7 +80,7 @@ void AutoBalance_PlayerScript::OnGiveXP(Player* player, uint32& amount, Unit* vi
}
}

void AutoBalance_PlayerScript::OnBeforeLootMoney(Player* player, Loot* loot)
void AutoBalance_PlayerScript::OnPlayerBeforeLootMoney(Player* player, Loot* loot)
{
Map* map = player->GetMap();

Expand Down
8 changes: 4 additions & 4 deletions src/ABPlayerScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class AutoBalance_PlayerScript : public PlayerScript
{
}

void OnLogin(Player* Player) override;
virtual void OnLevelChanged(Player* player, uint8 oldlevel) override;
void OnGiveXP(Player* player, uint32& amount, Unit* victim, uint8 xpSource) override;
void OnBeforeLootMoney(Player* player, Loot* loot) override;
void OnPlayerLogin(Player* Player) override;
virtual void OnPlayerLevelChanged(Player* player, uint8 oldlevel) override;
void OnPlayerGiveXP(Player* player, uint32& amount, Unit* victim, uint8 xpSource) override;
void OnPlayerBeforeLootMoney(Player* player, Loot* loot) override;
virtual void OnPlayerEnterCombat(Player* player, Unit* enemy) override;
virtual void OnPlayerLeaveCombat(Player* player) override;
};
Expand Down
Loading