Creature template: различия между версиями
Перейти к навигации
Перейти к поиску
User1 (обсуждение | вклад) Нет описания правки |
User1 (обсуждение | вклад) Нет описания правки |
||
| Строка 227: | Строка 227: | ||
INHABIT_AIR = 4, | INHABIT_AIR = 4, | ||
INHABIT_WATERWALK = 8, | INHABIT_WATERWALK = 8, | ||
=== UnitDynFlags === | |||
UNIT_DYNFLAG_NONE = 0x0000, | |||
UNIT_DYNFLAG_HIDE_MODEL = 0x0001, // Object model is not shown with this flag | |||
UNIT_DYNFLAG_NOT_SELECTABLE_MODEL = 0x0002, | |||
UNIT_DYNFLAG_LOOTABLE = 0x0004, | |||
UNIT_DYNFLAG_TRACK_UNIT = 0x0008, | |||
UNIT_DYNFLAG_TAPPED = 0x0010, // Lua_UnitIsTapped | |||
UNIT_DYNFLAG_SPECIALINFO = 0x0020, | |||
UNIT_DYNFLAG_REFER_A_FRIEND = 0x0040, | |||
UNIT_DYNFLAG_DISABLE_SAME_INTARACT = 0x0080 // Example: seat on friend mount | |||
Версия от 13:21, 23 февраля 2025
Наши кастомы в таблице
UnitFlags
UNIT_FLAG_NONE = 0x00000000, UNIT_FLAG_SERVER_CONTROLLED = 0x00000001, // set only when unit movement is controlled by server - by SPLINE/MONSTER_MOVE packets, together with UNIT_FLAG_STUNNED; only set to units controlled by client; client function CGUnit_C::IsClientControlled returns false when set for owner UNIT_FLAG_NON_ATTACKABLE = 0x00000002, // not attackable UNIT_FLAG_REMOVE_CLIENT_CONTROL = 0x00000004, // This is a legacy flag used to disable movement player's movement while controlling other units, SMSG_CLIENT_CONTROL replaces this functionality clientside now. CONFUSED and FLEEING flags have the same effect on client movement asDISABLE_MOVE_CONTROL in addition to preventing spell casts/autoattack (they all allow climbing steeper hills and emotes while moving) UNIT_FLAG_PVP_ATTACKABLE = 0x00000008, // allow apply pvp rules to attackable state in addition to faction dependent state UNIT_FLAG_RENAME = 0x00000010, UNIT_FLAG_PREPARATION = 0x00000020, // don't take reagents for spells with SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA UNIT_FLAG_UNK_6 = 0x00000040, UNIT_FLAG_NOT_ATTACKABLE_1 = 0x00000080, // ?? (UNIT_FLAG_PVP_ATTACKABLE | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE UNIT_FLAG_IMMUNE_TO_PC = 0x00000100, // disables combat/assistance with PlayerCharacters (PC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget UNIT_FLAG_IMMUNE_TO_NPC = 0x00000200, // disables combat/assistance with NonPlayerCharacters (NPC) - see Unit::_IsValidAttackTarget, Unit::_IsValidAssistTarget UNIT_FLAG_LOOTING = 0x00000400, // loot animation UNIT_FLAG_PET_IN_COMBAT = 0x00000800, // in combat?, 2.0.8 UNIT_FLAG_PVP = 0x00001000, // changed in 3.0.3 UNIT_FLAG_SILENCED = 0x00002000, // silenced, 2.1.1 UNIT_FLAG_CANNOT_SWIM = 0x00004000, // 2.0.8 UNIT_FLAG_SWIMMING = 0x00008000, // shows swim animation in water and will not fall to the bottom UNIT_FLAG_NON_ATTACKABLE_2 = 0x00010000, // removes attackable icon, if on yourself, cannot assist self but can cast TARGET_SELF spells - added by SPELL_AURA_MOD_UNATTACKABLE UNIT_FLAG_PACIFIED = 0x00020000, // 3.0.3 ok UNIT_FLAG_STUNNED = 0x00040000, // 3.0.3 ok UNIT_FLAG_IN_COMBAT = 0x00080000, UNIT_FLAG_TAXI_FLIGHT = 0x00100000, // disable casting at client side spell not allowed by taxi flight (mounted?), probably used with 0x4 flag UNIT_FLAG_DISARMED = 0x00200000, // 3.0.3, disable melee spells casting..., "Required melee weapon" added to melee spells tooltip. UNIT_FLAG_CONFUSED = 0x00400000, UNIT_FLAG_FLEEING = 0x00800000, UNIT_FLAG_PLAYER_CONTROLLED = 0x01000000, // used in spell Eyes of the Beast for pet... let attack by controlled creature UNIT_FLAG_NOT_SELECTABLE = 0x02000000, UNIT_FLAG_SKINNABLE = 0x04000000, UNIT_FLAG_MOUNT = 0x08000000, UNIT_FLAG_PREVENT_KNEELING_WHEN_LOOTING = 0x10000000, UNIT_FLAG_PREVENT_EMOTES = 0x20000000, // used in Feing Death spell UNIT_FLAG_SHEATHE = 0x40000000, UNIT_FLAG_IMMUNE = 0x80000000 // Immune to damage
UnitFlags2
UNIT_FLAG2_NONE = 0x00000000, UNIT_FLAG2_FEIGN_DEATH = 0x00000001, UNIT_FLAG2_HIDE_BODY = 0x00000002, // Hide Body DESCRIPTION Hide unit model (show only player equip) UNIT_FLAG2_IGNORE_REPUTATION = 0x00000004, UNIT_FLAG2_COMPREHEND_LANG = 0x00000008, UNIT_FLAG2_MIRROR_IMAGE = 0x00000010, UNIT_FLAG2_INSTANTLY_APPEAR_MODEL = 0x00000020, // Unit model instantly appears when summoned (does not fade in) UNIT_FLAG2_FORCE_MOVEMENT = 0x00000040, UNIT_FLAG2_DISARM_OFFHAND = 0x00000080, UNIT_FLAG2_DISABLE_PRED_STATS = 0x00000100, // Player has disabled predicted stats (Used by raid frames) UNIT_FLAG2_ALLOW_CHANGING_TALENTS = 0x00000200, // Allows changing talents outside rest area UNIT_FLAG2_DISARM_RANGED = 0x00000400, // this does not disable ranged weapon display (maybe additional flag needed?) UNIT_FLAG2_REGENERATE_POWER = 0x00000800, UNIT_FLAG2_RESTRICT_PARTY_INTERACTION = 0x00001000, // Restrict interaction to party or raid UNIT_FLAG2_PREVENT_SPELL_CLICK = 0x00002000, // Prevent spellclick UNIT_FLAG2_ALLOW_ENEMY_INTERACT = 0x00004000, UNIT_FLAG2_DISABLE_TURN = 0x00008000, UNIT_FLAG2_UNK2 = 0x00010000, UNIT_FLAG2_PLAY_DEATH_ANIM = 0x00020000, // Plays special death animation upon death UNIT_FLAG2_ALLOW_CHEAT_SPELLS = 0x00040000, UNIT_FLAG2_SUPPRESS_HIGHLIGHT_WHEN_TARGETED_OR_MOUSED_OVER = 0x00080000, UNIT_FLAG2_ALLOW_RAID_TARGET_SPELLS = 0x00100000, // Allow interact raid target spells, exaple 73325 UNIT_FLAG2_LARGE_AOI = 0x00200000, UNIT_FLAG2_GIGANTIC_AOI = 0x00400000, UNIT_FLAG2_NO_ACTIONS = 0x00800000, UNIT_FLAG2_SWIM_PREVENT = 0x01000000, UNIT_FLAG2_HIDE_IN_COMBAT_LOG = 0x02000000, UNIT_FLAG2_PREVENT_SELECT_NPC = 0x04000000, UNOT_FLAG2_IGNORE_SPELL_MIN_RANGE_RESTRICTIONS = 0x08000000, UNIT_FLAG2_INFINITE_AOI = 0x40000000,
UnitFlags3
UNIT_FLAG3_NONE = 0x00000000, UNIT_FLAG3_PASSIVE_AI = 0x00000001, UNIT_FLAG3_UNCONSCIOUS_ON_DEATH = 0x00000002, // TITLE Unconscious on Death DESCRIPTION Shows "Unconscious" in unit tooltip instead of "Dead" UNIT_FLAG3_ALLOW_MOUNTED_COMBAT = 0x00000004, // TITLE Allow mounted combat UNIT_FLAG3_GARRISON_PET = 0x00000008, // TITLE Garrison pet DESCRIPTION Special garrison pet creatures that display one of favorite player battle pets - this flag allows querying name and turns off default battle pet behavior UNIT_FLAG3_UI_CAN_GET_POSITION = 0x00000010, // TITLE UI Can Get Position DESCRIPTION Allows lua functions like UnitPosition to always get the position even for npcs or non-grouped players UNIT_FLAG3_AI_OBSTACLE = 0x00000020, UNIT_FLAG3_ALTERNATIVE_DEFAULT_LANGUAGE = 0x00000040, UNIT_FLAG3_SUPPRESS_ALL_NPC_FEEDBACK = 0x00000080, // TITLE Suppress all NPC feedback DESCRIPTION Skips playing sounds on left clicking npc for all npcs as long as npc with this flag is visible UNIT_FLAG3_IGNORE_COMBAT = 0x00000100, // TITLE Ignore Combat DESCRIPTION Same as SPELL_AURA_IGNORE_COMBAT UNIT_FLAG3_SUPPRESS_NPC_FEEDBACK = 0x00000200, // TITLE Suppress NPC feedback DESCRIPTION Skips playing sounds on left clicking npc UNIT_FLAG3_UNK10 = 0x00000400, UNIT_FLAG3_UNK11 = 0x00000800, UNIT_FLAG3_UNK12 = 0x00001000, UNIT_FLAG3_FAKE_DEAD = 0x00002000, // TITLE Show as dead UNIT_FLAG3_NO_FACING_ON_INTERACT_AND_FAST_FACING_CHASE = 0x00004000, // Causes the creature to both not change facing on interaction and speeds up smooth facing changes while attacking (clientside) UNIT_FLAG3_UNTARGETABLE_FROM_UI = 0x00008000, // TITLE Untargetable from UI DESCRIPTION Cannot be targeted from lua functions StartAttack, TargetUnit, PetAttack UNIT_FLAG3_NO_FACING_ON_INTERACT_WHILE_FAKE_DEAD = 0x00010000, // Prevents facing changes while interacting if creature has flag UNIT_FLAG3_FAKE_DEAD UNIT_FLAG3_ALREADY_SKINNED = 0x00020000, UNIT_FLAG3_SUPPRESS_ALL_NPC_SOUNDS = 0x00040000, // TITLE Suppress all NPC sounds DESCRIPTION Skips playing sounds on beginning and end of npc interaction for all npcs as long as npc with this flag is visible UNIT_FLAG3_SUPPRESS_NPC_SOUNDS = 0x00080000, // TITLE Suppress NPC sounds DESCRIPTION Skips playing sounds on beginning and end of npc interaction UNIT_FLAG3_UNK20 = 0x00100000, UNIT_FLAG3_UNK21 = 0x00200000, UNIT_FLAG3_DONT_FADE_OUT = 0x00400000, UNIT_FLAG3_UNK23 = 0x00800000, UNIT_FLAG3_FORCE_HIDE_NAMEPLATE = 0x01000000, UNIT_FLAG3_UNK25 = 0x02000000, UNIT_FLAG3_UNK26 = 0x04000000, UNIT_FLAG3_UNK27 = 0x08000000, UNIT_FLAG3_UNK28 = 0x10000000, UNIT_FLAG3_UNK29 = 0x20000000, UNIT_FLAG3_UNK30 = 0x40000000, UNIT_FLAG3_UNK31 = 0x80000000,
NPCFlags
UNIT_NPC_FLAG_NONE = 0x00000000, UNIT_NPC_FLAG_GOSSIP = 0x00000001, // 0 100% UNIT_NPC_FLAG_QUESTGIVER = 0x00000002, // 1 100% UNIT_NPC_FLAG_UNK1 = 0x00000004, // 2 UNIT_NPC_FLAG_UNK2 = 0x00000008, // 3 UNIT_NPC_FLAG_TRAINER = 0x00000010, // 4 100% UNIT_NPC_FLAG_TRAINER_CLASS = 0x00000020, // 5 100% UNIT_NPC_FLAG_TRAINER_PROFESSION = 0x00000040, // 6 100% UNIT_NPC_FLAG_VENDOR = 0x00000080, // 7 100% UNIT_NPC_FLAG_VENDOR_AMMO = 0x00000100, // 8 100%, general goods vendor UNIT_NPC_FLAG_VENDOR_FOOD = 0x00000200, // 9 100% UNIT_NPC_FLAG_VENDOR_POISON = 0x00000400, // 10 guessed UNIT_NPC_FLAG_VENDOR_REAGENT = 0x00000800, // 11 100% UNIT_NPC_FLAG_REPAIR = 0x00001000, // 12 100% UNIT_NPC_FLAG_FLIGHTMASTER = 0x00002000, // 13 100% UNIT_NPC_FLAG_SPIRITHEALER = 0x00004000, // 14 guessed UNIT_NPC_FLAG_SPIRITGUIDE = 0x00008000, // 15 guessed UNIT_NPC_FLAG_INNKEEPER = 0x00010000, // 16 100% UNIT_NPC_FLAG_BANKER = 0x00020000, // 17 100% UNIT_NPC_FLAG_PETITIONER = 0x00040000, // 18 100% 0xC0000 = guild petitions, 0x40000 = arena team petitions UNIT_NPC_FLAG_TABARDDESIGNER = 0x00080000, // 19 100% UNIT_NPC_FLAG_BATTLEMASTER = 0x00100000, // 20 100% UNIT_NPC_FLAG_AUCTIONEER = 0x00200000, // 21 100% UNIT_NPC_FLAG_STABLEMASTER = 0x00400000, // 22 100% UNIT_NPC_FLAG_GUILD_BANKER = 0x00800000, // 23 cause client to send 997 opcode UNIT_NPC_FLAG_SPELLCLICK = 0x01000000, // 24 cause client to send 1015 opcode (spell click) UNIT_NPC_FLAG_PLAYER_VEHICLE = 0x02000000, // 25 players with mounts that have vehicle data should have it set UNIT_NPC_FLAG_MAILBOX = 0x04000000, // 26 NPC will act like a mailbox (opens mailbox with right-click) UNIT_NPC_FLAG_REFORGER = 0x08000000, // 27 reforging UNIT_NPC_FLAG_ARTIFACT_POWER_RESPEC = 0x08000000, // 27 artifact powers reset UNIT_NPC_FLAG_TRANSMOGRIFIER = 0x10000000, // 28 transmogrification UNIT_NPC_FLAG_VAULTKEEPER = 0x20000000, // 29 void storage UNIT_NPC_FLAG_WILD_BATTLE_PET = 0x40000000, // 30 wild battle pet UNIT_NPC_FLAG_BLACK_MARKET = 0x80000000, // 31 black market
NPCFlags2
UNIT_NPC_FLAG2_NONE = 0x00000000, UNIT_NPC_FLAG2_ITEM_UPGRADE_MASTER = 0x00000001, UNIT_NPC_FLAG2_GARRISON_ARCHITECT = 0x00000002, UNIT_NPC_FLAG2_AI_OBSTACLE = 0x00000004, // AIObstacleMgr::Register UNIT_NPC_FLAG2_STEERING = 0x00000008, // CGUnit_C::EnableSteering UNIT_NPC_FLAG2_SHIPMENT_CRAFTER = 0x00000010, UNIT_NPC_FLAG2_GARRISON_MISSION_NPC = 0x00000020, UNIT_NPC_FLAG2_TRADESKILL_NPC = 0x00000040, UNIT_NPC_FLAG2_BLACK_MARKET_VIEW = 0x00000080, UNIT_NPC_FLAG2_RECRUITER = 0x00000100, UNIT_NPC_FLAG2_GARRISON_TALENT_NPC = 0x00000200, UNIT_NPC_FLAG2_CONTRIBUTION_COLLECTOR = 0x00000400, UNIT_NPC_FLAG2_FAST_STEERING_AVOIDS_OBSTACLES = 0x00002000, ///< Used by npc in island exepedition and battleground UNIT_NPC_FLAG2_AZERITE_RESPEC = 0x00004000, UNIT_NPC_FLAG2_ISLANDS_QUEUE = 0x00008000, UNIT_NPC_FLAG2_SUPPRESS_NPC_SOUNDS_EXCEPT_END_OF_INTERACTION = 0x00010000, UNIT_NPC_FLAG2_BARBER = 0x00040000, UNIT_NPC_FLAG2_PERSONAL_TABARD_DESIGNER = 0x00200000,
IsSummonNotTakeSummonersLevel
Суммон не будет брать уровень от суммонера и будет выставляться из темплейтов. Значение 0 или 1
SummonPersonalVisibleType
SUMMON_PERSONAL_VISIBLE_NONE = 0, SUMMON_PERSONAL_VISIBLE_FOR_SUMMONER = 1, SUMMON_PERSONAL_VISIBLE_FOR_SUMMONER_AND_GROUP = 2,
flags_extra
CREATURE_FLAG_EXTRA_INSTANCE_BIND = 0x00000001, // creature kill bind instance with killer and killer's group CREATURE_FLAG_EXTRA_CIVILIAN = 0x00000002, // not aggro (ignore faction/reputation hostility) CREATURE_FLAG_EXTRA_NO_PARRY = 0x00000004, // creature can't parry CREATURE_FLAG_EXTRA_NO_THREAT = 0x00000008, // creature can't threat, out combat with time CREATURE_FLAG_EXTRA_NO_BLOCK = 0x00000010, // creature can't block CREATURE_FLAG_EXTRA_NO_CRUSH = 0x00000020, // creature can't do crush attacks CREATURE_FLAG_EXTRA_NO_XP_AT_KILL = 0x00000040, // creature kill not provide XP CREATURE_FLAG_EXTRA_TRIGGER = 0x00000080, // trigger creature CREATURE_FLAG_EXTRA_NO_TAUNT = 0x00000100, // creature is immune to taunt auras and effect attack me CREATURE_FLAG_EXTRA_PERSONAL_LOOT = 0x00000200, // Personal loot mobs and increment healths by player CREATURE_FLAG_EXTRA_AUTO_LOOT = 0x00000400, // now not use CREATURE_FLAG_EXTRA_EVENT_LOOT = 0x00000800, // Generate special item level on kill creature CREATURE_FLAG_EXTRA_EVENT_NPC = 0x00001000, // Creature is increase HP by the number of attackers CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK = 0x00002000, // Creature will immune all knockback effects CREATURE_FLAG_EXTRA_WORLDEVENT = 0x00004000, // custom flag for world event creatures (left room for merging) CREATURE_FLAG_EXTRA_GUARD = 0x00008000, // Creature is guard CREATURE_FLAG_EXTRA_DISABLED_SPECIAL_EVADE = 0x00010000, // Disabled "SpecialEvade" bosses CREATURE_FLAG_EXTRA_NO_CRIT = 0x00020000, // creature can't do critical strikes CREATURE_FLAG_EXTRA_NO_SKILLGAIN = 0x00040000, // creature won't increase weapon skills CREATURE_FLAG_EXTRA_TAUNT_DIMINISH = 0x00080000, // Taunt is a subject to diminishing returns on this creautre CREATURE_FLAG_EXTRA_ALL_DIMINISH = 0x00100000, // Creature is subject to all diminishing returns as player are CREATURE_FLAG_EXTRA_MULTI_VENDOR = 0x00200000, // Creature is subject to all diminishing returns as player are CREATURE_FLAG_EXTRA_NO_CROSS = 0x00400000, // creature not use on cross CREATURE_FLAG_EXTRA_IGNORE_FRONT_CHECK_ON_VEHICLE = 0x00800000, // Ignore SPELL_FAILED_UNIT_NOT_INFRONT if player on vehicle CREATURE_FLAG_EXTRA_NO_DODGE = 0x01000000, // creature can't dodge CREATURE_FLAG_EXTRA_NO_MISS = 0x02000000, // creature can't miss CREATURE_FLAG_EXTRA_NO_SELL_VENDOR = 0x04000000, // Disable sell items to vendor CREATURE_FLAG_EXTRA_DOES_NOT_HAVE_A_BACK = 0x08000000, // The creature has no back, attacks and other spells of the players are directed at the face (for example spell ids: 36554, 49376) CREATURE_FLAG_EXTRA_DUNGEON_BOSS = 0x10000000, // creature is a dungeon boss (SET DYNAMICALLY, DO NOT ADD IN DB) CREATURE_FLAG_EXTRA_VEHICLE_ATTACKABLE_PASSENGERS = 0x20000000, // creature is vehicle, UNIT_STATE_ONVEHICLE will not add to passengers CREATURE_FLAG_EXTRA_VEH_INSTANT_DESPAWN_PASSENGERS = 0x40000000, // Instant remove creature passengers CREATURE_FLAG_EXTRA_HP_85_PERC = 0x80000000 // No damage if HP < 85% for target mob
flags_extra2
CREATURE_FLAG_EXTRA2_SET_ROOT = 0x00000001, // Creature is rooted CREATURE_FLAG_EXTRA2_SET_PASSIVE = 0x00000002, // Creature is passive CREATURE_FLAG_EXTRA2_AUTOREPLACEABLE = 0x00000004, // Creature is auto replaceable by phase switch CREATURE_FLAG_EXTRA2_SUMMON_CAN_SCALE_DAMAGE = 0x00000008, // Creature is can scale his damage CREATURE_FLAG_EXTRA2_IGNORE_VALIDATE_FROM_MAGNET = 0x00000010, // Ignore check _IsValidAttackTarget from SPELL_AURA_SPELL_MAGNET CREATURE_FLAG_EXTRA2_IGNORE_CRITTER_MOVEMENT = 0x00000020, // Ignore random movement critter CREATURE_FLAG_EXTRA2_UPDATE_SPEED_DISABLED = 0x00000040, // Summons do not update speed by owner speed CREATURE_FLAG_EXTRA2_PERSONAL_PICKPOCKET_LOOT = 0x00000080, // Personal pickpocket loot CREATURE_FLAG_EXTRA2_CANT_ADD_LOOT_COOLDOWN = 0x00000100, // Creature can't add loot cooldown to player when kill CREATURE_FLAG_EXTRA2_CANT_DROP_WORLD_LOOT = 0x00000200, // Creature can't generate world loot template CREATURE_FLAG_EXTRA2_CANT_DROP_ZONE_LOOT = 0x00000400, // Creature can't generate zone loot template CREATURE_FLAG_EXTRA2_CUSTOM_EVENT_WORLD_BOSS = 0x00000800, // Event boss creature that have 24h loot cooldown CREATURE_FLAG_EXTRA2_CANT_FALL_ON_DEATH = 0x00001000, // Can't fall on death CREATURE_FLAG_EXTRA2_CAN_FORCE_SPECIAL_EVADE = 0x00002000, // Custom enable special evade CREATURE_FLAG_EXTRA2_DUNGEON_BOT = 0x00004000, // Creature is dungeon bot CREATURE_FLAG_EXTRA2_TAKE_CHARMER_OR_OWNER_EFF_LEVEL= 0x00008000, // Creature will take owner or charmer effective level CREATURE_FLAG_EXTRA2_DISABLE_PVP = 0x00010000, // Creature will not apply PvP mode
inhabitType
INHABIT_GROUND = 1, INHABIT_WATER = 2, INHABIT_AIR = 4, INHABIT_WATERWALK = 8,
UnitDynFlags
UNIT_DYNFLAG_NONE = 0x0000, UNIT_DYNFLAG_HIDE_MODEL = 0x0001, // Object model is not shown with this flag UNIT_DYNFLAG_NOT_SELECTABLE_MODEL = 0x0002, UNIT_DYNFLAG_LOOTABLE = 0x0004, UNIT_DYNFLAG_TRACK_UNIT = 0x0008, UNIT_DYNFLAG_TAPPED = 0x0010, // Lua_UnitIsTapped UNIT_DYNFLAG_SPECIALINFO = 0x0020, UNIT_DYNFLAG_REFER_A_FRIEND = 0x0040, UNIT_DYNFLAG_DISABLE_SAME_INTARACT = 0x0080 // Example: seat on friend mount