From ab3398a006dded3b45a3c29c8a6f99284035928b Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Tue, 2 May 2017 07:24:05 +0000 Subject: [PATCH] Updated delete hero items query. Contributed by 574905252@qq.com --- .../java/com/l2jmobius/gameserver/model/entity/Hero.java | 2 +- .../java/com/l2jmobius/gameserver/model/entity/Hero.java | 2 +- .../java/com/l2jmobius/gameserver/model/entity/Hero.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/model/entity/Hero.java b/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/model/entity/Hero.java index 9016dea8ee..d0c33ad058 100644 --- a/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/model/entity/Hero.java +++ b/L2J_Mobius_Classic/java/com/l2jmobius/gameserver/model/entity/Hero.java @@ -72,7 +72,7 @@ public class Hero private static final String UPDATE_HERO = "UPDATE heroes SET count = ?, played = ?, claimed = ? WHERE charId = ?"; private static final String GET_CLAN_ALLY = "SELECT characters.clanid AS clanid, coalesce(clan_data.ally_Id, 0) AS allyId FROM characters LEFT JOIN clan_data ON clan_data.clan_id = characters.clanid WHERE characters.charId = ?"; // delete hero items - private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; + private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (30392, 30393, 30394, 30395, 30396, 30397, 30398, 30399, 30400, 30401, 30402, 30403, 30404, 30405, 30372, 30373, 6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; private static final Map _heroes = new ConcurrentHashMap<>(); private static final Map _completeHeroes = new ConcurrentHashMap<>(); diff --git a/L2J_Mobius_Helios/java/com/l2jmobius/gameserver/model/entity/Hero.java b/L2J_Mobius_Helios/java/com/l2jmobius/gameserver/model/entity/Hero.java index 9016dea8ee..d0c33ad058 100644 --- a/L2J_Mobius_Helios/java/com/l2jmobius/gameserver/model/entity/Hero.java +++ b/L2J_Mobius_Helios/java/com/l2jmobius/gameserver/model/entity/Hero.java @@ -72,7 +72,7 @@ public class Hero private static final String UPDATE_HERO = "UPDATE heroes SET count = ?, played = ?, claimed = ? WHERE charId = ?"; private static final String GET_CLAN_ALLY = "SELECT characters.clanid AS clanid, coalesce(clan_data.ally_Id, 0) AS allyId FROM characters LEFT JOIN clan_data ON clan_data.clan_id = characters.clanid WHERE characters.charId = ?"; // delete hero items - private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; + private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (30392, 30393, 30394, 30395, 30396, 30397, 30398, 30399, 30400, 30401, 30402, 30403, 30404, 30405, 30372, 30373, 6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; private static final Map _heroes = new ConcurrentHashMap<>(); private static final Map _completeHeroes = new ConcurrentHashMap<>(); diff --git a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/entity/Hero.java b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/entity/Hero.java index 9016dea8ee..d0c33ad058 100644 --- a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/entity/Hero.java +++ b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/entity/Hero.java @@ -72,7 +72,7 @@ public class Hero private static final String UPDATE_HERO = "UPDATE heroes SET count = ?, played = ?, claimed = ? WHERE charId = ?"; private static final String GET_CLAN_ALLY = "SELECT characters.clanid AS clanid, coalesce(clan_data.ally_Id, 0) AS allyId FROM characters LEFT JOIN clan_data ON clan_data.clan_id = characters.clanid WHERE characters.charId = ?"; // delete hero items - private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; + private static final String DELETE_ITEMS = "DELETE FROM items WHERE item_id IN (30392, 30393, 30394, 30395, 30396, 30397, 30398, 30399, 30400, 30401, 30402, 30403, 30404, 30405, 30372, 30373, 6842, 6611, 6612, 6613, 6614, 6615, 6616, 6617, 6618, 6619, 6620, 6621, 9388, 9389, 9390) AND owner_id NOT IN (SELECT charId FROM characters WHERE accesslevel > 0)"; private static final Map _heroes = new ConcurrentHashMap<>(); private static final Map _completeHeroes = new ConcurrentHashMap<>();