Skip to content

string_id

killerwife edited this page May 14, 2023 · 21 revisions

Back to world database list of tables.

The string_id table

This table contains id and string connection between string_id variables

Structure

Field Type NULL Key Default Comments
[Id] int(11) unsigned NO PRIMARY 0 Primary Key
[Name] varchar(255) YES

Description of the fields

Id

Numeric identifier of string_id variable

Name

String identifier of string_id variable - should be descriptive on where it is used, without spaces and limited to 255 characters.

Uses

Targeting for dbscripts
Targeting for spells - spell_script_target
Targeting for C++ scripts:
Spells:

auto creaturesWithStringId = spell->GetCaster()->GetMap()->GetCreatures("STRING_ID");

AI:

auto creaturesWithStringId = m_creature->GetMap()->GetCreatures("STRING_ID");
Clone this wiki locally