From 217a6b6344a87938f6bdfc969f02c154fff96666 Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Fri, 25 Nov 2022 16:16:59 -0500 Subject: [PATCH] [Merchant] LDoNSellBackRate support for Rule Merchant:EnableAltCurrencySell (#2570) --- zone/client_packet.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 4ae6b74e2..affb544ba 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -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; }