@ -104,7 +104,7 @@ public class dbCharacterPowerHandler extends dbHandlerBase {
@@ -104,7 +104,7 @@ public class dbCharacterPowerHandler extends dbHandlerBase {
@ -112,7 +112,7 @@ public class dbCharacterRuneHandler extends dbHandlerBase {
@@ -112,7 +112,7 @@ public class dbCharacterRuneHandler extends dbHandlerBase {
@ -134,7 +134,7 @@ public class dbCharacterSkillHandler extends dbHandlerBase {
@@ -134,7 +134,7 @@ public class dbCharacterSkillHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `dyn_character_skill` SET `trains`=? WHERE `UID` = ?")){
@ -162,7 +162,7 @@ public class dbCharacterSkillHandler extends dbHandlerBase {
@@ -162,7 +162,7 @@ public class dbCharacterSkillHandler extends dbHandlerBase {
// prepareCallable("SELECT * FROM `obj_character`, `dyn_guild_banishlist` WHERE `obj_character.char_isActive` = 1 AND `dyn_guild_banishlist.CharacterID` = `obj_character.UID` AND `obj_character.GuildID`=?");
//prepareCallable("SELECT * FROM `obj_character` `,` `dyn_guild_banishlist` WHERE obj_character.char_isActive = 1 AND dyn_guild_banishlist.CharacterID = obj_character.UID AND dyn_guild_banishlist.GuildID = ?");
// prepareCallable("SELECT * FROM `obj_character`, `dyn_guild_banishlist` WHERE `obj_character.char_isActive` = 1 AND `dyn_guild_banishlist.CharacterID` = `obj_character.UID` AND `obj_character.GuildID`=?");
//prepareCallable("SELECT * FROM `obj_character` `,` `dyn_guild_banishlist` WHERE obj_character.char_isActive = 1 AND dyn_guild_banishlist.CharacterID = obj_character.UID AND dyn_guild_banishlist.GuildID = ?");
PreparedStatementpreparedStatement=connection.prepareStatement("SELECT `obj_item`.*, `object`.`parent`, `object`.`type` FROM `object` INNER JOIN `obj_item` ON `object`.`UID` = `obj_item`.`UID` WHERE `object`.`parent`=?;")){
preparedStatement.setLong(1,(long)accountId);
preparedStatement.setLong(1,accountId);
ResultSetrs=preparedStatement.executeQuery();
itemList=getObjectsFromRs(rs,100);
@ -245,7 +245,7 @@ public class dbItemHandler extends dbHandlerBase {
@@ -245,7 +245,7 @@ public class dbItemHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("SELECT `obj_item`.*, `object`.`parent`, `object`.`type` FROM `object` INNER JOIN `obj_item` ON `object`.`UID` = `obj_item`.`UID` WHERE `object`.`parent`=?")){
preparedStatement.setLong(1,(long)id);
preparedStatement.setLong(1,id);
ResultSetrs=preparedStatement.executeQuery();
itemList=getObjectsFromRs(rs,100);
@ -265,12 +265,12 @@ public class dbItemHandler extends dbHandlerBase {
@@ -265,12 +265,12 @@ public class dbItemHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_item` LEFT JOIN `object` ON `object`.`UID` = `obj_item`.`UID` SET `object`.`parent`=NULL, `obj_item`.`item_container`='none' WHERE `object`.`UID`=?;")){
@ -383,8 +383,8 @@ public class dbItemHandler extends dbHandlerBase {
@@ -383,8 +383,8 @@ public class dbItemHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_item` SET `item_durabilityCurrent`=? WHERE `UID`=? AND `item_durabilityCurrent`=?")){
@ -400,7 +400,7 @@ public class dbItemHandler extends dbHandlerBase {
@@ -400,7 +400,7 @@ public class dbItemHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_item` SET `item_container` = ? WHERE `UID` = ? AND `item_container` = 'forge';")){
@ -106,7 +106,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -106,7 +106,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("SELECT `obj_character`.*, `object`.`parent` FROM `object` INNER JOIN `obj_character` ON `obj_character`.`UID` = `object`.`UID` WHERE `object`.`parent`=? && `obj_character`.`char_isActive`='1';")){
preparedStatement.setLong(1,(long)id);
preparedStatement.setLong(1,id);
ResultSetrs=preparedStatement.executeQuery();
characterList=getObjectsFromRs(rs,10);
@ -135,12 +135,10 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -135,12 +135,10 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@ -192,7 +190,6 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -192,7 +190,6 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
}catch(SQLExceptione){
Logger.error(e);
}
;
returnplayerCharacter;
}
@ -256,7 +253,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -256,7 +253,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_character` SET `char_isActive`=? WHERE `UID` = ?")){
@ -272,7 +269,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -272,7 +269,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_character` SET `char_bindBuilding`=? WHERE `UID` = ?")){
@ -288,7 +285,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -288,7 +285,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_character` SET `anniversery`=? WHERE `UID` = ?")){
@ -305,7 +302,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -305,7 +302,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_character` SET `char_experience`=? WHERE `UID` = ?")){
@ -321,7 +318,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -321,7 +318,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
PreparedStatementpreparedStatement=connection.prepareStatement("UPDATE `obj_character` SET `guildUID`=? WHERE `UID` = ?")){
@ -341,7 +338,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -341,7 +338,7 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@ -360,7 +357,6 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -360,7 +357,6 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@ -72,17 +72,16 @@ public class dbRuneBaseEffectHandler extends dbHandlerBase {
@@ -72,17 +72,16 @@ public class dbRuneBaseEffectHandler extends dbHandlerBase {
Logger.warn("Warning! WorldServerMap with ID "+zone.getObjectUUID()+" has a loadnum of 0 (player city) and no city linked. This will probably crash the client!");
Logger.warn("Warning! WorldServerMap with ID "+zone.getObjectUUID()+" has a loadnum of 0 (player city) and no city linked. This will probably crash the client!");