fixed NPC interaction

This commit is contained in:
2024-12-29 16:19:08 -06:00
parent c833f560c1
commit e66e430d30
2 changed files with 2 additions and 1 deletions
@@ -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
View File
@@ -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;