mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Docs: Add some information about how the CleanupCharacterDB-option in
the configfile works, and how to use it (properly). --HG-- branch : trunk
This commit is contained in:
33
doc/CharacterDBCleanup.txt
Normal file
33
doc/CharacterDBCleanup.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
The purpose of the CharacterDB cleanup routines is to remove old, non-
|
||||
existent and erranous/defunct skills, talents, spells, and achievements
|
||||
from characters in the database.
|
||||
|
||||
To achieve this, add an entry (number) in the worldstate-table
|
||||
(id:20004), combining the following arguments (bitmasked):
|
||||
|
||||
CLEANING_FLAG_ACHIEVEMENT_PROGRESS = 0x1
|
||||
CLEANING_FLAG_SKILLS = 0x2
|
||||
CLEANING_FLAG_SPELLS = 0x4
|
||||
CLEANING_FLAG_TALENTS = 0x8
|
||||
|
||||
Example:
|
||||
We want to clean up old talents, spells and skills, but leave
|
||||
achivements alone - ie. NOT touching those. We'd then need to combine
|
||||
the numbers from each of the above fields:
|
||||
|
||||
CLEANING_FLAG_SKILLS + CLEANING_FLAG_SPELLS + CLEANING_FLAG_TALENTS
|
||||
|
||||
This comes out as 2+4+8 => 14, and we now put an entry in for this in
|
||||
the worldstate table (this is done on the CHARACTERS database) :
|
||||
|
||||
UPDATE worldstates SET value=14 WHERE entry=20004;
|
||||
|
||||
This will then (when the core is restarting) clean up old and missing
|
||||
skills, spells and talents.
|
||||
|
||||
Please note that we are not responsible for any issues that might come
|
||||
from this, and that you are (as the owner of the database), responsible
|
||||
for doing proper backups prior to doing the above in case of anything
|
||||
going wrong.
|
||||
|
||||
-- The TrinityCore developer team
|
||||
Reference in New Issue
Block a user