-
Notifications
You must be signed in to change notification settings - Fork 47
worldstate_name
Back to world database list of tables.
holds data on worldstate variables used for conditions
.CONDITION_WORLDSTATE
(42) or dbscripts
.SCRIPT_COMMAND_SET_WORLDSTATE
(53)
More explanation on workings at WorldStates
Field | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|
Id | int(11) | NO | PRIMARY KEY | NULL | Worldstate variable Id |
Name | VARCHAR(200) | NO | NULL | Name and use of variable |
Worldstate variable Id. Can be either official or custom defined in cMaNGOS. Officially discovered ones are in src/Game/World/WorldStateDefines.h
Official WorldStateID range from 1-10k (WoTLK ends at about 5k), Custom defined cMaNGOS WorldStateIDs start at 10k+.
instance_dungeon_encounters
.Id
is used for instanced Encounter WorldStateIDs. Some have filled out CompleteWorldStateID, which can be directly used for a condition. The ones without it filled out have instance_dungeon_encounters.Id * 100 + 2-99. 0 and 1 are always reserved by Core for "Alive" & "Killed".
Name and use of variable. Example: (78202, 'ZA - first 4 bosses dead - spawn Malacrass')
Mainly a bookkeeping table for naming and documenting uses. As we are introducing custom ones, we dont want to have undecipherable magic numbers.