Creature spawns

From ArcEmu-Wiki
Revision as of 08:52, 1 November 2012 by Magnifikator (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
+/-
Main Page                   Other languages:   English  •   German   •   FrenchArcEmu Website     ArcEmu Forum     Bug Tracker


Ico maintenance.png Some of the content of this wikipage is not up to date and need some maintenance. Please help to improve this page and do some update.


Contents

id

entry

map

position_x

position_y

position_z

orientation

movetype

Detailed description: enum MovementType in AIInterface.h


MOVEMENTTYPE_NONE 0 Walk in line
MOVEMENTTYPE_RANDOMWP 1 Walks random through waypoints
MOVEMENTTYPE_CIRCLEWP 2 TODO: Need description
MOVEMENTTYPE_WANTEDWP 3 TODO: Need description
MOVEMENTTYPE_DONTMOVEWP 4 TODO: Need description
MOVEMENTTYPE_QUEST 10 TODO: Need description
MOVEMENTTYPE_FORWARDTHANSTOP 11 TODO: Need description


displayid

The ID for the display/skin of the creature.


faction

The ID of the faction of the creature. Should match the faction ID in the creature's Creature_proto.

List of Faction_IDs.


flags

(found in Unit.h)

   UNIT_FLAG_UNKNOWN_1                  = 0x00000001, // 1            1
   UNIT_FLAG_NOT_ATTACKABLE_2           = 0x00000002, // 2            2  client won't let you attack them
   UNIT_FLAG_LOCK_PLAYER                = 0x00000004, // 3            4  ? does nothing to client (probably wrong) - only taxi code checks this
   UNIT_FLAG_PVP_ATTACKABLE             = 0x00000008, // 4            8  makes players and NPCs attackable / not attackable
   UNIT_FLAG_UNKNOWN_5                  = 0x00000010, // 5           16  ? some NPCs have this
   UNIT_FLAG_NO_REAGANT_COST		= 0x00000020, // 6           32  no reagant cost
   UNIT_FLAG_PLUS_MOB                   = 0x00000040, // 7           64  ? some NPCs have this (Rare/Elite/Boss?)
   UNIT_FLAG_UNKNOWN_8                  = 0x00000080, // 8          128  ? can change attackable status
   UNIT_FLAG_NOT_ATTACKABLE_9           = 0x00000100, // 9          256  changes attackable status
   UNIT_FLAG_UNKNOWN_10                 = 0x00000200, // 10         512  ? some NPCs have this
   UNIT_FLAG_LOOTING                    = 0x00000400, // 11        1024
   UNIT_FLAG_SELF_RES                   = 0x00000800, // 12        2048  ? some NPCs have this
   UNIT_FLAG_PVP                        = 0x00001000, // 13        4096  sets PvP flag
   UNIT_FLAG_SILENCED                   = 0x00002000, // 14        8192
   UNIT_FLAG_DEAD                       = 0x00004000, // 15       16384  used for special "dead" NPCs like Withered Corpses
   UNIT_FLAG_UNKNOWN_16                 = 0x00008000, // 16       32768  ? some NPCs have this
   UNIT_FLAG_ALIVE                      = 0x00010000, // 17       65536  ?
   UNIT_FLAG_PACIFIED                   = 0x00020000, // 18      131072
   UNIT_FLAG_STUNNED                    = 0x00040000, // 19      262144
   UNIT_FLAG_COMBAT                     = 0x00080000, // 20      524288  sets combat flag
   UNIT_FLAG_MOUNTED_TAXI               = 0x00100000, // 21     1048576  mounted on a taxi
   UNIT_FLAG_DISARMED                   = 0x00200000, // 22     2097152
   UNIT_FLAG_CONFUSED                   = 0x00400000, // 23     4194304
   UNIT_FLAG_FLEEING                    = 0x00800000, // 24     8388608  fear
   UNIT_FLAG_PLAYER_CONTROLLED_CREATURE = 0x01000000, // 25    16777216
   UNIT_FLAG_NOT_SELECTABLE             = 0x02000000, // 26    33554432  cannot select the unit
   UNIT_FLAG_SKINNABLE                  = 0x04000000, // 27    67108864
   UNIT_FLAG_MOUNT                      = 0x08000000, // 28   134217728  ? was MAKE_CHAR_UNTOUCHABLE (probably wrong), nothing ever set it
   UNIT_FLAG_UNKNOWN_29                 = 0x10000000, // 29   268435456
   UNIT_FLAG_FEIGN_DEATH                = 0x20000000, // 30   536870912
   UNIT_FLAG_UNKNOWN_31                 = 0x40000000, // 31  1073741824  ? was WEAPON_OFF and being used for disarm
   UNIT_FLAG_UNKNOWN_32                 = 0x80000000, // 32  2147483648


bytes0

UNIT_FIELD_BYTES_0 contains information about class, gender and power type of creature.


bytes1

The value here overrides the value for the creature's unit field UNIT_FIELD_BYTES_1.

List of known values and their visual effects on the creature:

1 = Sitting on the ground
2 = Sitting on the chair
3 = Sleep
4 = Sit (Low)
5 = Sit (Medium)
6 = Sit (Elevated High)
7 = Lying Dead (combined with death_state in creature_proto makes the mob to appear dead)
8 = Kneel (Need bytes2 = 1)

bytes2

1 = Equips the mob's slot1item and/or slot2item
2 = Equips the mob's slot3item

Learn more about bytes and how to change them here: http://whydb.org/forum/viewtopic.php?f=24&t=4095

emote_state

Emote ID of the creature.

Emote list (OneShot = The Player will see the emote once when invisual range then not again).

npc_respawn_link

Unknown?


channel_spell

ID of a Spell that the creature will channel.


channel_target_sqlid

SQL ID of the target that the creature will channel on (GameObject?).


channel_target_sqlid_creature

SQL ID of the target that the creature will channel on (Creature?).


standstate

The stand state of the creature. Affects Bytes1

0 = Stand
1 = Sitting on the ground
2 = Sitting on chair
3 = Sleep
4 = Sit (Low)
5 = Sit (Medium)
6 = Sit (Elevated High)
7 = Lying Dead 
8 = Kneel

death_state

Whether the creature is alive, a corpse, or completely gone from the world.

ALIVE => 0 (Creature acts normal)
JUST_DIED => 1 (Creature appears dead, but is acting like alive - can speak with you, you can make gossip with this NPC)
CORPSE => 2 (This creature is dead and acts as dead body)

mountdisplayid

The Display ID of a mount to be used to make the creature appear mounted. The value here overrides the value for the creature's unit field UNIT_FIELD_MOUNTDISPLAYID.

slot1item

Entry ID of an item to be equipped in the Right Hand (Main Hand).


slot2item

Entry ID of an item to be equipped in the Left Hand (Off-Hand).


slot3item

Entry ID of a ranged item to be equipped.


CanFly

Static flying, creature can be above ground.

0 = Flying disabled
1 = Flying enabled


phase

The phase of the creature.

Personal tools