Browse Source

dyn_npc_production column update

combat-2
MagicBot 8 months ago
parent
commit
04991c94ba
  1. 2
      src/engine/db/handlers/dbNPCHandler.java

2
src/engine/db/handlers/dbNPCHandler.java

@ -348,7 +348,7 @@ public class dbNPCHandler extends dbHandlerBase {
public boolean ADD_TO_PRODUCTION_LIST(final long ID, final long npcUID, final long templateID, DateTime dateTime, String prefix, String suffix, String name, boolean isRandom, int playerID) { public boolean ADD_TO_PRODUCTION_LIST(final long ID, final long npcUID, final long templateID, DateTime dateTime, String prefix, String suffix, String name, boolean isRandom, int playerID) {
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_npc_production` (`ID`,`npcUID`, `itemBaseID`,`dateToUpgrade`, `isRandom`, `prefix`, `suffix`, `name`,`playerID`) VALUES (?,?,?,?,?,?,?,?,?)")) { PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_npc_production` (`ID`,`npcUID`, `templateID`,`dateToUpgrade`, `isRandom`, `prefix`, `suffix`, `name`,`playerID`) VALUES (?,?,?,?,?,?,?,?,?)")) {
preparedStatement.setLong(1, ID); preparedStatement.setLong(1, ID);
preparedStatement.setLong(2, npcUID); preparedStatement.setLong(2, npcUID);

Loading…
Cancel
Save