ConditionsPage

Материал из Uwow
Перейти к навигации Перейти к поиску
   CONDITIONS TYPE START;
   CONDITION_NONE                  = 0,                    // 0                0              0                  always true
   CONDITION_AURA                  = 1,                    // spell_id         effindex       use target?        true if player (or target, if value3) has aura of spell_id with effect effindex
   CONDITION_ITEM                  = 2,                    // item_id          count          bank               true if has #count of item_ids (if 'bank' is set it searches in bank slots too)
   CONDITION_ITEM_EQUIPPED         = 3,                    // item_id          0              0                  true if has item_id equipped
   CONDITION_ZONEID                = 4,                    // zone_id          0              0                  true if in zone_id
   CONDITION_REPUTATION_RANK       = 5,                    // faction_id       rankMask       0                  true if has min_rank for faction_id
   CONDITION_TEAM                  = 6,                    // player_team      0,             0                  469 - Alliance, 67 - Horde)
   CONDITION_SKILL                 = 7,                    // skill_id         skill_value    0                  true if has skill_value for skill_id
   CONDITION_QUESTREWARDED         = 8,                    // quest_id         0              0                  true if quest_id was rewarded before
   CONDITION_QUESTTAKEN            = 9,                    // quest_id         multiple       0                  true while quest active
   CONDITION_DRUNKENSTATE          = 10,                   // DrunkenState     0,             0                  true if player is drunk enough
   CONDITION_WORLD_STATE           = 11,                   // index            value          0                  true if world has the value for the index
   CONDITION_ACTIVE_EVENT          = 12,                   // event_id         0              0                  true if event is active
   CONDITION_INSTANCE_INFO         = 13,                   // entry            data           0                  true if data is set in current instance
   CONDITION_QUEST_NONE            = 14,                   // quest_id         0              0                  true if doesn't have quest saved
   CONDITION_CLASS                 = 15,                   // class            0              0                  true if player's class is equal to class
   CONDITION_RACE                  = 16,                   // race             0              0                  true if player's race is equal to race
   CONDITION_ACHIEVEMENT           = 17,                   // achievement_id   0              0                  true if achievement is complete
   CONDITION_TITLE                 = 18,                   // title id         0              0                  true if player has title
   CONDITION_SPAWNMASK             = 19,                   // spawnMask        0              0
   CONDITION_GENDER                = 20,                   // gender           0              0                  true if player's gender is equal to gender
   CONDITION_UNUSED_21             = 21,                   //
   CONDITION_MAPID                 = 22,                   // map_id           0              0                  true if in map_id
   CONDITION_AREAID                = 23,                   // area_id          0              0                  true if in area_id
   CONDITION_UNUSED_24             = 24,                   //
   CONDITION_SPELL                 = 25,                   // spell_id         0              0                  true if player has learned spell
   CONDITION_PHASEMASK             = 26,                   // phasemask        0              0                  true if object is in phasemask
   CONDITION_LEVEL                 = 27,                   // level            ComparisonType 0                  true if unit's level is equal to param1 (param2 can modify the statement)
   CONDITION_QUEST_COMPLETE        = 28,                   // quest_id         0              0                  true if player has quest_id with all objectives complete, but not yet rewarded
   CONDITION_NEAR_CREATURE         = 29,                   // creature entry   distance       0                  true if there is a creature of entry in range
   CONDITION_NEAR_GAMEOBJECT       = 30,                   // gameobject entry distance       0                  true if there is a gameobject of entry in range
   CONDITION_OBJECT_ENTRY_GUID     = 31,                   // TypeID           entry          guid               true if object is type TypeID and the entry is 0 or matches entry of the object or matches guid of the object
   CONDITION_TYPE_MASK             = 32,                   // TypeMask         0              0                  true if object is type object's TypeMask matches provided TypeMask
   CONDITION_RELATION_TO           = 33,                   // ConditionTarget  RelationType   0                  true if object is in given relation with object specified by ConditionTarget
   CONDITION_REACTION_TO           = 34,                   // ConditionTarget  rankMask       0                  true if object's reaction matches rankMask object specified by ConditionTarget
   CONDITION_DISTANCE_TO           = 35,                   // ConditionTarget  distance       ComparisonType     true if object and ConditionTarget are within distance given by parameters
   CONDITION_ALIVE                 = 36,                   // 0                0              0                  true if unit is alive
   CONDITION_HP_VAL                = 37,                   // hpVal            ComparisonType 0                  true if unit's hp matches given value
   CONDITION_HP_PCT                = 38,                   // hpPct            ComparisonType 0                  true if unit's hp matches given pct
   CONDITION_AREA_EXPLORED         = 39,                   // AreaID
   CONDITION_SCENE_SEEN            = 40,                   // SceneID
   CONDITION_QUEST_OBJECTIVE_DONE  = 41,                   // QuestID          ObjectiveID    Count   
   CONDITION_SCENE_TRIGER_EVENT    = 42,                   // SceneID
   CONDITION_GARRISON_BUILDING     = 43,                   // BuildType        Lvl
   CONDITION_SCENARION_STEP        = 44,                   // ScenarioID       stepID
   CONDITION_REALM_ACHIEVEMENT     = 45,                   // achievement_id   0              0                  true if realm achievement is complete
   CONDITION_IN_WATER              = 46,                   // 0                0              0                  true if unit in water
   CONDITION_TERRAIN_SWAP          = 47,                   // terrainSwap      0              0                  true if object is in terrainswap
   CONDITION_STAND_STATE           = 48,                   // stateType        state          0                  true if unit matches specified sitstate (0,x: has exactly state x; 1,0: any standing state; 1,1: any sitting state;)
   CONDITION_CLASS_HALL_ADVANCEMENT= 49,                   // talentID         0              0                  true if learned talent at class hall.
   CONDITION_CURRENCY              = 50,                   // currency_id      countMin       countMax           true if has #countMin and countMax
   CONDITION_CRITERIA              = 51,                   // criteriatree_id  0              0                  true if Criteria is complete
   CONDITION_CRITERIA_TREE         = 52,                   // criteriatree_id  0              0                  true if CriteriaTree is complete
   CONDITION_MODIFIER_TREE         = 53,                   // modifiertree_id  0              0                  true if ModifierTree is complete
   CONDITION_ARTIFACT_LEVEL        = 54,                   // itemEntry        minLevel       maxLevel           true if in minLevel maxLevel
   CONDITION_SPEC_ID               = 55,                   // specId           0              0                  true if in current spec
   CONDITION_ON_TRANSPORT          = 56,                   //                                                    true if on vehicle
   CONDITION_ARTIFACT_POWER        = 57,                   // itemEntry or 0   minPower       maxPower           true if in minLevel maxLevel
   CONDITION_IN_RAID_OR_GROUP      = 58,                   // 0 - not in raid  isRaid         isGroup
   CONDITION_CURRENCY_ON_WEEK      = 59,                   // currency_id      countMin       countMax           true if has #countMin and countMax
   CONDITION_WORLD_QUEST           = 60,                   // QuestID          0              0                  true if world quest active
   CONDITION_HAS_POWER             = 61,                   // PowerType        > this         < this             true if power > or power < if set
   CONDITION_GAMEMASTER            = 62,                   // 0                0              0                  true if player is GameMaster
   CONDITION_HAS_EMOTE_STATE       = 63,                   // 0                0              0                  true if has EmoteState
   CONDITION_IN_COMBAT             = 64,                   // 0                0              0                  true if in combat
   CONDITION_GET_AMOUNT_STACK_AURA = 65,                   // spell_id         stack          0                  true if player (or target) has aura of spell_id with stack amount 
   CONDITION_TIMEWALKING           = 66,                   // 0                0              0                  true if player is in timewalking.
   CONDITION_ACCOUNT_QUEST         = 67,                   // quest_id         0              0                  true if quest_id was rewarded on any char account
   CONDITION_GET_AURA_MAX_DURATION = 68,                   // aura             value          0                  true if max duration of aura == value.
   CONDITION_IF_HAS_SUMMON         = 69,                   // npcId            0              0                  true if unit has summmon
   CONDITION_HAS_QUEST_MULTI       = 70,                   // QuestId          1\0 complete   1\0 rewarded       true if quest is incomplete. if value2 = 1 - quest is incomplete and complete. if value3 = 1 - quest is incomplete, complete and rewarded
   CONDITION_HAS_BYTES_1           = 71,                   // bytes1                                             true if has bytes1.
   CONDITION_HAS_SPELL_COOLDOWN    = 72,                   // spellId                                            true if spell has cooldown.
   CONDITION_WORLD_QUEST_REWARDED  = 73,                   // QuestId                                            true if world quest rewarded.
   CONDITION_GO_TYPE               = 74,                   // TypeId                                             true if get go type id
   CONDITION_HAS_PASSENGER         = 75,                   // SeatId                                             true if has passenger in seatId
   CONDITION_HAS_AURA              = 76,                   // SpellId                                            true if has aura
   CONDITION_MAX_LEVEL             = 77,                   // 0                                                  true if player has max level.
   CONDITION_REPUTATION            = 78,                   // FactionID        value          ComparisonType     true if player has reputation is equal to param1 (param3 can modify the statement).
   CONDITION_QUEST_COMPLETITION    = 79,                   // QuestId                                            true if player set quest completition
   CONDITION_GUID_SPEAKING         = 80,                   // 0                                                  true if guid have true in isSpeaking
   CONDITION_SCENARIO_ID           = 81,                   // ScenarioID
   CONDITION_FARM_SLOT_COUNT       = 82,                   // Slot Count
   CONDITION_FARM_NPC_ENTRY        = 83,                   // Npc Entry
   CONDITION_HAS_PHASEID           = 84,                   // PhaseId
   CONDITION_DAY_NUMBER            = 85,                   // Number day in month - 1 (0-30)
   CONDITION_WEEK_DAY              = 86,                   // Number day in week(0-6)
   CONDITION_MONTH_NUMBER          = 87,                   // Number month in year(0-11)
   CONDITION_HAS_FOLLOWER          = 88,                   // Has Follower in garrison
   CONDITION_FOLLOWER_ON_MISSION   = 89,                   // Follower in mission
   CONDITION_LIQUID_STATUS         = 90,                   // Status                                             true if source is equal liquid status level
   CONDITION_LFG_DUNGEONS_ID       = 91,                   // LFG Dungeons ID
   CONDITION_QUESTSTATE            = 92,                   // quest_id         state_mask     0                  true if player is in any of the provided quest states for the quest (1 = not taken, 2 = completed, 8 = in progress, 32 = failed, 64 = rewarded)
   CONDITIONS TYPE END;