From 1b6974ade3b4beab1ae3c052ac5e9f5fcb6b653e Mon Sep 17 00:00:00 2001 From: Drajor Date: Sat, 11 Jun 2016 13:29:56 +1000 Subject: [PATCH] Alternate currency sell price now matches RoF2 client calculation --- zone/client_packet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index e661d3022..e0de70add 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -2188,7 +2188,8 @@ void Client::Handle_OP_AdventureMerchantSell(const EQApplicationPacket *app) return; } - int32 price = ceil((float)item->LDoNPrice * item->LDoNSellBackRate / 100); + // 06/11/2016 This formula matches RoF2 client side calculation. + int32 price = (item->LDoNPrice + 1) * item->LDoNSellBackRate / 100; if (price == 0) {