Browse Source

fixed NPC interaction

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
e66e430d30
  1. 2
      src/engine/net/client/msg/VendorDialogMsg.java
  2. 1
      src/engine/objects/Contract.java

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

@ -142,7 +142,7 @@ public class VendorDialogMsg extends ClientNetMsg {
if (VendorDialogMsg.handleSpecialCase(msg, npc, playerCharacter, vd, origin)) if (VendorDialogMsg.handleSpecialCase(msg, npc, playerCharacter, vd, origin))
return; return;
} }
vd = VendorDialog.getVendorDialog(msg.unknown03); //vd = VendorDialog.getVendorDialog(msg.unknown03);
msg.updateMessage(3, vd); msg.updateMessage(3, vd);
} }

1
src/engine/objects/Contract.java

@ -195,6 +195,7 @@ public class Contract extends AbstractGameObject {
} }
public static VendorDialog HandleBaneCommanderOptions(int optionId, NPC npc, PlayerCharacter pc){ public static VendorDialog HandleBaneCommanderOptions(int optionId, NPC npc, PlayerCharacter pc){
pc.setLastNPCDialog(null);
VendorDialog vd = VendorDialog.getHostileVendorDialog(); VendorDialog vd = VendorDialog.getHostileVendorDialog();
vd.getOptions().clear(); vd.getOptions().clear();
Building building = npc.building; Building building = npc.building;

Loading…
Cancel
Save