@ -15,7 +15,6 @@ import engine.math.Vector3fImmutable;
@@ -15,7 +15,6 @@ import engine.math.Vector3fImmutable;
import engine.objects.NPC ;
import engine.objects.NPCProfits ;
import engine.objects.ProducedItem ;
import engine.objects.Zone ;
import org.joda.time.DateTime ;
import org.pmw.tinylog.Logger ;
@ -111,25 +110,6 @@ public class dbNPCHandler extends dbHandlerBase {
@@ -111,25 +110,6 @@ public class dbNPCHandler extends dbHandlerBase {
return npcList ;
}
public ArrayList < NPC > GET_ALL_NPCS_FOR_ZONE ( Zone zone ) {
ArrayList < NPC > npcList = new ArrayList < > ( ) ;
try ( Connection connection = DbManager . getConnection ( ) ;
PreparedStatement preparedStatement = connection . prepareStatement ( "SELECT `obj_npc`.*, `object`.`parent` FROM `object` INNER JOIN `obj_npc` ON `obj_npc`.`UID` = `object`.`UID` WHERE `object`.`parent` = ?;" ) ) {
preparedStatement . setLong ( 1 , zone . getObjectUUID ( ) ) ;
ResultSet rs = preparedStatement . executeQuery ( ) ;
npcList = getObjectsFromRs ( rs , 1000 ) ;
} catch ( SQLException e ) {
Logger . error ( e ) ;
}
return npcList ;
}
public NPC GET_NPC ( final int objectUUID ) {
NPC npc = null ;