Re: Охотник
Добавлено: 17 сен 2021, 12:43
Да, и в рекаунте так называется АОЕ клив пета
Код: Выделить всё
Pet1 = (b_check_SPELLCAST_SUCCEEDED(883) < b_check_SPELLCAST_SUCCEEDED(83242)) and (b_check_SPELLCAST_SUCCEEDED(883) < b_check_SPELLCAST_SUCCEEDED(83243)) and (b_check_SPELLCAST_SUCCEEDED(883) < b_check_SPELLCAST_SUCCEEDED(83244)) and (b_check_SPELLCAST_SUCCEEDED(883) < b_check_SPELLCAST_SUCCEEDED(83245))
Pet2 = (b_check_SPELLCAST_SUCCEEDED(83242) < b_check_SPELLCAST_SUCCEEDED(883)) and (b_check_SPELLCAST_SUCCEEDED(83242) < b_check_SPELLCAST_SUCCEEDED(83243)) and (b_check_SPELLCAST_SUCCEEDED(83242) < b_check_SPELLCAST_SUCCEEDED(83244)) and (b_check_SPELLCAST_SUCCEEDED(83242) < b_check_SPELLCAST_SUCCEEDED(83245))
Pet3 = (b_check_SPELLCAST_SUCCEEDED(83243) < b_check_SPELLCAST_SUCCEEDED(83242)) and (b_check_SPELLCAST_SUCCEEDED(83243) < b_check_SPELLCAST_SUCCEEDED(883)) and (b_check_SPELLCAST_SUCCEEDED(83243) < b_check_SPELLCAST_SUCCEEDED(83244)) and (b_check_SPELLCAST_SUCCEEDED(83243) < b_check_SPELLCAST_SUCCEEDED(83245))
Pet4 = (b_check_SPELLCAST_SUCCEEDED(83244) < b_check_SPELLCAST_SUCCEEDED(83242)) and (b_check_SPELLCAST_SUCCEEDED(83244) < b_check_SPELLCAST_SUCCEEDED(83243)) and (b_check_SPELLCAST_SUCCEEDED(83244) < b_check_SPELLCAST_SUCCEEDED(883)) and (b_check_SPELLCAST_SUCCEEDED(83244) < b_check_SPELLCAST_SUCCEEDED(83245))
Pet5 = (b_check_SPELLCAST_SUCCEEDED(83245) < b_check_SPELLCAST_SUCCEEDED(83242)) and (b_check_SPELLCAST_SUCCEEDED(83245) < b_check_SPELLCAST_SUCCEEDED(83243)) and (b_check_SPELLCAST_SUCCEEDED(83245) < b_check_SPELLCAST_SUCCEEDED(83244)) and (b_check_SPELLCAST_SUCCEEDED(83245) < b_check_SPELLCAST_SUCCEEDED(883))
NoLastPet = (b_check_SPELLCAST_SUCCEEDED(883) == 9999) and (b_check_SPELLCAST_SUCCEEDED(83242) == 9999) and (b_check_SPELLCAST_SUCCEEDED(83243) == 9999) and (b_check_SPELLCAST_SUCCEEDED(83244) == 9999) and (b_check_SPELLCAST_SUCCEEDED(83245) == 9999)
Код: Выделить всё
/cast [nopet] Призыв питомца 1; [target=pet, dead] Воскрешение питомца
Код: Выделить всё
function cdwgcd(spellid)
local start, duration, enabled = GetSpellCooldown(spellid)
local _, gcdMS = GetSpellBaseCooldown(spellid)
local cd = start + duration - GetTime()
if ( start > 0 and duration > gcdMS/1000) then return cd end
return 0
end
Код: Выделить всё
#Showtooltip
/cast Удар духа
Код: Выделить всё
/run for i = 1, 120 do local x = GetActionTexture(i) if x then print("Slot " .. i .. ":", GetActionText(i), x) end end
Код: Выделить всё
function DispellEnrage()
local i = 1
local name, _, _, _, _, _, _, isStealable = UnitBuff("target", i)
while name do
if isStealable == true then return true end
i = i + 1;
name, _, _, _, _, _, _, isStealable = UnitBuff("target", i)
end
return false
end