mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 06:48:20 +00:00
wip
This commit is contained in:
+16
-14
@@ -1674,21 +1674,23 @@ void ZoneServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p) {
|
||||
break;
|
||||
}
|
||||
case ServerOP_BazaarPurchase: {
|
||||
auto in = (BazaarPurchaseMessaging_Struct *)pack->pBuffer;
|
||||
if (in->trader_buy_struct.trader_id <= 0) {
|
||||
LogTrading(
|
||||
"World Message [{}] received with invalid trader_id [{}]",
|
||||
"ServerOP_BazaarPurchase",
|
||||
in->trader_buy_struct.trader_id
|
||||
);
|
||||
return;
|
||||
auto in = reinterpret_cast<BazaarPurchaseMessaging_Struct *>(pack->pBuffer);
|
||||
switch (in->transaction_status) {
|
||||
case BazaarPurchaseBuyerCompleteSendToSeller: {
|
||||
zoneserver_list.SendPacket(in->trader_zone_id, in->trader_zone_instance_id, pack);
|
||||
break;
|
||||
}
|
||||
case BazaarPurchaseTraderFailed:
|
||||
case BazaarPurchaseSuccess: {
|
||||
zoneserver_list.SendPacket(in->buyer_zone_id, in->buyer_zone_instance_id, pack);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
LogError(
|
||||
"ServerOP_BazaarPurchase received with no corresponding action for [{}]",
|
||||
in->transaction_status);
|
||||
}
|
||||
}
|
||||
|
||||
auto trader = ClientList::Instance()->FindCLEByCharacterID(in->trader_buy_struct.trader_id);
|
||||
if (trader) {
|
||||
ZSList::Instance()->SendPacket(in->trader_zone_id, in->trader_zone_instance_id, pack);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case ServerOP_BuyerMessaging: {
|
||||
|
||||
Reference in New Issue
Block a user