From 58f5bf05e0a4e87b40a4b27f0699c6297da15d75 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 10 May 2024 17:59:14 -0500 Subject: [PATCH] refiner? --- src/engine/net/client/msg/RefinerScreenMsg.java | 2 +- src/engine/server/world/WorldServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/RefinerScreenMsg.java b/src/engine/net/client/msg/RefinerScreenMsg.java index 54f5e8e3..4d492f0b 100644 --- a/src/engine/net/client/msg/RefinerScreenMsg.java +++ b/src/engine/net/client/msg/RefinerScreenMsg.java @@ -95,7 +95,7 @@ public class RefinerScreenMsg extends ClientNetMsg { return this.unknown02; } - public void setUnknown02(int value) { + public void setUnknown02(float value) { this.unknown02 = value; } diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index b7282b94..829b9c90 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -146,7 +146,7 @@ public class WorldServer { NPC npc = NPC.getFromCache(msg.getNpcID()); if (npc != null) - msg.setUnknown02(0); //cost to refine? + msg.setUnknown02(npc.sellPercent); //cost to refine? Dispatch dispatch = Dispatch.borrow(origin.getPlayerCharacter(), msg); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);