Sell price NPC

04/01/2022 21:02 pepeton#1
Hello everyone,

How can I adjust the selling price of all items to NPC? I have tried this to change this line from /4 to /400

Code:
DWORD BuyGold = dwCost / 400;
under the line of CWndShop but it only shows the right amount on the screen but once you sold it the real price is still the original.
04/01/2022 22:35 FIorist#2
File: WndManager.cpp
Function: CWndMgr::PutItemGold
Line: dwCostTem = pItemElem->GetCost() / 4;
Explanation: Change number in tooltip

File: WndShop.cpp
Function: CWndConfirmSell::OnDraw
Line: DWORD BuyGold = dwCost / 4;
Explanation: Change number in confirmation window

File: WndShop.cpp
Function: CWndConfirmSell::Initialize
Line: DWORD BuyGold = dwCost / 4;
Explanation: Change number in confirmation window

File: DPSrvr.cpp
Function: CDPSrvr::OnSellItem
Line: int nGold = (pItemElem->GetCost() / 4);
Explanation: Change number in server side