Sign in to follow this  
Followers 0
Florix

Behavior Of A Creature

2 posts in this topic

Hello there,
 
 
You will learn how to change the behavior of a creature at the spawn.

Emote

 
An emote is an animation made by a creature (or character) and is identified by an unique ID.
 
List of emotes (including MoP) :


This list is more complete than the Trinity wiki.
Do not pay attention to the numbers after the description of the emote, it did not serve (DBC extracted).
 
 
There are 2 tables in the database that let you change the emotes of a creature, however they are very different because the table:

0,"ONESHOT_NONE",0,0x0,0x0,0,0,0,


1,"ONESHOT_TALK(DNR)",60,0x88,0x0,0,0,0,
2,"ONESHOT_BOW",66,0x4001,0x0,0,0,0,
3,"ONESHOT_WAVE(DNR)",67,0x0,0x0,0,0,0,
4,"ONESHOT_CHEER(DNR)",68,0x0,0x0,0,0,0,
5,"ONESHOT_EXCLAMATION(DNR)",64,0xA0,0x0,0,0,0,
6,"ONESHOT_QUESTION",65,0x90,0x0,0,0,0,
7,"ONESHOT_EAT",61,0x0,0x0,0,0,0,
10,"STATE_DANCE",69,0x47081,0x2,0,0,0,
11,"ONESHOT_LAUGH",70,0x180,0x0,0,0,0,
12,"STATE_SLEEP",0,0x6200,0x1,3,0,0,
13,"STATE_SIT",0,0x6200,0x1,1,0,0,
14,"ONESHOT_RUDE(DNR)",73,0x1,0x0,0,0,0,
15,"ONESHOT_ROAR(DNR)",74,0x0,0x0,0,0,0,
16,"ONESHOT_KNEEL",75,0x4000,0x0,0,0,0,
17,"ONESHOT_KISS",76,0x0,0x0,0,0,0,
18,"ONESHOT_CRY",77,0x0,0x0,0,0,0,
19,"ONESHOT_CHICKEN",78,0x0,0x0,0,0,0,
20,"ONESHOT_BEG",79,0x44000,0x0,0,0,0,
21,"ONESHOT_APPLAUD",80,0x0,0x0,0,0,0,
22,"ONESHOT_SHOUT(DNR)",81,0xC0,0x0,0,0,0,
23,"ONESHOT_FLEX",82,0x0,0x0,0,0,0,
24,"ONESHOT_SHY(DNR)",83,0x4000,0x0,0,0,0,
25,"ONESHOT_POINT(DNR)",84,0x0,0x0,0,0,0,
26,"STATE_STAND",0,0x6200,0x1,0,0,0,
27,"STATE_READYUNARMED",25,0x26000,0x2,0,0,0,
28,"STATE_WORK_SHEATHED",62,0x6000,0x2,0,0,0,
29,"STATE_POINT(DNR)",84,0x4000,0x2,0,0,0,
30,"STATE_NONE",0,0x4000,0x2,0,0,0,
33,"ONESHOT_WOUND",9,0x400,0x0,0,0,0,
34,"ONESHOT_WOUNDCRITICAL",10,0x400,0x0,0,0,0,
35,"ONESHOT_ATTACKUNARMED",16,0x4400,0x0,0,0,0,
36,"ONESHOT_ATTACK1H",17,0x4400,0x0,0,0,0,
37,"ONESHOT_ATTACK2HTIGHT",18,0x4400,0x0,0,0,0,
38,"ONESHOT_ATTACK2HLOOSE",19,0x4400,0x0,0,0,0,
39,"ONESHOT_PARRYUNARMED",20,0x4400,0x0,0,0,0,
43,"ONESHOT_PARRYSHIELD",24,0x4400,0x0,0,0,0,
44,"ONESHOT_READYUNARMED",25,0x20400,0x0,0,0,0,
45,"ONESHOT_READY1H",26,0x20400,0x0,0,0,0,
48,"ONESHOT_READYBOW",29,0x20400,0x0,0,0,0,
50,"ONESHOT_SPELLPRECAST",31,0x4400,0x0,0,0,0,
51,"ONESHOT_SPELLCAST",32,0x4400,0x0,0,0,0,
53,"ONESHOT_BATTLEROAR",55,0x400,0x0,0,0,0,
54,"ONESHOT_SPECIALATTACK1H",57,0x4400,0x0,0,0,0,
60,"ONESHOT_KICK",95,0x4400,0x0,0,0,0,
61,"ONESHOT_ATTACKTHROWN",107,0x4400,0x0,0,0,0,
64,"STATE_STUN",14,0x4400,0x2,0,0,0,
65,"STATE_DEAD",0,0x6600,0x1,7,0,0,
66,"ONESHOT_SALUTE",113,0x0,0x0,0,0,0,
68,"STATE_KNEEL",0,0x6200,0x1,8,0,0,
69,"STATE_USESTANDING",63,0x6000,0x2,0,0,0,
70,"ONESHOT_WAVE_NOSHEATHE",67,0x0,0x0,0,0,0,
71,"ONESHOT_CHEER_NOSHEATHE",68,0x0,0x0,0,0,0,
92,"ONESHOT_EAT_NOSHEATHE",199,0x0,0x0,0,0,0,
93,"STATE_STUN_NOSHEATHE",137,0x4000,0x2,0,0,0,
94,"ONESHOT_DANCE",69,0x4000,0x0,0,0,0,
113,"ONESHOT_SALUTE_NOSHEATH",210,0x0,0x0,0,0,0,
133,"STATE_USESTANDING_NOSHEATHE",138,0x2000,0x2,0,0,0,
153,"ONESHOT_LAUGH_NOSHEATHE",70,0x0,0x0,0,0,0,
173,"STATE_WORK",136,0x6000,0x2,0,0,0,
193,"STATE_SPELLPRECAST",31,0x4000,0x2,0,0,0,
213,"ONESHOT_READYRIFLE",48,0x20000,0x0,0,0,0,
214,"STATE_READYRIFLE",48,0x22000,0x2,0,0,0,
233,"STATE_WORK_MINING",136,0x2000,0x2,0,3782,0,
234,"STATE_WORK_CHOPWOOD",136,0x2000,0x2,0,3202,0,
253,"STATE_APPLAUD",80,0x6000,0x2,0,0,0,
254,"ONESHOT_LIFTOFF",192,0x0,0x0,0,0,0,
273,"ONESHOT_YES(DNR)",185,0x0,0x0,0,0,0,
274,"ONESHOT_NO(DNR)",186,0x0,0x0,0,0,0,
275,"ONESHOT_TRAIN(DNR)",195,0x0,0x0,0,0,0,
293,"ONESHOT_LAND",200,0x0,0x0,0,0,0,
313,"STATE_AT_EASE",0,0x0,0x1,2,0,0,
333,"STATE_READY1H",26,0x23000,0x2,0,0,0,
353,"STATE_SPELLKNEELSTART",140,0x0,0x2,0,0,0,
373,"STAND_STATE_SUBMERGED",202,0x0,0x1,0,0,0,
374,"ONESHOT_SUBMERGE",201,0x0,0x0,0,0,0,
375,"STATE_READY2H",27,0x26000,0x2,0,0,0,
376,"STATE_READYBOW",29,0x22000,0x2,0,0,0,
377,"ONESHOT_MOUNTSPECIAL",94,0xC003,0x0,0,0,0,
378,"STATE_TALK",60,0x6000,0x2,0,0,0,
379,"STATE_FISHING",134,0x6001,0x2,0,0,0,
380,"ONESHOT_FISHING",133,0x5000,0x0,0,3354,0,
381,"ONESHOT_LOOT",50,0x4400,0x0,0,0,0,
382,"STATE_WHIRLWIND",126,0x0,0x2,0,0,0,
383,"STATE_DROWNED",132,0x4000,0x2,0,0,0,
384,"STATE_HOLD_BOW",109,0x0,0x2,0,0,0,
385,"STATE_HOLD_RIFLE",110,0x4000,0x2,0,0,0,
386,"STATE_HOLD_THROWN",111,0x4000,0x2,0,0,0,
387,"ONESHOT_DROWN",131,0x0,0x0,0,0,0,
388,"ONESHOT_STOMP",181,0x4000,0x0,0,0,0,
389,"ONESHOT_ATTACKOFF",87,0x4400,0x0,0,0,0,
390,"ONESHOT_ATTACKOFFPIERCE",88,0x4400,0x0,0,0,0,
391,"STATE_ROAR",74,0x0,0x2,0,0,0,
392,"STATE_LAUGH",70,0x0,0x2,0,0,0,
393,"ONESHOT_CREATURE_SPECIAL",130,0x400,0x0,0,0,0,
394,"ONESHOT_JUMPLANDRUN",187,0x0,0x0,0,0,0,
395,"ONESHOT_JUMPEND",39,0x0,0x0,0,0,0,
396,"ONESHOT_TALK_NOSHEATHE",208,0x88,0x0,0,0,0,
397,"ONESHOT_POINT_NOSHEATHE",209,0x0,0x0,0,0,0,
398,"STATE_CANNIBALIZE",203,0x4000,0x2,0,0,0,
399,"ONESHOT_JUMPSTART",37,0x400,0x0,0,0,0,
400,"STATE_DANCESPECIAL",211,0x0,0x2,0,0,0,
401,"ONESHOT_DANCESPECIAL",211,0x0,0x0,0,0,0,
402,"ONESHOT_CUSTOMSPELL01",213,0x0,0x0,0,0,0,
403,"ONESHOT_CUSTOMSPELL02",214,0x0,0x0,0,0,0,
404,"ONESHOT_CUSTOMSPELL03",215,0x0,0x0,0,0,0,
405,"ONESHOT_CUSTOMSPELL04",216,0x0,0x0,0,0,0,
406,"ONESHOT_CUSTOMSPELL05",217,0x0,0x0,0,0,0,
407,"ONESHOT_CUSTOMSPELL06",218,0x0,0x0,0,0,0,
408,"ONESHOT_CUSTOMSPELL07",219,0x0,0x0,0,0,0,
409,"ONESHOT_CUSTOMSPELL08",220,0x0,0x0,0,0,0,
410,"ONESHOT_CUSTOMSPELL09",221,0x0,0x0,0,0,0,
411,"ONESHOT_CUSTOMSPELL10",222,0x0,0x0,0,0,0,
412,"STATE_EXCLAIM",64,0x1008,0x2,0,0,0,
413,"STATE_DANCE_CUSTOM",0,0x7081,0x2,0,0,0,
415,"STATE_SIT_CHAIR_MED",103,0x0,0x2,0,0,0,
416,"STATE_CUSTOM_SPELL_01",213,0x0,0x2,0,0,0,
417,"STATE_CUSTOM_SPELL_02",214,0x0,0x2,0,0,0,
418,"STATE_EAT",61,0x0,0x2,0,0,0,
419,"STATE_CUSTOM_SPELL_04",216,0x0,0x2,0,0,0,
420,"STATE_CUSTOM_SPELL_03",215,0x0,0x2,0,0,0,
421,"STATE_CUSTOM_SPELL_05",217,0x0,0x2,0,0,0,
422,"STATE_SPELLEFFECT_HOLD",158,0x0,0x2,0,0,0,
423,"STATE_EAT_NO_SHEATHE",199,0x5200,0x2,0,0,0,
424,"STATE_MOUNT",91,0x38,0x1,0,0,0,
425,"STATE_READY2HL",28,0x20000,0x2,0,0,0,
426,"STATE_SIT_CHAIR_HIGH",104,0x0,0x2,0,0,0,
427,"STATE_FALL",40,0x0,0x2,0,0,0,
428,"STATE_LOOT",188,0x1000,0x2,0,0,0,
429,"STATE_SUBMERGED",202,0x4000,0x2,1,0,0,
430,"ONESHOT_COWER(DNR)",225,0x0,0x0,0,0,0,
431,"STATE_COWER",225,0x0,0x2,0,0,0,
432,"ONESHOT_USESTANDING",63,0x0,0x0,0,0,0,
433,"STATE_STEALTH_STAND",120,0x4000,0x2,0,3325,0,
434,"ONESHOT_OMNICAST_GHOUL (W/SOUND",54,0x0,0x0,0,410,0,
435,"ONESHOT_ATTACKBOW",46,0x0,0x0,0,0,0,
436,"ONESHOT_ATTACKRIFLE",49,0x0,0x0,0,0,0,
437,"STATE_SWIM_IDLE",41,0x0,0x2,0,0,0,
438,"STATE_ATTACK_UNARMED",16,0x0,0x2,0,3782,0,
439,"ONESHOT_SPELLCAST (W/SOUND)",32,0x2100,0x0,0,3202,0,
440,"ONESHOT_DODGE",30,0x4400,0x0,0,0,0,
441,"ONESHOT_PARRY1H",21,0x4400,0x0,0,0,0,
442,"ONESHOT_PARRY2H",22,0x4400,0x0,0,0,0,
443,"ONESHOT_PARRY2HL",28,0x24400,0x0,0,0,0,
444,"STATE_FLYFALL",269,0x0,0x2,0,0,0,
445,"ONESHOT_FLYDEATH",230,0x0,0x0,0,0,0,
446,"STATE_FLY_FALL",269,0x200,0x2,0,0,0,
447,"ONESHOT_FLY_SIT_GROUND_DOWN",325,0x0,0x0,0,0,0,
448,"ONESHOT_FLY_SIT_GROUND_UP",327,0x0,0x0,0,0,0,
449,"ONESHOT_EMERGE",224,0x0,0x0,0,0,0,
450,"ONESHOT_DRAGONSPIT",182,0x0,0x0,0,0,0,
451,"STATE_SPECIALUNARMED",118,0x0,0x2,0,0,0,
452,"ONESHOT_FLYGRAB",455,0x0,0x0,0,0,0,
453,"STATE_FLYGRABCLOSED",456,0x0,0x2,0,0,0,
454,"ONESHOT_FLYGRABTHROWN",457,0x0,0x0,0,0,0,
455,"STATE_FLY_SIT_GROUND",326,0x0,0x2,0,0,0,
456,"STATE_WALKBACKWARDS",13,0x0,0x2,0,0,0,
457,"ONESHOT_FLYTALK",289,0x8,0x0,0,0,0,
458,"ONESHOT_FLYATTACK1H",246,0x0,0x0,0,0,0,
459,"STATE_CUSTOMSPELL08",220,0x0,0x2,0,0,0,
460,"ONESHOT_FLY_DRAGONSPIT",411,0x0,0x0,0,7274,0,
461,"STATE_SIT_CHAIR_LOW",102,0x0,0x2,0,0,0,
462,"ONE_SHOT_STUN",14,0x0,0x0,0,0,0,
463,"ONESHOT_SPELLCAST_OMNI",54,0x0,0x0,0,0,0,
465,"STATE_READYTHROWN",108,0x21000,0x2,0,0,0,
466,"ONESHOT_WORK_CHOPWOOD",62,0x2000,0x0,0,3202,0,
467,"ONESHOT_WORK_MINING",136,0x2000,0x0,0,3782,0,
468,"STATE_SPELL_CHANNEL_OMNI",125,0x0,0x2,0,0,0,
469,"STATE_SPELL_CHANNEL_DIRECTED",124,0x0,0x2,0,0,0,
470,"STAND_STATE_NONE",0,0x200,0x1,0,0,0,
471,"STATE_READYJOUST",476,0x0,0x1,0,0,0,
472,"STATE_STRANGULATE",474,0x4000,0x2,0,0,0,
473,"STATE_STRANGULATE",474,0x0,0x2,0,0,0,
474,"STATE_READYSPELLOMNI",52,0x20000,0x2,0,0,0,
475,"STATE_HOLD_JOUST",478,0x0,0x2,0,0,0,
476,"ONESHOT_CRY (JAINA PROUDMOORE ONLY)",77,0x0,0x0,0,16651,0,
477,"ONESHOT_SPECIALUNARMED",118,0x4400,0x0,0,0,0,
478,"STATE_DANCE_NOSHEATHE",69,0x7081,0x2,0,0,0,
479,"ONESHOT_SNIFF",506,0x81,0x0,0,0,0,
480,"ONESHOT_DRAGONSTOMP",181,0x0,0x0,0,0,0,
482,"ONESHOT_KNOCKDOWN",121,0x0,0x0,0,0,0,
483,"STATE_READ",520,0xFC7804,0x2,0,0,20084,
485,"ONESHOT_FLYEMOTETALK",289,0x0,0x0,0,0,0,
492,"STATE_READ_ALLOWMOVEMENT",520,0x7C3000,0x2,0,0,20084,
498,"STATE_CUSTOM_SPELL_06",218,0x0,0x2,0,0,0,
499,"STATE_CUSTOM_SPELL_07",219,0x0,0x2,0,0,0,
500,"STATE_CUSTOM_SPELL_08",220,0x0,0x2,0,0,0,
501,"STATE_CUSTOM_SPELL_09",221,0x0,0x2,0,0,0,
502,"STATE_CUSTOM_SPELL_10",222,0x0,0x2,0,0,0,
505,"STATE_READY1H_ALLOW_MOVEMENT",26,0x22000,0x2,0,0,0,
506,"STATE_READY2H_ALLOW_MOVEMENT",27,0x22000,0x2,0,0,0,
507,"ONESHOT_MONKOFFENSE_ATTACKUNARMED",672,0x0,0x0,0,0,0,
508,"ONESHOT_MONKOFFENSE_SPECIALUNARMED",680,0x0,0x0,0,0,0,
509,"ONESHOT_MONKOFFENSE_PARRYUNARMED",676,0x0,0x0,0,0,0,
510,"STATE_MONKOFFENSE_READYUNARMED",678,0x26000,0x2,0,0,0,
511,"ONESHOT_PALMSTRIKE",670,0x0,0x0,0,0,0,
512,"STATE_CRANE",710,0x6200,0x2,0,0,0,
517,"ONESHOT_OPEN",148,0x0,0x0,0,0,0,
518,"STATE_READ_CHRISTMAS",520,0xFC7804,0x2,0,0,22907,
526,"ONESHOT_FLYATTACK2HL",248,0x0,0x0,0,0,0,
527,"ONESHOT_FLYATTACKTHROWN",336,0x0,0x0,0,0,0,
528,"STATE_FLYREADYSPELLDIRECTED",280,0x0,0x2,0,0,0,
531,"STATE_FLY_READY_1H",255,0x0,0x2,0,0,0,
533,"STATE_MEDITATE",732,0x0,0x2,0,0,0,
534,"STATE_FLY_READY_2HL",257,0x0,0x2,0,0,0,
535,"ONESHOT_TOGROUND",460,0x0,0x0,0,0,0,
536,"ONESHOT_TOFLY",458,0x0,0x0,0,0,0,
537,"STATE_ATTACKTHROWN",107,0x4400,0x2,0,0,0,
538,"STATE_SPELL_CHANNEL_DIRECTED_NOSOUND",124,0x1000000,0x2,0,0,0,
539,"ONESHOT_WORK",62,0x2000,0x0,0,0,0,
540,"STATE_READYUNARMED_NOSOUND",25,0x1026000,0x2,0,0,0,
  • creature_addon : changes the posture of the creature for a GUID (Global Unique Identifier).
  • creature_template_addon : changes posture for all creatures having the same ID (entry).

Table Structure creature_template_addon :

  • entry : entry of the creature
  • path_id : id of waypoint (to change the emote for each path taken by the NPC)
  • mount : id of the mount
  • bytes1 : can take these values : 1(seated) 3(sleeping) 7(life bar empty) 8(kneeling) 9(creature under the ground) 33554432
  • emote: id of the selected emote
  • auras: NPC buff

In this tutorial I'll show you the functioning of emotes with the table creature_addon_template but it's the same with table creature_addon except that you must specify the guid and not the entry.

In this tutorial, I will take this creature Garde de Hurlevent (entry: 68) and emote 36 (ONESHOT_ATTACK1H) (you can very well choose an other one).
 
We shall thus have in the table creature_template_addon this:
%7Boption%7Dhttp://image.noelshack.com/fichiers/2014/18/1398978403-requete-emote.png

https://youtu.be/z-OmkK3DaPQ

Result in game

Add a mount to a creature


You must take ModelID of the mount and put this value in the column `mount`.
 
Let us take for example this mount http://www.wowhead.com/spell=65917/magic-rooster.
This spell invokes this creature Poulet magique, there are two ways to find the ModelID:

  • Wowhead source : visit the page http://www.wowhead.com/npc=34655 and display the source of the page. Take the value following "DisplayID" (do a search on the source to view faster).
  • Database :  Search in the table creature_template the modlid of the creature having 34655 as entry.

The table creature_template_addon should look like this (for entry 68):



1398979591-requete-emote2.png


Result in game
Posture of a creature


The column bytes1 can change the posture of the creature.As we saw earlier in the structure of the table, the column bytes1 can take the values 1(seated), 3(sleeping), 7(life bar empty), 8(kneeling), 9(creature under ground), 33554432.
 
As example in this tutorial I will take the sitting position, but you can very well choose another one.smile%20(16).png.
The row should look like this:
1399021393-requete-emote3.png


1399021693-wowscrnshot-050214-110755.jpg

Result in game

Auras


An aura is a spell which the creature will have at the spawn. To add more auras it's simple, just add a space between each ID.
 
Take for example these two spells (auras):

Your line in the table creature_template_addon will look like this:
1399022852-requete-emote5.png

Remember to separate each aura (if you put several) by a space.


1399022852-wowscrnshot-050214-112541.jpg
Both auras are on the creature at the spawn.

Original Post: http://community.pandashan.com/index.php?/topic/26825-behavior-of-a-creature/#entry155547
Result in game
2 people like this

Share this post


Link to post
Share on other sites

Haha you can also time all of these in smart scripts if you are willing to give a tut of that, since that is like the main DB when it comes to fixing things. I would make one but it takes so much of time. Maybe I will. If people want to know then they must ask me and I will xD Sure there are lots of people who need info on this db xD  Nice tut by the way.

Edited by Crackbones

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0