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 bf1359af2405735a8ab1b992120bd414ffa67c41..578cf6a25f1ce87aa57ab0c2e15bd745f630d564 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 7fd62ae34205bfde9de9d8108f577e8d82c16304..a43be590f158506dfa60a037700d9f0dff87570c 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 3b012ab8ad41f6ffe356ef2661ba582e546f1495..44d7d54284137bdc4437a2b1c893a9b89ed565b4 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 cc03366b136b9b398f55afcdb127f843a75e44f0..0b6c2751d2b51f124a0b7141b0679804decb280b 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 5dffacfecf8404091afc0521f84338733e392e30..828a1a9ba401d3d5f560a23fba13cc8695e06d04 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 c72883533108bf7d84a0714d57146c2561b160aa..57619ccaf32969f1103afaed886eaca4e826e242 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 f3dc90dc7b6ba8ee8044e3fd960c615dcc745e2f..ddb40a531a11f4eab328d7b76871233ccfa8e12d 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 d77407d51be4a09e07665ebf97bf312a25d9454f..341ad787cf07f9b413093c20a38f6856082f50cd 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 2983bb813c4190b839a92af8336afbe10e3cbd31..dc12f420246f91450827e543622e44ab5dd300d6 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 2440d4441cdb0c3fc491f794cbe9269205b3688f..9d2e56eb18d0277c2b7ec3454ce536516c1c7bd4 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 b9effd7f9e186af06eb01f938a339be251574d99..311829d1a7aa5013542aa4da16c84519829b3dec 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 c1021273ac9151bbc5727cecee4270bd99102e2f..2b84f8ed1c8aa43a78a6062817c72739ba8bc9b8 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 1454735222b1fdbbcaba105e877405ea92dd4ba8..eae3364bb9f1c31cc76f70c236f1b90820913830 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 ed10820e425ed74ab9848a80c0c6c39a1ef6ef12..ec54085c054fa3e240e8a20de135f892537abe0e 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 920b1d138dad76638dcd953610a5ed35718b102d..99b40a13569b14846533f00da2128d71719b5abe 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 51f90505418b0befa9dd5397e66b507b1822485d..58b24fb646f46f6b8d494b768d2d11a0f90cc092 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 9f6f3198cfc8d0800900b4999d0fdb318284ff4e..f1cbac43d519b431e88a5a7379574c9ed7184591 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 6dc6e577447a140bdc22c367fd1e042fb1e534cf..e42b2e4bd60d657510a99b85efed1a2d949651ee 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 67b17d4abe45bd4a3d82b562071d5237240126cf..c7532d9971e4a5fb05c456b3547367de913d8d46 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 b2f4a4116e9cdc5a26b08962299ecf34e8b912f4..0199f88a7768074c1a57d7153c695bcb28262c55 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 9510e937ee4290c75c6f7a9aa6daadfef72853a0..1b9b37bcba9f41b95017a032987401a038bcf12d 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 d733250cdfc01bbf2fc6dcf55bfb0087ee172cd1..6c5b8d4c515cc759b9b08636ff61544f2c960cb2 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 58e4c72b2e2b928bee5878ebb1d0cd3c6c5541d2..889a584aabfb0447612d82dc4516b59a8af016dc 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 e123fcfbd6506573b7008b683525994e3675cd62..455e1c54e9e28a71ce1ce42263826a0e78e05f06 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 ff7eb82aaeec7dfb59681362427e4209740fc25c..8904833cd435ececcee34dc6c047596391f79698 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 0eec43dda60186199dd3d56180620743eaf992fe..6652823b59b9f434ed00be421cc3771e3e469c4a 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 59a8a4e61ea95c8d45dbe8ebe441e2f10e9dede6..8af49cc45f37659e5d86cd99a56d0822f2bc9693 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 22dfe933e8d08fad5bc23e94d3a0f3f435342c22..62cc81410160cdb5ce8bcd1fc9a0ce277f753e6e 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 4e421e7170801dcac28058d64fd6033548cc1dec..a3b640d8ec95f3c8b439e190dbd64b68c171bc7f 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 0d5f131fa85852ee0d5e10c6fc9bed3bf97e0b25..ea33f9734a289ab846563e4505696c1be3d813d7 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 01e68887a46c6bdb0c3ddb5500c1c0bb1fc4f2b9..17b5391906c68338dbb2e3f51b48d5562d23fb61 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 6bf39b3750890a022cb4e688127c9bc7dd868e7d..874f4ff0b8dc9f62eae17bd431dad38ced2af3f2 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 50a594df75a55749e43a51d9e4c730d6431259cf..4a79d075d22ffbb097368cfe00327a787b132227 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 3815c45cb740971d4ac512b3177a179716ab7b1f..adf64dc0a87010ebe4d4089d6349d5b31533ad65 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 f3c835765787ce51644c3b8a6068f24ad58f8475..6a55e2221b11c616d508b9372d8fb98ecd9b9e17 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 bae06e187509dc62bc57e245f8db2a13d2c40779..e4c87934f30711abbeacc3bd9d8fd6f042ea524f 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 1bd67750160ad51c03f3e53632fa022ed1b374cb..a21ab5953ee15c48ce3a98cabf4a1f6e74386160 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 eaeddceea173bc50c1737cc83d0ba1e259991214..2fd0083c9df02552f747e7cd7437411ed7aefd47 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 287b68604a8c0d37ea1b52239e664e80703d4dc4..99025ffad2bcc3e640460914d11870e9ea7a3c70 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 d56bd7ab941813bf50f47ab46df7dd5acb0901ff..413e7a677480bea95d7769d5a1eeee3aec7a4d2b 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 4abecdc856453cba0db156da10922234de5ac410..6208a5908d91acbdbb01aa392b933e9f6af3012e 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 d7ef05767695c9798582280739f6779cf9de3309..bc1ba2c80a57bf14067f918773bee3a89cb343d2 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 5d55778c157434534c63e2ea940585fd7ffd7f5f..f6fbd86c7f0ee8a477f27856aa938e120884c8e9 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 eed9b81bc671d507ae7627fc755a1f627fb815b8..a98a49f1f9a2c6436ac58a9b02062ece8082eb40 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 a810f3efbfb8f6aeec5b1a35a1445d80d7387828..ff156d9f1fcb8851750479e581ce0daa318bf6e9 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 6e9c6e722631636a544534854d75470570e1323e..45ad0ecf48ba9bf656ee28f767febf84a4b59896 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 497aec4670109df154c2000b4c319e892bc9c694..b780f3906b637ad44a759771506b18065b53ed2f 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 01783d9f7ab9a91fe4a70187cdaff6e185c20fef..9c18473191d796c17c83a5651d50701b8eb4d2cf 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 50163dd22c5f6c5b54f612b96c96b27cf44bc2d8..caa27dea467a2e4a51cbb52aa57d40d22fff8de0 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 d3ccb11cdbe646a511ea98345151c22f87ecc8ba..442e4e32e7c1a4207d280fed9a29a6a202c0c14e 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 a6db295176f0be5fa2ddf476532a39df08d9b175..09d8a19076b705525626c09a3e6f346d1634103d 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 30b3e2eb65a243511de1e944208a675696dac58a..35ac5fad9afb1b553ce6519536d0238e02c607b2 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 a0c2b9b404ad5ded2d85bee4e935ab6e3fc6fb0c..fba150333eb3c587f60108eb6dcdb9f42ece3138 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 6123cba37072fcb54afcf5c1ec119dff6cca227f..be34a9b0f1af2c1e41b7b7980a3ff05dc9e85df8 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 45278a745156122cd9a3e0b3740aae416accbbcd..e5b88aa21c06ce9d65b5d56d4fe964d1bab1ad22 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 2fa79c0854ee528248046b6788de22b7e8537bad..0f3962429b4a582c1d1919b8635f047c1d3625bf 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 836968f30ea9327267871af60fb52e6415cfd57b..d7028389b84bbb027f3d41bffb3e113dd2149d93 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 9a4bcbf707d5f4f3c985b7bcccd8d344e0a8cca3..10430ad21981a4085e54a10ce8edd3803bdf61b0 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 49ef55b81df00ee454bb6cb6ad30e9e36b471c0e..601d8214dc7fc915d1e097f0b17ff0656c19ea2c 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 8309cc82670ea2dd5f5be123878fe41852c062d5..fdc1449f21afdbdb4679aa07af49cb8f4fce48c4 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 7ffcaff24afc45aba6c007a3f3484fa84bb490f7..c0cd2af8209aac7faa92df3646a9f50f353a7b1a 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 05882aadd2ac39a7d21c4a3f5c047558a5ac1bd4..97acbb115a6bf91d1c8880ded470448293d87148 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 e8bda602ceda06c9bfc9c4d20fe95716d35ef255..851a891ea0ce274536e4b94796c588eae2c519e1 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 0d67b03e0d80c6b5ab7197198803e0248d49d1f3..157c6d00fd408aad5b1f8be1d75c835692062514 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 46e25ba1c24ce3dc4e4da9ac046b008537f8dbf4..bc90f2c2e6520390d251df3adfbbee01ef037c19 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 b89e5665ae648d341e8feca22b10bda62da7efad..51b5c544fdbee1b4889958bbcb9e403bff76b7d5 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 d545b6c11232e702aee06ef9a9c421d5f13adf5f..447bc113692f60d09a1eb88d0e7a945a0e2eb617 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 2259f3ed0d23d60e70c131573c471037c47cfbca..804c0001061957806a4074b584b8aca60fb8f1b2 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 69286f3ddfd4eadbf83140249ae9720b3035fd63..3329b3be1bb0a7641ed68a53081ade584431f943 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 b10815a71b2c6895f16583096cfb153882464424..97bb96062bdebbc069f880c5928b430a9c4f41eb 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 d9d9bb1f3dc20888b5a7dc2c9e32d81b37b5d60c..44c731e3eed98030e862b4be2bc34c060dd0f32f 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 052e81fcf83d304aae1d135c47c47ff1785c3053..7e7bcd535e3e51f3a7b865d0668629c66430141f 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 c51a6fba99871f458ea40793da8592134fbd2673..afe29cb6b39ab5f7b78df5eb37528bb29a56395c 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 beda7bfb6e4534e5fa14420798ac246d6095a566..5de2dbfc1b3cd1c3b353eea87d6d75b59a93f060 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 1c2ecd5c2561c38b9d4470b39373feb22311407f..94b726010d4d5bbfb4756d17c3ee6ba61ea29226 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 989138ad801812dde8461ac2e79f88319813fb2c..af870582c4961f5509fdd104df38879c8b98dc27 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 d6c3d10099426fc2478feb098ffa20e995bb43a9..190daee2ee73b28c7feabbdb43bc8e3dfde196a0 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 3cfbdb541f19c6c7ea7bcb21fc49310f2717b393..3d49de79735187d02cfd81b2530f0868b449b8fb 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 e44728825364e49cdfb2070a055ef0b1fcc66457..0339601ab888226e9f658a02723cfa0dd599aa05 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 6294c27c8f4bf54db39ecfb34ffa14bfe54c632a..557f59d5fa251e4ee6ba0a620451487aefe0fea2 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 3b552753c213360ad1238e7ae0b40e80af1d7c9a..7c45cdb13918592251ba833782a969bc75c95722 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 2ff2fe2c2f46f1a1c23183bfc799af8d9dd8cc73..362b6dc59233edd9f6629b265b721d3ee10417e0 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 f419027e502232a39c86b60d57c3004023b00621..2aaa7a6f8017063d6cbd7860ee62aca3645e5aa8 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 f124bb1e2ae0af16caca103dd792a91de21ff7cf..027aabced31d79480feba32e5e1009a4581e3683 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 c48c2b698ac38e1cdce501a359304270529f5db4..a88dfaeefae308da086af14b6b9311686b380cdf 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 0d1bb27246a1cce292ab3be92dfa5968cbba6c6c..5e7a173e502861fc042fdb1f50e3776015bf9d9d 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 a3237923421c6496b8810581998827f6ba1fc0ca..dcec4bfe78499badab58aac36562211c63335a3f 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 3ec6ef8ff0cbfd5037b83aa24953ef7758db9b9a..25f362e8c4e6c5ed5ba1c59c41fa3e6bb5919292 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 0000000000000000000000000000000000000000..5d81611698207b8b3d4826195e3ecf9711006eec --- /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 d4e67e462f30fe0b0c50a0a16706a5b921a1c20e..99b1d1f87613dc1ccdc07d5221bf3cc1c7c50c50 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 86af895dc16ffc01a2b48c9e649119ea4d76dabc..b0c30121b0bbf5cc3afdb0bba91a13951ea4e851 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