Browse Source

refiner?

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
58f5bf05e0
  1. 2
      src/engine/net/client/msg/RefinerScreenMsg.java
  2. 2
      src/engine/server/world/WorldServer.java

2
src/engine/net/client/msg/RefinerScreenMsg.java

@ -95,7 +95,7 @@ public class RefinerScreenMsg extends ClientNetMsg {
return this.unknown02; return this.unknown02;
} }
public void setUnknown02(int value) { public void setUnknown02(float value) {
this.unknown02 = value; this.unknown02 = value;
} }

2
src/engine/server/world/WorldServer.java

@ -146,7 +146,7 @@ public class WorldServer {
NPC npc = NPC.getFromCache(msg.getNpcID()); NPC npc = NPC.getFromCache(msg.getNpcID());
if (npc != null) if (npc != null)
msg.setUnknown02(0); //cost to refine? msg.setUnknown02(npc.sellPercent); //cost to refine?
Dispatch dispatch = Dispatch.borrow(origin.getPlayerCharacter(), msg); Dispatch dispatch = Dispatch.borrow(origin.getPlayerCharacter(), msg);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);

Loading…
Cancel
Save