-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cyclopedia house auction (#3022)
- Loading branch information
Showing
73 changed files
with
2,160 additions
and
1,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 11 (Guilds Balance)") | ||
logger.info("Updating database to version 10 (Guilds Balance)") | ||
db.query("ALTER TABLE `guilds` ADD `balance` bigint(20) UNSIGNED NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 12 (Player get daily reward)") | ||
logger.info("Updating database to version 11 (Player get daily reward)") | ||
db.query("ALTER TABLE `players` ADD `isreward` tinyint(1) NOT NULL DEFAULT 1") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 14 (Fixed mana spent)") | ||
logger.info("Updating database to version 13 (Fixed mana spent)") | ||
db.query("ALTER TABLE `players` CHANGE `manaspent` `manaspent` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 15 (Magic Shield Spell)") | ||
logger.info("Updating database to version 14 (Magic Shield Spell)") | ||
db.query("ALTER TABLE `players` ADD `manashield` SMALLINT UNSIGNED NOT NULL DEFAULT '0' AFTER `skill_manaleech_amount`") | ||
db.query("ALTER TABLE `players` ADD `max_manashield` SMALLINT UNSIGNED NOT NULL DEFAULT '0' AFTER `manashield`") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
print("Updating database to version 17 (Tutorial support)") | ||
print("Updating database to version 16 (Tutorial support)") | ||
db.query("ALTER TABLE `players` ADD `istutorial` SMALLINT(1) NOT NULL DEFAULT '0'") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 18 (Fix guild creation myaac)") | ||
logger.info("Updating database to version 17 (Fix guild creation myaac)") | ||
db.query("ALTER TABLE `guilds` ADD `level` int(11) NOT NULL DEFAULT 1") | ||
db.query("ALTER TABLE `guilds` ADD `points` int(11) NOT NULL DEFAULT 0") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 21 (Fix market price size)") | ||
logger.info("Updating database to version 20 (Fix market price size)") | ||
db.query("ALTER TABLE `market_history` CHANGE `price` `price` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';") | ||
db.query("ALTER TABLE `market_offers` CHANGE `price` `price` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 25 (random mount outfit window)") | ||
logger.info("Updating database to version 24 (random mount outfit window)") | ||
db.query("ALTER TABLE `players` ADD `randomize_mount` SMALLINT(1) NOT NULL DEFAULT '0'") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 26 (reward bag fix)") | ||
logger.info("Updating database to version 25 (reward bag fix)") | ||
db.query("UPDATE player_rewards SET pid = 0 WHERE itemtype = 19202;") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 29 (transfer coins)") | ||
logger.info("Updating database to version 28 (transfer coins)") | ||
db.query("ALTER TABLE `accounts` ADD `coins_transferable` int unsigned NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 30 (looktypeEx)") | ||
logger.info("Updating database to version 29 (looktypeEx)") | ||
db.query("ALTER TABLE `boosted_boss` ADD `looktypeEx` int unsigned NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 35 (bosstiary tracker)") | ||
logger.info("Updating database to version 34 (bosstiary tracker)") | ||
db.query("ALTER TABLE `player_bosstiary` ADD `tracker` blob NOT NULL;") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 37 (add coin_type to accounts)") | ||
logger.info("Updating database to version 36 (add coin_type to accounts)") | ||
db.query("ALTER TABLE `coins_transactions` ADD `coin_type` tinyint(1) UNSIGNED NOT NULL DEFAULT '1';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 38 (add pronoun to players)") | ||
logger.info("Updating database to version 37 (add pronoun to players)") | ||
db.query("ALTER TABLE `players` ADD `pronoun` int(11) NOT NULL DEFAULT '0';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 40 (house transfer ownership on startup)") | ||
logger.info("Updating database to version 39 (house transfer ownership on startup)") | ||
db.query("ALTER TABLE `houses` ADD `new_owner` int(11) NOT NULL DEFAULT '-1';") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 47 (fix: creature speed and conditions)") | ||
logger.info("Updating database to version 46 (fix: creature speed and conditions)") | ||
|
||
db.query("ALTER TABLE `players` MODIFY `conditions` mediumblob NOT NULL;") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 48 (House Auction)") | ||
|
||
db.query([[ | ||
ALTER TABLE `houses` | ||
DROP `bid`, | ||
DROP `bid_end`, | ||
DROP `last_bid`, | ||
DROP `highest_bidder` | ||
]]) | ||
|
||
db.query([[ | ||
ALTER TABLE `houses` | ||
ADD `bidder` int(11) NOT NULL DEFAULT '0', | ||
ADD `bidder_name` varchar(255) NOT NULL DEFAULT '', | ||
ADD `highest_bid` int(11) NOT NULL DEFAULT '0', | ||
ADD `internal_bid` int(11) NOT NULL DEFAULT '0', | ||
ADD `bid_end_date` int(11) NOT NULL DEFAULT '0', | ||
ADD `state` smallint(5) UNSIGNED NOT NULL DEFAULT '0', | ||
ADD `transfer_status` tinyint(1) DEFAULT '0' | ||
]]) | ||
|
||
db.query([[ | ||
ALTER TABLE `accounts` | ||
ADD `house_bid_id` int(11) NOT NULL DEFAULT '0' | ||
]]) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 6 (quickloot)") | ||
logger.info("Updating database to version 5 (quickloot)") | ||
db.query("ALTER TABLE `players` ADD `quickloot_fallback` TINYINT DEFAULT 0") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 8 (recruiter system)") | ||
logger.info("Updating database to version 7 (recruiter system)") | ||
db.query("ALTER TABLE `accounts` ADD `recruiter` INT(6) DEFAULT 0") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
function onUpdateDatabase() | ||
logger.info("Updating database to version 9 (Bestiary cpp)") | ||
logger.info("Updating database to version 8 (Bestiary cpp)") | ||
db.query([[CREATE TABLE IF NOT EXISTS `player_charms` ( | ||
`player_guid` INT(250) NOT NULL , | ||
`charm_points` VARCHAR(250) NULL , | ||
`charm_expansion` BOOLEAN NULL , | ||
`rune_wound` INT(250) NULL , | ||
`rune_enflame` INT(250) NULL , | ||
`rune_poison` INT(250) NULL , | ||
`rune_freeze` INT(250) NULL , | ||
`rune_zap` INT(250) NULL , | ||
`rune_curse` INT(250) NULL , | ||
`rune_cripple` INT(250) NULL , | ||
`rune_parry` INT(250) NULL , | ||
`rune_dodge` INT(250) NULL , | ||
`rune_adrenaline` INT(250) NULL , | ||
`rune_numb` INT(250) NULL, | ||
`rune_cleanse` INT(250) NULL , | ||
`rune_bless` INT(250) NULL , | ||
`rune_scavenge` INT(250) NULL , | ||
`rune_gut` INT(250) NULL , | ||
`rune_low_blow` INT(250) NULL , | ||
`rune_divine` INT(250) NULL , | ||
`rune_vamp` INT(250) NULL , | ||
`rune_void` INT(250) NULL , | ||
`UsedRunesBit` VARCHAR(250) NULL , | ||
`UnlockedRunesBit` VARCHAR(250) NULL, | ||
`tracker list` BLOB NULL ) ENGINE = InnoDB DEFAULT CHARSET=utf8;]]) | ||
`player_guid` INT(250) NOT NULL , | ||
`charm_points` VARCHAR(250) NULL , | ||
`charm_expansion` BOOLEAN NULL , | ||
`rune_wound` INT(250) NULL , | ||
`rune_enflame` INT(250) NULL , | ||
`rune_poison` INT(250) NULL , | ||
`rune_freeze` INT(250) NULL , | ||
`rune_zap` INT(250) NULL , | ||
`rune_curse` INT(250) NULL , | ||
`rune_cripple` INT(250) NULL , | ||
`rune_parry` INT(250) NULL , | ||
`rune_dodge` INT(250) NULL , | ||
`rune_adrenaline` INT(250) NULL , | ||
`rune_numb` INT(250) NULL, | ||
`rune_cleanse` INT(250) NULL , | ||
`rune_bless` INT(250) NULL , | ||
`rune_scavenge` INT(250) NULL , | ||
`rune_gut` INT(250) NULL , | ||
`rune_low_blow` INT(250) NULL , | ||
`rune_divine` INT(250) NULL , | ||
`rune_vamp` INT(250) NULL , | ||
`rune_void` INT(250) NULL , | ||
`UsedRunesBit` VARCHAR(250) NULL , | ||
`UnlockedRunesBit` VARCHAR(250) NULL, | ||
`tracker list` BLOB NULL ) ENGINE = InnoDB DEFAULT CHARSET=utf8; | ||
]]) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.