mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Fix for alt currency reclaim exploit and fix for exploit in trader code where price != set price
This commit is contained in:
parent
93eb727ade
commit
6c26bc9c8f
@ -2604,7 +2604,7 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
|
||||
++iter;
|
||||
}
|
||||
|
||||
if (item_id == 0) {
|
||||
if (item_id == 0 || reclaim->count == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -1583,6 +1583,8 @@ void Client::BuyTraderItem(TraderBuy_Struct* tbs, Client* Trader, const EQApplic
|
||||
return;
|
||||
}
|
||||
|
||||
tbs->Price = BuyItem->GetPrice();
|
||||
|
||||
Log.Out(Logs::Detail, Logs::Trading, "Buyitem: Name: %s, IsStackable: %i, Requested Quantity: %i, Charges on Item %i",
|
||||
BuyItem->GetItem()->Name, BuyItem->IsStackable(), tbs->Quantity, BuyItem->GetCharges());
|
||||
// If the item is not stackable, then we can only be buying one of them.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user