add player and item to auctionshouse hooks, not sure is better move back to player events ?

Signed-off-by: Salja <salja8840@gmail.com>
This commit is contained in:
Salja
2015-01-25 22:47:16 +01:00
parent e6e4ecdab1
commit 734f720aca
3 changed files with 10 additions and 6 deletions

View File

@@ -82,23 +82,27 @@ void Eluna::OnChange(Weather* weather, uint32 zone, WeatherState state, float gr
}
// Auction House
void Eluna::OnAdd(AuctionHouseObject* ah)
void Eluna::OnAdd(AuctionHouseObject* ah, Player* pPlayer, Item* pItem)
{
if (!ServerEventBindings->HasEvents(AUCTION_EVENT_ON_ADD))
return;
LOCK_ELUNA;
Push(ah);
Push(pPlayer);
Push(pItem);
CallAllFunctions(ServerEventBindings, AUCTION_EVENT_ON_ADD);
}
void Eluna::OnRemove(AuctionHouseObject* ah)
void Eluna::OnRemove(AuctionHouseObject* ah, Player* pPlayer, Item* pItem)
{
if (!ServerEventBindings->HasEvents(AUCTION_EVENT_ON_REMOVE))
return;
LOCK_ELUNA;
Push(ah);
Push(pPlayer);
Push(pItem);
CallAllFunctions(ServerEventBindings, AUCTION_EVENT_ON_REMOVE);
}