From 3c087da39961faac2afe669de8e9c57ce18c841c Mon Sep 17 00:00:00 2001 From: Zoey76 <zoey_76@msn.com> Date: Wed, 31 Oct 2012 17:44:44 +0000 Subject: [PATCH] BETA: Blood Alliance and Blood Oath implementation logic fix: * Now this values for reward are stored in clan data instead of castle or fort data. * All default attributes in SQL files to DEFAULT. Patch by: VlLight, Zoey76 Reviewed by: MELERIX --- .../bypasshandlers/BloodAlliance.java | 28 +++---- .../sql/community/registered_gameservers.sql | 6 +- L2J_DataPack_BETA/dist/sql/game/airships.sql | 2 +- L2J_DataPack_BETA/dist/sql/game/auction.sql | 22 ++--- .../dist/sql/game/auction_bid.sql | 8 +- .../dist/sql/game/auction_watch.sql | 4 +- L2J_DataPack_BETA/dist/sql/game/auto_chat.sql | 6 +- L2J_DataPack_BETA/dist/sql/game/castle.sql | 27 +++---- .../dist/sql/game/castle_doorupgrade.sql | 8 +- .../dist/sql/game/castle_functions.sql | 10 +-- .../dist/sql/game/char_templates.sql | 42 +++++----- .../dist/sql/game/character_friends.sql | 2 +- .../sql/game/character_item_reuse_save.sql | 6 +- .../game/character_norestart_zone_time.sql | 4 +- .../sql/game/character_pet_skills_save.sql | 12 +-- .../dist/sql/game/character_quests.sql | 2 +- .../dist/sql/game/character_recipebook.sql | 6 +- .../dist/sql/game/character_shortcuts.sql | 8 +- .../dist/sql/game/character_skills.sql | 6 +- .../dist/sql/game/character_skills_save.sql | 12 +-- .../dist/sql/game/character_subclasses.sql | 12 +-- .../sql/game/character_summon_skills_save.sql | 14 ++-- .../dist/sql/game/characters.sql | 4 +- L2J_DataPack_BETA/dist/sql/game/clan_data.sql | 10 ++- .../dist/sql/game/clan_privs.sql | 8 +- .../dist/sql/game/clan_skills.sql | 10 +-- .../dist/sql/game/clan_subpledges.sql | 6 +- L2J_DataPack_BETA/dist/sql/game/clan_wars.sql | 8 +- L2J_DataPack_BETA/dist/sql/game/clanhall.sql | 14 ++-- .../dist/sql/game/clanhall_functions.sql | 10 +-- .../dist/sql/game/custom/custom_droplist.sql | 4 +- .../sql/game/custom/custom_npc_buffer.sql | 8 +- .../sql/game/custom/custom_npc_elementals.sql | 16 ++-- L2J_DataPack_BETA/dist/sql/game/droplist.sql | 4 +- L2J_DataPack_BETA/dist/sql/game/fort.sql | 55 +++++++------ .../dist/sql/game/fort_doorupgrade.sql | 8 +- .../dist/sql/game/fort_functions.sql | 10 +-- .../dist/sql/game/fortsiege_clans.sql | 4 +- L2J_DataPack_BETA/dist/sql/game/forums.sql | 14 ++-- L2J_DataPack_BETA/dist/sql/game/games.sql | 20 ++--- .../dist/sql/game/global_tasks.sql | 10 +-- L2J_DataPack_BETA/dist/sql/game/heroes.sql | 10 +-- .../dist/sql/game/heroes_diary.sql | 4 +- .../dist/sql/game/item_attributes.sql | 8 +- .../dist/sql/game/item_elementals.sql | 6 +- L2J_DataPack_BETA/dist/sql/game/items.sql | 6 +- .../dist/sql/game/itemsonground.sql | 16 ++-- L2J_DataPack_BETA/dist/sql/game/lvlupgain.sql | 18 ++--- .../dist/sql/game/merchant_lease.sql | 6 +- .../dist/sql/game/npc_buffer.sql | 8 +- .../dist/sql/game/npc_elementals.sql | 16 ++-- .../dist/sql/game/olympiad_data.sql | 6 +- .../dist/sql/game/olympiad_fights.sql | 8 +- L2J_DataPack_BETA/dist/sql/game/posts.sql | 10 +-- .../dist/sql/game/seven_signs.sql | 16 ++-- .../dist/sql/game/seven_signs_festival.sql | 10 +-- .../dist/sql/game/seven_signs_status.sql | 46 +++++------ .../dist/sql/game/siege_clans.sql | 8 +- .../dist/sql/game/territories.sql | 6 +- .../dist/sql/game/territory_registrations.sql | 4 +- L2J_DataPack_BETA/dist/sql/game/topic.sql | 14 ++-- .../dist/sql/game/updates/20080218update.sql | 2 +- .../dist/sql/game/updates/20080614update.sql | 22 ++--- .../dist/sql/game/updates/20080714update.sql | 6 +- .../dist/sql/game/updates/20080727update.sql | 2 +- .../dist/sql/game/updates/20080917update.sql | 2 +- .../dist/sql/game/updates/20090131update.sql | 6 +- .../dist/sql/game/updates/20090208update.sql | 6 +- .../dist/sql/game/updates/20090304update.sql | 6 +- .../dist/sql/game/updates/20090331update.sql | 2 +- .../dist/sql/game/updates/20090412update.sql | 2 +- .../dist/sql/game/updates/20090424update.sql | 4 +- .../dist/sql/game/updates/20090504update.sql | 2 +- .../dist/sql/game/updates/20090519update.sql | 2 +- .../dist/sql/game/updates/20090705update.sql | 2 +- .../dist/sql/game/updates/20090710update.sql | 2 +- .../dist/sql/game/updates/20091202update.sql | 2 +- .../dist/sql/game/updates/20091207update.sql | 2 +- .../dist/sql/game/updates/20091210update.sql | 2 +- .../dist/sql/game/updates/20100107update.sql | 4 +- .../dist/sql/game/updates/20100110update.sql | 2 +- .../dist/sql/game/updates/20100528update.sql | 2 +- .../dist/sql/game/updates/20100706update.sql | 2 +- .../dist/sql/game/updates/20100805update.sql | 2 +- .../dist/sql/game/updates/20100908update.sql | 2 +- .../dist/sql/game/updates/20110612update.sql | 8 +- .../dist/sql/game/updates/20110819update.sql | 8 +- .../dist/sql/game/updates/20121029update.sql | 2 +- .../dist/sql/game/updates/20121031update.sql | 4 + .../deprecated/updates_before_kamael.sql | 80 +++++++++---------- .../dist/sql/login/gameservers.sql | 6 +- 91 files changed, 446 insertions(+), 446 deletions(-) create mode 100644 L2J_DataPack_BETA/dist/sql/game/updates/20121031update.sql diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/bypasshandlers/BloodAlliance.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/bypasshandlers/BloodAlliance.java index bf1359af24..578cf6a25f 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/bypasshandlers/BloodAlliance.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/bypasshandlers/BloodAlliance.java @@ -19,68 +19,64 @@ import java.util.logging.Level; import com.l2jserver.gameserver.handler.IBypassHandler; import com.l2jserver.gameserver.model.actor.L2Character; -import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2CastleWarehouseInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; /** - * Castle Warehouse - Blood Alliance + * Castle Warehouse - Blood Alliance. * @author malyelfik */ public class BloodAlliance implements IBypassHandler { - private static final String[] COMMANDS = { "HonoraryItem", - "Receive", + "Receive", "Exchange" }; @Override public boolean useBypass(String command, L2PcInstance activeChar, L2Character target) { - if (!(target instanceof L2Npc)) + if (!(target instanceof L2CastleWarehouseInstance)) { return false; } - L2CastleWarehouseInstance npc = ((L2CastleWarehouseInstance) target); - + final L2CastleWarehouseInstance npc = (L2CastleWarehouseInstance) target; try { NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId()); StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); // Get actual command - if (actualCommand.equalsIgnoreCase(COMMANDS[0])) + if (actualCommand.equalsIgnoreCase(COMMANDS[0])) // "HonoraryItem" { - if (activeChar.isClanLeader()) + if (npc.isMyLord(activeChar)) { html.setFile(activeChar.getHtmlPrefix(), "data/html/castlewarehouse/castlewarehouse-4.htm"); - html.replace("%blood%", Integer.toString(npc.getCastle().getBloodAlliance())); + html.replace("%blood%", Integer.toString(activeChar.getClan().getBloodAllianceCount())); } else { html.setFile(activeChar.getHtmlPrefix(), "data/html/castlewarehouse/castlewarehouse-3.htm"); } } - else if (actualCommand.equalsIgnoreCase(COMMANDS[1])) + else if (actualCommand.equalsIgnoreCase(COMMANDS[1])) // "Receive" { - int count = npc.getCastle().getBloodAlliance(); - if (count == 0) + if (!npc.isMyLord(activeChar)) { html.setFile(activeChar.getHtmlPrefix(), "data/html/castlewarehouse/castlewarehouse-5.htm"); } else { - activeChar.addItem("BloodAlliance", 9911, count, activeChar, true); - npc.getCastle().setBloodAlliance(0); + activeChar.addItem("BloodAlliance", 9911, activeChar.getClan().getBloodAllianceCount(), activeChar, true); + activeChar.getClan().resetBloodAllianceCount(); html.setFile(activeChar.getHtmlPrefix(), "data/html/castlewarehouse/castlewarehouse-6.htm"); } } - else if (actualCommand.equalsIgnoreCase(COMMANDS[2])) + else if (actualCommand.equalsIgnoreCase(COMMANDS[2])) // "Exchange" { if (activeChar.getInventory().getInventoryItemCount(9911, -1) > 0) { diff --git a/L2J_DataPack_BETA/dist/sql/community/registered_gameservers.sql b/L2J_DataPack_BETA/dist/sql/community/registered_gameservers.sql index 7fd62ae342..a43be590f1 100644 --- a/L2J_DataPack_BETA/dist/sql/community/registered_gameservers.sql +++ b/L2J_DataPack_BETA/dist/sql/community/registered_gameservers.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `registered_gameservers` ( - `serverId` int(11) NOT NULL default '0', - `hex_id` varchar(50) NOT NULL default '', - `host` varchar(50) NOT NULL default '', + `serverId` int(11) NOT NULL DEFAULT '0', + `hex_id` varchar(50) NOT NULL DEFAULT '', + `host` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`serverId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/airships.sql b/L2J_DataPack_BETA/dist/sql/game/airships.sql index 3b012ab8ad..44d7d54284 100644 --- a/L2J_DataPack_BETA/dist/sql/game/airships.sql +++ b/L2J_DataPack_BETA/dist/sql/game/airships.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `airships` ( `owner_id` INT, -- object id of the player or clan, owner of this airship - `fuel` decimal(5,0) NOT NULL default 600, + `fuel` decimal(5,0) NOT NULL DEFAULT 600, PRIMARY KEY (`owner_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/auction.sql b/L2J_DataPack_BETA/dist/sql/game/auction.sql index cc03366b13..0b6c2751d2 100644 --- a/L2J_DataPack_BETA/dist/sql/game/auction.sql +++ b/L2J_DataPack_BETA/dist/sql/game/auction.sql @@ -1,15 +1,15 @@ CREATE TABLE IF NOT EXISTS `auction` ( - `id` int(11) NOT NULL default '0', - `sellerId` int(11) NOT NULL default '0', - `sellerName` varchar(50) NOT NULL default 'NPC', - `sellerClanName` varchar(50) NOT NULL default '', - `itemType` varchar(25) NOT NULL default '', - `itemId` int(11) NOT NULL default '0', - `itemObjectId` int(11) NOT NULL default '0', - `itemName` varchar(40) NOT NULL default '', - `itemQuantity` BIGINT UNSIGNED NOT NULL default 0, - `startingBid` BIGINT UNSIGNED NOT NULL default 0, - `currentBid` BIGINT UNSIGNED NOT NULL default 0, + `id` int(11) NOT NULL DEFAULT '0', + `sellerId` int(11) NOT NULL DEFAULT '0', + `sellerName` varchar(50) NOT NULL DEFAULT 'NPC', + `sellerClanName` varchar(50) NOT NULL DEFAULT '', + `itemType` varchar(25) NOT NULL DEFAULT '', + `itemId` int(11) NOT NULL DEFAULT '0', + `itemObjectId` int(11) NOT NULL DEFAULT '0', + `itemName` varchar(40) NOT NULL DEFAULT '', + `itemQuantity` BIGINT UNSIGNED NOT NULL DEFAULT 0, + `startingBid` BIGINT UNSIGNED NOT NULL DEFAULT 0, + `currentBid` BIGINT UNSIGNED NOT NULL DEFAULT 0, `endDate` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`itemType`,`itemId`,`itemObjectId`), KEY `id` (`id`) diff --git a/L2J_DataPack_BETA/dist/sql/game/auction_bid.sql b/L2J_DataPack_BETA/dist/sql/game/auction_bid.sql index 5dffacfecf..828a1a9ba4 100644 --- a/L2J_DataPack_BETA/dist/sql/game/auction_bid.sql +++ b/L2J_DataPack_BETA/dist/sql/game/auction_bid.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `auction_bid` ( - `id` INT NOT NULL default 0, - `auctionId` INT NOT NULL default 0, - `bidderId` INT NOT NULL default 0, + `id` INT NOT NULL DEFAULT 0, + `auctionId` INT NOT NULL DEFAULT 0, + `bidderId` INT NOT NULL DEFAULT 0, `bidderName` varchar(50) NOT NULL, `clan_name` varchar(50) NOT NULL, - `maxBid` BIGINT UNSIGNED NOT NULL default 0, + `maxBid` BIGINT UNSIGNED NOT NULL DEFAULT 0, `time_bid` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`auctionId`,`bidderId`), KEY `id` (`id`) diff --git a/L2J_DataPack_BETA/dist/sql/game/auction_watch.sql b/L2J_DataPack_BETA/dist/sql/game/auction_watch.sql index c728835331..57619ccaf3 100644 --- a/L2J_DataPack_BETA/dist/sql/game/auction_watch.sql +++ b/L2J_DataPack_BETA/dist/sql/game/auction_watch.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `auction_watch` ( - `charObjId` INT NOT NULL default 0, - `auctionId` INT NOT NULL default 0, + `charObjId` INT NOT NULL DEFAULT 0, + `auctionId` INT NOT NULL DEFAULT 0, PRIMARY KEY (`charObjId`,`auctionId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/auto_chat.sql b/L2J_DataPack_BETA/dist/sql/game/auto_chat.sql index f3dc90dc7b..ddb40a531a 100644 --- a/L2J_DataPack_BETA/dist/sql/game/auto_chat.sql +++ b/L2J_DataPack_BETA/dist/sql/game/auto_chat.sql @@ -1,8 +1,8 @@ DROP TABLE IF EXISTS `auto_chat`; CREATE TABLE `auto_chat` ( - `groupId` INT NOT NULL default '0', - `npcId` INT NOT NULL default '0', - `chatDelay` BIGINT NOT NULL default '-1', + `groupId` INT NOT NULL DEFAULT '0', + `npcId` INT NOT NULL DEFAULT '0', + `chatDelay` BIGINT NOT NULL DEFAULT '-1', PRIMARY KEY (`groupId`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/castle.sql b/L2J_DataPack_BETA/dist/sql/game/castle.sql index d77407d51b..341ad787cf 100644 --- a/L2J_DataPack_BETA/dist/sql/game/castle.sql +++ b/L2J_DataPack_BETA/dist/sql/game/castle.sql @@ -1,25 +1,24 @@ CREATE TABLE IF NOT EXISTS `castle` ( - `id` INT NOT NULL default 0, + `id` INT NOT NULL DEFAULT 0, `name` varchar(25) NOT NULL, - `taxPercent` INT NOT NULL default 15, - `treasury` BIGINT NOT NULL default 0, + `taxPercent` INT NOT NULL DEFAULT 15, + `treasury` BIGINT NOT NULL DEFAULT 0, `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', `regTimeOver` enum('true','false') DEFAULT 'true' NOT NULL, `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0', `showNpcCrest` enum('true','false') DEFAULT 'false' NOT NULL, - `bloodAlliance` int(3) NOT NULL default 0, - `ticketBuyCount` smallint(3) NOT NULL default 0, + `ticketBuyCount` smallint(3) NOT NULL DEFAULT 0, PRIMARY KEY (`name`), KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT IGNORE INTO `castle` VALUES -(1,'Gludio',0,0,0,'true',0,'false',0,0), -(2,'Dion',0,0,0,'true',0,'false',0,0), -(3,'Giran',0,0,0,'true',0,'false',0,0), -(4,'Oren',0,0,0,'true',0,'false',0,0), -(5,'Aden',0,0,0,'true',0,'false',0,0), -(6,'Innadril',0,0,0,'true',0,'false',0,0), -(7,'Goddard',0,0,0,'true',0,'false',0,0), -(8,'Rune',0,0,0,'true',0,'false',0,0), -(9,'Schuttgart',0,0,0,'true',0,'false',0,0); \ No newline at end of file +(1,'Gludio',0,0,0,'true',0,'false',0), +(2,'Dion',0,0,0,'true',0,'false',0), +(3,'Giran',0,0,0,'true',0,'false',0), +(4,'Oren',0,0,0,'true',0,'false',0), +(5,'Aden',0,0,0,'true',0,'false',0), +(6,'Innadril',0,0,0,'true',0,'false',0), +(7,'Goddard',0,0,0,'true',0,'false',0), +(8,'Rune',0,0,0,'true',0,'false',0), +(9,'Schuttgart',0,0,0,'true',0,'false',0); \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/castle_doorupgrade.sql b/L2J_DataPack_BETA/dist/sql/game/castle_doorupgrade.sql index 2983bb813c..dc12f42024 100644 --- a/L2J_DataPack_BETA/dist/sql/game/castle_doorupgrade.sql +++ b/L2J_DataPack_BETA/dist/sql/game/castle_doorupgrade.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `castle_doorupgrade` ( - `doorId` INT NOT NULL default 0, - `hp` INT NOT NULL default 0, - `pDef` INT NOT NULL default 0, - `mDef` INT NOT NULL default 0, + `doorId` INT NOT NULL DEFAULT 0, + `hp` INT NOT NULL DEFAULT 0, + `pDef` INT NOT NULL DEFAULT 0, + `mDef` INT NOT NULL DEFAULT 0, PRIMARY KEY (`doorId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/castle_functions.sql b/L2J_DataPack_BETA/dist/sql/game/castle_functions.sql index 2440d4441c..9d2e56eb18 100644 --- a/L2J_DataPack_BETA/dist/sql/game/castle_functions.sql +++ b/L2J_DataPack_BETA/dist/sql/game/castle_functions.sql @@ -1,9 +1,9 @@ CREATE TABLE IF NOT EXISTS `castle_functions` ( - `castle_id` int(2) NOT NULL default '0', - `type` int(1) NOT NULL default '0', - `lvl` int(3) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', - `rate` decimal(20,0) NOT NULL default '0', + `castle_id` int(2) NOT NULL DEFAULT '0', + `type` int(1) NOT NULL DEFAULT '0', + `lvl` int(3) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', + `rate` decimal(20,0) NOT NULL DEFAULT '0', `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`castle_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/char_templates.sql b/L2J_DataPack_BETA/dist/sql/game/char_templates.sql index b9effd7f9e..311829d1a7 100644 --- a/L2J_DataPack_BETA/dist/sql/game/char_templates.sql +++ b/L2J_DataPack_BETA/dist/sql/game/char_templates.sql @@ -1,26 +1,26 @@ DROP TABLE IF EXISTS `char_templates`; CREATE TABLE `char_templates` ( - `ClassId` int(11) NOT NULL default '0', - `ClassName` varchar(25) NOT NULL default '', - `RaceId` int(1) NOT NULL default '0', - `STR` int(2) NOT NULL default '0', - `CON` int(2) NOT NULL default '0', - `DEX` int(2) NOT NULL default '0', - `_INT` int(2) NOT NULL default '0', - `WIT` int(2) NOT NULL default '0', - `MEN` int(2) NOT NULL default '0', - `P_ATK` int(3) NOT NULL default '0', - `P_DEF` int(3) NOT NULL default '0', - `M_ATK` int(3) NOT NULL default '0', - `M_DEF` int(2) NOT NULL default '0', - `MOVE_SPD` int(3) NOT NULL default '0', - `x` int(9) NOT NULL default '0', - `y` int(9) NOT NULL default '0', - `z` int(9) NOT NULL default '0', - `M_COL_R` decimal(3,1) NOT NULL default '0.0', - `M_COL_H` decimal(4,1) NOT NULL default '0.0', - `F_COL_R` decimal(3,1) NOT NULL default '0.0', - `F_COL_H` decimal(4,1) NOT NULL default '0.0', + `ClassId` int(11) NOT NULL DEFAULT '0', + `ClassName` varchar(25) NOT NULL DEFAULT '', + `RaceId` int(1) NOT NULL DEFAULT '0', + `STR` int(2) NOT NULL DEFAULT '0', + `CON` int(2) NOT NULL DEFAULT '0', + `DEX` int(2) NOT NULL DEFAULT '0', + `_INT` int(2) NOT NULL DEFAULT '0', + `WIT` int(2) NOT NULL DEFAULT '0', + `MEN` int(2) NOT NULL DEFAULT '0', + `P_ATK` int(3) NOT NULL DEFAULT '0', + `P_DEF` int(3) NOT NULL DEFAULT '0', + `M_ATK` int(3) NOT NULL DEFAULT '0', + `M_DEF` int(2) NOT NULL DEFAULT '0', + `MOVE_SPD` int(3) NOT NULL DEFAULT '0', + `x` int(9) NOT NULL DEFAULT '0', + `y` int(9) NOT NULL DEFAULT '0', + `z` int(9) NOT NULL DEFAULT '0', + `M_COL_R` decimal(3,1) NOT NULL DEFAULT '0.0', + `M_COL_H` decimal(4,1) NOT NULL DEFAULT '0.0', + `F_COL_R` decimal(3,1) NOT NULL DEFAULT '0.0', + `F_COL_H` decimal(4,1) NOT NULL DEFAULT '0.0', PRIMARY KEY (`ClassId`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/character_friends.sql b/L2J_DataPack_BETA/dist/sql/game/character_friends.sql index c1021273ac..2b84f8ed1c 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_friends.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_friends.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `character_friends` ( - `charId` INT UNSIGNED NOT NULL default 0, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, `friendId` INT UNSIGNED NOT NULL DEFAULT 0, `relation` INT UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`charId`,`friendId`) diff --git a/L2J_DataPack_BETA/dist/sql/game/character_item_reuse_save.sql b/L2J_DataPack_BETA/dist/sql/game/character_item_reuse_save.sql index 1454735222..eae3364bb9 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_item_reuse_save.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_item_reuse_save.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `character_item_reuse_save` ( - `charId` INT NOT NULL default 0, - `itemId` INT NOT NULL default 0, - `itemObjId` INT(3) NOT NULL default 1, + `charId` INT NOT NULL DEFAULT 0, + `itemId` INT NOT NULL DEFAULT 0, + `itemObjId` INT(3) NOT NULL DEFAULT 1, `reuseDelay` INT(8) NOT NULL DEFAULT 0, `systime` BIGINT UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`charId`,`itemId`,`itemObjId`) diff --git a/L2J_DataPack_BETA/dist/sql/game/character_norestart_zone_time.sql b/L2J_DataPack_BETA/dist/sql/game/character_norestart_zone_time.sql index ed10820e42..ec54085c05 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_norestart_zone_time.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_norestart_zone_time.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `character_norestart_zone_time` ( - `charId` int(10) unsigned NOT NULL default '0', - `time_limit` bigint(13) unsigned NOT NULL default '0', + `charId` int(10) unsigned NOT NULL DEFAULT '0', + `time_limit` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`charId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_pet_skills_save.sql b/L2J_DataPack_BETA/dist/sql/game/character_pet_skills_save.sql index 920b1d138d..99b40a1356 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_pet_skills_save.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_pet_skills_save.sql @@ -1,9 +1,9 @@ CREATE TABLE IF NOT EXISTS `character_pet_skills_save` ( - `petObjItemId` INT NOT NULL default 0, - `skill_id` INT NOT NULL default 0, - `skill_level` INT(3) NOT NULL default 1, - `effect_count` INT NOT NULL default 0, - `effect_cur_time` INT NOT NULL default 0, - `buff_index` INT(2) NOT NULL default 0, + `petObjItemId` INT NOT NULL DEFAULT 0, + `skill_id` INT NOT NULL DEFAULT 0, + `skill_level` INT(3) NOT NULL DEFAULT 1, + `effect_count` INT NOT NULL DEFAULT 0, + `effect_cur_time` INT NOT NULL DEFAULT 0, + `buff_index` INT(2) NOT NULL DEFAULT 0, PRIMARY KEY (`petObjItemId`,`skill_id`,`skill_level`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_quests.sql b/L2J_DataPack_BETA/dist/sql/game/character_quests.sql index 51f9050541..58b24fb646 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_quests.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_quests.sql @@ -3,6 +3,6 @@ CREATE TABLE IF NOT EXISTS `character_quests` ( `name` VARCHAR(40) NOT NULL DEFAULT '', `var` VARCHAR(20) NOT NULL DEFAULT '', `value` VARCHAR(255) , - `class_index` int(1) NOT NULL default '0', + `class_index` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`charId`,`name`,`var`,`class_index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_recipebook.sql b/L2J_DataPack_BETA/dist/sql/game/character_recipebook.sql index 9f6f3198cf..f1cbac43d5 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_recipebook.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_recipebook.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `character_recipebook` ( - `charId` INT UNSIGNED NOT NULL default 0, - `id` decimal(11) NOT NULL default 0, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `id` decimal(11) NOT NULL DEFAULT 0, `classIndex` TINYINT NOT NULL DEFAULT 0, - `type` INT NOT NULL default 0, + `type` INT NOT NULL DEFAULT 0, PRIMARY KEY (`id`,`charId`,`classIndex`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_shortcuts.sql b/L2J_DataPack_BETA/dist/sql/game/character_shortcuts.sql index 6dc6e57744..e42b2e4bd6 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_shortcuts.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_shortcuts.sql @@ -1,11 +1,11 @@ CREATE TABLE IF NOT EXISTS `character_shortcuts` ( - `charId` INT UNSIGNED NOT NULL default 0, - `slot` decimal(3) NOT NULL default 0, - `page` decimal(3) NOT NULL default 0, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `slot` decimal(3) NOT NULL DEFAULT 0, + `page` decimal(3) NOT NULL DEFAULT 0, `type` decimal(3) , `shortcut_id` decimal(16) , `level` varchar(4) , - `class_index` int(1) NOT NULL default '0', + `class_index` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`charId`,`slot`,`page`,`class_index`), KEY `shortcut_id` (`shortcut_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_skills.sql b/L2J_DataPack_BETA/dist/sql/game/character_skills.sql index 67b17d4abe..c7532d9971 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_skills.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_skills.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `character_skills` ( - `charId` INT UNSIGNED NOT NULL default 0, - `skill_id` INT NOT NULL default 0, - `skill_level` INT(3) NOT NULL default 1, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `skill_id` INT NOT NULL DEFAULT 0, + `skill_level` INT(3) NOT NULL DEFAULT 1, `class_index` INT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`charId`,`skill_id`,`class_index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_skills_save.sql b/L2J_DataPack_BETA/dist/sql/game/character_skills_save.sql index b2f4a4116e..0199f88a77 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_skills_save.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_skills_save.sql @@ -1,13 +1,13 @@ CREATE TABLE IF NOT EXISTS `character_skills_save` ( - `charId` INT NOT NULL default 0, - `skill_id` INT NOT NULL default 0, - `skill_level` INT(3) NOT NULL default 1, - `effect_count` INT NOT NULL default 0, - `effect_cur_time` INT NOT NULL default 0, + `charId` INT NOT NULL DEFAULT 0, + `skill_id` INT NOT NULL DEFAULT 0, + `skill_level` INT(3) NOT NULL DEFAULT 1, + `effect_count` INT NOT NULL DEFAULT 0, + `effect_cur_time` INT NOT NULL DEFAULT 0, `reuse_delay` INT(8) NOT NULL DEFAULT 0, `systime` bigint(13) unsigned NOT NULL DEFAULT '0', `restore_type` INT(1) NOT NULL DEFAULT 0, `class_index` INT(1) NOT NULL DEFAULT 0, - `buff_index` INT(2) NOT NULL default 0, + `buff_index` INT(2) NOT NULL DEFAULT 0, PRIMARY KEY (`charId`,`skill_id`,`skill_level`,`class_index`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_subclasses.sql b/L2J_DataPack_BETA/dist/sql/game/character_subclasses.sql index 9510e937ee..1b9b37bcba 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_subclasses.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_subclasses.sql @@ -1,9 +1,9 @@ CREATE TABLE IF NOT EXISTS `character_subclasses` ( - `charId` INT UNSIGNED NOT NULL default 0, - `class_id` int(2) NOT NULL default 0, - `exp` decimal(20,0) NOT NULL default 0, - `sp` decimal(11,0) NOT NULL default 0, - `level` int(2) NOT NULL default 40, - `class_index` int(1) NOT NULL default 0, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `class_id` int(2) NOT NULL DEFAULT 0, + `exp` decimal(20,0) NOT NULL DEFAULT 0, + `sp` decimal(11,0) NOT NULL DEFAULT 0, + `level` int(2) NOT NULL DEFAULT 40, + `class_index` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`charId`,`class_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/character_summon_skills_save.sql b/L2J_DataPack_BETA/dist/sql/game/character_summon_skills_save.sql index d733250cdf..6c5b8d4c51 100644 --- a/L2J_DataPack_BETA/dist/sql/game/character_summon_skills_save.sql +++ b/L2J_DataPack_BETA/dist/sql/game/character_summon_skills_save.sql @@ -1,11 +1,11 @@ CREATE TABLE IF NOT EXISTS `character_summon_skills_save` ( - `ownerId` INT NOT NULL default 0, + `ownerId` INT NOT NULL DEFAULT 0, `ownerClassIndex` INT(1) NOT NULL DEFAULT 0, - `summonSkillId` INT NOT NULL default 0, - `skill_id` INT NOT NULL default 0, - `skill_level` INT(3) NOT NULL default 1, - `effect_count` INT NOT NULL default 0, - `effect_cur_time` INT NOT NULL default 0, - `buff_index` INT(2) NOT NULL default 0, + `summonSkillId` INT NOT NULL DEFAULT 0, + `skill_id` INT NOT NULL DEFAULT 0, + `skill_level` INT(3) NOT NULL DEFAULT 1, + `effect_count` INT NOT NULL DEFAULT 0, + `effect_cur_time` INT NOT NULL DEFAULT 0, + `buff_index` INT(2) NOT NULL DEFAULT 0, PRIMARY KEY (`ownerId`,`ownerClassIndex`,`summonSkillId`,`skill_id`,`skill_level`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/characters.sql b/L2J_DataPack_BETA/dist/sql/game/characters.sql index 58e4c72b2e..889a584aab 100644 --- a/L2J_DataPack_BETA/dist/sql/game/characters.sql +++ b/L2J_DataPack_BETA/dist/sql/game/characters.sql @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `characters` ( `expBeforeDeath` BIGINT UNSIGNED DEFAULT 0, `sp` INT UNSIGNED NOT NULL DEFAULT 0, `karma` INT UNSIGNED DEFAULT NULL, - `fame` MEDIUMINT UNSIGNED NOT NULL default 0, + `fame` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, `pvpkills` SMALLINT UNSIGNED DEFAULT NULL, `pkkills` SMALLINT UNSIGNED DEFAULT NULL, `clanid` INT UNSIGNED DEFAULT NULL, @@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS `characters` ( `lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0', `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0, `wantspeace` TINYINT UNSIGNED DEFAULT 0, - `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0, + `isin7sdungeon` TINYINT UNSIGNED NOT NULL DEFAULT 0, `punish_level` TINYINT UNSIGNED NOT NULL DEFAULT 0, `punish_timer` INT UNSIGNED NOT NULL DEFAULT 0, `power_grade` TINYINT UNSIGNED DEFAULT NULL, diff --git a/L2J_DataPack_BETA/dist/sql/game/clan_data.sql b/L2J_DataPack_BETA/dist/sql/game/clan_data.sql index e123fcfbd6..455e1c54e9 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clan_data.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clan_data.sql @@ -1,18 +1,20 @@ CREATE TABLE IF NOT EXISTS `clan_data` ( - `clan_id` INT NOT NULL default 0, + `clan_id` INT NOT NULL DEFAULT 0, `clan_name` varchar(45) , `clan_level` INT, - `reputation_score` INT NOT NULL default 0, + `reputation_score` INT NOT NULL DEFAULT 0, `hasCastle` INT, + `blood_alliance_count` smallint(5) unsigned NOT NULL DEFAULT 0, + `blood_oath_count` smallint(5) unsigned NOT NULL DEFAULT 0, `ally_id` INT, `ally_name` varchar(45), `leader_id` INT, `crest_id` INT, `crest_large_id` INT, `ally_crest_id` INT, - `auction_bid_at` INT NOT NULL default 0, + `auction_bid_at` INT NOT NULL DEFAULT 0, `ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', - `ally_penalty_type` DECIMAL( 1 ) NOT NULL DEFAULT 0, + `ally_penalty_type` tinyint(1) NOT NULL DEFAULT 0, `char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', `dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`clan_id`), diff --git a/L2J_DataPack_BETA/dist/sql/game/clan_privs.sql b/L2J_DataPack_BETA/dist/sql/game/clan_privs.sql index ff7eb82aae..8904833cd4 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clan_privs.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clan_privs.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `clan_privs` ( - `clan_id` INT NOT NULL default 0, - `rank` INT NOT NULL default 0, - `party` INT NOT NULL default 0, - `privs` INT NOT NULL default 0, + `clan_id` INT NOT NULL DEFAULT 0, + `rank` INT NOT NULL DEFAULT 0, + `party` INT NOT NULL DEFAULT 0, + `privs` INT NOT NULL DEFAULT 0, PRIMARY KEY (`clan_id`,`rank`,`party`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/clan_skills.sql b/L2J_DataPack_BETA/dist/sql/game/clan_skills.sql index 0eec43dda6..6652823b59 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clan_skills.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clan_skills.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `clan_skills` ( - `clan_id` int(11) NOT NULL default 0, - `skill_id` int(11) NOT NULL default 0, - `skill_level` int(5) NOT NULL default 0, - `skill_name` varchar(26) default NULL, - `sub_pledge_id` INT NOT NULL default '-2', + `clan_id` int(11) NOT NULL DEFAULT 0, + `skill_id` int(11) NOT NULL DEFAULT 0, + `skill_level` int(5) NOT NULL DEFAULT 0, + `skill_name` varchar(26) DEFAULT NULL, + `sub_pledge_id` INT NOT NULL DEFAULT '-2', PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/clan_subpledges.sql b/L2J_DataPack_BETA/dist/sql/game/clan_subpledges.sql index 59a8a4e61e..8af49cc45f 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clan_subpledges.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clan_subpledges.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `clan_subpledges` ( - `clan_id` INT NOT NULL default '0', - `sub_pledge_id` INT NOT NULL default '0', + `clan_id` INT NOT NULL DEFAULT '0', + `sub_pledge_id` INT NOT NULL DEFAULT '0', `name` varchar(45), - `leader_id` INT NOT NULL default '0', + `leader_id` INT NOT NULL DEFAULT '0', PRIMARY KEY (`clan_id`,`sub_pledge_id`), KEY `leader_id` (`leader_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/clan_wars.sql b/L2J_DataPack_BETA/dist/sql/game/clan_wars.sql index 22dfe933e8..62cc814101 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clan_wars.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clan_wars.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `clan_wars` ( - `clan1` varchar(35) NOT NULL default '', - `clan2` varchar(35) NOT NULL default '', - `wantspeace1` decimal(1,0) NOT NULL default '0', - `wantspeace2` decimal(1,0) NOT NULL default '0', + `clan1` varchar(35) NOT NULL DEFAULT '', + `clan2` varchar(35) NOT NULL DEFAULT '', + `wantspeace1` decimal(1,0) NOT NULL DEFAULT '0', + `wantspeace2` decimal(1,0) NOT NULL DEFAULT '0', KEY `clan1` (`clan1`), KEY `clan2` (`clan2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/clanhall.sql b/L2J_DataPack_BETA/dist/sql/game/clanhall.sql index 4e421e7170..a3b640d8ec 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clanhall.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clanhall.sql @@ -1,13 +1,13 @@ CREATE TABLE IF NOT EXISTS `clanhall` ( - `id` int(11) NOT NULL default '0', - `name` varchar(40) NOT NULL default '', - `ownerId` int(11) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', + `id` int(11) NOT NULL DEFAULT '0', + `name` varchar(40) NOT NULL DEFAULT '', + `ownerId` int(11) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', `desc` text NOT NULL, - `location` varchar(15) NOT NULL default '', + `location` varchar(15) NOT NULL DEFAULT '', `paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0', - `Grade` decimal(1,0) NOT NULL default '0', - `paid` int( 1 ) NOT NULL default '0', + `Grade` decimal(1,0) NOT NULL DEFAULT '0', + `paid` int( 1 ) NOT NULL DEFAULT '0', PRIMARY KEY `id` (`id`), KEY `ownerId` (`ownerId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/clanhall_functions.sql b/L2J_DataPack_BETA/dist/sql/game/clanhall_functions.sql index 0d5f131fa8..ea33f9734a 100644 --- a/L2J_DataPack_BETA/dist/sql/game/clanhall_functions.sql +++ b/L2J_DataPack_BETA/dist/sql/game/clanhall_functions.sql @@ -1,9 +1,9 @@ CREATE TABLE IF NOT EXISTS `clanhall_functions` ( - `hall_id` int(2) NOT NULL default '0', - `type` int(1) NOT NULL default '0', - `lvl` int(3) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', - `rate` decimal(20,0) NOT NULL default '0', + `hall_id` int(2) NOT NULL DEFAULT '0', + `type` int(1) NOT NULL DEFAULT '0', + `lvl` int(3) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', + `rate` decimal(20,0) NOT NULL DEFAULT '0', `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`hall_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/custom/custom_droplist.sql b/L2J_DataPack_BETA/dist/sql/game/custom/custom_droplist.sql index 01e68887a4..17b5391906 100644 --- a/L2J_DataPack_BETA/dist/sql/game/custom/custom_droplist.sql +++ b/L2J_DataPack_BETA/dist/sql/game/custom/custom_droplist.sql @@ -13,7 +13,7 @@ -- split them up over several categories. -- In addition, RBs and Grandbosses (mainly) may have the exact same item repeated in multiple categories. -- This allows mobs to give 1 copy of the drop to each of several people (if they are lucky enough to get the drops). --- Calculation for each drop, when in categories, is equivallent in chance as when outside of categories. +-- Calculation for each drop, when in categories, is equivalent in chance as when outside of categories. -- First, the sum of chances for each category is calculated as category chance. If the category is selected -- for drops (i.e. its chance is successful), then exactly 1 item from that category will be selected, with -- such a chance that the overall probability is maintained unchanged. @@ -31,7 +31,7 @@ -- 2 is anything else (scrolls,arrows,etc) -- -- Category Explanation (GrandBoss) --- 0+ is defined catagories +-- 0+ is defined categories -- Any other mobs within this range (minions, etc) use the default drop categories (most often 2) CREATE TABLE IF NOT EXISTS `custom_droplist` ( diff --git a/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_buffer.sql b/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_buffer.sql index 6bf39b3750..874f4ff0b8 100644 --- a/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_buffer.sql +++ b/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_buffer.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `custom_npc_buffer` ( `npc_id` int(6) NOT NULL, `skill_id` int(6) NOT NULL, - `skill_level` int(6) NOT NULL default '1', - `skill_fee_id` int(6) NOT NULL default '0', - `skill_fee_amount` int(6) NOT NULL default '0', - `buff_group` int(6) NOT NULL default '0', + `skill_level` int(6) NOT NULL DEFAULT '1', + `skill_fee_id` int(6) NOT NULL DEFAULT '0', + `skill_fee_amount` int(6) NOT NULL DEFAULT '0', + `buff_group` int(6) NOT NULL DEFAULT '0', PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_elementals.sql b/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_elementals.sql index 50a594df75..4a79d075d2 100644 --- a/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_elementals.sql +++ b/L2J_DataPack_BETA/dist/sql/game/custom/custom_npc_elementals.sql @@ -1,13 +1,13 @@ CREATE TABLE IF NOT EXISTS `custom_npc_elementals` ( `npc_id` mediumint(7) unsigned NOT NULL, - `elemAtkType` tinyint(1) NOT NULL default '-1', - `elemAtkValue` int(3) NOT NULL default '0', - `fireDefValue` int(3) NOT NULL default '0', - `waterDefValue` int(3) NOT NULL default '0', - `windDefValue` int(3) NOT NULL default '0', - `earthDefValue` int(3) NOT NULL default '0', - `holyDefValue` int(3) NOT NULL default '0', - `darkDefValue` int(3) NOT NULL default '0', + `elemAtkType` tinyint(1) NOT NULL DEFAULT '-1', + `elemAtkValue` int(3) NOT NULL DEFAULT '0', + `fireDefValue` int(3) NOT NULL DEFAULT '0', + `waterDefValue` int(3) NOT NULL DEFAULT '0', + `windDefValue` int(3) NOT NULL DEFAULT '0', + `earthDefValue` int(3) NOT NULL DEFAULT '0', + `holyDefValue` int(3) NOT NULL DEFAULT '0', + `darkDefValue` int(3) NOT NULL DEFAULT '0', PRIMARY KEY (`npc_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/droplist.sql b/L2J_DataPack_BETA/dist/sql/game/droplist.sql index 3815c45cb7..adf64dc0a8 100644 --- a/L2J_DataPack_BETA/dist/sql/game/droplist.sql +++ b/L2J_DataPack_BETA/dist/sql/game/droplist.sql @@ -12,7 +12,7 @@ -- split them up over several categories. -- In addition, RBs and Grandbosses (mainly) may have the exact same item repeated in multiple categories. -- This allows mobs to give 1 copy of the drop to each of several people (if they are lucky enough to get the drops). --- Calculation for each drop, when in categories, is equivallent in chance as when outside of categories. +-- Calculation for each drop, when in categories, is equivalent in chance as when outside of categories. -- First, the sum of chances for each category is calculated as category chance. If the category is selected -- for drops (i.e. its chance is successful), then exactly 1 item from that category will be selected, with -- such a chance that the overall probability is maintained unchanged. @@ -30,7 +30,7 @@ -- 2 is anything else (scrolls,arrows,etc) -- -- Category Explanation (GrandBoss) --- 0+ is defined catagories +-- 0+ is defined categories -- Any other mobs within this range (minions, etc) use the default drop categories (most often 2) DROP TABLE IF EXISTS `droplist`; diff --git a/L2J_DataPack_BETA/dist/sql/game/fort.sql b/L2J_DataPack_BETA/dist/sql/game/fort.sql index f3c8357657..6a55e2221b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/fort.sql +++ b/L2J_DataPack_BETA/dist/sql/game/fort.sql @@ -1,37 +1,36 @@ CREATE TABLE IF NOT EXISTS `fort` ( - `id` int(11) NOT NULL default 0, + `id` int(11) NOT NULL DEFAULT 0, `name` varchar(25) NOT NULL, `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', `lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0', - `owner` int(11) NOT NULL default 0, - `fortType` int(1) NOT NULL default 0, - `state` int(1) NOT NULL default 0, - `castleId` int(1) NOT NULL default 0, - `blood` int(3) NOT NULL default 0, - `supplyLvL` int(2) NOT NULL default 0, + `owner` int(11) NOT NULL DEFAULT 0, + `fortType` int(1) NOT NULL DEFAULT 0, + `state` int(1) NOT NULL DEFAULT 0, + `castleId` int(1) NOT NULL DEFAULT 0, + `supplyLvL` int(2) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `owner` (`owner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT IGNORE INTO `fort` VALUES -(101,'Shanty',0,0,0,0,0,0,0,0), -(102,'Southern',0,0,0,1,0,0,0,0), -(103,'Hive',0,0,0,0,0,0,0,0), -(104,'Valley',0,0,0,1,0,0,0,0), -(105,'Ivory',0,0,0,0,0,0,0,0), -(106,'Narsell',0,0,0,0,0,0,0,0), -(107,'Bayou',0,0,0,1,0,0,0,0), -(108,'White Sands',0,0,0,0,0,0,0,0), -(109,'Borderland',0,0,0,1,0,0,0,0), -(110,'Swamp',0,0,0,1,0,0,0,0), -(111,'Archaic',0,0,0,0,0,0,0,0), -(112,'Floran',0,0,0,1,0,0,0,0), -(113,'Cloud Mountain',0,0,0,1,0,0,0,0), -(114,'Tanor',0,0,0,0,0,0,0,0), -(115,'Dragonspine',0,0,0,0,0,0,0,0), -(116,'Antharas',0,0,0,1,0,0,0,0), -(117,'Western',0,0,0,1,0,0,0,0), -(118,'Hunters',0,0,0,1,0,0,0,0), -(119,'Aaru',0,0,0,0,0,0,0,0), -(120,'Demon',0,0,0,0,0,0,0,0), -(121,'Monastic',0,0,0,0,0,0,0,0); \ No newline at end of file +(101,'Shanty',0,0,0,0,0,0,0), +(102,'Southern',0,0,0,1,0,0,0), +(103,'Hive',0,0,0,0,0,0,0), +(104,'Valley',0,0,0,1,0,0,0), +(105,'Ivory',0,0,0,0,0,0,0), +(106,'Narsell',0,0,0,0,0,0,0), +(107,'Bayou',0,0,0,1,0,0,0), +(108,'White Sands',0,0,0,0,0,0,0), +(109,'Borderland',0,0,0,1,0,0,0), +(110,'Swamp',0,0,0,1,0,0,0), +(111,'Archaic',0,0,0,0,0,0,0), +(112,'Floran',0,0,0,1,0,0,0), +(113,'Cloud Mountain',0,0,0,1,0,0,0), +(114,'Tanor',0,0,0,0,0,0,0), +(115,'Dragonspine',0,0,0,0,0,0,0), +(116,'Antharas',0,0,0,1,0,0,0), +(117,'Western',0,0,0,1,0,0,0), +(118,'Hunters',0,0,0,1,0,0,0), +(119,'Aaru',0,0,0,0,0,0,0), +(120,'Demon',0,0,0,0,0,0,0), +(121,'Monastic',0,0,0,0,0,0,0); \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/fort_doorupgrade.sql b/L2J_DataPack_BETA/dist/sql/game/fort_doorupgrade.sql index bae06e1875..e4c87934f3 100644 --- a/L2J_DataPack_BETA/dist/sql/game/fort_doorupgrade.sql +++ b/L2J_DataPack_BETA/dist/sql/game/fort_doorupgrade.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `fort_doorupgrade` ( - `doorId` int(11) NOT NULL default '0', + `doorId` int(11) NOT NULL DEFAULT '0', `fortId` int(11) NOT NULL, - `hp` int(11) NOT NULL default '0', - `pDef` int(11) NOT NULL default '0', - `mDef` int(11) NOT NULL default '0', + `hp` int(11) NOT NULL DEFAULT '0', + `pDef` int(11) NOT NULL DEFAULT '0', + `mDef` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`doorId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/fort_functions.sql b/L2J_DataPack_BETA/dist/sql/game/fort_functions.sql index 1bd6775016..a21ab5953e 100644 --- a/L2J_DataPack_BETA/dist/sql/game/fort_functions.sql +++ b/L2J_DataPack_BETA/dist/sql/game/fort_functions.sql @@ -1,9 +1,9 @@ CREATE TABLE IF NOT EXISTS `fort_functions` ( - `fort_id` int(2) NOT NULL default '0', - `type` int(1) NOT NULL default '0', - `lvl` int(3) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', - `rate` decimal(20,0) NOT NULL default '0', + `fort_id` int(2) NOT NULL DEFAULT '0', + `type` int(1) NOT NULL DEFAULT '0', + `lvl` int(3) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', + `rate` decimal(20,0) NOT NULL DEFAULT '0', `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`fort_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/fortsiege_clans.sql b/L2J_DataPack_BETA/dist/sql/game/fortsiege_clans.sql index eaeddceea1..2fd0083c9d 100644 --- a/L2J_DataPack_BETA/dist/sql/game/fortsiege_clans.sql +++ b/L2J_DataPack_BETA/dist/sql/game/fortsiege_clans.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `fortsiege_clans` ( - `fort_id` int(1) NOT NULL default '0', - `clan_id` int(11) NOT NULL default '0', + `fort_id` int(1) NOT NULL DEFAULT '0', + `clan_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`clan_id`,`fort_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/forums.sql b/L2J_DataPack_BETA/dist/sql/game/forums.sql index 287b68604a..99025ffad2 100644 --- a/L2J_DataPack_BETA/dist/sql/game/forums.sql +++ b/L2J_DataPack_BETA/dist/sql/game/forums.sql @@ -1,11 +1,11 @@ CREATE TABLE IF NOT EXISTS `forums` ( - `forum_id` int(8) NOT NULL default '0', - `forum_name` varchar(255) NOT NULL default '', - `forum_parent` int(8) NOT NULL default '0', - `forum_post` int(8) NOT NULL default '0', - `forum_type` int(8) NOT NULL default '0', - `forum_perm` int(8) NOT NULL default '0', - `forum_owner_id` int(8) NOT NULL default '0', + `forum_id` int(8) NOT NULL DEFAULT '0', + `forum_name` varchar(255) NOT NULL DEFAULT '', + `forum_parent` int(8) NOT NULL DEFAULT '0', + `forum_post` int(8) NOT NULL DEFAULT '0', + `forum_type` int(8) NOT NULL DEFAULT '0', + `forum_perm` int(8) NOT NULL DEFAULT '0', + `forum_owner_id` int(8) NOT NULL DEFAULT '0', PRIMARY KEY (`forum_id`), KEY `forum_owner_id` (`forum_owner_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/games.sql b/L2J_DataPack_BETA/dist/sql/game/games.sql index d56bd7ab94..413e7a6774 100644 --- a/L2J_DataPack_BETA/dist/sql/game/games.sql +++ b/L2J_DataPack_BETA/dist/sql/game/games.sql @@ -1,14 +1,14 @@ CREATE TABLE IF NOT EXISTS `games` ( - `id` INT NOT NULL default 0, - `idnr` INT NOT NULL default 0, - `number1` INT NOT NULL default 0, - `number2` INT NOT NULL default 0, - `prize` INT NOT NULL default 0, - `newprize` INT NOT NULL default 0, - `prize1` INT NOT NULL default 0, - `prize2` INT NOT NULL default 0, - `prize3` INT NOT NULL default 0, + `id` INT NOT NULL DEFAULT 0, + `idnr` INT NOT NULL DEFAULT 0, + `number1` INT NOT NULL DEFAULT 0, + `number2` INT NOT NULL DEFAULT 0, + `prize` INT NOT NULL DEFAULT 0, + `newprize` INT NOT NULL DEFAULT 0, + `prize1` INT NOT NULL DEFAULT 0, + `prize2` INT NOT NULL DEFAULT 0, + `prize3` INT NOT NULL DEFAULT 0, `enddate` bigint(13) unsigned NOT NULL DEFAULT '0', - `finished` INT NOT NULL default 0, + `finished` INT NOT NULL DEFAULT 0, PRIMARY KEY (`id`,`idnr`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/global_tasks.sql b/L2J_DataPack_BETA/dist/sql/game/global_tasks.sql index 4abecdc856..6208a5908d 100644 --- a/L2J_DataPack_BETA/dist/sql/game/global_tasks.sql +++ b/L2J_DataPack_BETA/dist/sql/game/global_tasks.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `global_tasks` ( `id` int(11) NOT NULL auto_increment, - `task` varchar(50) NOT NULL default '', - `type` varchar(50) NOT NULL default '', + `task` varchar(50) NOT NULL DEFAULT '', + `type` varchar(50) NOT NULL DEFAULT '', `last_activation` bigint(13) unsigned NOT NULL DEFAULT '0', - `param1` varchar(100) NOT NULL default '', - `param2` varchar(100) NOT NULL default '', - `param3` varchar(255) NOT NULL default '', + `param1` varchar(100) NOT NULL DEFAULT '', + `param2` varchar(100) NOT NULL DEFAULT '', + `param3` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/heroes.sql b/L2J_DataPack_BETA/dist/sql/game/heroes.sql index d7ef057676..bc1ba2c80a 100644 --- a/L2J_DataPack_BETA/dist/sql/game/heroes.sql +++ b/L2J_DataPack_BETA/dist/sql/game/heroes.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `heroes` ( - `charId` INT UNSIGNED NOT NULL default 0, - `class_id` decimal(3,0) NOT NULL default 0, - `count` decimal(3,0) NOT NULL default 0, - `played` decimal(1,0) NOT NULL default 0, - `message` varchar(300) NOT NULL default '', + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `class_id` decimal(3,0) NOT NULL DEFAULT 0, + `count` decimal(3,0) NOT NULL DEFAULT 0, + `played` decimal(1,0) NOT NULL DEFAULT 0, + `message` varchar(300) NOT NULL DEFAULT '', PRIMARY KEY (`charId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/heroes_diary.sql b/L2J_DataPack_BETA/dist/sql/game/heroes_diary.sql index 5d55778c15..f6fbd86c7f 100644 --- a/L2J_DataPack_BETA/dist/sql/game/heroes_diary.sql +++ b/L2J_DataPack_BETA/dist/sql/game/heroes_diary.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `heroes_diary` ( `charId` int(10) unsigned NOT NULL, `time` bigint(13) unsigned NOT NULL DEFAULT '0', - `action` tinyint(2) unsigned NOT NULL default '0', - `param` int(11) unsigned NOT NULL default '0', + `action` tinyint(2) unsigned NOT NULL DEFAULT '0', + `param` int(11) unsigned NOT NULL DEFAULT '0', KEY `charId` (`charId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/item_attributes.sql b/L2J_DataPack_BETA/dist/sql/game/item_attributes.sql index eed9b81bc6..a98a49f1f9 100644 --- a/L2J_DataPack_BETA/dist/sql/game/item_attributes.sql +++ b/L2J_DataPack_BETA/dist/sql/game/item_attributes.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `item_attributes` ( - `itemId` int(11) NOT NULL default 0, - `augAttributes` int(11) NOT NULL default -1, - `augSkillId` int(11) NOT NULL default -1, - `augSkillLevel` int(11) NOT NULL default -1, + `itemId` int(11) NOT NULL DEFAULT 0, + `augAttributes` int(11) NOT NULL DEFAULT -1, + `augSkillId` int(11) NOT NULL DEFAULT -1, + `augSkillLevel` int(11) NOT NULL DEFAULT -1, PRIMARY KEY (`itemId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/item_elementals.sql b/L2J_DataPack_BETA/dist/sql/game/item_elementals.sql index a810f3efbf..ff156d9f1f 100644 --- a/L2J_DataPack_BETA/dist/sql/game/item_elementals.sql +++ b/L2J_DataPack_BETA/dist/sql/game/item_elementals.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `item_elementals` ( - `itemId` int(11) NOT NULL default 0, - `elemType` tinyint(1) NOT NULL default -1, - `elemValue` int(11) NOT NULL default -1, + `itemId` int(11) NOT NULL DEFAULT 0, + `elemType` tinyint(1) NOT NULL DEFAULT -1, + `elemValue` int(11) NOT NULL DEFAULT -1, PRIMARY KEY (`itemId`, `elemType`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/items.sql b/L2J_DataPack_BETA/dist/sql/game/items.sql index 6e9c6e7226..45ad0ecf48 100644 --- a/L2J_DataPack_BETA/dist/sql/game/items.sql +++ b/L2J_DataPack_BETA/dist/sql/game/items.sql @@ -2,15 +2,15 @@ CREATE TABLE IF NOT EXISTS `items` ( `owner_id` INT, -- object id of the player or clan,owner of this item `object_id` INT NOT NULL DEFAULT 0, -- object id of the item `item_id` INT, - `count` BIGINT UNSIGNED NOT NULL default 0, + `count` BIGINT UNSIGNED NOT NULL DEFAULT 0, `enchant_level` INT, `loc` VARCHAR(10), -- inventory,paperdoll,npc,clan warehouse,pet,and so on `loc_data` INT, -- depending on location: equiped slot,npc id,pet id,etc `time_of_use` INT, -- time of item use, for calculate of breackages `custom_type1` INT DEFAULT 0, `custom_type2` INT DEFAULT 0, - `mana_left` decimal(5,0) NOT NULL default -1, - `time` decimal(13) NOT NULL default 0, + `mana_left` decimal(5,0) NOT NULL DEFAULT -1, + `time` decimal(13) NOT NULL DEFAULT 0, PRIMARY KEY (`object_id`), KEY `owner_id` (`owner_id`), KEY `item_id` (`item_id`), diff --git a/L2J_DataPack_BETA/dist/sql/game/itemsonground.sql b/L2J_DataPack_BETA/dist/sql/game/itemsonground.sql index 497aec4670..b780f3906b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/itemsonground.sql +++ b/L2J_DataPack_BETA/dist/sql/game/itemsonground.sql @@ -1,12 +1,12 @@ CREATE TABLE IF NOT EXISTS `itemsonground` ( - `object_id` int(11) NOT NULL default '0', - `item_id` int(11) default NULL, - `count` BIGINT UNSIGNED NOT NULL default 0, - `enchant_level` int(11) default NULL, - `x` int(11) default NULL, - `y` int(11) default NULL, - `z` int(11) default NULL, + `object_id` int(11) NOT NULL DEFAULT '0', + `item_id` int(11) DEFAULT NULL, + `count` BIGINT UNSIGNED NOT NULL DEFAULT 0, + `enchant_level` int(11) DEFAULT NULL, + `x` int(11) DEFAULT NULL, + `y` int(11) DEFAULT NULL, + `z` int(11) DEFAULT NULL, `drop_time` bigint(13) NOT NULL DEFAULT '0', - `equipable` int(1) default '0', + `equipable` int(1) DEFAULT '0', PRIMARY KEY (`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/lvlupgain.sql b/L2J_DataPack_BETA/dist/sql/game/lvlupgain.sql index 01783d9f7a..9c18473191 100644 --- a/L2J_DataPack_BETA/dist/sql/game/lvlupgain.sql +++ b/L2J_DataPack_BETA/dist/sql/game/lvlupgain.sql @@ -1,15 +1,15 @@ DROP TABLE IF EXISTS `lvlupgain`; CREATE TABLE `lvlupgain` ( `classid` tinyint(3) unsigned NOT NULL, - `defaulthpbase` decimal(7,3) NOT NULL, - `defaulthpadd` decimal(7,3) NOT NULL, - `defaulthpmod` decimal(3,2) NOT NULL DEFAULT '0.37', - `defaultcpbase` decimal(7,3) NOT NULL, - `defaultcpadd` decimal(7,3) NOT NULL, - `defaultcpmod` decimal(3,2) NOT NULL DEFAULT '0.22', - `defaultmpbase` decimal(7,3) NOT NULL, - `defaultmpadd` decimal(7,3) NOT NULL, - `defaultmpmod` decimal(3,2) NOT NULL DEFAULT '0.14', + `DEFAULThpbase` decimal(7,3) NOT NULL, + `DEFAULThpadd` decimal(7,3) NOT NULL, + `DEFAULThpmod` decimal(3,2) NOT NULL DEFAULT '0.37', + `DEFAULTcpbase` decimal(7,3) NOT NULL, + `DEFAULTcpadd` decimal(7,3) NOT NULL, + `DEFAULTcpmod` decimal(3,2) NOT NULL DEFAULT '0.22', + `DEFAULTmpbase` decimal(7,3) NOT NULL, + `DEFAULTmpadd` decimal(7,3) NOT NULL, + `DEFAULTmpmod` decimal(3,2) NOT NULL DEFAULT '0.14', `class_lvl` tinyint(2) unsigned NOT NULL, PRIMARY KEY (`classid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/merchant_lease.sql b/L2J_DataPack_BETA/dist/sql/game/merchant_lease.sql index 50163dd22c..caa27dea46 100644 --- a/L2J_DataPack_BETA/dist/sql/game/merchant_lease.sql +++ b/L2J_DataPack_BETA/dist/sql/game/merchant_lease.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `merchant_lease` ( - `merchant_id` int(11) NOT NULL default 0, - `player_id` int(11) NOT NULL default 0, + `merchant_id` int(11) NOT NULL DEFAULT 0, + `player_id` int(11) NOT NULL DEFAULT 0, `bid` int(11), - `type` int(11) NOT NULL default 0, + `type` int(11) NOT NULL DEFAULT 0, `player_name` varchar(35), PRIMARY KEY (`merchant_id`,`player_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/npc_buffer.sql b/L2J_DataPack_BETA/dist/sql/game/npc_buffer.sql index d3ccb11cdb..442e4e32e7 100644 --- a/L2J_DataPack_BETA/dist/sql/game/npc_buffer.sql +++ b/L2J_DataPack_BETA/dist/sql/game/npc_buffer.sql @@ -2,10 +2,10 @@ DROP TABLE IF EXISTS `npc_buffer`; CREATE TABLE `npc_buffer` ( `npc_id` int(6) NOT NULL, `skill_id` int(6) NOT NULL, - `skill_level` int(6) NOT NULL default '1', - `skill_fee_id` int(6) NOT NULL default '0', - `skill_fee_amount` int(6) NOT NULL default '0', - `buff_group` int(6) NOT NULL default '0', + `skill_level` int(6) NOT NULL DEFAULT '1', + `skill_fee_id` int(6) NOT NULL DEFAULT '0', + `skill_fee_amount` int(6) NOT NULL DEFAULT '0', + `buff_group` int(6) NOT NULL DEFAULT '0', PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/npc_elementals.sql b/L2J_DataPack_BETA/dist/sql/game/npc_elementals.sql index a6db295176..09d8a19076 100644 --- a/L2J_DataPack_BETA/dist/sql/game/npc_elementals.sql +++ b/L2J_DataPack_BETA/dist/sql/game/npc_elementals.sql @@ -1,14 +1,14 @@ DROP TABLE IF EXISTS `npc_elementals`; CREATE TABLE IF NOT EXISTS `npc_elementals` ( `npc_id` smallint(5) unsigned NOT NULL, - `elemAtkType` tinyint(1) NOT NULL default '-1', - `elemAtkValue` int(3) NOT NULL default '0', - `fireDefValue` int(3) NOT NULL default '0', - `waterDefValue` int(3) NOT NULL default '0', - `windDefValue` int(3) NOT NULL default '0', - `earthDefValue` int(3) NOT NULL default '0', - `holyDefValue` int(3) NOT NULL default '0', - `darkDefValue` int(3) NOT NULL default '0', + `elemAtkType` tinyint(1) NOT NULL DEFAULT '-1', + `elemAtkValue` int(3) NOT NULL DEFAULT '0', + `fireDefValue` int(3) NOT NULL DEFAULT '0', + `waterDefValue` int(3) NOT NULL DEFAULT '0', + `windDefValue` int(3) NOT NULL DEFAULT '0', + `earthDefValue` int(3) NOT NULL DEFAULT '0', + `holyDefValue` int(3) NOT NULL DEFAULT '0', + `darkDefValue` int(3) NOT NULL DEFAULT '0', PRIMARY KEY (`npc_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/olympiad_data.sql b/L2J_DataPack_BETA/dist/sql/game/olympiad_data.sql index 30b3e2eb65..35ac5fad9a 100644 --- a/L2J_DataPack_BETA/dist/sql/game/olympiad_data.sql +++ b/L2J_DataPack_BETA/dist/sql/game/olympiad_data.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `olympiad_data` ( - `id` TINYINT UNSIGNED NOT NULL default 0, - `current_cycle` MEDIUMINT UNSIGNED NOT NULL default 1, - `period` MEDIUMINT UNSIGNED NOT NULL default 0, + `id` TINYINT UNSIGNED NOT NULL DEFAULT 0, + `current_cycle` MEDIUMINT UNSIGNED NOT NULL DEFAULT 1, + `period` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, `olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0', `validation_end` bigint(13) unsigned NOT NULL DEFAULT '0', `next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0', diff --git a/L2J_DataPack_BETA/dist/sql/game/olympiad_fights.sql b/L2J_DataPack_BETA/dist/sql/game/olympiad_fights.sql index a0c2b9b404..fba150333e 100644 --- a/L2J_DataPack_BETA/dist/sql/game/olympiad_fights.sql +++ b/L2J_DataPack_BETA/dist/sql/game/olympiad_fights.sql @@ -1,12 +1,12 @@ CREATE TABLE IF NOT EXISTS `olympiad_fights` ( `charOneId` int(10) unsigned NOT NULL, `charTwoId` int(10) unsigned NOT NULL, - `charOneClass` tinyint(3) unsigned NOT NULL default '0', - `charTwoClass` tinyint(3) unsigned NOT NULL default '0', - `winner` tinyint(1) unsigned NOT NULL default '0', + `charOneClass` tinyint(3) unsigned NOT NULL DEFAULT '0', + `charTwoClass` tinyint(3) unsigned NOT NULL DEFAULT '0', + `winner` tinyint(1) unsigned NOT NULL DEFAULT '0', `start` bigint(13) unsigned NOT NULL DEFAULT '0', `time` bigint(13) unsigned NOT NULL DEFAULT '0', - `classed` tinyint(1) unsigned NOT NULL default '0', + `classed` tinyint(1) unsigned NOT NULL DEFAULT '0', KEY `charOneId` (`charOneId`), KEY `charTwoId` (`charTwoId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/posts.sql b/L2J_DataPack_BETA/dist/sql/game/posts.sql index 6123cba370..be34a9b0f1 100644 --- a/L2J_DataPack_BETA/dist/sql/game/posts.sql +++ b/L2J_DataPack_BETA/dist/sql/game/posts.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `posts` ( - `post_id` int(8) NOT NULL default '0', - `post_owner_name` varchar(255) NOT NULL default '', - `post_ownerid` int(8) NOT NULL default '0', + `post_id` int(8) NOT NULL DEFAULT '0', + `post_owner_name` varchar(255) NOT NULL DEFAULT '', + `post_ownerid` int(8) NOT NULL DEFAULT '0', `post_date` bigint(13) unsigned NOT NULL DEFAULT '0', - `post_topic_id` int(8) NOT NULL default '0', - `post_forum_id` int(8) NOT NULL default '0', + `post_topic_id` int(8) NOT NULL DEFAULT '0', + `post_forum_id` int(8) NOT NULL DEFAULT '0', `post_txt` text NOT NULL, KEY `post_forum_id` (`post_forum_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/seven_signs.sql b/L2J_DataPack_BETA/dist/sql/game/seven_signs.sql index 45278a7451..e5b88aa21c 100644 --- a/L2J_DataPack_BETA/dist/sql/game/seven_signs.sql +++ b/L2J_DataPack_BETA/dist/sql/game/seven_signs.sql @@ -1,11 +1,11 @@ CREATE TABLE IF NOT EXISTS `seven_signs` ( - `charId` INT UNSIGNED NOT NULL default 0, - `cabal` VARCHAR(4) NOT NULL default '', - `seal` INT(1) NOT NULL default 0, - `red_stones` INT NOT NULL default 0, - `green_stones` INT NOT NULL default 0, - `blue_stones` INT NOT NULL default 0, - `ancient_adena_amount` DECIMAL(20,0) NOT NULL default 0, - `contribution_score` DECIMAL(20,0) NOT NULL default 0, + `charId` INT UNSIGNED NOT NULL DEFAULT 0, + `cabal` VARCHAR(4) NOT NULL DEFAULT '', + `seal` INT(1) NOT NULL DEFAULT 0, + `red_stones` INT NOT NULL DEFAULT 0, + `green_stones` INT NOT NULL DEFAULT 0, + `blue_stones` INT NOT NULL DEFAULT 0, + `ancient_adena_amount` DECIMAL(20,0) NOT NULL DEFAULT 0, + `contribution_score` DECIMAL(20,0) NOT NULL DEFAULT 0, PRIMARY KEY (`charId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/seven_signs_festival.sql b/L2J_DataPack_BETA/dist/sql/game/seven_signs_festival.sql index 2fa79c0854..0f3962429b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/seven_signs_festival.sql +++ b/L2J_DataPack_BETA/dist/sql/game/seven_signs_festival.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `seven_signs_festival` ( - `festivalId` int(1) NOT NULL default '0', - `cabal` varchar(4) NOT NULL default '', - `cycle` int(4) NOT NULL default '0', + `festivalId` int(1) NOT NULL DEFAULT '0', + `cabal` varchar(4) NOT NULL DEFAULT '', + `cycle` int(4) NOT NULL DEFAULT '0', `date` bigint(13) unsigned NOT NULL DEFAULT '0', - `score` int(5) NOT NULL default '0', - `members` varchar(255) NOT NULL default '', + `score` int(5) NOT NULL DEFAULT '0', + `members` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`festivalId`,`cabal`,`cycle`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/seven_signs_status.sql b/L2J_DataPack_BETA/dist/sql/game/seven_signs_status.sql index 836968f30e..d7028389b8 100644 --- a/L2J_DataPack_BETA/dist/sql/game/seven_signs_status.sql +++ b/L2J_DataPack_BETA/dist/sql/game/seven_signs_status.sql @@ -1,28 +1,28 @@ CREATE TABLE IF NOT EXISTS `seven_signs_status` ( - `id` int(3) NOT NULL default '0', - `current_cycle` int(10) NOT NULL default '1', - `festival_cycle` int(10) NOT NULL default '1', - `active_period` int(10) NOT NULL default '1', + `id` int(3) NOT NULL DEFAULT '0', + `current_cycle` int(10) NOT NULL DEFAULT '1', + `festival_cycle` int(10) NOT NULL DEFAULT '1', + `active_period` int(10) NOT NULL DEFAULT '1', `date` bigint(13) unsigned NOT NULL DEFAULT '0', - `previous_winner` int(10) NOT NULL default '0', - `dawn_stone_score` DECIMAL(20,0) NOT NULL default '0', - `dawn_festival_score` int(10) NOT NULL default '0', - `dusk_stone_score` DECIMAL(20,0) NOT NULL default '0', - `dusk_festival_score` int(10) NOT NULL default '0', - `avarice_owner` int(10) NOT NULL default '0', - `gnosis_owner` int(10) NOT NULL default '0', - `strife_owner` int(10) NOT NULL default '0', - `avarice_dawn_score` int(10) NOT NULL default '0', - `gnosis_dawn_score` int(10) NOT NULL default '0', - `strife_dawn_score` int(10) NOT NULL default '0', - `avarice_dusk_score` int(10) NOT NULL default '0', - `gnosis_dusk_score` int(10) NOT NULL default '0', - `strife_dusk_score` int(10) NOT NULL default '0', - `accumulated_bonus0` int(10) NOT NULL default '0', - `accumulated_bonus1` int(10) NOT NULL default '0', - `accumulated_bonus2` int(10) NOT NULL default '0', - `accumulated_bonus3` int(10) NOT NULL default '0', - `accumulated_bonus4` int(10) NOT NULL default '0', + `previous_winner` int(10) NOT NULL DEFAULT '0', + `dawn_stone_score` DECIMAL(20,0) NOT NULL DEFAULT '0', + `dawn_festival_score` int(10) NOT NULL DEFAULT '0', + `dusk_stone_score` DECIMAL(20,0) NOT NULL DEFAULT '0', + `dusk_festival_score` int(10) NOT NULL DEFAULT '0', + `avarice_owner` int(10) NOT NULL DEFAULT '0', + `gnosis_owner` int(10) NOT NULL DEFAULT '0', + `strife_owner` int(10) NOT NULL DEFAULT '0', + `avarice_dawn_score` int(10) NOT NULL DEFAULT '0', + `gnosis_dawn_score` int(10) NOT NULL DEFAULT '0', + `strife_dawn_score` int(10) NOT NULL DEFAULT '0', + `avarice_dusk_score` int(10) NOT NULL DEFAULT '0', + `gnosis_dusk_score` int(10) NOT NULL DEFAULT '0', + `strife_dusk_score` int(10) NOT NULL DEFAULT '0', + `accumulated_bonus0` int(10) NOT NULL DEFAULT '0', + `accumulated_bonus1` int(10) NOT NULL DEFAULT '0', + `accumulated_bonus2` int(10) NOT NULL DEFAULT '0', + `accumulated_bonus3` int(10) NOT NULL DEFAULT '0', + `accumulated_bonus4` int(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/siege_clans.sql b/L2J_DataPack_BETA/dist/sql/game/siege_clans.sql index 9a4bcbf707..10430ad219 100644 --- a/L2J_DataPack_BETA/dist/sql/game/siege_clans.sql +++ b/L2J_DataPack_BETA/dist/sql/game/siege_clans.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `siege_clans` ( - `castle_id` int(1) NOT NULL default 0, - `clan_id` int(11) NOT NULL default 0, - `type` int(1) default NULL, - `castle_owner` int(1) default NULL, + `castle_id` int(1) NOT NULL DEFAULT 0, + `clan_id` int(11) NOT NULL DEFAULT 0, + `type` int(1) DEFAULT NULL, + `castle_owner` int(1) DEFAULT NULL, PRIMARY KEY (`clan_id`,`castle_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/territories.sql b/L2J_DataPack_BETA/dist/sql/game/territories.sql index 49ef55b81d..601d8214dc 100644 --- a/L2J_DataPack_BETA/dist/sql/game/territories.sql +++ b/L2J_DataPack_BETA/dist/sql/game/territories.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `territories` ( - `territoryId` INT NOT NULL default 0, - `castleId` INT NOT NULL default 0, - `fortId` INT NOT NULL default 0, + `territoryId` INT NOT NULL DEFAULT 0, + `castleId` INT NOT NULL DEFAULT 0, + `fortId` INT NOT NULL DEFAULT 0, `ownedWardIds` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`territoryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/L2J_DataPack_BETA/dist/sql/game/territory_registrations.sql b/L2J_DataPack_BETA/dist/sql/game/territory_registrations.sql index 8309cc8267..fdc1449f21 100644 --- a/L2J_DataPack_BETA/dist/sql/game/territory_registrations.sql +++ b/L2J_DataPack_BETA/dist/sql/game/territory_registrations.sql @@ -1,5 +1,5 @@ CREATE TABLE IF NOT EXISTS `territory_registrations` ( - `castleId` int(1) NOT NULL default '0', - `registeredId` int(11) NOT NULL default '0', + `castleId` int(1) NOT NULL DEFAULT '0', + `registeredId` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`castleId`,`registeredId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/topic.sql b/L2J_DataPack_BETA/dist/sql/game/topic.sql index 7ffcaff24a..c0cd2af820 100644 --- a/L2J_DataPack_BETA/dist/sql/game/topic.sql +++ b/L2J_DataPack_BETA/dist/sql/game/topic.sql @@ -1,10 +1,10 @@ CREATE TABLE IF NOT EXISTS `topic` ( - `topic_id` int(8) NOT NULL default '0', - `topic_forum_id` int(8) NOT NULL default '0', - `topic_name` varchar(255) NOT NULL default '', + `topic_id` int(8) NOT NULL DEFAULT '0', + `topic_forum_id` int(8) NOT NULL DEFAULT '0', + `topic_name` varchar(255) NOT NULL DEFAULT '', `topic_date` bigint(13) unsigned NOT NULL DEFAULT '0', - `topic_ownername` varchar(255) NOT NULL default '0', - `topic_ownerid` int(8) NOT NULL default '0', - `topic_type` int(8) NOT NULL default '0', - `topic_reply` int(8) NOT NULL default '0' + `topic_ownername` varchar(255) NOT NULL DEFAULT '0', + `topic_ownerid` int(8) NOT NULL DEFAULT '0', + `topic_type` int(8) NOT NULL DEFAULT '0', + `topic_reply` int(8) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql index 05882aadd2..97acbb115a 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20080218update.sql @@ -40,7 +40,7 @@ ALTER TABLE characters MODIFY `newbie` MEDIUMINT UNSIGNED DEFAULT 1; ALTER TABLE characters MODIFY `lastAccess` BIGINT UNSIGNED DEFAULT NULL; ALTER TABLE characters MODIFY `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0; ALTER TABLE characters MODIFY `wantspeace` TINYINT UNSIGNED DEFAULT 0; -ALTER TABLE characters MODIFY `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0; +ALTER TABLE characters MODIFY `isin7sdungeon` TINYINT UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE characters MODIFY `in_jail` TINYINT UNSIGNED DEFAULT 0; ALTER TABLE characters MODIFY `jail_timer` INT UNSIGNED DEFAULT 0; ALTER TABLE characters MODIFY `power_grade` TINYINT UNSIGNED DEFAULT NULL; diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql index e8bda602ce..851a891ea0 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20080614update.sql @@ -1,12 +1,12 @@ -ALTER TABLE `custom_armorsets` ADD `skill_lvl` TINYINT UNSIGNED NOT NULL default 0 AFTER `skill_id`; +ALTER TABLE `custom_armorsets` ADD `skill_lvl` TINYINT UNSIGNED NOT NULL DEFAULT 0 AFTER `skill_id`; ALTER TABLE `custom_armorsets` MODIFY id SMALLINT UNSIGNED NOT NULL auto_increment; -ALTER TABLE `custom_armorsets` MODIFY chest SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY legs SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY head SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY gloves SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY feet SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY skill_id SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY skill_lvl TINYINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY shield SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY shield_skill_id SMALLINT UNSIGNED NOT NULL default 0; -ALTER TABLE `custom_armorsets` MODIFY enchant6skill SMALLINT UNSIGNED NOT NULL default 0; \ No newline at end of file +ALTER TABLE `custom_armorsets` MODIFY chest SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY legs SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY head SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY gloves SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY feet SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY skill_id SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY skill_lvl TINYINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY shield SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY shield_skill_id SMALLINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `custom_armorsets` MODIFY enchant6skill SMALLINT UNSIGNED NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql index 0d67b03e0d..157c6d00fd 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20080714update.sql @@ -1,3 +1,3 @@ -ALTER TABLE `custom_npc` MODIFY mp decimal(6,0) default NULL; -ALTER TABLE `custom_npc` MODIFY rhand decimal(5,0) default NULL; -ALTER TABLE `custom_npc` MODIFY lhand decimal(5,0) default NULL; \ No newline at end of file +ALTER TABLE `custom_npc` MODIFY mp decimal(6,0) DEFAULT NULL; +ALTER TABLE `custom_npc` MODIFY rhand decimal(5,0) DEFAULT NULL; +ALTER TABLE `custom_npc` MODIFY lhand decimal(5,0) DEFAULT NULL; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql index 46e25ba1c2..bc90f2c2e6 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20080727update.sql @@ -1 +1 @@ -ALTER TABLE `custom_npc` ADD `drop_herbs` int(1) default 0 AFTER `AI`; \ No newline at end of file +ALTER TABLE `custom_npc` ADD `drop_herbs` int(1) DEFAULT 0 AFTER `AI`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20080917update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20080917update.sql index b89e5665ae..51b5c544fd 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20080917update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20080917update.sql @@ -1,4 +1,4 @@ ALTER TABLE `castle` DROP COLUMN `siegeDayOfWeek`; ALTER TABLE `castle` DROP COLUMN `siegeHourOfDay`; ALTER TABLE `castle` ADD `regTimeOver` enum('true','false') DEFAULT 'true' NOT NULL AFTER `siegeDate`; -ALTER TABLE `castle` ADD `regTimeEnd` DECIMAL(20,0) NOT NULL default 0 AFTER `regTimeOver`; \ No newline at end of file +ALTER TABLE `castle` ADD `regTimeEnd` DECIMAL(20,0) NOT NULL DEFAULT 0 AFTER `regTimeOver`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090131update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090131update.sql index d545b6c112..447bc11369 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090131update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090131update.sql @@ -1,6 +1,6 @@ -ALTER TABLE `fort` ADD COLUMN `fortType` int(1) NOT NULL default 0; -ALTER TABLE `fort` ADD COLUMN `state` int(1) NOT NULL default 0; -ALTER TABLE `fort` ADD COLUMN `castleId` int(1) NOT NULL default 0; +ALTER TABLE `fort` ADD COLUMN `fortType` int(1) NOT NULL DEFAULT 0; +ALTER TABLE `fort` ADD COLUMN `state` int(1) NOT NULL DEFAULT 0; +ALTER TABLE `fort` ADD COLUMN `castleId` int(1) NOT NULL DEFAULT 0; UPDATE `fort` SET `fortType` = '1' WHERE id IN (102,104,107,109,110,112,113,116,117,118); ALTER TABLE `fortsiege_clans` DROP `type`, DROP `fort_owner`; DROP TABLE IF EXISTS `fort_door`; diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090208update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090208update.sql index 2259f3ed0d..804c000106 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090208update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090208update.sql @@ -1,4 +1,4 @@ ALTER TABLE `olympiad_nobles` DROP COLUMN `char_name`; -ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_won` decimal(3,0) NOT NULL default 0; -ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_lost` decimal(3,0) NOT NULL default 0; -ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_drawn` decimal(3,0) NOT NULL default 0; \ No newline at end of file +ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_won` decimal(3,0) NOT NULL DEFAULT 0; +ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_lost` decimal(3,0) NOT NULL DEFAULT 0; +ALTER TABLE `olympiad_nobles` ADD COLUMN `competitions_drawn` decimal(3,0) NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql index 69286f3ddf..3329b3be1b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090304update.sql @@ -1,5 +1,5 @@ ALTER TABLE `pets` DROP `karma`; ALTER TABLE `pets` DROP `pkkills`; -ALTER TABLE `pets` ADD `weapon` int(5) NOT NULL default 0 AFTER `fed`; -ALTER TABLE `pets` ADD `armor` int(5) NOT NULL default 0 AFTER `weapon`; -ALTER TABLE `pets` ADD `jewel` int(5) NOT NULL default 0 AFTER `armor`; \ No newline at end of file +ALTER TABLE `pets` ADD `weapon` int(5) NOT NULL DEFAULT 0 AFTER `fed`; +ALTER TABLE `pets` ADD `armor` int(5) NOT NULL DEFAULT 0 AFTER `weapon`; +ALTER TABLE `pets` ADD `jewel` int(5) NOT NULL DEFAULT 0 AFTER `armor`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql index b10815a71b..97bb96062b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090331update.sql @@ -1 +1 @@ -ALTER TABLE `characters` ADD `fame` MEDIUMINT UNSIGNED NOT NULL default 0 AFTER `karma`; \ No newline at end of file +ALTER TABLE `characters` ADD `fame` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0 AFTER `karma`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090412update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090412update.sql index d9d9bb1f3d..44c731e3ee 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090412update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090412update.sql @@ -1,2 +1,2 @@ ALTER TABLE `items` DROP `time_left`; -alter table `items` add `time` decimal NOT NULL default 0 after `mana_left`; \ No newline at end of file +alter table `items` add `time` decimal NOT NULL DEFAULT 0 after `mana_left`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090424update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090424update.sql index 052e81fcf8..7e7bcd535e 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090424update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090424update.sql @@ -1,2 +1,2 @@ -ALTER TABLE `items` MODIFY `count` BIGINT UNSIGNED NOT NULL default 0; -ALTER TABLE `itemsonground` MODIFY `count` BIGINT UNSIGNED NOT NULL default 0; \ No newline at end of file +ALTER TABLE `items` MODIFY `count` BIGINT UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `itemsonground` MODIFY `count` BIGINT UNSIGNED NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090504update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090504update.sql index c51a6fba99..afe29cb6b3 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090504update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090504update.sql @@ -1 +1 @@ -alter table `fort` add `blood` int(3) NOT NULL default 0 after `castleId`; \ No newline at end of file +alter table `fort` add `blood` int(3) NOT NULL DEFAULT 0 after `castleId`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090519update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090519update.sql index beda7bfb6e..5de2dbfc1b 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090519update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090519update.sql @@ -1 +1 @@ -ALTER TABLE `items` MODIFY `time` decimal(13) NOT NULL default 0; \ No newline at end of file +ALTER TABLE `items` MODIFY `time` decimal(13) NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090705update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090705update.sql index 1c2ecd5c25..94b726010d 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090705update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090705update.sql @@ -1 +1 @@ -ALTER TABLE `items` MODIFY `mana_left` decimal(5) NOT NULL default 0; \ No newline at end of file +ALTER TABLE `items` MODIFY `mana_left` decimal(5) NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20090710update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20090710update.sql index 989138ad80..af870582c4 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20090710update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20090710update.sql @@ -1 +1 @@ -ALTER TABLE `castle` MODIFY `treasury` BIGINT NOT NULL default 0; \ No newline at end of file +ALTER TABLE `castle` MODIFY `treasury` BIGINT NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20091202update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20091202update.sql index d6c3d10099..190daee2ee 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20091202update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20091202update.sql @@ -1 +1 @@ -ALTER TABLE `characters` ADD `createTime` DECIMAL(20,0) NOT NULL default '0' AFTER `vitality_points`; \ No newline at end of file +ALTER TABLE `characters` ADD `createTime` DECIMAL(20,0) NOT NULL DEFAULT '0' AFTER `vitality_points`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20091207update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20091207update.sql index 3cfbdb541f..3d49de7973 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20091207update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20091207update.sql @@ -1 +1 @@ -ALTER TABLE `characters` ADD `title_color` MEDIUMINT UNSIGNED NOT NULL default '16777079' AFTER `title`; \ No newline at end of file +ALTER TABLE `characters` ADD `title_color` MEDIUMINT UNSIGNED NOT NULL DEFAULT '16777079' AFTER `title`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20091210update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20091210update.sql index e447288253..0339601ab8 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20091210update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20091210update.sql @@ -1 +1 @@ -ALTER TABLE `custom_npc` ADD `enchant` INT NOT NULL default 0 after `armor`; \ No newline at end of file +ALTER TABLE `custom_npc` ADD `enchant` INT NOT NULL DEFAULT 0 after `armor`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100107update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100107update.sql index 6294c27c8f..557f59d5fa 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100107update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100107update.sql @@ -1,2 +1,2 @@ -ALTER TABLE `custom_npc` CHANGE `ss` `soulshot_count` int(4) default 0; -ALTER TABLE `custom_npc` CHANGE `bss` `spiritshot_count` int(4) default 0; \ No newline at end of file +ALTER TABLE `custom_npc` CHANGE `ss` `soulshot_count` int(4) DEFAULT 0; +ALTER TABLE `custom_npc` CHANGE `bss` `spiritshot_count` int(4) DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100110update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100110update.sql index 3b552753c2..7c45cdb139 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100110update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100110update.sql @@ -1,2 +1,2 @@ -ALTER TABLE `seven_signs_status` MODIFY `date` decimal(20,0) NOT NULL default 0; +ALTER TABLE `seven_signs_status` MODIFY `date` decimal(20,0) NOT NULL DEFAULT 0; -- UPDATE `seven_signs_status` SET `date` = UNIX_TIMESTAMP() * 1000; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100528update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100528update.sql index 2ff2fe2c2f..362b6dc592 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100528update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100528update.sql @@ -1,2 +1,2 @@ -ALTER TABLE `custom_teleport` ADD `itemId` decimal(11,0) NOT NULL default '57' AFTER `fornoble`; +ALTER TABLE `custom_teleport` ADD `itemId` decimal(11,0) NOT NULL DEFAULT '57' AFTER `fornoble`; UPDATE `custom_teleport` SET itemId = 13722 WHERE fornoble = 1; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100706update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100706update.sql index f419027e50..2aaa7a6f80 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100706update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100706update.sql @@ -1,2 +1,2 @@ ALTER TABLE `character_macroses` MODIFY `commands` VARCHAR( 500 ) NULL DEFAULT NULL; -ALTER TABLE `heroes` ADD COLUMN `message` varchar(300) NOT NULL default ''; \ No newline at end of file +ALTER TABLE `heroes` ADD COLUMN `message` varchar(300) NOT NULL DEFAULT ''; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100805update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100805update.sql index f124bb1e2a..027aabced3 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100805update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100805update.sql @@ -1 +1 @@ -ALTER TABLE `fort` ADD COLUMN `supplyLvL` int(2) NOT NULL default 0; \ No newline at end of file +ALTER TABLE `fort` ADD COLUMN `supplyLvL` int(2) NOT NULL DEFAULT 0; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql index c48c2b698a..a88dfaeefa 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20100908update.sql @@ -1,3 +1,3 @@ -ALTER TABLE `clan_skills` ADD COLUMN `sub_pledge_id` INT NOT NULL default '-2'; +ALTER TABLE `clan_skills` ADD COLUMN `sub_pledge_id` INT NOT NULL DEFAULT '-2'; ALTER TABLE `clan_skills` DROP PRIMARY KEY; ALTER TABLE `clan_skills` ADD PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`); \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20110612update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20110612update.sql index 0d1bb27246..5e7a173e50 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20110612update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20110612update.sql @@ -1,4 +1,4 @@ -ALTER TABLE `olympiad_nobles` ADD `competitions_done_week` decimal(3,0) NOT NULL default 0 AFTER `competitions_drawn`; -ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_classed` decimal(3,0) NOT NULL default 0 AFTER `competitions_done_week`; -ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_non_classed` decimal(3,0) NOT NULL default 0 AFTER `competitions_done_week_classed`; -ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_team` decimal(3,0) NOT NULL default 0 AFTER `competitions_done_week_non_classed`; \ No newline at end of file +ALTER TABLE `olympiad_nobles` ADD `competitions_done_week` decimal(3,0) NOT NULL DEFAULT 0 AFTER `competitions_drawn`; +ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_classed` decimal(3,0) NOT NULL DEFAULT 0 AFTER `competitions_done_week`; +ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_non_classed` decimal(3,0) NOT NULL DEFAULT 0 AFTER `competitions_done_week_classed`; +ALTER TABLE `olympiad_nobles` ADD `competitions_done_week_team` decimal(3,0) NOT NULL DEFAULT 0 AFTER `competitions_done_week_non_classed`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20110819update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20110819update.sql index a323792342..dcec4bfe78 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20110819update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20110819update.sql @@ -4,10 +4,10 @@ ALTER TABLE `olympiad_nobles` MODIFY `competitions_done` smallint(3) NOT NULL DE ALTER TABLE `olympiad_nobles` MODIFY `competitions_won` smallint(3) NOT NULL DEFAULT 0; ALTER TABLE `olympiad_nobles` MODIFY `competitions_lost` smallint(3) NOT NULL DEFAULT 0; ALTER TABLE `olympiad_nobles` MODIFY `competitions_drawn` smallint(3) NOT NULL DEFAULT 0; -ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week` tinyint(3) NOT NULL default 0; -ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_classed` tinyint(3) NOT NULL default 0; -ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_non_classed` tinyint(3) NOT NULL default 0; -ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_team` tinyint(3) NOT NULL default 0; +ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week` tinyint(3) NOT NULL DEFAULT 0; +ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_classed` tinyint(3) NOT NULL DEFAULT 0; +ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_non_classed` tinyint(3) NOT NULL DEFAULT 0; +ALTER TABLE `olympiad_nobles` MODIFY `competitions_done_week_team` tinyint(3) NOT NULL DEFAULT 0; ALTER TABLE `olympiad_nobles_eom` MODIFY `class_id` tinyint(3) unsigned NOT NULL DEFAULT 0; ALTER TABLE `olympiad_nobles_eom` MODIFY `olympiad_points` int(10) NOT NULL DEFAULT 0; ALTER TABLE `olympiad_nobles_eom` MODIFY `competitions_done` smallint(3) NOT NULL DEFAULT 0; diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql index 3ec6ef8ff0..25f362e8c4 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql @@ -1 +1 @@ -ALTER TABLE `castle` ADD `ticketBuyCount` SMALLINT(3) NOT NULL default 0 AFTER `bloodAlliance`; \ No newline at end of file +ALTER TABLE `castle` ADD `ticketBuyCount` SMALLINT(3) NOT NULL DEFAULT 0 AFTER `bloodAlliance`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20121031update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20121031update.sql new file mode 100644 index 0000000000..5d81611698 --- /dev/null +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20121031update.sql @@ -0,0 +1,4 @@ +ALTER TABLE `clan_data` ADD `blood_alliance_count` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `hasCastle`; +ALTER TABLE `clan_data` ADD `blood_oath_count` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `blood_alliance_count`; +ALTER TABLE `castle` DROP `bloodAlliance`; +ALTER TABLE `fort` DROP `blood`; \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/deprecated/updates_before_kamael.sql b/L2J_DataPack_BETA/dist/sql/game/updates/deprecated/updates_before_kamael.sql index d4e67e462f..99b1d1f876 100644 --- a/L2J_DataPack_BETA/dist/sql/game/updates/deprecated/updates_before_kamael.sql +++ b/L2J_DataPack_BETA/dist/sql/game/updates/deprecated/updates_before_kamael.sql @@ -50,12 +50,12 @@ alter table `clan_data` add column `ally_crest_id` INT DEFAULT 0; -- 051205-[1768].sql -- Needed only if your character tables are needed to be preserved. -ALTER TABLE `character_hennas` ADD `class_index` int(1) NOT NULL default '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`slot`,`class_index`); -ALTER TABLE `character_quests` ADD `class_index` int(1) NOT NULL default '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_id`,`name`,`var`,`class_index`); -ALTER TABLE `character_shortcuts` CHANGE `unknown` `class_index` int(1) NOT NULL default '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`slot`,`page`,`class_index`); -ALTER TABLE `character_skills` ADD `class_index` int(1) NOT NULL default '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`skill_id`,`class_index`); -ALTER TABLE `character_skills_save` ADD `class_index` int(1) NOT NULL default '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`skill_id`,`class_index`); -ALTER TABLE `characters` ADD `base_class` int(2) NOT NULL default '0'; +ALTER TABLE `character_hennas` ADD `class_index` int(1) NOT NULL DEFAULT '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`slot`,`class_index`); +ALTER TABLE `character_quests` ADD `class_index` int(1) NOT NULL DEFAULT '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_id`,`name`,`var`,`class_index`); +ALTER TABLE `character_shortcuts` CHANGE `unknown` `class_index` int(1) NOT NULL DEFAULT '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`slot`,`page`,`class_index`); +ALTER TABLE `character_skills` ADD `class_index` int(1) NOT NULL DEFAULT '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`skill_id`,`class_index`); +ALTER TABLE `character_skills_save` ADD `class_index` int(1) NOT NULL DEFAULT '0', DROP PRIMARY KEY, ADD PRIMARY KEY (`char_obj_id`,`skill_id`,`class_index`); +ALTER TABLE `characters` ADD `base_class` int(2) NOT NULL DEFAULT '0'; -- 051205-[1769].sql -- UPDATE `characters` set `base_class` = `classid`; @@ -178,7 +178,7 @@ DROP TABLE IF EXISTS `zone_npoly`; -- update17112007.sql -ALTER TABLE `character_skills_save` ADD buff_index int(2) NOT NULL default 0; +ALTER TABLE `character_skills_save` ADD buff_index int(2) NOT NULL DEFAULT 0; -- update20060522.sql ALTER TABLE `seven_signs_status` MODIFY COLUMN dawn_stone_score DECIMAL(20,0) NOT NULL DEFAULT 0, @@ -214,13 +214,13 @@ ALTER TABLE `character_skills` CHANGE skill_name skill_name varchar(35); -- update20061230.sql -- *** DANGER *** - This update must DROP & CREATE the `clanhall` & `auction` tables due to structure changes -ALTER TABLE `clan_data` ADD `auction_bid_at` INT NOT NULL default '0'; -ALTER TABLE `auction_bid` ADD `time_bid` decimal(20,0) NOT NULL default '0'; +ALTER TABLE `clan_data` ADD `auction_bid_at` INT NOT NULL DEFAULT '0'; +ALTER TABLE `auction_bid` ADD `time_bid` decimal(20,0) NOT NULL DEFAULT '0'; ALTER TABLE `auction_bid` ADD `clan_name` varchar(50) NOT NULL after `bidderName`; -- setting zones DELETE FROM `zone` WHERE type = 'Clan Hall'; -ALTER TABLE `zone` ADD `z2` int(11) NOT NULL default '0' AFTER `z`; +ALTER TABLE `zone` ADD `z2` int(11) NOT NULL DEFAULT '0' AFTER `z`; INSERT INTO `zone` VALUES (22, 'Clan Hall', 'Gludio 1', -16400, 123275, -15551, 123850, -3117,0, 1), (23, 'Clan Hall', 'Gludio 2', -15100, 125350, -14800, 125800, -3143,0, 1), @@ -292,26 +292,26 @@ INSERT INTO `zone` (id, type, name, x1, y1, x2, y2, z, taxById) VALUES -- creating new tables and replacing old ones DROP TABLE IF EXISTS `clanhall_functions`; CREATE TABLE `clanhall_functions` ( - `hall_id` int(2) NOT NULL default '0', - `type` int(1) NOT NULL default '0', - `lvl` int(3) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', - `rate` decimal(20,0) NOT NULL default '0', - `endTime` decimal(20,0) NOT NULL default '0', - `inDebt` int(1) NOT NULL default '0', + `hall_id` int(2) NOT NULL DEFAULT '0', + `type` int(1) NOT NULL DEFAULT '0', + `lvl` int(3) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', + `rate` decimal(20,0) NOT NULL DEFAULT '0', + `endTime` decimal(20,0) NOT NULL DEFAULT '0', + `inDebt` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`hall_id`,`type`) ); DROP TABLE IF EXISTS `clanhall`; CREATE TABLE `clanhall` ( - `id` int(11) NOT NULL default '0', - `name` varchar(40) NOT NULL default '', - `ownerId` int(11) NOT NULL default '0', - `lease` int(10) NOT NULL default '0', + `id` int(11) NOT NULL DEFAULT '0', + `name` varchar(40) NOT NULL DEFAULT '', + `ownerId` int(11) NOT NULL DEFAULT '0', + `lease` int(10) NOT NULL DEFAULT '0', `desc` text NOT NULL, - `location` varchar(15) NOT NULL default '', - `paidUntil` decimal(20,0) NOT NULL default '0', - `Grade` decimal(1,0) NOT NULL default '0', + `location` varchar(15) NOT NULL DEFAULT '', + `paidUntil` decimal(20,0) NOT NULL DEFAULT '0', + `Grade` decimal(1,0) NOT NULL DEFAULT '0', PRIMARY KEY (`id`,`name`), KEY `id` (`id`) ); @@ -364,18 +364,18 @@ INSERT INTO `clanhall` VALUES ('64', 'Fortress of the Dead', '0', '500000', '', DROP TABLE IF EXISTS `auction`; CREATE TABLE `auction` ( - id int(11) NOT NULL default '0', - sellerId int(11) NOT NULL default '0', - sellerName varchar(50) NOT NULL default 'NPC', - sellerClanName varchar(50) NOT NULL default '', - itemType varchar(25) NOT NULL default '', - itemId int(11) NOT NULL default '0', - itemObjectId int(11) NOT NULL default '0', - itemName varchar(40) NOT NULL default '', - itemQuantity int(11) NOT NULL default '0', - startingBid int(11) NOT NULL default '0', - currentBid int(11) NOT NULL default '0', - endDate decimal(20,0) NOT NULL default '0', + id int(11) NOT NULL DEFAULT '0', + sellerId int(11) NOT NULL DEFAULT '0', + sellerName varchar(50) NOT NULL DEFAULT 'NPC', + sellerClanName varchar(50) NOT NULL DEFAULT '', + itemType varchar(25) NOT NULL DEFAULT '', + itemId int(11) NOT NULL DEFAULT '0', + itemObjectId int(11) NOT NULL DEFAULT '0', + itemName varchar(40) NOT NULL DEFAULT '', + itemQuantity int(11) NOT NULL DEFAULT '0', + startingBid int(11) NOT NULL DEFAULT '0', + currentBid int(11) NOT NULL DEFAULT '0', + endDate decimal(20,0) NOT NULL DEFAULT '0', PRIMARY KEY (`itemType`,`itemId`,`itemObjectId`), KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -466,8 +466,8 @@ DROP TABLE `repair_character_quests`; -- update20070223.sql ALTER TABLE `raidboss_spawnlist` DROP respawn_delay; -ALTER TABLE `raidboss_spawnlist` ADD respawn_min_delay INT( 11 ) NOT NULL default '43200' AFTER heading; -- 12 (36-24) hours -ALTER TABLE `raidboss_spawnlist` ADD respawn_max_delay INT( 11 ) NOT NULL default '129600' AFTER respawn_min_delay; -- 36 hours +ALTER TABLE `raidboss_spawnlist` ADD respawn_min_delay INT( 11 ) NOT NULL DEFAULT '43200' AFTER heading; -- 12 (36-24) hours +ALTER TABLE `raidboss_spawnlist` ADD respawn_max_delay INT( 11 ) NOT NULL DEFAULT '129600' AFTER respawn_min_delay; -- 36 hours DELETE FROM `raidboss_spawnlist` WHERE boss_id IN (25328, 25339, 25342, 25346, 25349); -- remove Shadow of Halisha and Hellman spawns (possible exploits)-- update20070303.sql ALTER TABLE `clan_data` ADD `ally_penalty_expiry_time` DECIMAL( 20,0 ) NOT NULL DEFAULT '0', @@ -484,12 +484,12 @@ DROP `deleteclan`; -- update20070511.sql ALTER TABLE `characters` -ADD `expBeforeDeath` decimal(20,0) default 0 +ADD `expBeforeDeath` decimal(20,0) DEFAULT 0 AFTER `exp`; -- update20070601.sql ALTER TABLE `accounts` -ADD lastServer int(4) default '1' +ADD lastServer int(4) DEFAULT '1' AFTER lastIP; -- update20070929-[dp3399].sql diff --git a/L2J_DataPack_BETA/dist/sql/login/gameservers.sql b/L2J_DataPack_BETA/dist/sql/login/gameservers.sql index 86af895dc1..b0c30121b0 100644 --- a/L2J_DataPack_BETA/dist/sql/login/gameservers.sql +++ b/L2J_DataPack_BETA/dist/sql/login/gameservers.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `gameservers` ( - `server_id` int(11) NOT NULL default '0', - `hexid` varchar(50) NOT NULL default '', - `host` varchar(50) NOT NULL default '', + `server_id` int(11) NOT NULL DEFAULT '0', + `hexid` varchar(50) NOT NULL DEFAULT '', + `host` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`server_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file -- GitLab