aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/AuctionHouseHandler.cpp
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2025-04-07 20:26:28 +0200
committerOvahlord <dreadkiller@gmx.de>2025-04-08 07:02:13 +0200
commit0412678e50412c87aadc643b672b86763fe4a23b (patch)
tree28ce6ac9e6975bf38aa72b24b3e81af1e0313efa /src/server/game/Handlers/AuctionHouseHandler.cpp
parente8a5b17e5d6fa195d22fad009c9f45b4e597a461 (diff)
Core/Packets: updated Auction House packets to 4.4.2
Diffstat (limited to 'src/server/game/Handlers/AuctionHouseHandler.cpp')
-rw-r--r--src/server/game/Handlers/AuctionHouseHandler.cpp36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/server/game/Handlers/AuctionHouseHandler.cpp b/src/server/game/Handlers/AuctionHouseHandler.cpp
index bea51adb4f6..fb309602ca8 100644
--- a/src/server/game/Handlers/AuctionHouseHandler.cpp
+++ b/src/server/game/Handlers/AuctionHouseHandler.cpp
@@ -363,11 +363,12 @@ void WorldSession::HandleAuctionPlaceBid(WorldPackets::AuctionHouse::AuctionPlac
}
// auction house does not deal with copper
- if (placeBid.BidAmount % SILVER)
- {
- SendAuctionCommandResult(placeBid.AuctionID, AuctionCommand::PlaceBid, AuctionResult::BidIncrement, throttle.DelayUntilNext);
- return;
- }
+ // But not in Classic
+ //if (placeBid.BidAmount % SILVER)
+ //{
+ // SendAuctionCommandResult(placeBid.AuctionID, AuctionCommand::PlaceBid, AuctionResult::BidIncrement, throttle.DelayUntilNext);
+ // return;
+ //}
// remove fake death
if (GetPlayer()->HasUnitState(UNIT_STATE_DIED))
@@ -617,11 +618,12 @@ void WorldSession::HandleAuctionSellCommodity(WorldPackets::AuctionHouse::Auctio
}
// auction house does not deal with copper
- if (sellCommodity.UnitPrice % SILVER)
- {
- SendAuctionCommandResult(0, AuctionCommand::SellItem, AuctionResult::DatabaseError, throttle.DelayUntilNext);
- return;
- }
+ // But not in Classic
+ //if (sellCommodity.UnitPrice % SILVER)
+ //{
+ // SendAuctionCommandResult(0, AuctionCommand::SellItem, AuctionResult::DatabaseError, throttle.DelayUntilNext);
+ // return;
+ //}
Creature* creature = GetPlayer()->GetNPCIfCanInteractWith(sellCommodity.Auctioneer, UNIT_NPC_FLAG_AUCTIONEER, UNIT_NPC_FLAG_2_NONE);
if (!creature)
@@ -841,11 +843,12 @@ void WorldSession::HandleAuctionSellItem(WorldPackets::AuctionHouse::AuctionSell
}
// auction house does not deal with copper
- if (sellItem.MinBid % SILVER || sellItem.BuyoutPrice % SILVER)
- {
- SendAuctionCommandResult(0, AuctionCommand::SellItem, AuctionResult::DatabaseError, throttle.DelayUntilNext);
- return;
- }
+ // But not in Classic
+ //if (sellItem.MinBid % SILVER || sellItem.BuyoutPrice % SILVER)
+ //{
+ // SendAuctionCommandResult(0, AuctionCommand::SellItem, AuctionResult::DatabaseError, throttle.DelayUntilNext);
+ // return;
+ //}
Creature* creature = GetPlayer()->GetNPCIfCanInteractWith(sellItem.Auctioneer, UNIT_NPC_FLAG_AUCTIONEER, UNIT_NPC_FLAG_2_NONE);
if (!creature)
@@ -1005,7 +1008,8 @@ void WorldSession::SendAuctionHello(ObjectGuid guid, Unit const* unit)
return;
WorldPackets::AuctionHouse::AuctionHelloResponse auctionHelloResponse;
- auctionHelloResponse.Guid = guid;
+ auctionHelloResponse.Auctioneer = guid;
+ auctionHelloResponse.AuctionHouseID = ahEntry->ID;
auctionHelloResponse.OpenForBusiness = true; // 3.3.3: 1 - AH enabled, 0 - AH disabled
SendPacket(auctionHelloResponse.Write());
}