NPC special price option

This commit is contained in:
2025-01-03 18:56:41 -06:00
parent f97991f00d
commit 520219404c
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -206,6 +206,7 @@ public class dbNPCHandler extends dbHandlerBase {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("UPDATE obj_npc SET specialPrice=? WHERE UID = ?")) {
preparedStatement.setInt(1, npc.getSpecialPrice());
preparedStatement.setInt(2, npc.getDBID());
preparedStatement.executeUpdate();