Treeston
46d4e2fa83
1eca51b follow-up, nuke command.permission from orbit; it was only duplicating data already stored in the core.
...
(cherry picked from commit 991dc8e050777b5e33ff22b008ab2125bae22437)
2022-02-27 20:59:19 +01:00
Giacomo Pozzoni
a65b3493a7
Core/SAI: Add orientation and delay columns to waypoints table ( #25472 )
...
* Core/SAI: Add orientation and delay columns to waypoints table
* Rename 2020_99_99_99_world.sql to 2020_09_19_00_world.sql
(cherry picked from commit 4b7d19c91bde2cabb8498809dee935c7efb2660a)
2022-02-27 20:08:41 +01:00
Shauren
7fbdd6473e
Core/DataStores: Updated db2 structures to 9.2.0
2022-02-25 11:40:20 +01:00
Shauren
439b027d48
Core/Misc: Cleanup unused includes
2022-02-13 15:07:00 +01:00
Shauren
fe8c1ac7ac
Core/Misc: database PCH tuning
2022-02-11 23:37:22 +01:00
Shauren
cbcd149ce5
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
2022-02-11 14:33:35 +01:00
Meji
fa3cba3a00
Core/BattlePets: Delete declined names of non-account battle pets when deleting character permanently ( #27706 )
2022-02-06 21:46:28 +01:00
jackpoz
8cbc21120f
Core/Characters: Replace 2 database statements with 1
...
Replace DELETE + INSERT with REPLACE when updating realmcharacters table
(cherry picked from commit a33ff74d92bde847b051da9fe483676fa1228c5b)
2022-02-06 00:15:31 +01:00
Treeston
1e9d60b4ac
Scripts/Commands: .character command conversion
...
(cherry picked from commit 00dd337b5d2c91907424828d7eebe3191931b036)
2022-02-05 14:44: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
jackpoz
341ef2c0dd
Core/Arena: Fix Arena.ArenaStartPersonalRating setting not having effect if the player didn't do any arena match before next server restart
...
Ref #16609
(cherry picked from commit cc64762f068749bbee0ef96580614f5a8cdfc867)
2022-02-05 13:08:08 +01:00
Treeston
9f97fdd31a
Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327 )
...
(cherry picked from commit 534a2388b7c662c8796aabb1ec8cb424879799b6)
2022-02-04 00:27:14 +01:00
Shauren
950db60435
Core/Pets: Updated pet summoning for latest client version (5 Call Pet spells and stable size 200)
2022-02-02 00:08:37 +01:00
Shauren
fd9eb28322
Core/Pets: Adjust pet slot saving logic after constant changes in 22e823b5f9
2022-01-31 23:30:00 +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
Shauren
ca92686b44
Core/Pets: Pet management refactoring ( #25191 )
...
* Core/Pets: Pet management refactoring
* Preload basic pet data on character login with async query
* Load additional pet data (declined names/auras/spells/cooldowns) using async query after we are sure pet loading will succeed
* Remove all select queries related to pet stable/unstable
* Remove all silent pet deletions except explicit UI-triggered abandons
* Fixed displaying stable master content when current pet is not summoned
* Allow to stable/swap unsummoned current pet
Closes #3610
Closes #21266
(cherry picked from commit 5c1fc5e3876549f5ed2b9051fffb6f3d94a67d7a)
2022-01-31 00:17:21 +01:00
Shauren
d5dcf02196
Core/DBLayer: Add nicer api for SQLQueryHolders
...
(cherry picked from commit 9b806c6b5d9e83f8614523317a44742954f97744)
2022-01-24 21:21:37 +01:00
Giacomo Pozzoni
736b9ac112
Log sync db queries in World::Update() loop ( #25174 )
...
* Core/Misc: Log sync queries on critical path
* Fix build
* Rename
* Fix warning
* Fix no-pch
* Change WarnAboutSyncQueries() to be header-only
(cherry picked from commit deceb11b5fc52c8036f249d628ccc69ca5d022b3)
2022-01-24 14:58:08 +01:00
Shauren
a9b4f9aca0
Core/Mail: Load mails at login instead of on demand when queried by packets (logging in always sends one of the packets that cause mail loading anyway)
...
(cherry picked from commit 57eaab80d9e1f6f25274f376da16e1f2f67ab4bc)
2022-01-24 14:45:54 +01:00
Shauren
54a6e603ff
Core/Misc: Replace database query in WorldSession::HandleAddFriendOpcode with async version
...
(cherry picked from commit 2f0893d279ddab86ae7c3e4fd1d7a47b15e938f7)
2022-01-24 13:38:40 +01:00
Peter Keresztes Schmidt
ad340466d0
Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs ( #25054 )
...
Related: #25006
(cherry picked from commit 85b5b842ca6c05d4e51081e6c3282940a80f3761)
2022-01-23 22:02:03 +01:00
Giacomo Pozzoni
e9cf3828ba
Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. ( #23 ) ( #24997 )
...
* Core/Spells: Implement SPELL_EFFECT_ACTIVATE_OBJECT. (#23 )
Original research by @xvwyh.
* Add missing sql update
* Fix some build errors
* Remove unused enum values
* Change artkits from 0-4 to 0-3
* Remove unused code
* Code review feedback
* Fix sql
* Remove artkit4 special case handling
* Default initialize artKits
* Code review feedback
* Split sql into structure and data files
Co-authored-by: Warpten <[email protected] >
(cherry picked from commit 203573db83fb1d3f141b5aadbf1d1ca0a637bf94)
2022-01-23 15:17:54 +01:00
Shauren
6ce56e8137
Core/DBLayer: Fixed false positive msvc analysis warning
2022-01-22 01:11:16 +01:00
Shauren
f2bde40922
Core/DataStores: Load UnitCondition.db2
2022-01-14 20:10:16 +01:00
Shauren and aquadeus
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
ForesterDev
69cadae38a
DB/Account: update account_access table cherry-pick take 2 (with refactors)
...
(cherry picked from commit 8e0365d8a6ca5628ad17e6684743d9ab2138c068)
2022-01-06 23:28:52 +01:00
ForesterDev
6bddc8ff5e
Core/Database: fix wrong password logging ( #24487 )
...
(cherry picked from commit 48c700347c91b1748427a8c5b09b8d4099c9a105)
2022-01-01 20:13:25 +01: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
Shauren
3b4a2a0a94
Core/DBLayer: Fix compilation with mysql 8
...
(cherry picked from commit 579d41acc5ca3af9900b546dc3e910a595cee066)
2022-01-01 01:10:25 +01:00
myuzhobcplidtkieno
de5f7edede
Added the ability to use TLS when connecting to a database. ( #24348 )
...
* Added the ability to use TLS when connecting to a database.
* Trying to kickstart CI checks
* Revert the kickstart change
Co-authored-by: myuzhobcplidtkieno <[email protected] >
Co-authored-by: Giacomo Pozzoni <[email protected] >
(cherry picked from commit ae553f89664a4baade80020856c9ff66323de963)
2022-01-01 01:07:52 +01:00
Shauren
9d060d23c1
DB: Convert databases to utf8mb4
2021-12-31 13:59:55 +01:00
Shauren
1aad7f8ddd
Core/DB: Add missing prepared statement parameters to CHAR_SEL_WAR_MODE_TUNING
2021-12-27 20:42:03 +01:00
Matan Shukry and Shauren
b821a72973
Core/Player: Initial War Mode support ( #25926 )
...
* Enable PvP talents
* War Mode buff aura
* Forced PvP flagging
Co-authored-by: Shauren <[email protected] >
2021-12-26 19:14:46 +01:00
Giacomo Pozzoni
1529fe1064
Core/Database: Fix build with Maria DB on some distros ( #24248 )
...
(cherry picked from commit 0752584856b0d9c2a1a5b179cf90d3bc765fa2c1)
2021-12-22 21:45:46 +01:00
Shauren
cecb36bd68
Core/DBLayer: Use std::variant's stored type instead of relying on our own separate enum for prepared statement parameters
...
(cherry picked from commit 30482038559d65648d9bcfa29cd426a6f266eeba)
2021-12-22 21:39:35 +01:00
Shauren
ce9c7b477c
Core/DBLayer: Refactor PreparedStatement class to not depend on MySQLPreparedStatement
...
(cherry picked from commit 5b0a32d164ba91207360d8b8a266b69dd0db9869)
2021-12-22 20:59:50 +01:00
jackpoz
8fdeaa2797
Core/Misc: Fix build
...
(cherry picked from commit 9ba4694ff29a9b782625fb88a528675f2d6a115c)
2021-12-22 20:46:35 +01:00
Ujp8LfXBJ6wCPR
f871f0098e
Replace MySQL prepared statement union with std::variant ( #24158 )
...
(cherry picked from commit 3ebcb71c3dc80e0bea9a36207401a033712bda88)
2021-12-22 20:29:49 +01:00
Ujp8LfXBJ6wCPR
43aa763d04
Part1: Modernize codebase with Clang-Tidy range based loops ( #24164 )
...
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
2021-12-22 15:48:01 +01:00
ratkosrb
72093e98e1
Core/Creature: Use proper name for wander distance. ( #24133 )
...
* Use proper name for wander distance.
* Rename db field.
* Fix query.
* Remove underscore from chat command.
* Rename the handler too.
* Update chat command description.
* Fix remaining issues.
* Rename 2020_99_99_99_world_335.sql to 2020_02_16_01_world.sql
Co-authored-by: Giacomo Pozzoni <[email protected] >
(cherry picked from commit 6176ce92ea01fd33b11c2e7f8e9ebb509e80c944)
# Conflicts:
# sql/updates/world/master/2020_02_16_01_world.sql
# src/server/database/Database/Implementation/WorldDatabase.cpp
# src/server/game/Entities/Creature/Creature.cpp
# src/server/game/Globals/ObjectMgr.cpp
# src/server/game/Globals/ObjectMgr.h
# src/server/scripts/Commands/cs_npc.cpp
2021-12-21 19:50:12 +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
51fbda4223
Core/Pooling: Quest pooling rewrite: (PR#23627)
...
- Split quest pooling from PoolMgr (into QuestPoolMgr)
- Proper saving/restoring on server restart
- No more hacking into sObjectMgr to insert/remove available quests
(cherry picked from commit a5e73e41c0e813e674bb0a644e0052052435494e)
2021-12-18 15:28:45 +01:00
Treeston
8839fa3fe2
Core/Chat: Custom channel preservation rewrite. Channel data is now loaded at startup, and written to the DB periodically, instead of both things happening in real time.
...
(cherry picked from commit fedf1f557b2aa1cbb0f4bc722b24afb59cc30855)
2021-12-17 23:22:13 +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
Shauren
58fb2ef631
Core/DB: Improved terrible assertion message
...
(cherry picked from commit eed92676858c9c10b1bd570894d562b21e72a905)
2021-12-16 00:54:53 +01:00
Treeston
b4b581de1b
Scripts/Commands: .account ban no longer fails if an account containing the specified account name is already banned (f.ex. attempting to ban 'test' if 'test2' is already banned) - closes #22990
...
(cherry picked from commit daf423a6c3c0fdd13e421f02ccd791103f7bdd5b)
2021-12-15 22:48:03 +01:00
ForesterDev
61cc88731c
Scripts/Commands: update .wp commands to use orientation field from DB (PR #23566 )
...
Closes #23330
(cherry picked from commit e71773140c8efbea4abe612a71d4a65f041d450c)
2021-12-15 00:17:13 +01:00
zartech22
1c3c59d7fa
Core/Instance : Fix instance resetting exploit ( #23263 )
...
* Push offline players out of instance
Push offline players out of instance when reseting dungeon with a raid mode group
* Add SQL request to character
Add a SQL request to update the position of a player in a specified map
* Teleport to graveyard instead
(cherry picked from commit 678e0e606aa38e18fd361c33bc91833fdae76735)
2021-12-11 23:12:27 +01:00
Giacomo Pozzoni
7a8d15d63b
Core/CreatureTemplate: Outsourced resistances and spells into creatur… ( #23343 )
...
* Core/CreatureTemplate: Outsourced resistances and spells into creature_template_spell and creature_template_resistance
* Rename 2019_99_99_00_world.sql to 2019_06_15_01_world.sql
(cherry picked from commit d5fb0a30ec62f3799416326d81d5d14992f9a6df)
2021-12-11 13:06:25 +01:00