Documentos de Académico
Documentos de Profesional
Documentos de Cultura
OVERVIEW
Here is the trail you must follow from where you define your creatures/NPCs to what they say:
creature_template:gossip_menu_id gossip_menu:entry
gossip_menu:text_id npc_text:ID
creature_template:gossip_menu_id gossip_menu_option:menu_id
APPLY UPDATES!
APPLY UPDATES!
To Simply Have the NPC Say One Thing
APPLY UPDATES!
To Have a Path of Dialogue/Options
5 = EVENT_T_KILL: Expires upon killing a player. Will repeat every (Param1) and
(Param2).
o Parameter 1: RepeatMin
o Parameter 2: RepeatMax
18 = EVENT_T_TARGET_MANA:
o Parameter 1: ManaMax%
o Parameter 2: ManaMin%
o Parameter 3: RepeatMin
o Parameter 4: RepeatMax
[Continuation of ‘creature_ai_scripts’]
‘event_chance”: 100
‘event_flags’: 1 [a bitmask Value from the following table]
o Add Values to allow for NPCs in instances.
Bit / Value* Name Description
Event repeats (Does not repeat if this flag is not
0 / 1 EFLAG_REPEATABLE
set)
Event only occurs in instance difficulty 0 (will not
1 / 2 EFLAG_DIFFICULTY_0
occur if not set)
Event only occurs in instance difficulty 1 (will not
2 / 4 EFLAG_DIFFICULTY_1
occur if not set)
Event only occurs in instance difficulty 2 (will not
3 / 8 EFLAG_DIFFICULTY_2
occur if not set)
Event only occurs in instance difficulty 3 (will not
4 / 16 EFLAG_DIFFICULTY_3
occur if not set)
7 / 128 EFLAG_DEBUG_ONLY Event only occurs in debug build
* = Represents what the value in the field would be with no other additive flags.
‘action1_type’: 1
‘action1_param1’: - 999999 [corresponds to creature_ai_texts:entry]
Open the ‘creature_ai_texts’ table.
Insert a new record (row).
Enter these values in the following fields:
‘entry’: -999999
o Note: This number is always negative.
‘content_default’: “What you want the NPC to say…” [without quotes]
o Note: This is the actual text presented in the default language (English).
‘type’: [value corresponding to the method of display]
Value Type
0 Say
1 Yell
2 Text Emote
3 Boss Emote
4 Whisper
5 Boss Whisper
‘sound’: The sound ID that will play with along with the text. All sounds are from sounds.dbc.
‘language’: The in-game language of the text. Languages are from Languages.dbc.
‘emote’: The emote that the creature performs along with the text.