Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.
Comentarios: Updated column names according to TDB 335.63 changes

...

Field

Type

Attributes

Key

Null

Default

Extra

Comment

entryCreatureID

mediumint(8)

unsigned

PRI

NO

0

 

creature_template entry

groupidGroupID

tinyint(3)

unsigned

PRI

NO

0

 

 

idID

tinyint(3)

unsigned

PRI

NO

0

 

 

textText

longtext

utf8_general_ci

 

YES

NULL

 

 

typeType

tinyint(3)

unsigned

 

NO

0

 

 

languageLanguage

tinyint(3)

unsigned

 

NO

0

 

 

probabilityProbability

float

signed

 

NO

0

 

 

emoteEmote

mediumint(8)

unsigned

 

NO

0

 

 

durationDuration

mediumint(8)

unsigned

 

NO

0

 

 

soundSound

mediumint(8)

unsigned

 

NO

0

 

 

BroadcastTextIdmediumint(6)signed NO0  
TextRangetinyint(3)unsigned NO0  

comment

varchar(255)

utf8_general_ci

 

YES

' '

 

 

Description of the fields

...

CreatureID

This is the creature_template.entry to which the script is linked to.

...

GroupID

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:

entryCreatureIDgroupidGroupIDidIDtextText
6800Taste blade, mongrel!
6801Please 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...
6802As if we don't have enough problems, you go and create more!
6820%s throws a rotten apple at $n.
6830%s throws rotten banana on $n.
6840%s spits on $n.
6850Monster!
6851Murderer!
6852GET A ROPE!
6853How dare you set foot in our city!
6854You disgust me.
6855Looks like we're going to have ourselves an execution.
6856Traitorous dog.
6857My family was wiped out by the Scourge! MONSTER!

...

ID

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.

...

Text

The text the creature will say.

...

Type

Value

Old value

Localization

Picture Example

12

0

Say

14

1

Yell

16

2

Emote

41

3

Boss Emote

15

4

Whisper

42

5

Boss Whisper

...

Language

Value from Languages.dbc (+ the wiki table from the dbc file). When set to 0, the current default language will be used.

...

Probability

A value from 1-100 that represents the percentage chance that this text will be executed.

...

Emote

The emote that the creature plays when the text is executed. Value to use in this field can be obtained from the emote.dbc

...

Duration

Time in ms to see text.
0 is default and calculated by core.

...

Sound

The sound entry this creature will play at the same time the text is executed. Sounds are found in SoundEntries.dbc.

...