aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-12-26 22:38:49 +0100
committerclick <none@none>2010-12-26 22:38:49 +0100
commit4881f3948d3d7feb1b0d147d8a20e16bc6df647b (patch)
treed0fa45c3d14cb42a91b4d00f500c822390a5c19a
parentefbc73d025b12791b119eeeb5f4267a3f968f601 (diff)
Docs: Add some information about how the CleanupCharacterDB-option in
the configfile works, and how to use it (properly). --HG-- branch : trunk
-rw-r--r--doc/CharacterDBCleanup.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/CharacterDBCleanup.txt b/doc/CharacterDBCleanup.txt
new file mode 100644
index 00000000000..bcf1f380f4e
--- /dev/null
+++ b/doc/CharacterDBCleanup.txt
@@ -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