Skip to content
Merged
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
18 changes: 9 additions & 9 deletions src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,14 +1046,14 @@ class PS_Transmogrification : public PlayerScript
public:
PS_Transmogrification() : PlayerScript("Player_Transmogrify") { }

void OnEquip(Player* player, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) override
void OnPlayerEquip(Player* player, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) override
{
if (!sT->GetUseCollectionSystem())
return;
AddToDatabase(player, it);
}

void OnLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override
void OnPlayerLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override
{
if (!sT->GetUseCollectionSystem() || !item || typeid(*item) != typeid(Item))
return;
Expand All @@ -1063,7 +1063,7 @@ class PS_Transmogrification : public PlayerScript
}
}

void OnCreateItem(Player* player, Item* item, uint32 /*count*/) override
void OnPlayerCreateItem(Player* player, Item* item, uint32 /*count*/) override
{
if (!sT->GetUseCollectionSystem())
return;
Expand All @@ -1073,7 +1073,7 @@ class PS_Transmogrification : public PlayerScript
}
}

void OnAfterStoreOrEquipNewItem(Player* player, uint32 /*vendorslot*/, Item* item, uint8 /*count*/, uint8 /*bag*/, uint8 /*slot*/, ItemTemplate const* /*pProto*/, Creature* /*pVendor*/, VendorItem const* /*crItem*/, bool /*bStore*/) override
void OnPlayerAfterStoreOrEquipNewItem(Player* player, uint32 /*vendorslot*/, Item* item, uint8 /*count*/, uint8 /*bag*/, uint8 /*slot*/, ItemTemplate const* /*pProto*/, Creature* /*pVendor*/, VendorItem const* /*crItem*/, bool /*bStore*/) override
{
if (!sT->GetUseCollectionSystem())
return;
Expand Down Expand Up @@ -1106,7 +1106,7 @@ class PS_Transmogrification : public PlayerScript
}
}

void OnAfterSetVisibleItemSlot(Player* player, uint8 slot, Item *item) override
void OnPlayerAfterSetVisibleItemSlot(Player* player, uint8 slot, Item *item) override
{
if (!item)
return;
Expand All @@ -1117,12 +1117,12 @@ class PS_Transmogrification : public PlayerScript
}
}

void OnAfterMoveItemFromInventory(Player* /*player*/, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) override
void OnPlayerAfterMoveItemFromInventory(Player* /*player*/, Item* it, uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) override
{
sT->DeleteFakeFromDB(it->GetGUID().GetCounter());
}

void OnLogin(Player* player) override
void OnPlayerLogin(Player* player) override
{
if (sT->EnableResetRetroActiveAppearances())
player->UpdatePlayerSetting("mod-transmog", SETTING_RETROACTIVE_CHECK, 0);
Expand Down Expand Up @@ -1170,7 +1170,7 @@ class PS_Transmogrification : public PlayerScript
#endif
}

void OnLogout(Player* player) override
void OnPlayerLogout(Player* player) override
{
ObjectGuid pGUID = player->GetGUID();
for (Transmogrification::transmog2Data::const_iterator it = sT->entryMap[pGUID].begin(); it != sT->entryMap[pGUID].end(); ++it)
Expand All @@ -1184,7 +1184,7 @@ class PS_Transmogrification : public PlayerScript
#endif
}

void OnBeforeBuyItemFromVendor(Player* player, ObjectGuid vendorguid, uint32 /*vendorslot*/, uint32& itemEntry, uint8 /*count*/, uint8 /*bag*/, uint8 /*slot*/) override
void OnPlayerBeforeBuyItemFromVendor(Player* player, ObjectGuid vendorguid, uint32 /*vendorslot*/, uint32& itemEntry, uint8 /*count*/, uint8 /*bag*/, uint8 /*slot*/) override
{
Creature* vendor = player->GetMap()->GetCreature(vendorguid);
if (!vendor)
Expand Down
Loading