1. #1

    [WeakAura] How can i add YELL for debuffs?

    Hi, im currently try to kill Gorefiend Mythic

    I fount out this crazy debuff is kill our raid so hard

    and i found

    function(...)

    local digestName = select(5,...) -- this is the name of the player who got digested (taken from trigger 1, so this will always be accurate)
    digestName = string.gsub(digestName, "%-[^|]+", "") -- remove realm names, if any (redundant maybe?)

    local initalHP = 1047180 -- 1,047,180 hp per soul
    local dmgReturn = 0 -- just setting up to use this variable to return the amount of damage taken.


    for k,v in ipairs(aura_env.playerInfo) do -- for every player in the table
    if digestName == v.NAME then -- if their name matches trigger 1's name
    dmgReturn = v.DMG_TAKEN -- save the amount of damage that player took so far
    break -- stop looping through the table
    end
    end

    return string.format("%s - %d %%%%", digestName, ((initalHP - dmgReturn) / initalHP) * 100)
    -- return "Name - HP%", name of the person and the health calculation (1m - damage taken / 1m) * 100
    end






    this from other post
    that show whos getting digest / and their time & HP left

    im trying to add

    Yell function here
    so when the one has less then 10 sec left
    it will Yell that Character's name

    is anyone able to help me?

  2. #2

  3. #3

    hmm

    Quote Originally Posted by OneWay View Post
    If I am not wrong and this is how the function actually looks like, try just adding "/y Name - HP%" ?

    I really don't use functions with WeakAuras because for things like these, we usually sort it with voice communication. For everything else, debuffs, spells, abilities, cds. I just work with events and combat logs (statuses)


    anything after -- is just description
    so what you wrote it just explain what

    return string.format("%s - %d %%%%", digestName, ((initalHP - dmgReturn) / initalHP) * 100)

    this do

    and this does not work i guess..
    or i add at wrong place?

    - - - Updated - - -

    i know i alrady check this...
    still have not enoguh knowledge to do tho..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •