mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
add bid to AUCTION_EVENT_ON_ADD
Signed-off-by: Salja <salja8840@gmail.com>
This commit is contained in:
2
Hooks.h
2
Hooks.h
@@ -136,7 +136,7 @@ namespace Hooks
|
||||
WEATHER_EVENT_ON_CHANGE = 25, // (event, zoneId, state, grade)
|
||||
|
||||
// Auction house
|
||||
AUCTION_EVENT_ON_ADD = 26, // (event, auctionHouseEntry, player, item, buyout, etime)
|
||||
AUCTION_EVENT_ON_ADD = 26, // (event, auctionHouseEntry, player, item, bid, buyout, etime)
|
||||
AUCTION_EVENT_ON_REMOVE = 27, // (event, auctionHouseEntry, player, item)
|
||||
AUCTION_EVENT_ON_SUCCESSFUL = 28, // (event, auctionHouseEntry) // Not Implemented
|
||||
AUCTION_EVENT_ON_EXPIRE = 29, // (event, auctionHouseEntry) // Not Implemented
|
||||
|
||||
@@ -442,7 +442,7 @@ public:
|
||||
void OnChange(Weather* weather, uint32 zone, WeatherState state, float grade);
|
||||
|
||||
/* Auction House */
|
||||
void OnAdd(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, Item* pItem, uint32 buyout, uint32 etime);
|
||||
void OnAdd(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, Item* pItem, uint32 bid, uint32 buyout, uint32 etime);
|
||||
void OnRemove(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, Item* pItem);
|
||||
void OnSuccessful(AuctionHouseEntry const* auctionHouseEntry);
|
||||
void OnExpire(AuctionHouseEntry const* auctionHouseEntry);
|
||||
|
||||
@@ -82,7 +82,7 @@ void Eluna::OnChange(Weather* weather, uint32 zone, WeatherState state, float gr
|
||||
}
|
||||
|
||||
// Auction House
|
||||
void Eluna::OnAdd(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, Item* pItem, uint32 buyout, uint32 etime)
|
||||
void Eluna::OnAdd(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, Item* pItem, uint32 bid, uint32 buyout, uint32 etime)
|
||||
{
|
||||
if (!ServerEventBindings->HasEvents(AUCTION_EVENT_ON_ADD))
|
||||
return;
|
||||
@@ -91,6 +91,7 @@ void Eluna::OnAdd(AuctionHouseEntry const* auctionHouseEntry, Player* pPlayer, I
|
||||
Push(auctionHouseEntry);
|
||||
Push(pPlayer);
|
||||
Push(pItem);
|
||||
Push(bid);
|
||||
Push(buyout);
|
||||
Push(etime);
|
||||
CallAllFunctions(ServerEventBindings, AUCTION_EVENT_ON_ADD);
|
||||
|
||||
Reference in New Issue
Block a user