|
|
@ -80,8 +80,6 @@ public class dbMobHandler extends dbHandlerBase { |
|
|
|
|
|
|
|
|
|
|
|
public void LOAD_PATROL_POINTS(Mob captain) { |
|
|
|
public void LOAD_PATROL_POINTS(Mob captain) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prepareCallable("SELECT * FROM `dyn_guards` WHERE `captainUID` = ?"); |
|
|
|
prepareCallable("SELECT * FROM `dyn_guards` WHERE `captainUID` = ?"); |
|
|
|
setInt(1,captain.getObjectUUID()); |
|
|
|
setInt(1,captain.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
@ -89,6 +87,7 @@ public class dbMobHandler extends dbHandlerBase { |
|
|
|
ResultSet rs = executeQuery(); |
|
|
|
ResultSet rs = executeQuery(); |
|
|
|
|
|
|
|
|
|
|
|
//shrines cached in rs for easy cache on creation.
|
|
|
|
//shrines cached in rs for easy cache on creation.
|
|
|
|
|
|
|
|
|
|
|
|
while (rs.next()) { |
|
|
|
while (rs.next()) { |
|
|
|
int mobBaseID = rs.getInt("mobBaseID"); |
|
|
|
int mobBaseID = rs.getInt("mobBaseID"); |
|
|
|
String name = rs.getString("name"); |
|
|
|
String name = rs.getString("name"); |
|
|
@ -96,24 +95,18 @@ public class dbMobHandler extends dbHandlerBase { |
|
|
|
if (toCreate == null) |
|
|
|
if (toCreate == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
// toCreate.despawn();
|
|
|
|
|
|
|
|
if (toCreate != null) { |
|
|
|
if (toCreate != null) { |
|
|
|
|
|
|
|
|
|
|
|
toCreate.setTimeToSpawnSiege(System.currentTimeMillis() + MBServerStatics.FIFTEEN_MINUTES); |
|
|
|
toCreate.setTimeToSpawnSiege(System.currentTimeMillis() + MBServerStatics.FIFTEEN_MINUTES); |
|
|
|
toCreate.setDeathTime(System.currentTimeMillis()); |
|
|
|
toCreate.setDeathTime(System.currentTimeMillis()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|
Logger.error( e.toString()); |
|
|
|
Logger.error( e.toString()); |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
closeCallable(); |
|
|
|
closeCallable(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean ADD_TO_GUARDS(final long captainUID, final int mobBaseID, final String name, final int slot) { |
|
|
|
public boolean ADD_TO_GUARDS(final long captainUID, final int mobBaseID, final String name, final int slot) { |
|
|
|