scene_template
The `scene_template` table
This table is used to store necessary data for scenes to run, e.g. ScriptPackageId and Flags.
Structure
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
SceneId | in(10) | UNSIGNED | PRI | NO | NONE | ||
Flags | INT | UNSIGNED | NO | 16 | |||
ScriptPackageId | INT | UNSIGNED | NO | NONE | |||
ScriptName | char(64) | UNSIGNED | NO | ' ' |
Description of the fields
SceneId
SceneId given by auras which have SPELL_AURA_SCENE_PLAY (430).
Some scenes do not have a spell, this are handled by scripts. Use C++ hook to start them, e.g.:
player→GetSceneMgr().PlayScene(SceneId);
Flags
This flags handle behavior of scene.
Flag | Int Value | Bit value | Comment |
---|---|---|---|
SCENEFLAG_NONE | 0 | 0x00000000 | |
SCENEFLAG_UNK1 | 1 | 0x00000001 | NYI |
SCENEFLAG_UNK2 | (SCENEFLAG_CANCLE_AT_END) | 2 | 0x00000002 |