Test Page: различия между версиями

Материал из Uwow
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
FLAGS:
FLAGS:
UNIT_FLAG_SERVER_CONTROLLED=0x00000001
    SMART_EVENT_UPDATE_IC    = 0, // InitialMin, InitialMax, RepeatMin, RepeatMax
UNIT_FLAG_NON_ATTACKABLE=0x00000002
    SMART_EVENT_UPDATE_OOC  = 1, // InitialMin, InitialMax, RepeatMin, RepeatMax
UNIT_FLAG_REMOVE_CLIENT_CONTROL=0x00000004
    SMART_EVENT_HEALT_PCT    = 2, // HPMin%, HPMax%,  RepeatMin, RepeatMax
UNIT_FLAG_PVP_ATTACKABLE=0x00000008
    SMART_EVENT_MANA_PCT    = 3, // ManaMin%, ManaMax%, RepeatMin, RepeatMax
UNIT_FLAG_RENAME=0x00000010
    SMART_EVENT_AGGRO  = 4, // NONE
UNIT_FLAG_PREPARATION=0x00000020
    SMART_EVENT_KILL  = 5, // CooldownMin0, CooldownMax1, playerOnly2, else creature entry3
UNIT_FLAG_UNK_6=0x00000040
    SMART_EVENT_DEATH  = 6, // NONE
UNIT_FLAG_NOT_ATTACKABLE_1=0x00000080
    SMART_EVENT_EVADE  = 7, // NONE
UNIT_FLAG_IMMUNE_TO_PC=0x00000100
    SMART_EVENT_SPELLHIT    = 8, // SpellID, School, CooldownMin, CooldownMax
UNIT_FLAG_IMMUNE_TO_NPC=0x00000200
    SMART_EVENT_RANGE  = 9, // MinDist, MaxDist, RepeatMin, RepeatMax
UNIT_FLAG_LOOTING=0x00000400
    SMART_EVENT_OOC_LOS= 10,// NoHostile, MaxRnage, CooldownMin, CooldownMax
UNIT_FLAG_PET_IN_COMBAT=0x00000800
    SMART_EVENT_RESPAWN= 11,// type, MapId, ZoneId
UNIT_FLAG_PVP=0x00001000
    SMART_EVENT_TARGET_HEALTH_PCT  = 12,// HPMin%, HPMax%, RepeatMin, RepeatMax
UNIT_FLAG_SILENCED=0x00002000
    SMART_EVENT_TARGET_CASTING    = 13,// RepeatMin, RepeatMax
UNIT_FLAG_CANNOT_SWIM=0x00004000
    SMART_EVENT_FRIENDLY_HEALTH    = 14,// HPDeficit, Radius, RepeatMin, RepeatMax
UNIT_FLAG_UNK_15=0x00008000
    SMART_EVENT_FRIENDLY_IS_CC    = 15,// Radius, RepeatMin, RepeatMax
UNIT_FLAG_UNK_16=0x00010000
    SMART_EVENT_FRIENDLY_MISSING_BUFF    = 16,// SpellId, Radius, RepeatMin, RepeatMax
UNIT_FLAG_PACIFIED=0x00020000
    SMART_EVENT_SUMMONED_UNIT= 17,// CreatureId(0 all), CooldownMin, CooldownMax
UNIT_FLAG_STUNNED=0x00040000
    SMART_EVENT_TARGET_MANA_PCT    = 18,// ManaMin%, ManaMax%, RepeatMin, RepeatMax
UNIT_FLAG_IN_COMBAT=0x00080000
    SMART_EVENT_ACCEPTED_QUEST    = 19,// QuestID(0any), RepeatMin, RepeatMax
UNIT_FLAG_TAXI_FLIGHT=0x00100000
    SMART_EVENT_REWARD_QUEST = 20,// QuestID(0any)
UNIT_FLAG_DISARMED=0x00200000
    SMART_EVENT_REACHED_HOME = 21,// NONE
UNIT_FLAG_CONFUSED=0x00400000
    SMART_EVENT_RECEIVE_EMOTE= 22,// EmoteId, CooldownMin, CooldownMax, condition, val1, val2, val3
UNIT_FLAG_FLEEING=0x00800000
    SMART_EVENT_HAS_AURA    = 23,// Param1 = SpellID, Param2 = Number of Time STacked, Param3/4 RepeatMin, RepeatMax
UNIT_FLAG_PLAYER_CONTROLLED=0x01000000
    SMART_EVENT_TARGET_BUFFED= 24,// Param1 = SpellID, Param2 = Number of Time STacked, Param3/4 RepeatMin, RepeatMax
UNIT_FLAG_NOT_SELECTABLE=0x02000000
    SMART_EVENT_RESET  = 25,// Called after combat, when the creature respawn and spawn.
UNIT_FLAG_SKINNABLE=0x04000000
    SMART_EVENT_IC_LOS = 26,// NoHostile, MaxRnage, CooldownMin, CooldownMax
UNIT_FLAG_MOUNT=0x08000000
    SMART_EVENT_PASSENGER_BOARDED  = 27,// CooldownMin, CooldownMax
UNIT_FLAG_PREVENT_KNEELING_WHEN_LOOTING=0x10000000
    SMART_EVENT_PASSENGER_REMOVED  = 28,// CooldownMin, CooldownMax
UNIT_FLAG_PREVENT_EMOTES=0x20000000
    SMART_EVENT_CHARMED= 29,// NONE
UNIT_FLAG_SHEATHE=0x40000000
    SMART_EVENT_CHARMED_TARGET    = 30,// NONE
UNIT_FLAG_UNK_31=0x80000000
    SMART_EVENT_SPELLHIT_TARGET    = 31,// SpellID, School, CooldownMin, CooldownMax
    SMART_EVENT_DAMAGED= 32,// MinDmg, MaxDmg, CooldownMin, CooldownMax
    SMART_EVENT_DAMAGED_TARGET    = 33,// MinDmg, MaxDmg, CooldownMin, CooldownMax
    SMART_EVENT_MOVEMENTINFORM    = 34,// MovementType(any), PointID
    SMART_EVENT_SUMMON_DESPAWNED  = 35,// Entry, CooldownMin, CooldownMax
    SMART_EVENT_CORPSE_REMOVED    = 36,// NONE
    SMART_EVENT_AI_INIT= 37,// NONE
    SMART_EVENT_DATA_SET    = 38,// Id, Value, CooldownMin, CooldownMax
    SMART_EVENT_WAYPOINT_START    = 39,// PointId(0any), pathID(0any)
    SMART_EVENT_WAYPOINT_REACHED  = 40,// PointId(0any), pathID(0any)
    SMART_EVENT_TRANSPORT_ADDPLAYER= 41,// NONE
    SMART_EVENT_TRANSPORT_ADDCREATURE    = 42,// Entry (0 any)
    SMART_EVENT_TRANSPORT_REMOVE_PLAYER  = 43,// NONE
    SMART_EVENT_TRANSPORT_RELOCATE = 44,// PointId
    SMART_EVENT_INSTANCE_PLAYER_ENTER    = 45,// Team (0 any), CooldownMin, CooldownMax
    SMART_EVENT_AREATRIGGER_ONTRIGGER    = 46,// TriggerId(0 any), CooldownMin, CooldownMax
    SMART_EVENT_QUEST_ACCEPTED    = 47,// none
    SMART_EVENT_QUEST_OBJ_COPLETETION    = 48,// none
    SMART_EVENT_QUEST_COMPLETION  = 49,// none
    SMART_EVENT_QUEST_REWARDED    = 50,// none
    SMART_EVENT_QUEST_FAIL  = 51,// none
    SMART_EVENT_TEXT_OVER    = 52,// GroupId from creature_text,  creature entry who talks (0 any)
    SMART_EVENT_RECEIVE_HEAL = 53,// MinHeal, MaxHeal, CooldownMin, CooldownMax
    SMART_EVENT_JUST_SUMMONED= 54,// none
    SMART_EVENT_WAYPOINT_PAUSED    = 55,// PointId(0any), pathID(0any)
    SMART_EVENT_WAYPOINT_RESUMED  = 56,// PointId(0any), pathID(0any)
    SMART_EVENT_WAYPOINT_STOPPED  = 57,// PointId(0any), pathID(0any)
    SMART_EVENT_WAYPOINT_ENDED    = 58,// PointId(0any), pathID(0any)
    SMART_EVENT_TIMED_EVENT_TRIGGERED    = 59,// id
    SMART_EVENT_UPDATE = 60,// InitialMin, InitialMax, RepeatMin, RepeatMax
    SMART_EVENT_LINK  = 61,// INTERNAL USAGE, no params, used to link together multiple events, does not use any extra resources to iterate event lists needlessly
    SMART_EVENT_GOSSIP_SELECT= 62,// menuID, actionID, cooldown min, cooldown max
    SMART_EVENT_JUST_CREATED = 63,// none
    SMART_EVENT_GOSSIP_HELLO = 64,// none
    SMART_EVENT_FOLLOW_COMPLETED  = 65,// none
    SMART_EVENT_DUMMY_EFFECT = 66,// spellId, effectIndex
    SMART_EVENT_IS_BEHIND_TARGET  = 67,// cooldownMin, CooldownMax
    SMART_EVENT_GAME_EVENT_START  = 68,// game_event.Entry
    SMART_EVENT_GAME_EVENT_END    = 69,// game_event.Entry
    SMART_EVENT_GO_STATE_CHANGED  = 70,// go state
    SMART_EVENT_GO_EVENT_INFORM    = 71,// eventId
    SMART_EVENT_ACTION_DONE  = 72,// eventId (SharedDefines.EventId)
    SMART_EVENT_ON_SPELLCLICK= 73,// clicker (unit), cooldown min, cooldown max
    SMART_EVENT_CHECK_DIST_TO_HOME = 74,// clicker (unit)
    SMART_EVENT_EVENTOBJECT_ONTRIGGER    = 75,// EventObject(0 any), CooldownMin, CooldownMax
    SMART_EVENT_ON_TAXIPATHTO= 76,// clicker (unit)
    SMART_EVENT_EVENTOBJECT_OFFTRIGGER  = 77,// EventObject(0 any), CooldownMin, CooldownMax
    SMART_EVENT_ON_APPLY_OR_REMOVE_AURA  = 78,// SpellId, Mode, ApplyOrRemove(1/0), Cooldown
    SMART_EVENT_ON_FIND_OBJECT_IN_RANGE  = 79,// On find nearest object in range. Distance, Type(1 - player, 2 - NPC, 3 - GO), Entry(npcId, goId), RepeatTimer
    SMART_EVENT_ON_SPECIAL_DATA    = 80,// On received special data and repeat it on timer
    SMART_EVENT_ON_OWNER_HAS_QUEST = 81,// Misc1 = QuestId, Misc2 = Negative(if owner doesn't have quest), Misc3 = CheckTimer
    SMART_EVENT_ON_SPECIAL_DATA_SET= 82,// On just set special data
    SMART_EVENT_ON_OWNER_HAS_COMPLETED_QUEST = 83,  // If owner has completed quest. QuestId, Check timer, Next check timer
    SMART_EVENT_ON_ENTER_VEHICLE  = 84,// On enter vehicle
    SMART_EVENT_ON_EXIT_VEHICLE    = 85,// On exit vehicle
    SMART_EVENT_ON_RANDOM_DATA    = 86,// On random data value. Misc1 - value
    SMART_EVENT_ON_LAST_HIT  = 87,// Handle after npc take >= dmg of his health

Версия от 14:09, 16 сентября 2021

FLAGS:

   SMART_EVENT_UPDATE_IC    = 0, // InitialMin, InitialMax, RepeatMin, RepeatMax
   SMART_EVENT_UPDATE_OOC   = 1, // InitialMin, InitialMax, RepeatMin, RepeatMax
   SMART_EVENT_HEALT_PCT    = 2, // HPMin%, HPMax%,  RepeatMin, RepeatMax
   SMART_EVENT_MANA_PCT     = 3, // ManaMin%, ManaMax%, RepeatMin, RepeatMax
   SMART_EVENT_AGGRO  = 4, // NONE
   SMART_EVENT_KILL   = 5, // CooldownMin0, CooldownMax1, playerOnly2, else creature entry3
   SMART_EVENT_DEATH  = 6, // NONE
   SMART_EVENT_EVADE  = 7, // NONE
   SMART_EVENT_SPELLHIT     = 8, // SpellID, School, CooldownMin, CooldownMax
   SMART_EVENT_RANGE  = 9, // MinDist, MaxDist, RepeatMin, RepeatMax
   SMART_EVENT_OOC_LOS= 10,// NoHostile, MaxRnage, CooldownMin, CooldownMax
   SMART_EVENT_RESPAWN= 11,// type, MapId, ZoneId
   SMART_EVENT_TARGET_HEALTH_PCT  = 12,// HPMin%, HPMax%, RepeatMin, RepeatMax
   SMART_EVENT_TARGET_CASTING     = 13,// RepeatMin, RepeatMax
   SMART_EVENT_FRIENDLY_HEALTH    = 14,// HPDeficit, Radius, RepeatMin, RepeatMax
   SMART_EVENT_FRIENDLY_IS_CC     = 15,// Radius, RepeatMin, RepeatMax
   SMART_EVENT_FRIENDLY_MISSING_BUFF    = 16,// SpellId, Radius, RepeatMin, RepeatMax
   SMART_EVENT_SUMMONED_UNIT= 17,// CreatureId(0 all), CooldownMin, CooldownMax
   SMART_EVENT_TARGET_MANA_PCT    = 18,// ManaMin%, ManaMax%, RepeatMin, RepeatMax
   SMART_EVENT_ACCEPTED_QUEST     = 19,// QuestID(0any), RepeatMin, RepeatMax
   SMART_EVENT_REWARD_QUEST = 20,// QuestID(0any)
   SMART_EVENT_REACHED_HOME = 21,// NONE
   SMART_EVENT_RECEIVE_EMOTE= 22,// EmoteId, CooldownMin, CooldownMax, condition, val1, val2, val3
   SMART_EVENT_HAS_AURA     = 23,// Param1 = SpellID, Param2 = Number of Time STacked, Param3/4 RepeatMin, RepeatMax
   SMART_EVENT_TARGET_BUFFED= 24,// Param1 = SpellID, Param2 = Number of Time STacked, Param3/4 RepeatMin, RepeatMax
   SMART_EVENT_RESET  = 25,// Called after combat, when the creature respawn and spawn.
   SMART_EVENT_IC_LOS = 26,// NoHostile, MaxRnage, CooldownMin, CooldownMax
   SMART_EVENT_PASSENGER_BOARDED  = 27,// CooldownMin, CooldownMax
   SMART_EVENT_PASSENGER_REMOVED  = 28,// CooldownMin, CooldownMax
   SMART_EVENT_CHARMED= 29,// NONE
   SMART_EVENT_CHARMED_TARGET     = 30,// NONE
   SMART_EVENT_SPELLHIT_TARGET    = 31,// SpellID, School, CooldownMin, CooldownMax
   SMART_EVENT_DAMAGED= 32,// MinDmg, MaxDmg, CooldownMin, CooldownMax
   SMART_EVENT_DAMAGED_TARGET     = 33,// MinDmg, MaxDmg, CooldownMin, CooldownMax
   SMART_EVENT_MOVEMENTINFORM     = 34,// MovementType(any), PointID
   SMART_EVENT_SUMMON_DESPAWNED   = 35,// Entry, CooldownMin, CooldownMax
   SMART_EVENT_CORPSE_REMOVED     = 36,// NONE
   SMART_EVENT_AI_INIT= 37,// NONE
   SMART_EVENT_DATA_SET     = 38,// Id, Value, CooldownMin, CooldownMax
   SMART_EVENT_WAYPOINT_START     = 39,// PointId(0any), pathID(0any)
   SMART_EVENT_WAYPOINT_REACHED   = 40,// PointId(0any), pathID(0any)
   SMART_EVENT_TRANSPORT_ADDPLAYER= 41,// NONE
   SMART_EVENT_TRANSPORT_ADDCREATURE    = 42,// Entry (0 any)
   SMART_EVENT_TRANSPORT_REMOVE_PLAYER  = 43,// NONE
   SMART_EVENT_TRANSPORT_RELOCATE = 44,// PointId
   SMART_EVENT_INSTANCE_PLAYER_ENTER    = 45,// Team (0 any), CooldownMin, CooldownMax
   SMART_EVENT_AREATRIGGER_ONTRIGGER    = 46,// TriggerId(0 any), CooldownMin, CooldownMax
   SMART_EVENT_QUEST_ACCEPTED     = 47,// none
   SMART_EVENT_QUEST_OBJ_COPLETETION    = 48,// none
   SMART_EVENT_QUEST_COMPLETION   = 49,// none
   SMART_EVENT_QUEST_REWARDED     = 50,// none
   SMART_EVENT_QUEST_FAIL   = 51,// none
   SMART_EVENT_TEXT_OVER    = 52,// GroupId from creature_text,  creature entry who talks (0 any)
   SMART_EVENT_RECEIVE_HEAL = 53,// MinHeal, MaxHeal, CooldownMin, CooldownMax
   SMART_EVENT_JUST_SUMMONED= 54,// none
   SMART_EVENT_WAYPOINT_PAUSED    = 55,// PointId(0any), pathID(0any)
   SMART_EVENT_WAYPOINT_RESUMED   = 56,// PointId(0any), pathID(0any)
   SMART_EVENT_WAYPOINT_STOPPED   = 57,// PointId(0any), pathID(0any)
   SMART_EVENT_WAYPOINT_ENDED     = 58,// PointId(0any), pathID(0any)
   SMART_EVENT_TIMED_EVENT_TRIGGERED    = 59,// id
   SMART_EVENT_UPDATE = 60,// InitialMin, InitialMax, RepeatMin, RepeatMax
   SMART_EVENT_LINK   = 61,// INTERNAL USAGE, no params, used to link together multiple events, does not use any extra resources to iterate event lists needlessly
   SMART_EVENT_GOSSIP_SELECT= 62,// menuID, actionID, cooldown min, cooldown max
   SMART_EVENT_JUST_CREATED = 63,// none
   SMART_EVENT_GOSSIP_HELLO = 64,// none
   SMART_EVENT_FOLLOW_COMPLETED   = 65,// none
   SMART_EVENT_DUMMY_EFFECT = 66,// spellId, effectIndex
   SMART_EVENT_IS_BEHIND_TARGET   = 67,// cooldownMin, CooldownMax
   SMART_EVENT_GAME_EVENT_START   = 68,// game_event.Entry
   SMART_EVENT_GAME_EVENT_END     = 69,// game_event.Entry
   SMART_EVENT_GO_STATE_CHANGED   = 70,// go state
   SMART_EVENT_GO_EVENT_INFORM    = 71,// eventId
   SMART_EVENT_ACTION_DONE  = 72,// eventId (SharedDefines.EventId)
   SMART_EVENT_ON_SPELLCLICK= 73,// clicker (unit), cooldown min, cooldown max
   SMART_EVENT_CHECK_DIST_TO_HOME = 74,// clicker (unit)
   SMART_EVENT_EVENTOBJECT_ONTRIGGER    = 75,// EventObject(0 any), CooldownMin, CooldownMax
   SMART_EVENT_ON_TAXIPATHTO= 76,// clicker (unit)
   SMART_EVENT_EVENTOBJECT_OFFTRIGGER   = 77,// EventObject(0 any), CooldownMin, CooldownMax
   SMART_EVENT_ON_APPLY_OR_REMOVE_AURA  = 78,// SpellId, Mode, ApplyOrRemove(1/0), Cooldown 
   SMART_EVENT_ON_FIND_OBJECT_IN_RANGE  = 79,// On find nearest object in range. Distance, Type(1 - player, 2 - NPC, 3 - GO), Entry(npcId, goId), RepeatTimer
   SMART_EVENT_ON_SPECIAL_DATA    = 80,// On received special data and repeat it on timer
   SMART_EVENT_ON_OWNER_HAS_QUEST = 81,// Misc1 = QuestId, Misc2 = Negative(if owner doesn't have quest), Misc3 = CheckTimer
   SMART_EVENT_ON_SPECIAL_DATA_SET= 82,// On just set special data
   SMART_EVENT_ON_OWNER_HAS_COMPLETED_QUEST = 83,  // If owner has completed quest. QuestId, Check timer, Next check timer
   SMART_EVENT_ON_ENTER_VEHICLE   = 84,// On enter vehicle
   SMART_EVENT_ON_EXIT_VEHICLE    = 85,// On exit vehicle
   SMART_EVENT_ON_RANDOM_DATA     = 86,// On random data value. Misc1 - value
   SMART_EVENT_ON_LAST_HIT  = 87,// Handle after npc take >= dmg of his health