mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-31 22:52:25 +00:00
[Merchant] LDoNSellBackRate support for Rule Merchant:EnableAltCurrencySell (#2570)
This commit is contained in:
parent
99052aec8b
commit
217a6b6344
@ -2695,7 +2695,8 @@ void Client::Handle_OP_AltCurrencySell(const EQApplicationPacket *app)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item->ID == inst->GetItem()->ID) {
|
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;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2799,7 +2800,8 @@ void Client::Handle_OP_AltCurrencySellSelection(const EQApplicationPacket *app)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item->ID == inst->GetItem()->ID) {
|
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;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user