Приветствуем вас на форуме проекта WoW Circle. Если вы читаете это, значит не зарегистрировались у нас. Для того, чтобы получить доступ к расширенным возможностям нашего форума нажмите сюда и пройди регистрацию, которая не займет у вас много времени. После регистрации будут доступны новые, более расширенные, возможности.
Как проверить?

Упомянутые в теме пользователи:

Показано с 1 по 3 из 3
  1. #1
    Ветеран форума Аватар для LinxFree
    Регистрация
    16.06.2013
    Сообщений
    990
    Поблагодарил(а)
    146
    Получено благодарностей: 133 (сообщений: 98).
    Репутация: 175

    Как проверить?

    Че мне тут пишут что нельзя в макросе проверить наличие бафа на себе, а как тогда это делают аддоны? И как тогда наличие петов проверяют, или возможность юза спела? Это всё можно... Кто знает отпишите как проверить?

  2. #2
    Старожил
    Регистрация
    20.09.2014
    Сообщений
    123
    Поблагодарил(а)
    43
    Получено благодарностей: 59 (сообщений: 28).
    Репутация: 59
    UnitAura тебе поможет

    Returns information about buffs/debuffs on a unit

    See also Unit functions, Buff functions.
    Signature:

    name, rank, icon, count, dispelType, duration, expires, caster, isStealable, nameplateShowPersonal, spellID, canApplyAura, isBossDebuff, _, nameplateShowAll, timeMod, value1, value2, value3 = UnitAura("unit", index [, "filter"]) or UnitAura("unit", "name", "rank" [, "filter"])
    Arguments:

    unit - A unit to query (string, unitID)
    index - Index of an aura to query (number)
    name - Name of an aura to query (string)
    rank - Secondary text of an aura to query (often a rank; e.g. "Rank 7") (string)
    filter - A list of filters to use separated by the pipe '|' character; e.g. "RAID|PLAYER" will query group buffs cast by the player. Defaults to 'HELPFUL' (string)
    CANCELABLE - Show auras that can be cancelled
    HARMFUL - Show debuffs only
    HELPFUL - Show buffs only (default)
    NOT_CANCELABLE - Show auras that cannot be cancelled
    PLAYER - Show auras the player has cast
    RAID - When used with a HELPFUL filter it will show auras the player can cast on party/raid members (as opposed to self buffs). If used with a HARMFUL filter it will return debuffs the player can cure
    Returns:

    name - Name of the aura (string)
    rank - Secondary text for the aura (often a rank; e.g. "Rank 7") (string)
    icon - Path to an icon texture for the aura (string)
    count - The number of times the aura has been applied (number)
    dispelType - Type of aura (relevant for dispelling and certain other mechanics); nil if not one of the following values: (string)

    *****
    Disease
    Magic
    Poison
    duration - Total duration of the aura (in seconds). Zero if the unit is phased or out of range. (number)
    expires - Time at which the aura will expire; can be compared to GetTime() to determine time remaining. Zero if the unit is phased or out of range. (number)
    caster - Unit which applied the aura. If the aura was applied by a unit that does not have a token but is controlled by one that does (e.g. a totem or another player's vehicle), returns the controlling unit. Returns nil if the casting unit (or its controller) has no unitID. (string, unitID)
    isStealable - true if the aura can be transferred to a player using the Spellsteal spell (boolean)
    nameplateShowPersonal - true if the aura should be visible above nameplates of affected targets, but only for the player that casted it (boolean)
    spellID - spellID of the aura (number)
    canApplyAura - true if the player can apply the aura (not necessarily if the player did apply the aura, just if the player can apply the aura). (boolean)
    isBossDebuff - true if the aura was cast by a boss. (boolean)
    _ - unknown parameter (boolean)
    nameplateShowAll - true if the aura should be visible above nameplates of affected targets for all players (boolean)
    timeMod - the real time remaining on the aura is (expirationTime - GetTime()) / timeMod, likely used e.g. on Chronomatic Anomaly (number)
    value1 - Value of variable effect 1 of the aura. (HoTs, resource-capturing trinkets, etc.) (number)
    value2 - Value of variable effect 2 of the aura. (HoTs, resource-capturing trinkets, etc.) (number)
    value3 - Value of variable effect 3 of the aura. (HoTs, resource-capturing trinkets, etc.) (number)

  3. #3
    Старожил Аватар для Radiance
    Регистрация
    05.01.2012
    Сообщений
    145
    Поблагодарил(а)
    73
    Получено благодарностей: 32 (сообщений: 27).
    Репутация: 33
    Возможности макросов ограничены, а аддоны работают на программном уровне, который недоступен макросам. Макросам доступно очень ограниченное количество простеньких скриптов.
    Да, макросом нельзя проверить наличие бафа не только на себе, но и на каком-либо другом объекте. Запомни раз и навсегда

Похожие темы

  1. Ответов: 0
    Последнее сообщение: 11.06.2016, 17:04
  2. Член совета Миллстайп <Городской совет Темнолесья>
    от Дрюняшка (2) в разделе Исправлено Cataclysm
    Ответов: 0
    Последнее сообщение: 08.02.2014, 14:03
  3. Посоветуйте класс ( Эпичность овер9000 ). №2
    от Риннекаге в разделе Корзина
    Ответов: 21
    Последнее сообщение: 11.03.2013, 10:43
  4. Посоветуйте класс ( Эпичность овер9000 ).
    от Риннекаге в разделе Корзина
    Ответов: 33
    Последнее сообщение: 25.02.2013, 19:49

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •