Fafurion branch.

This commit is contained in:
MobiusDev
2019-02-28 18:21:21 +00:00
parent 5224d41be9
commit e2a58ca111
19588 changed files with 3907251 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `account_gsdata`;
CREATE TABLE IF NOT EXISTS `account_gsdata` (
`account_name` VARCHAR(45) NOT NULL DEFAULT '',
`var` VARCHAR(255) NOT NULL DEFAULT '',
`value` text NOT NULL,
PRIMARY KEY (`account_name`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `account_premium`;
CREATE TABLE `account_premium` (
`account_name` varchar(45) NOT NULL DEFAULT '',
`enddate` decimal(20,0) NOT NULL DEFAULT '0',
PRIMARY KEY (`account_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `airships`;
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,
PRIMARY KEY (`owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,15 @@
DROP TABLE IF EXISTS `announcements`;
CREATE TABLE IF NOT EXISTS `announcements` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL,
`initial` bigint(20) NOT NULL DEFAULT 0,
`delay` bigint(20) NOT NULL DEFAULT 0,
`repeat` int(11) NOT NULL DEFAULT 0,
`author` text NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO announcements (`type`, `author`, `content`) VALUES
(0, 'L2jMobius', 'Thanks for using L2jMobius!'),
(0, 'L2jMobius', '[=http://www.l2jmobius.com/=]');

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `auction_bid`;
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,
`bidderName` varchar(50) NOT NULL,
`clan_name` varchar(50) NOT NULL,
`maxBid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`time_bid` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`auctionId`,`bidderId`),
KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `bbs_favorites`;
CREATE TABLE IF NOT EXISTS `bbs_favorites` (
`favId` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`playerId` INT UNSIGNED NOT NULL,
`favTitle` VARCHAR(50) NOT NULL,
`favBypass` VARCHAR(127) NOT NULL,
`favAddDate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`favId`),
UNIQUE INDEX `favId_playerId` (`favId`, `playerId`)
)
COMMENT='This table saves the Favorite links for the CB.'
COLLATE='utf8_unicode_ci'
ENGINE=InnoDB;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `bot_reported_char_data`;
CREATE TABLE IF NOT EXISTS `bot_reported_char_data` (
`botId` INT UNSIGNED NOT NULL DEFAULT 0,
`reporterId` INT UNSIGNED NOT NULL DEFAULT 0,
`reportDate` BIGINT(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`botId`, `reporterId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `buylists`;
CREATE TABLE IF NOT EXISTS `buylists` (
`buylist_id` INT UNSIGNED,
`item_id` INT UNSIGNED,
`count` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`next_restock_time` BIGINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`buylist_id`, `item_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,25 @@
DROP TABLE IF EXISTS `castle`;
CREATE TABLE IF NOT EXISTS `castle` (
`id` INT NOT NULL DEFAULT 0,
`name` varchar(25) NOT NULL,
`side` enum('NEUTRAL','LIGHT','DARK') DEFAULT 'NEUTRAL' NOT NULL,
`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,
`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','NEUTRAL',0,0,'true',0,'false',0),
(2,'Dion','NEUTRAL',0,0,'true',0,'false',0),
(3,'Giran','NEUTRAL',0,0,'true',0,'false',0),
(4,'Oren','NEUTRAL',0,0,'true',0,'false',0),
(5,'Aden','NEUTRAL',0,0,'true',0,'false',0),
(6,'Innadril','NEUTRAL',0,0,'true',0,'false',0),
(7,'Goddard','NEUTRAL',0,0,'true',0,'false',0),
(8,'Rune','NEUTRAL',0,0,'true',0,'false',0),
(9,'Schuttgart','NEUTRAL',0,0,'true',0,'false',0);

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `castle_doorupgrade`;
CREATE TABLE IF NOT EXISTS `castle_doorupgrade` (
`doorId` int(8) unsigned NOT NULL DEFAULT '0',
`ratio` tinyint(3) unsigned NOT NULL DEFAULT '0',
`castleId` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`doorId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `castle_functions`;
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',
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`castle_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `castle_manor_procure`;
CREATE TABLE IF NOT EXISTS `castle_manor_procure` (
`castle_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`crop_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`start_amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`price` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`reward_type` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
`next_period` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (`castle_id`,`crop_id`,`next_period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `castle_manor_production`;
CREATE TABLE IF NOT EXISTS `castle_manor_production` (
`castle_id` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`seed_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`start_amount` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`price` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`next_period` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (`castle_id`, `seed_id`, `next_period`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `castle_trapupgrade`;
CREATE TABLE IF NOT EXISTS `castle_trapupgrade` (
`castleId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`towerIndex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`level` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`towerIndex`,`castleId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `character_contacts`;
CREATE TABLE IF NOT EXISTS `character_contacts` (
charId INT UNSIGNED NOT NULL DEFAULT 0,
contactId INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`contactId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `character_daily_rewards`;
CREATE TABLE IF NOT EXISTS `character_daily_rewards` (
`charId` int(10) UNSIGNED NOT NULL ,
`rewardId` int(3) UNSIGNED NOT NULL ,
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 ,
`progress` int UNSIGNED NOT NULL DEFAULT 0 ,
`lastCompleted` bigint UNSIGNED NOT NULL ,
PRIMARY KEY (`charId`, `rewardId`)
);

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `character_friends`;
CREATE TABLE IF NOT EXISTS `character_friends` (
`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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_hennas`;
CREATE TABLE IF NOT EXISTS `character_hennas` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`symbol_id` INT,
`slot` INT NOT NULL DEFAULT 0,
`class_index` INT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`slot`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `character_instance_time`;
CREATE TABLE IF NOT EXISTS `character_instance_time` (
`charId` INT UNSIGNED NOT NULL DEFAULT '0',
`instanceId` int(3) NOT NULL DEFAULT '0',
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `character_item_reuse_save`;
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,
`reuseDelay` INT(8) NOT NULL DEFAULT 0,
`systime` BIGINT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`itemId`,`itemObjId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `character_macroses`;
CREATE TABLE IF NOT EXISTS `character_macroses` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`id` INT NOT NULL DEFAULT 0,
`icon` INT,
`name` VARCHAR(40) ,
`descr` VARCHAR(80) ,
`acronym` VARCHAR(4) ,
`commands` VARCHAR(500) ,
PRIMARY KEY (`charId`,`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,5 @@
DROP TABLE IF EXISTS `character_mentees`;
CREATE TABLE IF NOT EXISTS `character_mentees` (
`charId` int(10) unsigned NOT NULL DEFAULT '0',
`mentorId` int(10) unsigned NOT NULL DEFAULT '0'
);

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_offline_trade`;
CREATE TABLE IF NOT EXISTS `character_offline_trade` (
`charId` int(10) unsigned NOT NULL,
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
`type` tinyint(4) NOT NULL DEFAULT '0',
`title` varchar(50) DEFAULT NULL,
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `character_offline_trade_items`;
CREATE TABLE IF NOT EXISTS `character_offline_trade_items` (
`charId` int(10) unsigned NOT NULL,
`item` int(10) unsigned NOT NULL DEFAULT '0', -- itemId(for buy) & ObjectId(for sell)
`count` bigint(20) unsigned NOT NULL DEFAULT '0',
`price` bigint(20) unsigned NOT NULL DEFAULT '0',
KEY `charId` (`charId`),
KEY `item` (`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `character_pet_skills_save`;
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,
`skill_sub_level` INT(4) NOT NULL DEFAULT '0',
`remaining_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;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `character_premium_items`;
CREATE TABLE IF NOT EXISTS `character_premium_items` (
`charId` int(11) NOT NULL,
`itemNum` int(11) NOT NULL,
`itemId` int(11) NOT NULL,
`itemCount` bigint(20) unsigned NOT NULL,
`itemSender` varchar(50) NOT NULL,
KEY `charId` (`charId`),
KEY `itemNum` (`itemNum`),
KEY `itemId` (`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `character_quests`;
CREATE TABLE IF NOT EXISTS `character_quests` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`name` VARCHAR(60) NOT NULL DEFAULT '',
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
`class_index` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`,`name`,`var`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_recipebook`;
CREATE TABLE IF NOT EXISTS `character_recipebook` (
`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,
PRIMARY KEY (`id`,`charId`,`classIndex`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_recipeshoplist`;
CREATE TABLE IF NOT EXISTS `character_recipeshoplist` (
`charId` int(10) unsigned NOT NULL DEFAULT 0,
`recipeId` int(11) UNSIGNED NOT NULL DEFAULT 0,
`price` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`index` tinyint(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`recipeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `character_reco_bonus`;
CREATE TABLE IF NOT EXISTS `character_reco_bonus` (
`charId` int(10) unsigned NOT NULL,
`rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0',
`rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0',
`time_left` bigint(13) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `character_shortcuts`;
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,
`type` decimal(3) ,
`shortcut_id` decimal(16) ,
`level` SMALLINT UNSIGNED ,
`sub_level` INT(4) 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;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `character_skills`;
CREATE TABLE IF NOT EXISTS `character_skills` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(4) NOT NULL DEFAULT 1,
`skill_sub_level` INT(4) NOT NULL DEFAULT '0',
`class_index` INT(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`,`skill_id`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,14 @@
DROP TABLE IF EXISTS `character_skills_save`;
CREATE TABLE IF NOT EXISTS `character_skills_save` (
`charId` INT NOT NULL DEFAULT 0,
`skill_id` INT NOT NULL DEFAULT 0,
`skill_level` INT(4) NOT NULL DEFAULT 1,
`skill_sub_level` INT(4) NOT NULL DEFAULT '0',
`remaining_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,
PRIMARY KEY (`charId`,`skill_id`,`skill_level`,`class_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `character_subclasses`;
CREATE TABLE IF NOT EXISTS `character_subclasses` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`class_id` int(2) NOT NULL DEFAULT 0,
`exp` bigint(20) NOT NULL DEFAULT 0,
`sp` bigint(10) NOT NULL DEFAULT 0,
`level` int(2) NOT NULL DEFAULT 40,
`vitality_points` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`class_index` int(1) NOT NULL DEFAULT 0,
`dual_class` BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY (`charId`,`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `character_summon_skills_save`;
CREATE TABLE IF NOT EXISTS `character_summon_skills_save` (
`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,
`skill_sub_level` INT(4) NOT NULL DEFAULT '0',
`remaining_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;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `character_summons`;
CREATE TABLE IF NOT EXISTS `character_summons` (
`ownerId` int(10) unsigned NOT NULL,
`summonId` int(10) unsigned NOT NULL,
`summonSkillId` int(10) unsigned NOT NULL,
`curHp` int(9) unsigned DEFAULT '0',
`curMp` int(9) unsigned DEFAULT '0',
`time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`ownerId`,`summonSkillId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `character_tpbookmark`;
CREATE TABLE IF NOT EXISTS `character_tpbookmark` (
`charId` int(20) NOT NULL,
`Id` int(20) NOT NULL,
`x` int(20) NOT NULL,
`y` int(20) NOT NULL,
`z` int(20) NOT NULL,
`icon` int(20) NOT NULL,
`tag` varchar(50) DEFAULT NULL,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`charId`,`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `character_variables`;
CREATE TABLE IF NOT EXISTS `character_variables` (
`charId` int(10) UNSIGNED NOT NULL,
`var` varchar(255) NOT NULL,
`val` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,63 @@
CREATE TABLE IF NOT EXISTS `characters` (
`account_name` VARCHAR(45) DEFAULT NULL,
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`char_name` VARCHAR(35) NOT NULL,
`level` TINYINT UNSIGNED DEFAULT NULL,
`maxHp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curHp` MEDIUMINT UNSIGNED DEFAULT NULL,
`maxCp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curCp` MEDIUMINT UNSIGNED DEFAULT NULL,
`maxMp` MEDIUMINT UNSIGNED DEFAULT NULL,
`curMp` MEDIUMINT UNSIGNED DEFAULT NULL,
`face` TINYINT UNSIGNED DEFAULT NULL,
`hairStyle` TINYINT UNSIGNED DEFAULT NULL,
`hairColor` TINYINT UNSIGNED DEFAULT NULL,
`sex` TINYINT UNSIGNED DEFAULT NULL,
`heading` MEDIUMINT DEFAULT NULL,
`x` MEDIUMINT DEFAULT NULL,
`y` MEDIUMINT DEFAULT NULL,
`z` MEDIUMINT DEFAULT NULL,
`exp` BIGINT UNSIGNED DEFAULT 0,
`expBeforeDeath` BIGINT UNSIGNED DEFAULT 0,
`sp` BIGINT(10) UNSIGNED NOT NULL DEFAULT 0,
`reputation` INT DEFAULT NULL,
`fame` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`raidbossPoints` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`pvpkills` SMALLINT UNSIGNED DEFAULT NULL,
`pkkills` SMALLINT UNSIGNED DEFAULT NULL,
`clanid` INT UNSIGNED DEFAULT NULL,
`race` TINYINT UNSIGNED DEFAULT NULL,
`classid` TINYINT UNSIGNED DEFAULT NULL,
`base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`deletetime` bigint(13) unsigned NOT NULL DEFAULT '0',
`cancraft` TINYINT UNSIGNED DEFAULT NULL,
`title` VARCHAR(21) DEFAULT NULL,
`title_color` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0xECF9A2,
`accesslevel` MEDIUMINT DEFAULT 0,
`online` TINYINT UNSIGNED DEFAULT NULL,
`onlinetime` INT DEFAULT NULL,
`char_slot` TINYINT UNSIGNED DEFAULT NULL,
`lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0',
`clan_privs` INT UNSIGNED DEFAULT 0,
`wantspeace` TINYINT UNSIGNED DEFAULT 0,
`power_grade` TINYINT UNSIGNED DEFAULT NULL,
`nobless` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`subpledge` SMALLINT NOT NULL DEFAULT 0,
`lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`apprentice` INT UNSIGNED NOT NULL DEFAULT 0,
`sponsor` INT UNSIGNED NOT NULL DEFAULT 0,
`clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`vitality_points` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
`createDate` date NOT NULL DEFAULT '2015-01-01',
`language` VARCHAR(2) DEFAULT NULL,
`faction` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`pccafe_points` int(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`charId`),
KEY `account_name` (`account_name`),
KEY `char_name` (`char_name`),
KEY `clanid` (`clanid`),
KEY `online` (`online`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,26 @@
DROP TABLE IF EXISTS `clan_data`;
CREATE TABLE IF NOT EXISTS `clan_data` (
`clan_id` INT NOT NULL DEFAULT 0,
`clan_name` varchar(45) ,
`clan_level` INT,
`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,
`ally_penalty_expiry_time` bigint(13) unsigned 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',
`new_leader_id` INT(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`clan_id`),
KEY `ally_id` (`ally_id`),
KEY `leader_id` (`leader_id`),
KEY `auction_bid_at` (`auction_bid_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `clan_notices`;
CREATE TABLE IF NOT EXISTS `clan_notices` (
`clan_id` INT NOT NULL DEFAULT 0,
`enabled` enum('true','false') DEFAULT 'false' NOT NULL,
`notice` TEXT NOT NULL,
PRIMARY KEY (`clan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `clan_privs`;
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,
PRIMARY KEY (`clan_id`,`rank`,`party`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `clan_skills`;
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',
PRIMARY KEY (`clan_id`,`skill_id`,`sub_pledge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `clan_subpledges`;
CREATE TABLE IF NOT EXISTS `clan_subpledges` (
`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',
PRIMARY KEY (`clan_id`,`sub_pledge_id`),
KEY `leader_id` (`leader_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `clan_variables`;
CREATE TABLE IF NOT EXISTS `clan_variables` (
`clanId` int(10) UNSIGNED NOT NULL,
`var` varchar(255) NOT NULL,
`val` text NOT NULL,
KEY `clanId` (`clanId`)
);

View File

@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `clan_wars`;
CREATE TABLE IF NOT EXISTS `clan_wars` (
`clan1` varchar(35) NOT NULL DEFAULT '',
`clan2` varchar(35) NOT NULL DEFAULT '',
`clan1Kill` int(11) NOT NULL DEFAULT 0,
`clan2Kill` int(11) NOT NULL DEFAULT 0,
`winnerClan` varchar(35) NOT NULL DEFAULT '0',
`startTime` bigint(13) NOT NULL DEFAULT 0,
`endTime` bigint(13) NOT NULL DEFAULT 0,
`state` tinyint(4) NOT NULL DEFAULT 0,
KEY `clan1` (`clan1`),
KEY `clan2` (`clan2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,26 @@
DROP TABLE IF EXISTS `pledge_applicant`;
CREATE TABLE IF NOT EXISTS `pledge_applicant` (
`charId` int(10) NOT NULL,
`clanId` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
`message` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`charId`,`clanId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `pledge_recruit`;
CREATE TABLE IF NOT EXISTS `pledge_recruit` (
`clan_id` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
`information` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`detailed_information` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`application_type` tinyint(1) NOT NULL,
`recruit_type` tinyint(1) NOT NULL,
PRIMARY KEY (`clan_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `pledge_waiting_list`;
CREATE TABLE IF NOT EXISTS `pledge_waiting_list` (
`char_id` int(10) NOT NULL,
`karma` tinyint(1) NOT NULL,
PRIMARY KEY (`char_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `clanhall`;
CREATE TABLE IF NOT EXISTS `clanhall` (
`id` int(11) NOT NULL DEFAULT '0',
`ownerId` int(11) NOT NULL DEFAULT '0',
`paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY `id` (`id`),
KEY `ownerId` (`ownerId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `clanhall_auctions_bidders`;
CREATE TABLE IF NOT EXISTS `clanhall_auctions_bidders` (
`clanHallId` INT UNSIGNED NOT NULL DEFAULT 0,
`clanId` INT UNSIGNED NOT NULL DEFAULT 0,
`bid` BIGINT UNSIGNED NOT NULL DEFAULT 0,
`bidTime` BIGINT(13) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY( `clanHallId`, `clanId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `commission_items`;
CREATE TABLE IF NOT EXISTS `commission_items` (
`commission_id` BIGINT NOT NULL AUTO_INCREMENT,
`item_object_id` INT NOT NULL,
`price_per_unit` BIGINT NOT NULL,
`start_time` TIMESTAMP NOT NULL,
`duration_in_days` TINYINT NOT NULL,
PRIMARY KEY (`commission_id`)
) ENGINE=InnoDB;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `crests`;
CREATE TABLE IF NOT EXISTS `crests` (
`crest_id` INT,
`data` VARBINARY(2176) NOT NULL,
`type` TINYINT NOT NULL,
PRIMARY KEY(`crest_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `cursed_weapons`;
CREATE TABLE IF NOT EXISTS `cursed_weapons` (
`itemId` INT,
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`playerReputation` INT DEFAULT 0,
`playerPkKills` INT DEFAULT 0,
`nbKills` INT DEFAULT 0,
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`itemId`),
KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `custom_teleport`;
CREATE TABLE IF NOT EXISTS `custom_teleport` (
`Description` varchar(75) DEFAULT NULL,
`id` mediumint(7) unsigned NOT NULL DEFAULT '0',
`loc_x` mediumint(6) DEFAULT NULL,
`loc_y` mediumint(6) DEFAULT NULL,
`loc_z` mediumint(6) DEFAULT NULL,
`price` int(10) unsigned DEFAULT NULL,
`fornoble` tinyint(1) NOT NULL DEFAULT '0',
`itemId` smallint(5) unsigned NOT NULL DEFAULT '57',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `event_schedulers`;
CREATE TABLE IF NOT EXISTS `event_schedulers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`eventName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`schedulerName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`lastRun` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `eventName_schedulerName` (`eventName`,`schedulerName`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

View File

@@ -0,0 +1,37 @@
DROP TABLE IF EXISTS `fort`;
CREATE TABLE IF NOT EXISTS `fort` (
`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,
`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),
(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);

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `fort_doorupgrade`;
CREATE TABLE IF NOT EXISTS `fort_doorupgrade` (
`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',
PRIMARY KEY (`doorId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `fort_functions`;
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',
`endTime` bigint(13) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`fort_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,366 @@
DROP TABLE IF EXISTS `fort_spawnlist`;
CREATE TABLE `fort_spawnlist` (
`fortId` tinyint(3) unsigned NOT NULL DEFAULT '0',
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`npcId` smallint(5) unsigned NOT NULL DEFAULT '0',
`x` mediumint(6) NOT NULL DEFAULT '0',
`y` mediumint(6) NOT NULL DEFAULT '0',
`z` mediumint(6) NOT NULL DEFAULT '0',
`heading` mediumint(6) NOT NULL DEFAULT '0',
`spawnType` tinyint(1) unsigned NOT NULL DEFAULT '0', -- 0-always spawned, 1-despawned during siege, 2-despawned 10min before siege, 3-spawned after fort taken
`castleId` tinyint(1) unsigned NOT NULL DEFAULT '0', -- Castle ID for Special Envoys
PRIMARY KEY (`id`),
KEY `id` (`fortId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `fort_spawnlist` VALUES
(101,null,35658,-53273,156650,-1896,62000,0,0),
(101,null,35659,-58672,154703,-2688,0,2,0),
(101,null,35660,-52128,157752,-2024,29864,1,0),
(101,null,35661,-52435,155188,-1768,20000,1,0),
(101,null,35662,-53944,155433,-2024,7304,1,0),
(101,null,35664,-51269,157584,-2048,39999,0,0),
(101,null,35666,-53422,158079,-2055,51999,0,0),
(101,null,35667,-50640,156000,-2056,63088,0,0),
(101,null,35667,-50938,155810,-2056,30136,0,0),
(101,null,35668,-54608,157216,-2048,62984,0,0),
(101,null,35668,-54896,157008,-2048,29696,0,0),
(101,null,35669,-53351,156814,-2048,30248,0,0),
(101,null,35669,-52160,156176,-2048,62376,0,0),
(101,null,35669,-52272,156208,-2048,29344,0,0),
(101,null,35669,-53240,156729,-2048,62712,0,0),
(101,null,36457,-53768,158042,-2048,62264,0,0),
(101,null,36393,-52680,156525,-2051,30000,3,1),
(102,null,35689,-22256,219808,-3072,32904,0,0),
(102,null,35690,-28169,216864,-3544,0,2,0),
(102,null,35691,-22992,218160,-3208,0,1,0),
(102,null,35692,-21328,218864,-2952,0,1,0),
(102,null,35694,-21520,221504,-3208,45328,1,0),
(102,null,35696,-24640,220960,-3232,60060,0,0),
(102,null,35698,-24128,221488,-3232,54428,0,0),
(102,null,35699,-20116,219724,-3232,0,0,0),
(102,null,35699,-20327,220028,-3232,33316,0,0),
(102,null,35700,-25038,219733,-3232,0,0,0),
(102,null,35700,-25246,220033,-3240,32608,0,0),
(102,null,35701,-23248,219696,-3232,0,0,0),
(102,null,35701,-23360,219904,-3232,32612,0,0),
(102,null,35701,-22176,219907,-3232,33500,0,0),
(102,null,35701,-22048,219696,-3232,0,0,0),
(102,null,36458,-23885,221728,-3232,32672,0,0),
(102,null,36394,-22368,219776,-3080,0,3,1),
(103,null,35727,16885,188473,-2760,42916,0,0),
(103,null,35728,19408,189422,-3136,0,2,0),
(103,null,35729,17984,187536,-2896,45056,1,0),
(103,null,35730,15152,188128,-2640,0,1,0),
(103,null,35731,16016,189520,-2888,0,1,0),
(103,null,35733,17008,186240,-2920,16384,0,0),
(103,null,35735,18304,188604,-2920,36864,0,0),
(103,null,35736,18048,189792,-2920,10324,0,0),
(103,null,35736,17632,189760,-2920,45348,0,0),
(103,null,35737,15282,186259,-2920,43140,0,0),
(103,null,35737,15728,186352,-2920,12288,0,0),
(103,null,35738,16784,188544,-2920,43884,0,0),
(103,null,35738,17060,188551,-2920,11484,0,0),
(103,null,35738,16080,187568,-2920,42884,0,0),
(103,null,35738,16368,187568,-2920,10432,0,0),
(103,null,36459,18397,188339,-2920,42948,0,0),
(103,null,36395,16772,188253,-2768,10232,3,2),
(104,null,35758,126080,123808,-2424,48972,0,0),
(104,null,35759,123383,121093,-2864,0,2,0),
(104,null,35760,124299,123614,-2552,49192,1,0),
(104,null,35761,124768,121856,-2296,0,1,0),
(104,null,35763,124768,124640,-2552,54480,1,0),
(104,null,35765,127920,124384,-2584,36616,0,0),
(104,null,35767,128106,122635,-2588,33036,0,0),
(104,null,35768,126208,120768,-2584,16384,0,0),
(104,null,35768,125904,120544,-2584,49024,0,0),
(104,null,35769,125920,125483,-2584,49024,0,0),
(104,null,35769,126208,125680,-2584,16384,0,0),
(104,null,35770,126186,122800,-2584,16384,0,0),
(104,null,35770,125974,122689,-2584,49024,0,0),
(104,null,35770,125974,123879,-2584,49024,0,0),
(104,null,35770,126177,124007,-2584,16384,0,0),
(104,null,36460,128133,122310,-2584,48972,0,0),
(104,null,36396,126111,123738,-2432,16248,3,3),
(105,null,35796,72544,4608,-2888,56456,0,0),
(105,null,35797,75280,1387,-3268,0,2,0),
(105,null,35798,73788,5479,-3016,55136,1,0),
(105,null,35799,72400,2896,-2760,0,1,0),
(105,null,35800,71264,4144,-3008,0,1,0),
(105,null,35802,74736,4160,-3040,34596,0,0),
(105,null,35804,73119,6121,-3047,46480,0,0),
(105,null,35805,71536,5808,-3040,56456,0,0),
(105,null,35805,71634,6146,-3040,23840,0,0),
(105,null,35806,74256,2960,-3040,23657,0,0),
(105,null,35806,74164,2606,-3040,56453,0,0),
(105,null,35807,73281,3925,-3040,23840,0,0),
(105,null,35807,73194,3703,-3040,56456,0,0),
(105,null,35807,72430,4624,-3040,56456,0,0),
(105,null,35807,72532,4853,-3040,23840,0,0),
(105,null,36461,73470,6019,-3040,56456,0,0),
(105,null,36397,72619,4569,-2889,23840,3,4),
(106,null,35827,154544,55600,-3096,58368,0,0),
(106,null,35828,159377,52403,-3312,0,2,0),
(106,null,35829,155576,56592,-3224,59224,1,0),
(106,null,35830,154704,53856,-2968,0,1,0),
(106,null,35831,153328,54848,-3216,5512,1,0),
(106,null,35833,156768,55552,-3256,32252,0,0),
(106,null,35835,154800,57146,-3257,49096,0,0),
(106,null,35836,153312,56544,-3256,58368,0,0),
(106,null,35836,153328,56896,-3256,25416,0,0),
(106,null,35837,156496,53920,-3256,58368,0,0),
(106,null,35837,156528,54272,-3256,25416,0,0),
(106,null,35838,155385,55045,-3248,25416,0,0),
(106,null,35838,155328,54800,-3256,58368,0,0),
(106,null,35838,154407,55563,-3248,58368,0,0),
(106,null,35838,154468,55805,-3256,25416,0,0),
(106,null,36462,155166,57115,-3256,58368,0,0),
(106,null,36398,154592,55527,-3098,25416,3,5),
(107,null,35858,189968,40224,-3248,0,0,0),
(107,null,35859,190423,43540,-3656,0,2,0),
(107,null,35860,188160,39920,-3376,49284,1,0),
(107,null,35861,188624,38240,-3128,0,1,0),
(107,null,35863,188626,41066,-3376,57140,1,0),
(107,null,35865,191760,40752,-3408,39112,0,0),
(107,null,35867,190992,41376,-3412,45180,0,0),
(107,null,35868,189776,41872,-3408,49148,0,0),
(107,null,35868,190048,42064,-3408,16316,0,0),
(107,null,35869,189776,36960,-3408,49148,0,0),
(107,null,35869,190048,37152,-3408,16316,0,0),
(107,null,35870,189812,39071,-3408,49148,0,0),
(107,null,35870,190044,39197,-3408,16316,0,0),
(107,null,35870,189825,40269,-3408,49148,0,0),
(107,null,35870,190048,40400,-3408,16316,0,0),
(107,null,36463,190798,41513,-3408,49148,0,0),
(107,null,36399,189984,40112,-3254,0,3,5),
(108,null,35896,118827,205186,-3176,38352,0,0),
(108,null,35897,114436,202528,-3408,0,2,0),
(108,null,35898,118880,203568,-3304,5396,1,0),
(108,null,35899,117216,205648,-3048,0,1,0),
(108,null,35900,118560,206560,-3304,48872,1,0),
(108,null,35902,120160,204256,-3336,30272,0,0),
(108,null,35904,118138,203228,-3336,17176,0,0),
(108,null,35905,120113,205939,-3336,38352,0,0),
(108,null,35905,120407,205831,-3336,5396,0,0),
(108,null,35906,116741,203878,-3336,5396,0,0),
(108,null,35906,116460,203986,-3336,38352,0,0),
(108,null,35907,117785,204712,-3336,38352,0,0),
(108,null,35907,117980,204551,-3328,5396,0,0),
(108,null,35907,118832,205280,-3328,38352,0,0),
(108,null,35907,119040,205120,-3336,5396,0,0),
(108,null,36464,117889,203183,-3336,38352,0,0),
(108,null,36400,118785,205138,-3177,5396,3,6),
(109,null,35927,158720,-70032,-2704,59020,0,0),
(109,null,35928,161876,-73407,-2984,0,2,0),
(109,null,35929,157968,-71659,-2832,59020,1,0),
(109,null,35930,159664,-72224,-2584,0,1,0),
(109,null,35932,157312,-70640,-2832,0,1,0),
(109,null,35934,159312,-68240,-2864,49028,0,0),
(109,null,35936,160832,-69056,-2866,42144,0,0),
(109,null,35937,157293,-69255,-2864,59020,0,0),
(109,null,35937,157280,-68912,-2864,27244,0,0),
(109,null,35938,161373,-71636,-2864,27244,0,0),
(109,null,35938,161371,-71992,-2864,59020,0,0),
(109,null,35939,158672,-69856,-2864,27244,0,0),
(109,null,35939,158635,-70096,-2864,59020,0,0),
(109,null,35939,159632,-70761,-2864,59020,0,0),
(109,null,35939,159670,-70518,-2864,27244,0,0),
(109,null,36465,161130,-69197,-2864,59020,0,0),
(109,null,36401,158776,-70042,-2708,27244,3,7),
(110,null,35965,70062,-60958,-2624,45292,0,0),
(110,null,35966,71436,-58182,-2904,0,2,0),
(110,null,35967,71248,-62352,-2752,12388,1,0),
(110,null,35968,71264,-60512,-2504,0,1,0),
(110,null,35970,68688,-59648,-2752,56012,1,0),
(110,null,35972,70144,-63584,-2784,18252,0,0),
(110,null,35974,70944,-63168,-2784,25448,0,0),
(110,null,35975,68995,-63605,-2784,12388,0,0),
(110,null,35975,68668,-63690,-2784,45292,0,0),
(110,null,35976,70884,-59059,-2784,12388,0,0),
(110,null,35976,70535,-59147,-2784,45292,0,0),
(110,null,35977,70194,-60871,-2784,12388,0,0),
(110,null,35977,69936,-60882,-2784,45292,0,0),
(110,null,35977,69736,-61986,-2784,12388,0,0),
(110,null,35977,69472,-61984,-2784,45292,0,0),
(110,null,36466,71273,-62968,-2784,45292,0,0),
(110,null,36433,70058,-61012,-2630,12388,3,8),
(111,null,36003,109024,-141072,-2800,62612,0,0),
(111,null,36004,105447,-139845,-3120,0,2,0),
(111,null,36005,109600,-139735,-2928,62612,1,0),
(111,null,36006,109856,-142640,-2672,0,1,0),
(111,null,36007,108223,-142209,-2920,8524,1,0),
(111,null,36009,108544,-139488,-2952,55116,0,0),
(111,null,36011,110859,-139960,-2952,40492,0,0),
(111,null,36012,111383,-141559,-2960,29804,0,0),
(111,null,36012,111494,-141882,-2952,62612,0,0),
(111,null,36013,107424,-140362,-2960,29804,0,0),
(111,null,36013,107538,-140682,-2960,62612,0,0),
(111,null,36014,110078,-141517,-2952,62612,0,0),
(111,null,36014,108896,-140928,-2952,29804,0,0),
(111,null,36014,108931,-141177,-2952,62612,0,0),
(111,null,36014,110048,-141271,-2952,29804,0,0),
(111,null,36467,111163,-140542,-2952,62612,0,0),
(111,null,36434,109080,-141070,-2801,29804,3,9),
(112,null,36034,5136,149728,-2728,0,0,0),
(112,null,36035,14186,149947,-3352,0,2,0),
(112,null,36036,7006,148242,-2856,32768,1,0),
(112,null,36037,6528,151872,-2608,0,1,0),
(112,null,36039,4384,150992,-2856,0,1,0),
(112,null,36041,5968,146864,-2888,19216,0,0),
(112,null,36043,4320,150032,-2892,0,0,0),
(112,null,36044,7345,150866,-2888,32768,0,0),
(112,null,36044,7552,150601,-2888,0,0,0),
(112,null,36045,3905,148865,-2888,32768,0,0),
(112,null,36045,4101,148594,-2888,0,0,0),
(112,null,36046,6257,149635,-2888,0,0,0),
(112,null,36046,6165,149868,-2888,32768,0,0),
(112,null,36046,5065,149635,-2888,0,0,0),
(112,null,36046,4962,149869,-2888,32768,0,0),
(112,null,36468,4326,149651,-2888,0,0,0),
(112,null,36435,5217,149697,-2736,32768,3,1),
(112,null,36436,5217,149754,-2736,32768,3,2),
(114,null,36110,60379,139950,-1592,46872,0,0),
(114,null,36111,58314,136319,-2000,0,2,0),
(114,null,36112,61864,139257,-1728,46896,1,0),
(114,null,36113,58480,139648,-1464,0,1,0),
(114,null,36114,59436,140834,-1720,47296,1,0),
(114,null,36116,60576,138064,-1752,16532,0,0),
(114,null,36118,60400,140688,-1757,48196,0,0),
(114,null,36119,61696,140832,-1752,14120,0,0),
(114,null,36119,61395,140689,-1752,46936,0,0),
(114,null,36120,58828,138054,-1752,46872,0,0),
(114,null,36120,59137,138189,-1752,14120,0,0),
(114,null,36121,60265,139991,-1752,46872,0,0),
(114,null,36121,60522,140048,-1752,14480,0,0),
(114,null,36121,60042,138817,-1752,46872,0,0),
(114,null,36121,60285,138872,-1752,14480,0,0),
(114,null,36470,60145,140737,-1752,46872,0,0),
(114,null,36439,60391,139884,-1600,14480,3,2),
(114,null,36440,60343,139892,-1600,14480,3,3),
(115,null,36141,11537,95509,-3264,49151,0,0),
(115,null,36142,9318,92253,-3536,0,2,0),
(115,null,36143,9472,94992,-3392,0,1,0),
(115,null,36144,13184,94928,-3144,0,1,0),
(115,null,36145,12829,96214,-3392,49152,1,0),
(115,null,36147,10112,93760,-3424,16384,0,0),
(115,null,36149,9485,96089,-3424,57220,0,0),
(115,null,36150,12633,93599,-3424,16384,0,0),
(115,null,36150,12365,93398,-3424,49151,0,0),
(115,null,36151,10615,96684,-3424,16384,0,0),
(115,null,36151,10344,96478,-3424,49151,0,0),
(115,null,36152,11654,95634,-3424,16384,0,0),
(115,null,36152,11422,95531,-3424,49151,0,0),
(115,null,36152,11660,94437,-3424,16384,0,0),
(115,null,36152,11420,94333,-3424,49151,0,0),
(115,null,36471,9203,95842,-3424,49151,0,0),
(115,null,36441,11549,95447,-3270,16384,3,2),
(115,null,36442,11517,95447,-3270,16384,3,4),
(116,null,36172,79686,91280,-2720,37660,0,0),
(116,null,36173,74810,90814,-3344,0,2,0),
(116,null,36174,77262,91704,-2856,5112,1,0),
(116,null,36175,79440,88752,-2600,0,1,0),
(116,null,36177,80929,90510,-2856,40192,1,0),
(116,null,36179,77600,93440,-2880,57688,0,0),
(116,null,36181,76848,92624,-2880,62456,0,0),
(116,null,36182,80031,92773,-2880,37568,0,0),
(116,null,36182,80329,92637,-2880,5012,0,0),
(116,null,36183,78231,89249,-2880,5012,0,0),
(116,null,36183,77927,89390,-2880,37920,0,0),
(116,null,36184,78812,90685,-2880,5012,0,0),
(116,null,36184,79666,91408,-2880,37660,0,0),
(116,null,36184,78611,90849,-2880,37660,0,0),
(116,null,36184,79865,91249,-2880,5012,0,0),
(116,null,36472,76880,92931,-2880,37660,0,0),
(116,null,36443,79618,91276,-2728,5012,3,4),
(116,null,36444,79641,91231,-2728,5012,3,3),
(117,null,36210,111368,-14624,-832,49151,0,0),
(117,null,36211,114221,-18762,-1768,0,2,0),
(117,null,36212,109872,-16624,-968,16384,1,0),
(117,null,36213,113481,-16058,-712,0,1,0),
(117,null,36215,112601,-13933,-960,49152,1,0),
(117,null,36217,108496,-15504,-992,0,0,0),
(117,null,36219,108880,-16492,-992,8356,0,0),
(117,null,36220,110219,-13636,-992,49151,0,0),
(117,null,36220,110478,-13435,-992,16384,0,0),
(117,null,36221,112216,-17087,-992,49151,0,0),
(117,null,36221,112482,-16883,-992,16384,0,0),
(117,null,36222,111248,-15800,-992,49151,0,0),
(117,null,36222,111487,-15701,-992,16384,0,0),
(117,null,36222,111253,-14604,-992,49151,0,0),
(117,null,36222,111486,-14503,-992,16384,0,0),
(117,null,36473,108614,-16342,-992,49151,0,0),
(117,null,36445,111323,-14680,-839,16384,3,5),
(117,null,36446,111368,-14680,-839,16384,3,4),
(117,null,36447,111412,-14681,-839,16384,3,7),
(118,null,36248,125246,95621,-1976,49151,0,0),
(118,null,36249,121072,93215,-2736,0,2,0),
(118,null,36250,122688,95760,-2112,0,1,0),
(118,null,36251,123232,94400,-1856,0,1,0),
(118,null,36253,124305,96528,-2104,49151,1,0),
(118,null,36255,126384,93728,-2144,16384,0,0),
(118,null,36257,127968,95328,-2144,32768,0,0),
(118,null,36258,124357,93571,-2144,16384,0,0),
(118,null,36258,124080,93379,-2144,49151,0,0),
(118,null,36259,126328,97008,-2144,16384,0,0),
(118,null,36259,126064,96813,-2144,49151,0,0),
(118,null,36260,125128,94482,-2144,49151,0,0),
(118,null,36260,125364,95782,-2144,16384,0,0),
(118,null,36260,125131,95677,-2136,49151,0,0),
(118,null,36260,125365,94582,-2136,16384,0,0),
(118,null,36474,128023,94941,-2144,49151,0,0),
(118,null,36448,125266,95558,-1984,16384,3,5),
(118,null,36449,125226,95559,-1984,16384,3,3),
(119,null,36286,72834,186402,-2424,54844,0,0),
(119,null,36287,71692,188004,-2616,0,2,0),
(119,null,36288,71392,184720,-2552,5528,1,0),
(119,null,36289,74288,186912,-2296,0,1,0),
(119,null,36290,71542,186410,-2552,55088,1,0),
(119,null,36292,74832,185648,-2584,24516,0,0),
(119,null,36294,70768,185632,-2584,63668,0,0),
(119,null,36295,73081,188000,-2584,22248,0,0),
(119,null,36295,72974,187690,-2584,54844,0,0),
(119,null,36296,73127,184321,-2584,22248,0,0),
(119,null,36296,73008,184000,-2584,54844,0,0),
(119,null,36297,73523,185589,-2576,22248,0,0),
(119,null,36297,73376,185380,-2584,54844,0,0),
(119,null,36297,72713,186369,-2576,54844,0,0),
(119,null,36297,72851,186593,-2584,22248,0,0),
(119,null,36475,70720,185261,-2584,54844,0,0),
(119,null,36450,72880,186364,-2425,22248,3,6),
(119,null,36451,72850,186346,-2425,22248,3,3),
(120,null,36317,100213,-55318,-488,0,0,0),
(120,null,36318,104686,-57581,-944,0,2,0),
(120,null,36319,100688,-57440,-616,16384,1,0),
(120,null,36320,100752,-53664,-360,0,1,0),
(120,null,36322,99484,-54027,-616,0,1,0),
(120,null,36324,101952,-56752,-640,32768,0,0),
(120,null,36326,99600,-57360,-648,8476,0,0),
(120,null,36327,102103,-54225,-640,32768,0,0),
(120,null,36327,102308,-54490,-640,0,0,0),
(120,null,36328,99016,-56242,-632,32768,0,0),
(120,null,36328,99229,-56507,-640,0,0,0),
(120,null,36329,101363,-55435,-640,0,0,0),
(120,null,36329,101268,-55199,-640,32768,0,0),
(120,null,36329,100168,-55434,-640,0,0,0),
(120,null,36329,100064,-55200,-640,32768,0,0),
(120,null,36476,99834,-57649,-648,0,0,0),
(120,null,36452,100280,-55302,-489,32768,3,8),
(120,null,36453,100280,-55334,-489,32768,3,7),
(121,null,36355,72365,-94294,-1264,44872,0,0),
(121,null,36356,69553,-91746,-1488,0,2,0),
(121,null,36357,70189,-93935,-1400,61576,1,0),
(121,null,36358,73680,-95456,-1144,0,1,0),
(121,null,36360,73831,-94119,-1400,45536,1,0),
(121,null,36362,70384,-95360,-1424,11308,0,0),
(121,null,36364,70704,-92960,-1424,53872,0,0),
(121,null,36365,71641,-92931,-1424,44872,0,0),
(121,null,36365,71971,-92846,-1424,12456,0,0),
(121,null,36366,72323,-96557,-1424,44872,0,0),
(121,null,36366,72653,-96469,-1424,12456,0,0),
(121,null,36367,72264,-94213,-1424,44872,0,0),
(121,null,36367,72066,-95317,-1424,12456,0,0),
(121,null,36367,71810,-95321,-1424,44872,0,0),
(121,null,36367,72526,-94209,-1424,12456,0,0),
(121,null,36477,70350,-93054,-1424,44872,0,0),
(121,null,36454,72358,-94360,-1272,12456,3,8),
(121,null,36455,72324,-94346,-1272,12456,3,9);

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `fortsiege_clans`;
CREATE TABLE IF NOT EXISTS `fortsiege_clans` (
`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;

View File

@@ -0,0 +1,18 @@
DROP TABLE IF EXISTS `forums`;
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',
PRIMARY KEY (`forum_id`),
KEY `forum_owner_id` (`forum_owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `forums` VALUES
(1, 'NormalRoot', 0, 0, 0, 1, 0),
(2, 'ClanRoot', 0, 0, 0, 0, 0),
(3, 'MemoRoot', 0, 0, 0, 0, 0),
(4, 'MailRoot', 0, 0, 0, 0, 0);

View File

@@ -0,0 +1,15 @@
DROP TABLE IF EXISTS `games`;
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,
`enddate` bigint(13) unsigned NOT NULL DEFAULT '0',
`finished` INT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`,`idnr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `global_tasks`;
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 '',
`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 '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `global_variables`;
CREATE TABLE IF NOT EXISTS `global_variables` (
`var` VARCHAR(255) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
PRIMARY KEY (`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,28 @@
DROP TABLE IF EXISTS `grandboss_data`;
CREATE TABLE IF NOT EXISTS `grandboss_data` (
`boss_id` smallint(5) unsigned NOT NULL,
`loc_x` mediumint(6) NOT NULL,
`loc_y` mediumint(6) NOT NULL,
`loc_z` mediumint(6) NOT NULL,
`heading` mediumint(6) NOT NULL DEFAULT '0',
`respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0',
`currentHP` decimal(30,15) NOT NULL,
`currentMP` decimal(30,15) NOT NULL,
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`boss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `grandboss_data` (`boss_id`,`loc_x`,`loc_y`,`loc_z`,`heading`,`currentHP`,`currentMP`) VALUES
(29001, -21610, 181594, -5734, 0, 229898.48, 667.776), -- Queen Ant
(29006, 17726, 108915, -6480, 0, 622493.58388, 3793.536), -- Core
(29014, 55024, 17368, -5412, 10126, 622493.58388, 3793.536), -- Orfen
(29020, 116033, 17447, 10107, -25348, 4068372, 39960), -- Baium
(29068, 185708, 114298, -8221,32768, 62802301, 1998000), -- Antharas
(29028, -105200, -253104, -15264, 0, 62041918, 2248572), -- Valakas
(29240, 0, 0, 0, 0, 288282589, 47100), -- Lindvior
(29197, 81208, -182095, -9895, 0, 512402016, 47100), -- Trasken
(29118, 0, 0, 0, 0, 4109288, 1220547), -- Beleth
(25286, 185080, -12613, -5499, 16550, 556345880, 86847), -- Anakim
(25283, 185062, -9605, -5499, 15640, 486021997, 79600), -- Lilith
(26124, 0, 0, 0, 0, 13945521, 50920), -- Kelbim
(29305, 0, 0, 0, 0, 589355368, 51696); -- Helios

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `heroes`;
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,
`claimed` ENUM('true','false') NOT NULL DEFAULT 'false',
`message` varchar(300) NOT NULL DEFAULT '',
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `heroes_diary`;
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',
KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `item_auction`;
CREATE TABLE IF NOT EXISTS `item_auction` (
`auctionId` int(11) NOT NULL,
`instanceId` int(11) NOT NULL,
`auctionItemId` int(11) NOT NULL,
`startingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`endingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`auctionStateId` tinyint(1) NOT NULL,
PRIMARY KEY (`auctionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `item_auction_bid`;
CREATE TABLE IF NOT EXISTS `item_auction_bid` (
`auctionId` int(11) NOT NULL,
`playerObjId` int(11) NOT NULL,
`playerBid` bigint(20) NOT NULL,
PRIMARY KEY (`auctionId`,`playerObjId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `item_elementals`;
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,
PRIMARY KEY (`itemId`, `elemType`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `item_special_abilities`;
CREATE TABLE IF NOT EXISTS `item_special_abilities` (
`objectId` int(10) unsigned NOT NULL,
`type` tinyint(1) unsigned NOT NULL DEFAULT 1,
`optionId` int(10) unsigned NOT NULL,
`position` tinyint(1) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`objectId`,`optionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `item_variables`;
CREATE TABLE IF NOT EXISTS `item_variables` (
`id` int(10) UNSIGNED NOT NULL,
`var` varchar(255) NOT NULL,
`val` text NOT NULL,
KEY `charId` (`id`)
);

View File

@@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `item_variations` (
`itemId` INT(11) NOT NULL,
`mineralId` INT(11) NOT NULL DEFAULT 0,
`option1` INT(11) NOT NULL,
`option2` INT(11) NOT NULL,
PRIMARY KEY (`itemId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,20 @@
DROP TABLE IF EXISTS `items`;
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,
`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,
PRIMARY KEY (`object_id`),
KEY `owner_id` (`owner_id`),
KEY `item_id` (`item_id`),
KEY `loc` (`loc`),
KEY `time_of_use` (`time_of_use`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `itemsonground`;
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,
`drop_time` bigint(13) NOT NULL DEFAULT '0',
`equipable` int(1) DEFAULT '0',
PRIMARY KEY (`object_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `merchant_lease`;
CREATE TABLE IF NOT EXISTS `merchant_lease` (
`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,
`player_name` varchar(35),
PRIMARY KEY (`merchant_id`,`player_id`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,21 @@
DROP TABLE IF EXISTS `messages`;
CREATE TABLE IF NOT EXISTS `messages` (
`messageId` INT NOT NULL DEFAULT 0,
`senderId` INT NOT NULL DEFAULT 0,
`receiverId` INT NOT NULL DEFAULT 0,
`subject` TINYTEXT,
`content` TEXT,
`expiration` bigint(13) unsigned NOT NULL DEFAULT '0',
`reqAdena` BIGINT NOT NULL DEFAULT 0,
`hasAttachments` enum('true','false') DEFAULT 'false' NOT NULL,
`isUnread` enum('true','false') DEFAULT 'true' NOT NULL,
`isDeletedBySender` enum('true','false') DEFAULT 'false' NOT NULL,
`isDeletedByReceiver` enum('true','false') DEFAULT 'false' NOT NULL,
`isLocked` enum('true','false') DEFAULT 'false' NOT NULL,
`sendBySystem` tinyint(1) NOT NULL DEFAULT 0,
`isReturned` enum('true','false') DEFAULT 'false' NOT NULL,
`itemId` INT(11) NOT NULL DEFAULT '0',
`enchantLvl` INT(3) NOT NULL DEFAULT '0',
`elementals` VARCHAR(25),
PRIMARY KEY (`messageId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,12 @@
DROP TABLE IF EXISTS `npc_respawns`;
CREATE TABLE IF NOT EXISTS `npc_respawns` (
`id` int(10) NOT NULL,
`x` int(10) NOT NULL,
`y` int(10) NOT NULL,
`z` int(10) NOT NULL,
`heading` int(10) NOT NULL,
`respawnTime` bigint(20) unsigned NOT NULL DEFAULT '0',
`currentHp` double unsigned NOT NULL,
`currentMp` double unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS `olympiad_data`;
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,
`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',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS `olympiad_fights`;
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',
`start` bigint(13) unsigned NOT NULL DEFAULT '0',
`time` bigint(13) unsigned NOT NULL DEFAULT '0',
`classed` tinyint(1) unsigned NOT NULL DEFAULT '0',
KEY `charOneId` (`charOneId`),
KEY `charTwoId` (`charTwoId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,15 @@
DROP TABLE IF EXISTS `olympiad_nobles`;
CREATE TABLE IF NOT EXISTS `olympiad_nobles` (
`charId` int(10) unsigned NOT NULL DEFAULT 0,
`class_id` tinyint(3) unsigned NOT NULL DEFAULT 0,
`olympiad_points` int(10) unsigned NOT NULL DEFAULT 0,
`competitions_done` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_won` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_lost` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_drawn` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_done_week` tinyint(3) unsigned NOT NULL DEFAULT 0,
`competitions_done_week_classed` tinyint(3) unsigned NOT NULL DEFAULT 0,
`competitions_done_week_non_classed` tinyint(3) unsigned NOT NULL DEFAULT 0,
`competitions_done_week_team` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `olympiad_nobles_eom`;
CREATE TABLE IF NOT EXISTS `olympiad_nobles_eom` (
`charId` int(10) unsigned NOT NULL DEFAULT 0,
`class_id` tinyint(3) unsigned NOT NULL DEFAULT 0,
`olympiad_points` int(10) unsigned NOT NULL DEFAULT 0,
`competitions_done` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_won` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_lost` smallint(3) unsigned NOT NULL DEFAULT 0,
`competitions_drawn` smallint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `petition_feedback`;
CREATE TABLE IF NOT EXISTS `petition_feedback` (
`charName` VARCHAR(35) NOT NULL,
`gmName` VARCHAR(35) NOT NULL,
`rate` TINYINT(1) UNSIGNED NOT NULL DEFAULT 2,
`message` text NOT NULL,
`date` bigint(13) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,15 @@
DROP TABLE IF EXISTS `pets`;
CREATE TABLE IF NOT EXISTS `pets` (
`item_obj_id` int(10) unsigned NOT NULL,
`name` varchar(16),
`level` smallint(2) unsigned NOT NULL,
`curHp` int(9) unsigned DEFAULT '0',
`curMp` int(9) unsigned DEFAULT '0',
`exp` bigint(20) unsigned DEFAULT '0',
`sp` bigint(10) unsigned DEFAULT '0',
`fed` int(10) unsigned DEFAULT '0',
`ownerId` int(10) NOT NULL DEFAULT '0',
`restore` enum('true','false') NOT NULL DEFAULT 'false',
PRIMARY KEY (`item_obj_id`),
KEY `ownerId` (`ownerId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `posts`;
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_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_txt` text NOT NULL,
KEY `post_forum_id` (`post_forum_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `punishments`;
CREATE TABLE IF NOT EXISTS `punishments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(255) NOT NULL,
`affect` varchar(255) NOT NULL,
`type` varchar(255) NOT NULL,
`expiration` bigint NOT NULL,
`reason` TEXT NOT NULL,
`punishedBy` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `residence_functions`;
CREATE TABLE IF NOT EXISTS `residence_functions` (
`id` int NOT NULL ,
`level` int NOT NULL ,
`expiration` bigint NOT NULL ,
`residenceId` int NOT NULL ,
PRIMARY KEY (`id`, `level`, `residenceId`)
);

View File

@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS `siege_clans`;
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,
PRIMARY KEY (`clan_id`,`castle_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,11 @@
DROP TABLE IF EXISTS `topic`;
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_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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,7 @@
DROP TABLE IF EXISTS `account_data`;
CREATE TABLE IF NOT EXISTS `account_data` (
`account_name` VARCHAR(45) NOT NULL DEFAULT '',
`var` VARCHAR(20) NOT NULL DEFAULT '',
`value` VARCHAR(255) ,
PRIMARY KEY (`account_name`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,17 @@
DROP TABLE IF EXISTS `accounts`;
CREATE TABLE IF NOT EXISTS `accounts` (
`login` VARCHAR(45) NOT NULL default '',
`password` VARCHAR(45),
`email` varchar(255) DEFAULT NULL,
`created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`lastactive` bigint(13) unsigned NOT NULL DEFAULT '0',
`accessLevel` TINYINT NOT NULL DEFAULT 0,
`lastIP` CHAR(15) NULL DEFAULT NULL,
`lastServer` TINYINT DEFAULT 1,
`pcIp` char(15) DEFAULT NULL,
`hop1` char(15) DEFAULT NULL,
`hop2` char(15) DEFAULT NULL,
`hop3` char(15) DEFAULT NULL,
`hop4` char(15) DEFAULT NULL,
PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,6 @@
DROP TABLE IF EXISTS `accounts_ipauth`;
CREATE TABLE IF NOT EXISTS `accounts_ipauth` (
`login` varchar(45) NOT NULL,
`ip` char(15) NOT NULL,
`type` enum('deny','allow') NULL DEFAULT 'allow'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,9 @@
DROP TABLE IF EXISTS `gameservers`;
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 '',
PRIMARY KEY (`server_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `gameservers` VALUES ('2', '-2ad66b3f483c22be097019f55c8abdf0', '');