Skip to content
killerwife edited this page May 29, 2022 · 7 revisions

Back to world database list of tables.

The worldstate_name tables

holds data on worldstate variables used for conditions.CONDITION_WORLDSTATE (42) or dbscripts.SCRIPT_COMMAND_SET_WORLDSTATE (53)

Structure

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

Id

Worldstate variable Id. Can be either official or custom defined in cMaNGOS. Officially discovered ones are in src/Game/World/WorldStateDefines.h

Name

Name and use of variable. Example: 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.

Clone this wiki locally