Making a cow speaking – MaNgos Scripting
1. Modify creature 2442 (normal cow) and set the faction to 32.
2. Go to the table eventai_scripts and add a new entry, I used this data:
id: 9006734
creature_id: 2442
event_type: 4
event_chance: 100
action1_type: 1
action1_param1: -5621
comment: cow event on aggro
event_type 4 means, that the event is triggered by drawing aggro from a player. The action type basically says that the action is declared as “saying”, and the param refers to an entry in eventai_texts.
I created this one:
entry: -5621
content_default: Moooooooh. Don’t attack the cow!
And for the whole thing to be working, edit the creature template of entry 2442 and add mob_eventai to the field “Script name”.