Sync with L2jServer HighFive Jul 25th 2015.
This commit is contained in:
@ -35,7 +35,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jserver.gameserver.datatables.SpawnTable;
|
||||
@ -406,7 +406,7 @@ public final class FourSepulchersManager
|
||||
{
|
||||
_mysteriousBoxSpawns.clear();
|
||||
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("SELECT id, count, npc_templateid, locx, locy, locz, heading, respawn_delay, key_npc_id FROM four_sepulchers_spawnlist Where spawntype = ? ORDER BY id"))
|
||||
{
|
||||
ps.setInt(1, 0);
|
||||
@ -463,7 +463,7 @@ public final class FourSepulchersManager
|
||||
_physicalMonsters.clear();
|
||||
|
||||
int loaded = 0;
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps1 = con.prepareStatement("SELECT Distinct key_npc_id FROM four_sepulchers_spawnlist Where spawntype = ? ORDER BY key_npc_id"))
|
||||
{
|
||||
ps1.setInt(1, 1);
|
||||
@ -510,7 +510,7 @@ public final class FourSepulchersManager
|
||||
_magicalMonsters.clear();
|
||||
|
||||
int loaded = 0;
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps1 = con.prepareStatement("SELECT Distinct key_npc_id FROM four_sepulchers_spawnlist Where spawntype = ? ORDER BY key_npc_id"))
|
||||
{
|
||||
ps1.setInt(1, 2);
|
||||
@ -559,7 +559,7 @@ public final class FourSepulchersManager
|
||||
_archonSpawned.clear();
|
||||
|
||||
int loaded = 0;
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps1 = con.prepareStatement("SELECT Distinct key_npc_id FROM four_sepulchers_spawnlist Where spawntype = ? ORDER BY key_npc_id"))
|
||||
{
|
||||
ps1.setInt(1, 5);
|
||||
@ -610,7 +610,7 @@ public final class FourSepulchersManager
|
||||
_emperorsGraveNpcs.clear();
|
||||
|
||||
int loaded = 0;
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps1 = con.prepareStatement("SELECT Distinct key_npc_id FROM four_sepulchers_spawnlist Where spawntype = ? ORDER BY key_npc_id"))
|
||||
{
|
||||
ps1.setInt(1, 6);
|
||||
|
Reference in New Issue
Block a user