Page 2 of 2 FirstFirst
1
2
  1. #21
    Deleted
    Quote Originally Posted by ccKep View Post
    Also: You might want to use the 6th return value of GetRaidRosterInfo since the 5th is localized.
    It isn't my code, I just fixed it; I will make sure to implement your method though

  2. #22
    Deleted
    If you're already considering performance, you might want to:
    1) Loop from 1 to GetNumGroupMembers(), thus preventing you from having to use nil handling code.
    2) Not perform this many string concatenations for each unit you parse. Consider building a table of strings you want to display (names[i] .. ": " ..stacks), then using table.concat(t,"\n") to merge them together. table.concat is implemented in C and performs far better than repeated string concatenation (which creates a copy of the original string, then appends the second string, for each operation).

  3. #23
    Thx for posting these!

  4. #24
    Deleted
    Here's the latest 'revision':

    Code:
    function()
        
        local names = {}
        local stacks = {}
        local info = {} 
        local members = GetNumGroupMembers();
        local raidSize;
        
        if members > 25 then
            raidSize = 40;
        elseif members > 10 then
            raidSize = 25;
        else
            raidSize = 10;
        end   
        
        for i = 1,raidSize,1 do
            local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, unitName, unitClass, col, color, r, g, b, r2, g2, b2
            
            unitName = select(1,GetRaidRosterInfo(i))
            
            if unitName ~= nil then 
                unitClass = select(6,GetRaidRosterInfo(i));
                col = RAID_CLASS_COLORS[unitClass];
                if col then
                    color = string.sub(col.colorStr, 3, 8)
                else
                    color = "646464"
                end
                
                names[i] = string.format("|cff%s%s", color, unitName)
            else            
                r,g,b = 100,100,100
                unitName = "No Player"
                unitClass = nil
                names[i] = string.format("|cff%02x%02x%02x%s", r, g, b, unitName)            
            end 
            
            
            if unitName ~= "No Player" then            
                name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId =  UnitDebuff(unitName,"Shadowed Soul")
            end
            
            if count ~= nil then
                if count < 6 then 
                    r2,g2,b2 = 0,255,0
                elseif count < 11 then
                    r2,g2,b2 = 255,266,0
                elseif count < 16 then
                    r2,g2,b2 = 255,128,0
                else 
                    r2,g2,b2 = 255,0,0
                end 
                stacks[i] = string.format("|cff%02x%02x%02x%d", r2, g2, b2, count)
            else  
                r2,g2,b2 = 15,150,190
                count = 0
                stacks[i] = string.format("|cff%02x%02x%02x%d", r2, g2, b2, count)
            end
            
            info[i] = names[i] .. ": " .. stacks[i];
            
            
            if unitName ~= "No Player" then            
                name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId =  UnitDebuff(unitName, "Soul Fragment")     
                if name then
                    info[i] = info[i].." |cffFF0000(Soul Fragment)"
                end
            end        
        end
        
        return "|cffFF00FFShadowed Soul:\n\n"..table.concat(info, "\n")
        
    end
    Feel free to scrutinize
    Last edited by mmoccff0c323bf; 2013-05-09 at 03:44 PM.

  5. #25
    If you guys don't mind, can you post the export strings as well. This LUA stuff confuses me lol.

  6. #26

  7. #27
    Seeing this thread was similar to my question, posting here. Is there a way to flash text beyond a certain threshold? Say, less than 7 seconds remaining on a buff, etc?

    Secondly: Is it possible to have a dynamic group grow up to five horizontally, and then repeat/move down a row?

    Essentially I'm playing with tracking my buffs via dynamic group, but when many things are active, it ends up being a long list of icons with timers.
    Last edited by Chult; 2013-05-10 at 01:01 AM.

  8. #28
    Quote Originally Posted by Chult View Post
    Seeing this thread was similar to my question, posting here. Is there a way to flash text beyond a certain threshold? Say, less than 7 seconds remaining on a buff, etc?

    Secondly: Is it possible to have a dynamic group grow up to five horizontally, and then repeat/move down a row?

    Essentially I'm playing with tracking my buffs via dynamic group, but when many things are active, it ends up being a long list of icons with timers.
    1. Yes - but you will have to play with the settings in the Animation tab for it to work how you'd like it to.
    2. You'd have to make multiple dynamic groups.

  9. #29
    Quote Originally Posted by Woz View Post
    1. Yes - but you will have to play with the settings in the Animation tab for it to work how you'd like it to.
    2. You'd have to make multiple dynamic groups.
    Okay, making multiple groups is NP. And using presets, I can make them flash. However, I cannot assign a less than 7 second trigger to the flash. When using custom animations, flash isn't even a choice. Any advice?

    I'm assuming I'll have to put in some LUA to make them do this only at a certain point of less, however my LUA knowledge is pretty limited.
    Last edited by Chult; 2013-05-10 at 02:07 AM.

  10. #30
    Well I do have an idea that you could try:

    Code:
    dG0nHaqjLQKgfP0PifRIuvVsjyweLBPuzxqu(fjr1WuuhdrltP8mfPPruDnL02ueFdcghjPZbHwhjrmpsI09qPuDqLOfkQ8qquteLcxeeSre0hvQsnsLQiNeeALKQmtLQWnrPODQs)eIQHQuvlfe5Punvr5QOukBvPkXxrPK1Quf1CrPAVs)fKgmQomHfJqpgftMixMYMrjFMeJwu1PH0RvcnBvCBsLDRWVbgoOwUWZrA6Q66ISDscFhImEe48KuRNKOSFOUKnRUOz9RtRtIm5idbKHyDD1LQl1S6gbWIHKj1C1P2H1(a0XxphYZYqoBUhqGWS6cjj0hfmehOFGQOybTz9RhMckyKPg2QReGeC9rsxwGQOybTxY6hGqQz1dWXAwDDPZJ2S(97xhvQEMr)(1zAwVKnREIAbu19oxprTakb9oxNbCarZ6LSeQ62Kv5BiI4S8PRZRRiuw7wN270sOQBtNjNryDv(0PKiozTS2ToTFD1iNflQ99Ut(CDwGWucqAibzWbenRxYEj7DRxYEN2lzVY7LSFDjJk(uiElNGzrLaKgsLyDQqNLze8PWAU6efmlQeG0qcYGdiAwVK9oJS1E36DgzR9oT3zKT2R8ENr2A)6FGQOyrZQtHTZbIs13MSHic1binq(4OU5QddqYIxnS17C9e1GcdqYIxnS1C1zs0hOdAEujR(JQZKQNgMkSXxxKEqDPuiEuWO(A9e1GsHTZ5k0znxDtf24RVK5rbdmNTrfepw9e1GcBbJnEyasw0C1tudkmajlkX6jQbLcBNdeLAU6uy7CUcDwVBt2qeH6jQbnnq)MR(qOZOnRxY67dqYcmNTaHKkbZ98O2rQFDylySXddqYI6Qoxh2cgB8WaKSaka2cXdI6Qu2E)6efmlQeG0qc5SyrTV3T6b4fpky07CDXavN4rbJMvN(I4BwDgWbeqQeQ6esvNSov(S81PtKJGQL1U116IdCErMAyRotI(aD1zahqKReQkciUUnzLCv(KneLpfXYA3606mGdi27s46KvYveMmpVHicYrq(Cz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(Ec5qcI7zKFZwUhqH4DVabi5qOotaGHsqVZitozD6lywKUpaD81HmeUzqas1jkywujaPHeYzXIAFVB97xxf9skFEUFla
    Has 3 different components:
    - Buff (on you) with a timer
    - Flashing text when 7s remaining on buff
    - Timer that fades in as CD is nearing expiration (requires some modification in the animation tab to work properly with whatever CD you're tracking -- to change it go to Animation and change the Duration in both Start/Finish to the total duration of the CD in seconds)

    From what I understand that's what you're looking for.

  11. #31
    Nah, I don't need a seperate text saying "7 seconds left on X". I'm just looking for a regular buff icon for a spell with duration text which flashes when low.

    Conversely, the icon flashing when low could work too. Just a visual queue to refresh buffs/debuffs.
    Last edited by Chult; 2013-05-10 at 05:15 AM.

  12. #32
    Quote Originally Posted by Chult View Post
    Nah, I don't need a seperate text saying "7 seconds left on X". I'm just looking for a regular buff icon for a spell with duration text which flashes when low.

    Conversely, the icon flashing when low could work too. Just a visual queue to refresh buffs/debuffs.
    Make one aura for the CD with no text (just input " " [a space] in the textbox) - then make a second aura (a text one for the CD of said ability) layered on top as a text with the display set to show when 7s left and make the main animation flash.

  13. #33
    Yes, but I want to see the full duration of the ability, and the same text flash when it breaks the 7 second remaining threshold. Just icon with time, which flashes when low.

    Anyway, I guess it's grossly inefficient to make two weakauras for every single ability I track just to do this. Thanks for your help anyway.

  14. #34
    Quote Originally Posted by Kasc View Post
    Here's the latest 'revision':

    Code:
    function()
        
        local names = {}
        local stacks = {}
        local info = {} 
        local members = GetNumGroupMembers();
        local raidSize;
        
        if members > 25 then
            raidSize = 40;
        elseif members > 10 then
            raidSize = 25;
        else
            raidSize = 10;
        end   
        
        for i = 1,raidSize,1 do
            local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, unitName, unitClass, col, color, r, g, b, r2, g2, b2
            
            unitName = select(1,GetRaidRosterInfo(i))
            
            if unitName ~= nil then 
                unitClass = select(6,GetRaidRosterInfo(i));
                col = RAID_CLASS_COLORS[unitClass];
                if col then
                    color = string.sub(col.colorStr, 3, 8)
                else
                    color = "646464"
                end
                
                names[i] = string.format("|cff%s%s", color, unitName)
            else            
                r,g,b = 100,100,100
                unitName = "No Player"
                unitClass = nil
                names[i] = string.format("|cff%02x%02x%02x%s", r, g, b, unitName)            
            end 
            
            
            if unitName ~= "No Player" then            
                name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId =  UnitDebuff(unitName,"Shadowed Soul")
            end
            
            if count ~= nil then
                if count < 6 then 
                    r2,g2,b2 = 0,255,0
                elseif count < 11 then
                    r2,g2,b2 = 255,266,0
                elseif count < 16 then
                    r2,g2,b2 = 255,128,0
                else 
                    r2,g2,b2 = 255,0,0
                end 
                stacks[i] = string.format("|cff%02x%02x%02x%d", r2, g2, b2, count)
            else  
                r2,g2,b2 = 15,150,190
                count = 0
                stacks[i] = string.format("|cff%02x%02x%02x%d", r2, g2, b2, count)
            end
            
            info[i] = names[i] .. ": " .. stacks[i];
            
            
            if unitName ~= "No Player" then            
                name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId =  UnitDebuff(unitName, "Soul Fragment")     
                if name then
                    info[i] = info[i].." |cffFF0000(Soul Fragment)"
                end
            end        
        end
        
        return "|cffFF00FFShadowed Soul:\n\n"..table.concat(info, "\n")
        
    end
    Feel free to scrutinize
    I'm using this right now. Is there anyway to get the order to show from greatest to least? People with the most stacks at the top of the list and the least at the bottom.

Posting Permissions

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