From 540c351460ab229ab2a60fe0be28be2e40010062 Mon Sep 17 00:00:00 2001 From: Salja Date: Sun, 25 Jan 2015 23:44:26 +0100 Subject: [PATCH] add bid to AUCTION_EVENT_ON_ADD Signed-off-by: Salja --- Hooks.h | 2 +- LuaEngine.h | 2 +- ServerHooks.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Hooks.h b/Hooks.h index 40af516..279ddd2 100644 --- a/Hooks.h +++ b/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 diff --git a/LuaEngine.h b/LuaEngine.h index 4285b9b..83a6cb2 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -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); diff --git a/ServerHooks.cpp b/ServerHooks.cpp index a693521..0de14b8 100644 --- a/ServerHooks.cpp +++ b/ServerHooks.cpp @@ -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);