CREATE TABLE IF NOT EXISTS vbb_conquest_armours (
armourID int(10) unsigned NOT NULL auto_increment,
aName varchar(100) NOT NULL,
aPower int(10) unsigned NOT NULL default '0',
aCost int(10) unsigned NOT NULL default '0',
PRIMARY KEY (armourID),
UNIQUE KEY aName (aName)
);
INSERT INTO vbb_conquest_armours (aName, aPower, aCost) VALUES
('Fur Hide', 20, 25),
('Leather', 30, 50),
('Carapice', 50, 100),
('Laminate', 95, 200),
('Iron Plate', 135, 300),
('Bronzed', 170, 400),
('Rolled Steel', 200, 500);
CREATE TABLE IF NOT EXISTS vbb_conquest_battles (
battleID int(10) unsigned NOT NULL auto_increment,
playerID int(10) unsigned NOT NULL default '0',
villageID int(10) unsigned NOT NULL default '0',
bDate int(10) unsigned NOT NULL default '0',
bResult varchar(100) NOT NULL,
bType varchar(100) NOT NULL,
bPlayer int(10) unsigned NOT NULL default '0',
bVillage int(10) unsigned NOT NULL default '0',
bSpoils int(10) unsigned NOT NULL default '0',
bOffense int(10) unsigned NOT NULL default '0',
bDefense int(10) unsigned NOT NULL default '0',
PRIMARY KEY (battleID)
);
CREATE TABLE IF NOT EXISTS vbb_conquest_defense (
defenseID int(10) unsigned NOT NULL auto_increment,
dName varchar(100) NOT NULL,
dPower int(10) unsigned NOT NULL default '0',
dCost int(10) unsigned NOT NULL default '0',
PRIMARY KEY (defenseID),
UNIQUE KEY dName (dName)
);
INSERT INTO vbb_conquest_defense (dName, dPower, dCost) VALUES
('Untrained', 0, 0),
('City Garrison I', 20, 1000),
('City Garrison II', 40, 4000),
('City Garrison III', 60, 7000),
('City Garrison IV', 80, 11000),
('City Garrison V', 100, 15000),
('City Garrison VI', 120, 20000),
('City Garrison VII', 140, 26000),
('City Garrison VIII', 160, 33000),
('City Garrison IX', 180, 41000),
('City Garrison X', 200, 50000);
CREATE TABLE IF NOT EXISTS vbb_conquest_gameset (
gLastCycle int(10) unsigned NOT NULL default 0,
gStartTurns int(10) unsigned NOT NULL default 20,
gStartGold int(10) unsigned NOT NULL default 1000,
gStartTroops int(10) unsigned NOT NULL default 100,
gStartSpies int(10) unsigned NOT NULL default 5,
gStartOffense int(10) unsigned NOT NULL default 1,
gStartDefense int(10) unsigned NOT NULL default 1,
gCycleMinutes int(10) unsigned NOT NULL default 60,
gCycleTurns int(10) unsigned NOT NULL default 1,
gCycleGold int(10) unsigned NOT NULL default 10,
gCycleTroops int(10) unsigned NOT NULL default 1,
gIncomeTurns int(10) unsigned NOT NULL default 10,
gIncomeRatio int(10) unsigned NOT NULL default 1,
gRecruitTurns int(10) unsigned NOT NULL default 1,
gRecruitRatio int(10) unsigned NOT NULL default 1,
gAttackError int(10) unsigned NOT NULL default 50,
gAttackTurns int(10) unsigned NOT NULL default 5,
gAttackRatio int(10) unsigned NOT NULL default 1,
gAttackToll int(10) unsigned NOT NULL default 10,
gAttackMax int(10) unsigned NOT NULL default 20,
gSpyError int(10) unsigned NOT NULL default 100,
gSpyTurns int(10) unsigned NOT NULL default 1,
gSpyPower int(10) unsigned NOT NULL default 1,
gSpyCost int(10) unsigned NOT NULL default 50,
gSpyUpkeep int(10) unsigned NOT NULL default 1,
gSpyToll int(10) unsigned NOT NULL default 10,
gSellRatio int(10) unsigned NOT NULL default 80,
gPerPage int(10) unsigned NOT NULL default 30,
gSumLimit int(10) unsigned NOT NULL default 5,
gRanLimit int(10) unsigned NOT NULL default 6);
INSERT INTO vbb_conquest_gameset VALUES
(0, 20, 1000, 100, 5, 1, 1, 60, 1, 10, 1, 10, 1, 1, 1, 50, 5, 1, 10, 20, 100, 1, 1, 50, 1, 10, 80, 30, 5, 6);
CREATE TABLE IF NOT EXISTS vbb_conquest_intel (
intelID int(10) unsigned NOT NULL auto_increment,
playerID int(10) unsigned NOT NULL default '0',
villageID int(10) unsigned NOT NULL default '0',
iDate int(10) unsigned NOT NULL default '0',
iError int(10) unsigned NOT NULL default '0',
iGold int(10) unsigned NOT NULL default '0',
iOffense int(10) unsigned NOT NULL default '0',
iDefense int(10) unsigned NOT NULL default '0',
PRIMARY KEY (intelID),
UNIQUE KEY playerID (playerID,villageID)
);
CREATE TABLE IF NOT EXISTS vbb_conquest_nations (
nationID int(10) unsigned NOT NULL auto_increment,
nName varchar(50) NOT NULL,
nDesc varchar(1000) NOT NULL,
nOffense int(10) unsigned NOT NULL default '0',
nDefense int(10) unsigned NOT NULL default '0',
nIncome int(10) unsigned NOT NULL default '0',
nIntel int(10) unsigned NOT NULL default '0',
PRIMARY KEY (nationID),
UNIQUE KEY nName (nName)
);
INSERT INTO vbb_conquest_nations (nName, nDesc, nOffense, nDefense, nIncome, nIntel) VALUES
('Soul Calibur', 'Villages in this nation recieve a natural bonus to both basic defense and espionage actions.', 0, 25, 0, 25),
('Lost History', 'Villages in this nation recieve a natural bonus to all actions which generate basic income.', 0, 0, 25, 0),
('Soul Edge', 'Villages in this nation recieve a natural bonus to both basic offense and espionage actions.', 25, 0, 0, 25);
CREATE TABLE IF NOT EXISTS vbb_conquest_offense (
offenseID int(10) unsigned NOT NULL auto_increment,
oName varchar(100) NOT NULL,
oPower int(10) unsigned NOT NULL default '0',
oCost int(10) unsigned NOT NULL default '0',
PRIMARY KEY (offenseID),
UNIQUE KEY oName (oName)
);
INSERT INTO vbb_conquest_offense (oName, oPower, oCost) VALUES
('Untrained', 0, 0),
('City Raider I', 20, 1000),
('City Raider II', 40, 4000),
('City Raider III', 60, 7000),
('City Raider IV', 80, 11000),
('City Raider V', 100, 15000),
('City Raider VI', 120, 20000),
('City Raider VII', 140, 26000),
('City Raider VIII', 160, 33000),
('City Raider IX', 180, 41000),
('City Raider X', 200, 50000);
CREATE TABLE IF NOT EXISTS vbb_conquest_players (
playerID int(10) unsigned NOT NULL auto_increment,
forumID int(10) unsigned NOT NULL default '0',
nationID int(10) unsigned NOT NULL default '0',
pTurns int(10) unsigned NOT NULL default '0',
pGold int(10) unsigned NOT NULL default '0',
pTroops int(10) unsigned NOT NULL default '0',
pSpies int(10) unsigned NOT NULL default '0',
offenseID int(10) unsigned NOT NULL default '0',
defenseID int(10) unsigned NOT NULL default '0',
PRIMARY KEY (playerID),
UNIQUE KEY forumID (forumID)
);
CREATE TABLE IF NOT EXISTS vbb_conquest_stock (
playerID int(10) unsigned NOT NULL default '0',
stockID int(10) unsigned NOT NULL default '0',
stockCount int(10) unsigned NOT NULL default '0',
stockType varchar(100) NOT NULL default '0',
PRIMARY KEY (playerID,stockID,stockType)
);
CREATE TABLE IF NOT EXISTS vbb_conquest_weapons (
weaponID int(10) unsigned NOT NULL auto_increment,
wName varchar(100) NOT NULL,
wPower int(10) unsigned NOT NULL default '0',
wCost int(10) unsigned NOT NULL default '0',
PRIMARY KEY (weaponID),
UNIQUE KEY wName (wName)
);
INSERT INTO vbb_conquest_weapons (wName, wPower, wCost) VALUES
('Shortsword', 20, 25),
('Warhammer', 30, 50),
('Longsword', 50, 100),
('Polearm', 95, 200),
('Halberd', 135, 300),
('Crossbow', 170, 400),
('Musket', 200, 500);