Making a cow speaking – MaNgos Scripting

Kategorie: MaNGOS, Tutorials     Autor: lin0x     Datum: Sonntag 26 April 2009     Uhrzeit: 22:42          

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”.


Keine Kommentare »

Noch keine Kommentare.

RSS-Feed für Kommentare zu diesem Artikel. TrackBack URI

Einen Kommentar hinterlassen

You must be logged in to post a comment.

Copyright © 2010 geekdiscussions.org. WP Theme created by Web Top.