Commit Graph
73 Commits
Author SHA1 Message Date
Shauren 9ea577da13 Core/RaF: Remove level granting (new RaF doesn't support this) 2019-11-03 14:25:39 +01:00
Shauren c3a9d56b56 Core/DBLayer: Support using mysql 8 2019-11-01 16:21:14 +01:00
Shauren 2072258ef4 Core/DBLayer: Escape mysql 8 keywords 2019-11-01 16:20:15 +01:00
Shauren 3ac790287a Core/DataStores: Updated db2 structures to 8.2.5 2019-10-27 00:12:45 +02:00
ariel- 26fe949619 Core/Server: fix duplicated inserts into tutorials table for newly created characters
(cherrypicked from 60dd803bbe01283b15e2b2c5b02d8f857b96745a)
2019-07-21 21:06:54 +02:00
xinef1 b485f3e673 Few small optimizations here and there (#18684)
Changes list:
- Added CharacterGuidByNameContainer which contains name -> guid unordered map (updated along CharacterInfo)
- Extended CharacterInfo structure with GuildId
- Extended CharacterInfo structure with ArenaTeamId[3], for all possible teams (2v2, 3v3, 5v5)
- Removed CHAR_SEL_GUID_BY_NAME and CHAR_SEL_CHAR_GUID_BY_NAME synchronous queries, name -> guid can be now retrieved in World::GetCharacterGuidByName
- Removed CHAR_SEL_GUID_RACE_ACC_BY_NAME synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid
- Removed CHAR_SEL_CHAR_LEVEL synchronous query, level can be retrieved by guid
- Changed CHAR_SEL_CHARACTER_ACTIONS_SPEC to asynchronous query, action bars are now loaded asynchronously
- Removed CHAR_SEL_CHARACTER_NAME_CLASS synchronous query, guid can be retrieved by name and rest of the data can be retrieved by guid
- Removed CHAR_SEL_PLAYER_ARENA_TEAMS and CHAR_SEL_ARENA_TEAM_ID_BY_PLAYER_GUID synchronous queries, arena teams are now stored in CharacterInfo
- Replaced synchronous db calls with CharacterInfo lookups
- Removed ObjectMgr::GetPlayerGUIDByName, as it used db query
- Replaced some unnecessary UpdateObjectVisibility() calls because they were either duplicated (called few lines above in other function) or it is enough to call DestroyForNearbyPlayers because object is being removed or should be invisible and DestroyForNearbyPlayers is faster
- Corrected typo in Player::DestroyForPlayer, only items in slots 0 to EQUIPMENT_SLOT_END are sent to other players
- Renamed Player::GetGuildIdFromDB to Player::GetGuildIdFromCharacterInfo and changed the function to use CharacterInfo structure
- Renamed Player::GetArenaTeamIdFromDB to Player::GetArenaTeamIdFromCharacterInfo and changed the function to use CharacterInfo structure
- Renamed Player::GetLevelFromDB to Player::GetLevelFromCharacterInfo and changed the function to use CharacterInfo structure
- Removed GameEventMgr::_questToEventLinks and associated functions, eventId is now stored in Quest class under _eventIdForQuest variable
- Changed some functions checking quest status to use other functions for quest status check instead of duplicating code
- Removed callback from add friend, because we can get the guid from appropriate storage, no need to make db query
- Removed callback from add ignore, because we can get the guid from appropriate storage, no need to make db query
- Added callback to unwrap wrapped items asynchronously
- Removed synchronous select in tutorials to check if we have any entries in db, if any entry exists in db, m_TutorialsChanged variable will have TUTORIALS_FLAG_LOADED_FROM_DB flag added and it is no longer necessary to query database

(cherrypicked from b955456008191e60b6bda1f22e3486a3792b08db)
2019-07-21 21:06:54 +02:00
Shauren 82c7b6c568 Core/Items: Drop item random property and suffix - all random stats must be given using bonus lists 2019-06-08 17:09:20 +02:00
Shauren 455959c606 Core/PacketIO: Rewrite updatefield handling 2019-06-08 17:06:57 +02:00
vincent-michael 5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Shauren f94deace76 Merge branch 'bfa' 2018-12-09 14:45:03 +01:00
ariel- ea0cd93662 Core/Scripts: added command to move characters across accounts
(cherry-picked from f7f865f81803effa17b19ef79762a72fe726b1ac)
2018-12-09 14:18:42 +01:00
Shauren 7512ffb058 Core/Entities: Update updatefields to 8.0.1.27980 2018-10-10 22:11:41 +02:00
Shauren e0309d94c8 Core/Players: Updated pvp talent implementation to bfa 2018-09-26 19:01:31 +02:00
Traesh 55a0a2d3f6 Core/Artifact Handle Artifact tiers + Artifact unlock (3rd relic bonus) (#21593) 2018-07-31 23:31:44 +02:00
Shocker 43e6de3637 Core/Database: Use DELETE FROM queries instead of TRUNCATE to avoid deadlocks caused by possible concurrent operations on the table being emptied 2018-05-16 15:05:53 +03:00
Jeremy f411b7a90e Core/Player: Implement PvP Talents (#19962)
* SPELL_AURA_119 -> SPELL_AURA_PVP_TALENTS
* Learn Honorable Medallion when pvp rules are enabled
2018-03-04 22:32:08 +01:00
Shauren 4af15915bc Core/PacketIO: Updated opcodes and packet structures to 7.3.5 2018-02-18 16:33:49 +01:00
Shauren c9465979c6 Core/Entities: Update updatefields to 7.3.5.25928 2018-02-18 16:33:27 +01:00
vincent-michael 7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
roc13x e04f75bd96 Core/Players: Several gold handling improvements
* Update gold limit to 10 million
* Updated auction house gold handling to 64-bit
* Fixed some vendor checks for when BuyCount > 1
* Tweaked some checks for available gold space
* Updated guild bank gold handling to 64-bit and fix withdraw limits
* Enforce gold limit on guild bank
* Check correct rank right when withdrawing from bank
* Other small changes to update money to 64-bit

Closes #19195
Closes #20152
2017-08-20 18:10:11 +02:00
Roger Stebler 4bc9ed0fde Core/Quests: Implemented criteria tree quest objective type
Closes #20161
2017-08-20 17:24:41 +02:00
Golrag ae83739ac7 Core/Players: Implement basics for the honor system
Closes #18480
Closes #19277
2017-06-04 16:52:53 +02:00
Tisk d4eb2f79ca Core/Player: Implemented saving PLAYER_FLAGS_EX in database 2017-05-24 21:45:29 +02:00
Shauren 7e538980a2 Core/Database: Include cleanup 2017-05-12 18:50:27 +02:00
Shauren 8fc527f404 Core/Items: Set and save item context field 2017-05-08 23:56:35 +02:00
Shauren adbdb64301 Core/PacketIO: Updated server packet structures to 7.2.0 2017-04-15 12:32:36 +02:00
SnapperRy cab4ce3a53 Core/Fishing: implement retail-like fishing skill-up functionality (#17528)
Follow-up to  6f1e823.

Forgot to update base characters database. Sorry.
2017-02-26 19:59:07 +01:00
ariel- 5d36f29843 Core/Misc: remove two synch queries and replace them with CharacterInfo cache
(cherry picked from commit 1a52c1cd36b567fc595afa4a5373cc9e6b461a37)
2017-02-05 21:07:32 +01:00
joschiwald a6d238b833 Core/Player: Moved character_template from character to world db 2017-01-29 16:09:46 +01:00
joschiwald d3ee5a2d32 Core/Players: Fixed accidentally deleting Talents
Note: If you want to delete deprecated Talents from DB, enable the CharacterDatabaseCleaner
2017-01-22 02:20:12 +01:00
vincent-michael 86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren 8742732149 Core/Items: Implemented bonus list as a possible result of RandomSuffix
Ref #18423
2016-12-26 21:21:28 +01:00
Shauren bfa9a4c959 Core/Items: Fixed item level increases of gems with bonuses that give them scaling stat distribution 2016-12-09 20:00:20 +01:00
Shauren f9b4f686c8 Core/Scenarios: Removed a bad usage of blocking db queries when saving scenario to db 2016-11-07 10:55:29 +01:00
Krudor 8444ab7365 Core/Instances: Implemented base scenario system and objectives in dungeons
Closes #17905
Closes #18034
2016-11-06 23:30:49 +01:00
Shauren af25942aec Core/PacketIO: Updated packets to 7.1.0.22900 2016-10-25 19:29:27 +02:00
ariel- 59a9bc5ca0 Core/Channels: Revamp of channel system
* Core/Chat: general cleanup and revamping: (#17576) (fbbb03212e93591a77a1169a30fb01867cd3c0e9)
* Core/Channel: restore accidentally deleted line, fixes channels not honoring ownership setting (7c714179930c8c369f124d8d1404656fff0a1199)
* Channel Followup: avoid setting an invisible gm as Channel owner (#17597) (8a8362ef153eca50be0bcb5670e615b9685607fc)
* Core/Channel: change the way channels are stored and sent to client, fixes multiple channels per zone when using different locales (#17980)
2016-10-07 01:09:28 -03:00
Shauren 40d24da092 Core/Items: Reworked loading child equipment from database, these items are now loaded last
Closes #18025
2016-09-30 18:04:50 +02:00
Shauren a727a99e34 Core/Players: Implemented new glyph system 2016-08-25 19:12:00 +02:00
Shauren fea0cb16f2 Core/Items: Implemented artifacts 2016-08-15 00:03:38 +02:00
Shauren 6c1c8e7581 Core/PacketIO: Send spec id in char enum 2016-07-19 17:44:00 +02:00
Shauren a9a13d10f7 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-17 17:37:06 +02:00
Krudor 649e3a9ac5 Core/Instances: Add functionality for modifying instance entrance locations
Instances have since MoP (Possibly even Cataclysm) been able to set new locations for players when they zone into the instance.
A theoretic example of this could be after a certain boss has been defeated, a new entrance location is set to bring players entering the instance closer to the relevant content.
A real example would be Siege of Orgrimmar changing entrance locations many times as the raid progresses.

Added SetEntranceLocation for setting entrance locations that will be saved to DB the next time the instance is saved, and SetTemporaryEntranceLocation for when you don't want the value to be saved to the database.

Closes #17167
2016-07-16 14:58:33 +02:00
Shauren 452cae0c0b Core/Items: Fixed saving gem bonuses 2016-07-10 14:41:18 +02:00
Shauren 70137b8f3a Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-07-06 00:05:13 +02:00
Shauren f7883bd525 Core/Transmog: Implemented transmog collection and updated transmog handling 2016-07-05 22:07:35 +02:00
Shauren f6cac4df5b Core/Items: Item upgrade followup
* Fixed Item::SetModifier to broadcast value updates
* Generate base item upgrade when looting
* Generate base item upgrade when loading from db and db2 data changed
2016-06-21 20:41:30 +02:00
Shauren 0de1adf281 Core/PacketIO: Updated equipment set packets and implemented saving transmog outfits (even if transmog itself isnt updated) 2016-06-18 23:03:16 +02:00
Shauren d2733eb6f1 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into legion 2016-06-13 21:00:25 +02:00
Shauren f14c66b5e4 Core/Players: Updated talent specializations 2016-06-09 21:33:18 +02:00