Back to 'creature_template_spell' Return to world Go to 'creature_text_locale'
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
CreatureID | int | unsigned | PRI | NO | 0 | ||
GroupID | tinyint | unsigned | PRI | NO | 0 | ||
ID | tinyint | unsigned | PRI | NO | 0 | ||
Text | mediumtext | NO | |||||
Type | tinyint | unsigned | NO | 0 | |||
Language | tinyint | unsigned | NO | 0 | |||
Probability | float | NO | 0 | ||||
Emote | int | unsigned | NO | 0 | |||
Duration | int | unsigned | NO | 0 | |||
Sound | int | unsigned | NO | 0 | |||
SoundPlayType | tinyint | unsigned | NO | 0 | |||
BroadcastTextId | int | signed | NO | 0 | |||
TextRange | tinyint | unsigned | NO | 0 | |||
comment | varchar(255) | YES | '' |
This is the creature_template.entry to which the script is linked to.
If there is more than one of the same entry (more than one text the creature says), this column is used to choose if it is a random say or an ordered list. If a creature has got more than one say text to be shown in a given order, it must be incremented for each new matching entry (ex. 0, 1, 2, 3...). If there is only one entry or only one group, this value should be 0. If there are multiple groups of texts, this value stays the same within the group while the id increments within the same group.
Example from Stormwind City Guard, creature 68:
CreatureID | GroupID | ID | Text |
---|---|---|---|
68 | 0 | 0 | Taste blade, mongrel! |
68 | 0 | 1 | Please tell me that you didn't just do what I think you just did. Please tell me that I'm not going to have to hurt you... |
68 | 0 | 2 | As if we don't have enough problems, you go and create more! |
68 | 2 | 0 | %s throws a rotten apple at $n. |
68 | 3 | 0 | %s throws rotten banana on $n. |
68 | 4 | 0 | %s spits on $n. |
68 | 5 | 0 | Monster! |
68 | 5 | 1 | Murderer! |
68 | 5 | 2 | GET A ROPE! |
68 | 5 | 3 | How dare you set foot in our city! |
68 | 5 | 4 | You disgust me. |
68 | 5 | 5 | Looks like we're going to have ourselves an execution. |
68 | 5 | 6 | Traitorous dog. |
68 | 5 | 7 | My family was wiped out by the Scourge! MONSTER! |
Entry for each group of texts. This is the unique identifier when entry (creature) is the same and groupid is unchanged, it must be incremented (ex. 0, 1, 2, 3...). A creature say will be randomly selected from this list based on the groupid it belongs to.
The text the creature will say.
Value | Name | Picture example |
---|---|---|
12 | Say | |
14 | Yell | |
16 | Emote | |
41 | BossEmote | |
15 | Whisper | |
42 | BossWhisper |
ID from Languages.db2
A value from 1-100 that represents the percentage chance that this text will be executed.
The emote that the creature plays when the text is executed.
Time in ms to see text.
0 is default and calculated by core.
The sound entry this creature will play at the same time the text is executed.
Assigns which packet should be used to send the sound
Type | Value |
---|---|
Normal | 0 |
ObjectSound | 1 |
Id of the equivalent text found in broadcast_text
In some rare cases it's not sent in sniff, in that case put 0
in this field, as this field is optional.
Localization is then handled via. creature_text_locales.
Value | Range |
---|---|
0 | Default |
1 | Area |
2 | Zone |
3 | Map |
4 | World |
5 | Personal |
This field allows you to label a text entry.
Back to 'creature_template_spell' Return to world Go to 'creature_text_locale'