|
|
|
@ -112,6 +112,26 @@ public class dbMobBaseHandler extends dbHandlerBase {
@@ -112,6 +112,26 @@ public class dbMobBaseHandler extends dbHandlerBase {
|
|
|
|
|
return mobBaseStats; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void LOAD_ALL_MOBBASE_RACES() { |
|
|
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_mobbase_race`")) { |
|
|
|
|
|
|
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
|
|
|
|
|
|
while (rs.next()) { |
|
|
|
|
int id = rs.getInt("loadID"); |
|
|
|
|
MobBase mobbase = MobBase.getMobBase(id); |
|
|
|
|
if(mobbase != null){ |
|
|
|
|
mobbase.raceType = rs.getString("raceType"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
Logger.error(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void LOAD_ALL_MOBBASE_SPEEDS(MobBase mobBase) { |
|
|
|
|
|
|
|
|
|
if (mobBase.getLoadID() == 0) |
|
|
|
|