From 22db860d42432ffb1ce0a35675419a732c372fb6 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 29 May 2021 01:04:55 +0000 Subject: [PATCH] Moved crest data to SQL. --- .../dist/db_installer/sql/game/crests.sql | 6 + .../dist/game/config/AdminCommands.xml | 5 +- .../dist/game/data/html/admin/server_menu.htm | 4 +- .../org/l2jmobius/gameserver/GameServer.java | 6 +- .../gameserver/cache/CrestCache.java | 380 ------------------ .../gameserver/data/sql/CrestTable.java | 219 ++++++++++ .../admincommandhandlers/AdminCache.java | 14 +- .../org/l2jmobius/gameserver/model/Crest.java | 120 ++++++ .../model/actor/instance/PlayerInstance.java | 4 +- .../l2jmobius/gameserver/model/clan/Clan.java | 186 ++++++--- .../model/interfaces/IIdentifiable.java | 26 ++ .../gameserver/network/OutgoingPackets.java | 4 +- .../network/clientpackets/AllyDismiss.java | 2 +- .../network/clientpackets/AllyLeave.java | 2 +- .../clientpackets/RequestAnswerJoinAlly.java | 6 +- .../RequestExPledgeCrestLarge.java | 9 +- .../RequestExSetPledgeCrestLarge.java | 104 ++--- .../clientpackets/RequestSetAllyCrest.java | 84 ++-- .../clientpackets/RequestSetPledgeCrest.java | 107 ++--- .../network/serverpackets/AllyCrest.java | 25 +- ...dgeCrestLarge.java => ExPledgeEmblem.java} | 31 +- .../network/serverpackets/PledgeCrest.java | 17 +- .../dist/db_installer/sql/game/crests.sql | 6 + .../dist/game/config/AdminCommands.xml | 5 +- .../dist/game/data/html/admin/server_menu.htm | 4 +- .../org/l2jmobius/gameserver/GameServer.java | 6 +- .../gameserver/cache/CrestCache.java | 380 ------------------ .../gameserver/data/sql/CrestTable.java | 219 ++++++++++ .../admincommandhandlers/AdminCache.java | 14 +- .../org/l2jmobius/gameserver/model/Crest.java | 120 ++++++ .../model/actor/instance/PlayerInstance.java | 4 +- .../l2jmobius/gameserver/model/clan/Clan.java | 186 ++++++--- .../model/interfaces/IIdentifiable.java | 26 ++ .../gameserver/network/OutgoingPackets.java | 4 +- .../network/clientpackets/AllyDismiss.java | 2 +- .../network/clientpackets/AllyLeave.java | 2 +- .../clientpackets/RequestAnswerJoinAlly.java | 6 +- .../RequestExPledgeCrestLarge.java | 9 +- .../RequestExSetPledgeCrestLarge.java | 104 ++--- .../clientpackets/RequestSetAllyCrest.java | 84 ++-- .../clientpackets/RequestSetPledgeCrest.java | 107 ++--- .../network/serverpackets/AllyCrest.java | 25 +- ...dgeCrestLarge.java => ExPledgeEmblem.java} | 31 +- .../network/serverpackets/PledgeCrest.java | 17 +- 44 files changed, 1322 insertions(+), 1400 deletions(-) create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/dist/db_installer/sql/game/crests.sql delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/cache/CrestCache.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/CrestTable.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Crest.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/interfaces/IIdentifiable.java rename L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/serverpackets/{ExPledgeCrestLarge.java => ExPledgeEmblem.java} (63%) create mode 100644 L2J_Mobius_C6_Interlude/dist/db_installer/sql/game/crests.sql delete mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/cache/CrestCache.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/CrestTable.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Crest.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/interfaces/IIdentifiable.java rename L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/serverpackets/{ExPledgeCrestLarge.java => ExPledgeEmblem.java} (63%) diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/db_installer/sql/game/crests.sql b/L2J_Mobius_C4_ScionsOfDestiny/dist/db_installer/sql/game/crests.sql new file mode 100644 index 0000000000..b3e6dd8b67 --- /dev/null +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/db_installer/sql/game/crests.sql @@ -0,0 +1,6 @@ +CREATE TABLE IF NOT EXISTS `crests` ( + `crest_id` INT, + `data` VARBINARY(2176) NOT NULL, + `type` TINYINT NOT NULL, + PRIMARY KEY(`crest_id`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/AdminCommands.xml b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/AdminCommands.xml index e4a85384aa..ab28ff9240 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/AdminCommands.xml +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/AdminCommands.xml @@ -51,9 +51,8 @@ - - - + + diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/html/admin/server_menu.htm b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/html/admin/server_menu.htm index 93eb0ac74a..48c285aeb2 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/html/admin/server_menu.htm +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/html/admin/server_menu.htm @@ -19,12 +19,12 @@