Commit Graph
946 Commits
Author SHA1 Message Date
Carbenium b3b6e2715e Scripts/Commands: Convert rbac commands to new system
Note: To enable rbac commands for administrators permissions 202-206 have to be linked to permission 196.

Sample SQL for auth DB:
INSERT INTO `rbac_linked_permissions` VALUES (196, 202), (196, 203), (196, 204), (196, 205), (196, 206);

(cherry picked from commit f620befc37fd8a4aed917e1ebba6f268c44a0a99)
2022-03-12 23:00:17 +01:00
ModoX 0e846238b5 Core: Updated allowed build to 9.2.0.42698 2022-03-12 05:57:41 +01:00
robinsch 0910bca34c [Exploit/Dupe] Container item (#26689)
* Core/Item: Fixed possible dupe with container items containing non unique non stackable items

* Fixed build

* Update sql script and related base structure

Co-authored-by: jackpoz <[email protected]>
(cherry picked from commit d1e913162e0a96918c70ba4ec3f62f4186ee4707)
2022-03-11 19:03:12 +01:00
jackpoz c7bf84e8ae SQL: Update auth_database.sql with latest updates
(cherry picked from commit 13f1a9f117a1d2b16103079d07dc1bce39240312)
2022-03-11 12:14:24 +01:00
Shauren f60aa2e47c Core: Updated allowed build to 9.2.0.42614 2022-03-08 15:28:06 +01:00
TDB Release 85b15a4b8c TDB 920.22031 - 2022/03/06 2022-03-06 15:20:27 +00:00
Shauren bff2c4733a Core: Updated allowed build to 9.2.0.42560 2022-03-03 01:11:37 +01:00
Shauren 457210f263 Core: Updated allowed build to 9.2.0.42538 2022-03-02 10:18:08 +01:00
Shauren 97406ce162 Core: Updated allowed build to 9.2.0.42521 2022-03-01 16:18:07 +01:00
Shauren 569b5d6f04 Core/Auction House: Eliminate blocking db queries for account permissions when expiring auctions that have offline bidders
(cherry picked from commit d0d0f51f325e4ae42c9bef7606fed4f4c00c98d6)
2022-02-28 12:45:06 +01:00
Giacomo Pozzoni d02ee9de37 Script/Commands: Add ".pdump copy" command (#25455)
* Script/Commands: Add ".pdump copy" command

Syntax: .pdump copy $playerNameOrGUID $account [$newname] [$newguid]
Copy character with name/guid $playerNameOrGUID into character list of $account with $newname, with first free or $newguid guid.

* Add missing return

* Restore eof check

* Fix sql

* Use forward declaration header

Co-authored-by: Shauren <[email protected]>

* Remove buffer when reading a line

* Rename sql files

Co-authored-by: Shauren <[email protected]>
(cherry picked from commit 6215da0d640bd86a7c2bc144859c1542f09fc1a6)
2022-02-27 00:28:25 +01:00
Shauren ed77b9c3a9 Core: Updated allowed build to 9.2.0.42488 2022-02-26 01:03:30 +01:00
Shauren d995322dd0 Core: Updated allowed build to 9.2.0.42423 2022-02-25 12:41:01 +01:00
Treeston e0e3bae82c Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156)
(cherry picked from commit bcdbdd6f23ce65cc0e381e61d2840140dce79311)
2022-02-05 13:29:21 +01:00
Shauren 22e823b5f9 Core/Pets: Change PET_SAVE_NOT_IN_SLOT constant from 100 to -1 to truly avoid conflicts when growing stable size and change PET_SAVE_AS_DELETED from -1 to -2 2022-01-31 21:50:32 +01:00
Shauren 8349444749 Core/Pets: Save last summoned pet number in characters table 2022-01-31 21:34:48 +01:00
Shauren e458144442 Core/Pets: Removed storing stable slot count in db 2022-01-31 14:34:05 +01:00
Treeston 319ddd9bcd Core/Warden: Warden refactors (PR #25235)
(cherry picked from commit 6116e5b38522ccfb00f6c941c75482e05b4c0799)
2022-01-26 19:42:11 +01:00
Shauren e8368ed2eb Core: Updated allowed build to 9.1.5.42010 2022-01-22 01:40:57 +01:00
TDB Release 1761f72da7 TDB 915.22012 - 2022/01/15 2022-01-15 23:33:52 +00:00
Shaurenandaquadeus 0d3235f569 Core/Guilds: Separate guild rank id from guild rank order
Co-authored-by: aquadeus <[email protected]>
2022-01-09 23:12:00 +01:00
ModoX f49ff55f53 Core: Updated allowed build to 9.1.5.41793 2022-01-08 03:53:46 +01:00
TDB Release 87a85dd9d2 TDB 915.22011 - 2022/01/02 2022-01-02 21:29:31 +00:00
zartech22 c57c26d7fb Add realm ID for actions based ip logging (#24453)
* Update SQL queries to insert realm id

* Insert the realm id when logging actions based on IP

* Adding the SQL update file

* Update 9999_99_99_99_auth.sql

* Update auth structure

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit 56f20d69a6ab23a9818f77fd4e2df541a7c30f0e)
2022-01-01 19:38:40 +01:00
Shadow 321bc3ccfa Missing rbac permissions (#24253)
* Added missing RBAC permissions to auth database

* Rename 9999_99_99_99_auth.sql to 2020_04_07_00_auth.sql

* Update 2020_04_07_00_auth.sql

* Update auth_database.sql

Co-authored-by: Giacomo Pozzoni <[email protected]>
(cherry picked from commit d962624d6107986fe7c349629878a121d27b186c)
2022-01-01 01:09:52 +01:00
Shauren 112b8799ff DB: Purge mediumint columns from character db (change to full int) 2021-12-31 16:14:19 +01:00
Shauren 8eb1938fe8 DB: Convert all databases to InnoDB engine 2021-12-31 16:01:43 +01:00
Shauren 276ef7ff11 Typo fix 2021-12-31 14:15:57 +01:00
Shauren 9d060d23c1 DB: Convert databases to utf8mb4 2021-12-31 13:59:55 +01:00
jackpoz 7d8926c55d Core/Channels: Limit channel length to 31 characters
(cherry picked from commit 2707877cf6ab34727c348190ca15499ef0205b1c)
2021-12-23 19:45:40 +01:00
Treeston 0b61c3b7b1 [3.3.5] Core/Authserver: TOTP rewrite: (PR #23633)
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support

(cherry picked from commit 4211645834c467a03c60248e80818d3607be9ea7)
2021-12-18 20:24:50 +01:00
Treeston 093223d7b4 Core/DB: Add RBAC for .debug poolstatus, because I need it for the pooling branch.
(cherry picked from commit a82bbeb101d64b89d9918ff5cbe4866591f1101b)
2021-12-16 21:20:38 +01:00
Treeston 6f6cf975e4 Scripts/Commands: Add .debug questreset to force daily/weekly/monthly quest reset.
(cherry picked from commit 293ba08d21c4e9634229bb5015445ecc0cc08fef)
2021-12-16 21:20:38 +01:00
Treeston 9fa5c71409 Core/DB: Add a world state for daily quest reset time to characters. Not used right now, but written to allow easier transition later.
(cherry picked from commit 1277c542638522b210addd22966c32db89cb29b6)
2021-12-16 21:20:38 +01:00
Shauren 7bc3a92b2c Core: Updated allowed build to 9.1.5.41488 2021-12-16 12:26:58 +01:00
Treeston be05590a12 Core/DB: Unify creature_respawn and gameobject_respawn into a single respawn table
(cherry picked from commit 374597c8e96c886f1e3647d405bf3160c8b98bf8)
2021-12-16 01:10:06 +01:00
Wyrserth b709ea9a8d Core/RBAC: add permission that prevents accounts from earning all achievements or only realm firsts (#23459)
* Core/RBAC: add permission that prevents accounts from earning all achievements or only realm firsts.

* Kill evil spaces.

* Rename 9999_99_99_99_auth.sql to 2019_06_21_00_auth.sql

* Update auth_database.sql

(cherry picked from commit 8163ea60c8d517ebe3a88f595dd8291df8338811)
2021-12-11 22:47:08 +01:00
Wyrserth ae43820ca0 Core/Commands: implement commands to look up a map/item/quest name for a given id (#23416)
* Core/Commands: implement commands to look up a map/item/quest name for a given id.

* Add entry to updates table.

* Rename 9999_99_99_99_auth.sql to 2019_06_16_00_auth.sql

* Add missed change, thanks jackpoz!

* Update auth_database.sql

(cherry picked from commit ce3dcdcb1ad1887fb3a531aaea09482c12b5e4f3)
2021-12-11 14:12:54 +01:00
jackpoz db0058964f DB: Add new view vw_log_history to show database logs in a better way
(cherry picked from commit 9fc4ff9dd29968c1d64f47df4e721b468ac87362)
2021-12-10 23:01:13 +01:00
Shauren 8341082ac4 Core: Updated allowed build to 9.1.5.41359 2021-12-08 00:33:14 +01:00
Shauren 04a6c55a11 Core: Updated allowed build to 9.1.5.41323 2021-12-04 12:55:22 +01:00
Shauren a4d40c9e34 Core: Updated allowed build to 9.1.5.41288 2021-12-02 11:59:23 +01:00
jackpoz c73fd0e6e3 Scripts/Commands: Add .debug asan commands
Add ".debug asan memoryleak" and ".debug asan outofbounds" commands to trigger Address Sanitizer warnings at runtime (or other dynamic analysis tools)

(cherry picked from commit 71d15ea25be3e86646faaa3266617a0b8177972f)
2021-12-02 00:39:20 +01:00
MejiandShauren 93c668ac50 Core/BattlePets: Implemented BattlePetSpeciesFlags::NotAccountWide (#27303)
Co-authored-by: Shauren <[email protected]>
2021-11-25 20:55:12 +01:00
MejiandShauren 8614690e27 Core/BattlePets: Implemented battle pet name query packet (#27294)
Co-authored-by: Shauren <[email protected]>
2021-11-20 19:06:14 +01:00
Shauren 41859db7c6 Core: Updated allowed build to 9.1.5.41079 2021-11-19 00:41:58 +01:00
TDB Release 06b9be494a TDB 915.21111 - 2021/11/17 2021-11-17 13:31:04 +00:00
Shauren c1915d386c Core: Updated allowed build to 9.1.5.41031 2021-11-12 19:25:09 +01:00
Shauren 41b8a141f2 Core: Updated allowed build to 9.1.5.40966 2021-11-10 14:09:17 +01:00
Treeston 5ed891a0f0 Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.
(cherry picked from commit 97ade1321b6d18393202a1448f2b042fc1ff0546)
2021-11-08 23:18:32 +01:00