guidA unique identifier given to each creature to distinguish one creature from another. Two creatures can NOT have same GUID. guid ranges: 1.x - 3.3.5 (Vanilla - Wrath of the Lich King) 1 - 249999 4.x (Cataclysm) 250000 - 449.999 6.x (Warlords of Draenor) 450000 - 649999 7.x (Legion) 650000 -849999 8.x (Battle for Azeroth) 850000 - 1049999 9.x (Shadowlands) 1050000 - (specified later) idThe ID of the template that is used when instantiating this creature. mapThe ID of the map that the creature is spawned on. spawnDifficultiesList of comma separated list of difficulties Difficulty: Bloque de código |
---|
DIFFICULTY_NONE = 0,
DIFFICULTY_NORMAL = 1,
DIFFICULTY_HEROIC = 2,
DIFFICULTY_10_N = 3,
DIFFICULTY_25_N = 4,
DIFFICULTY_10_HC = 5,
DIFFICULTY_25_HC = 6,
DIFFICULTY_LFR = 7,
DIFFICULTY_MYTHIC_KEYSTONE = 8,
DIFFICULTY_40 = 9,
DIFFICULTY_3_MAN_SCENARIO_HC = 11,
DIFFICULTY_3_MAN_SCENARIO_N = 12,
DIFFICULTY_NORMAL_RAID = 14,
DIFFICULTY_HEROIC_RAID = 15,
DIFFICULTY_MYTHIC_RAID = 16,
DIFFICULTY_LFR_NEW = 17,
DIFFICULTY_EVENT_RAID = 18,
DIFFICULTY_EVENT_DUNGEON = 19,
DIFFICULTY_EVENT_SCENARIO = 20,
DIFFICULTY_MYTHIC = 23,
DIFFICULTY_TIMEWALKING = 24,
DIFFICULTY_WORLD_PVP_SCENARIO = 25,
DIFFICULTY_5_MAN_SCENARIO_N = 26,
DIFFICULTY_20_MAN_SCENARIO_N = 27,
DIFFICULTY_PVEVP_SCENARIO = 29,
DIFFICULTY_EVENT_SCENARIO_6 = 30,
DIFFICULTY_WORLD_PVP_SCENARIO_2 = 32,
DIFFICULTY_TIMEWALKING_RAID = 33,
DIFFICULTY_PVP = 34,
DIFFICULTY_NORMAL_ISLAND = 38,
DIFFICULTY_HEROIC_ISLAND = 39,
DIFFICULTY_MYTHIC_ISLAND = 40,
DIFFICULTY_PVP_ISLAND = 45,
DIFFICULTY_NORMAL_WARFRONT = 147,
DIFFICULTY_HEROIC_WARFRONT = 149,
DIFFICULTY_LFR_15TH_ANNIVERSARY = 151,
DIFFICULTY_VISIONS_OF_NZOTH = 152,
DIFFICULTY_TEEMING_ISLAND = 153 |
phaseUseFlagsMask
Bloque de código |
---|
PHASE_USE_FLAGS_NONE = 0x0,
PHASE_USE_FLAGS_ALWAYS_VISIBLE = 0x1,
PHASE_USE_FLAGS_INVERSE = 0x2, |
phaseIdphaseId phaseGroupphaseGroup modelidThe model ID associated with the creature. Note that two creatures that use the same template can have different models. See creature_model_info for more information on model-specific characteristics. Note: This can be left at 0 and a random model from its assigned models in creature_template will be assigned by the core. equipment_idThe ID as defined within creature_equip_template corresponding to the entry. The value essential defines the equip: position_xThe X position of the creatures spawn point. position_yThe Y position of the creatures spawn point. position_zThe Z position of the creatures spawn point. orientationThe orientation of the creatures spawn point. (North = 0.0; South = pi (3.14159)) spawntimesecsThe respawn time, in seconds, of the creature. spawndistThe maximum distance that the creature may spawn from its spawn point. Also controls how far away the creature can walk from its spawn point if its 74218918 = 1. currentwaypointThe current waypoint that the creature is on, if any. curhealthThe health that the creature will spawn with. curmanaThe mana that the creature will spawn with. MovementTypeThe movement type associated with the creature. Usually the same as its MovementType, but it can be different.Same as creature_template.MovementType NOTE: A creature.MovementType will override a creature_template.MovementType record. ID | Type |
---|
0 | Idle; stay in one place | 1 | Random movement inside the spawndist radius | 2 | Waypoint movement |
npcflagSame as creature_template.npcflag . NOTE: A creature.npcflag record will override a creature_template.npcflag record. Flag | Name | Comment |
---|
1 | 0x0000 0001 | Gossip | If creature has more gossip options, add this flag to bring up a menu. | 2 | 0x0000 0002 | Quest Giver | Any creature giving or taking quests needs to have this flag. | 16 | 0x0000 0010 | Trainer | Allows the creature to have a trainer list to teach spells | 32 | 0x0000 0020 | Class Trainer |
| 64 | 0x0000 0040 | Profession Trainer |
| 128 | 0x0000 0080 | Vendor | Any creature selling items needs to have this flag. | 256 | 0x0000 0100 | Vendor Ammo |
| 512 | 0x0000 0200 | Vendor Food |
| 1024 | 0x0000 0400 | Vendor Poison |
| 2048 | 0x0000 0800 | Vendor Reagent |
| 4096 | 0x0000 1000 | Repairer | Creatures with this flag can repair items. | 8192 | 0x0000 2000 | Flight Master | Any creature serving as flight master has this. | 16384 | 0x0000 4000 | Spirit Healer | Makes the creature invisible to alive characters and has the resurrect function. | 32768 | 0x0000 8000 | Spirit Guide |
| 65536 | 0x0001 0000 | Innkeeper | Creatures with this flag can set hearthstone locations. | 131072 | 0x0002 0000 | Banker | Creatures with this flag can show the bank | 262144 | 0x0004 0000 | Petitioner |
| 524288 | 0x0008 0000 | Tabard Designer | Allows the designing of guild tabards. | 1048576 | 0x0010 0000 | Battlemaster | Creatures with this flag port players to battlegrounds. | 2097152 | 0x0020 0000 | Auctioneer | Allows creature to display auction list. | 4194304 | 0x0040 0000 | Stable Master | Has the option to stable pets for hunters. | 8388608 | 0x0080 0000 | Guild Banker |
| 16777216 | 0x0100 0000 | Spellclick | Needs data on npc_spellclick_spells table | 67108864 | 0x0400 0000 | Mailbox | NPC will act like a mailbox (opens mailbox with right-click) |
unit_flagsSame as creature_template.unit_flags. Note: A creature.unit_flags record will override a creature_template.unit_flags record.
Flag | Name | Comments |
---|
1 | 0x0000 0001 | UNIT_FLAG_SERVER_CONTROLLED |
| 2 | 0x0000 0002 | UNIT_FLAG_NON_ATTACKABLE |
| 4 | 0x0000 0004 | UNIT_FLAG_REMOVE_CLIENT_CONTROL |
| 8 | 0x0000 0008 | UNIT_FLAG_PLAYER_CONTROLLED | controlled by player, use _IMMUNE_TO_PC instead of _IMMUNE_TO_NPC | 16 | 0x0000 0010 | UNIT_FLAG_RENAME |
| 32 | 0x0000 0020 | UNIT_FLAG_PREPARATION | Don't take reagents for spells with SPELL_ATTR_EX5_NO_REAGENT_WHILE_PREP | 64 | 0x0000 0040 | UNIT_FLAG_UNK_6 | not sure what it does, but it is needed to cast nontriggered spells in smart_scripts | 128 | 0x0000 0080 | UNIT_FLAG_NOT_ATTACKABLE_1 | UNIT_FLAG_PVP_ATTACKABLE| UNIT_FLAG_NOT_ATTACKABLE_1 is NON_PVP_ATTACKABLE | 256 | 0x0000 0100 | UNIT_FLAG_IMMUNE_TO_PC | disables combat/assistance with PlayerCharacters (PC) | 512 | 0x0000 0200 | UNIT_FLAG_IMMUNE_TO_NPC | disables combat/assistance with NonPlayerCharacters (NPC) | 1024 | 0x0000 0400 | UNIT_FLAG_LOOTING | Loot animation | 2048 | 0x0000 0800 | UNIT_FLAG_PET_IN_COMBAT | In combat? 2.0.8 | 4096 | 0x0000 1000 | UNIT_FLAG_PVP | Changed in 3.0.3 | 8192 | 0x0000 2000 | UNIT_FLAG_SILENCED | Can't cast spells | 16384 | 0x0000 4000 | UNIT_FLAG_CANNOT_SWIM | 2.0.8 | 32768 | 0x0000 8000 | UNIT_FLAG_SWIMMING | shows swim animation in water | 65536 | 0x0001 0000 | UNIT_FLAG_NON_ATTACKABLE_2 | removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE | 131072 | 0x0002 0000 | UNIT_FLAG_PACIFIED | Creature will not attack | 262144 | 0x0004 0000 | UNIT_FLAG_STUNNED | 3.0.3 ok | 524288 | 0x0008 0000 | UNIT_FLAG_IN_COMBAT | ('AffectingCombat' from UnitFlags.cs in WPP) | 1048576 | 0x0010 0000 | UNIT_FLAG_TAXI_FLIGHT | Disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag | 2097152 | 0x0020 0000 | UNIT_FLAG_DISARMED | 3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. | 4194304 | 0x0040 0000 | UNIT_FLAG_CONFUSED | Confused. | 8388608 | 0x0080 0000 | UNIT_FLAG_FLEEING | ('Feared' from UnitFlags.cs in WPP) | 16777216 | 0x0100 0000 | UNIT_FLAG_POSSESSED | under direct client control by a player (possess or vehicle) | 33554432 | 0x0200 0000 | UNIT_FLAG_NOT_SELECTABLE | Can't be selected by mouse or with /target {name} command. | 67108864 | 0x0400 0000 | UNIT_FLAG_SKINNABLE | Skinnable | 134217728 | 0x0800 0000 | UNIT_FLAG_MOUNT | The client seems to handle it perfectly. Also used when making custom mounts. | 268435456 | 0x1000 0000 | UNIT_FLAG_UNK_28 | (PreventKneelingWhenLooting from UnitFlags.cs in WPP) | 536870912 | 0x2000 0000 | UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT | Prevent automatically playing emotes from parsing chat text, for example "lol" in /say, ending message with ? or !, or using /yell | 1073741824 | 0x4000 0000 | UNIT_FLAG_SHEATHE |
| 2147483648 | 0x8000 0000 | UNIT_FLAG_IMMUNE | Immune to damage |
dynamicflagsSame as creature_template.dynamicflags. Note: A creature.dynamicflags record will override a creature_template.dynamicflags record. |