mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 09:17:15 +00:00
[Merchant] LDoNSellBackRate support for Rule Merchant:EnableAltCurrencySell (#2570)
This commit is contained in:
@@ -2695,7 +2695,8 @@ void Client::Handle_OP_AltCurrencySell(const EQApplicationPacket *app)
|
||||
continue;
|
||||
|
||||
if (item->ID == inst->GetItem()->ID) {
|
||||
cost = ml.alt_currency_cost;
|
||||
// 06/11/2016 This formula matches RoF2 client side calculation.
|
||||
cost = (ml.alt_currency_cost + 1) * item->LDoNSellBackRate / 100;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
@@ -2799,7 +2800,8 @@ void Client::Handle_OP_AltCurrencySellSelection(const EQApplicationPacket *app)
|
||||
continue;
|
||||
|
||||
if (item->ID == inst->GetItem()->ID) {
|
||||
cost = ml.alt_currency_cost;
|
||||
// 06/11/2016 This formula matches RoF2 client side calculation.
|
||||
cost = (ml.alt_currency_cost + 1) * item->LDoNSellBackRate / 100;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user