1. #1

    Tracking Player Debuffs with Names/Distance

    Hi, I'm trying to learn how to put together some weak auras for HFC. I'm really motivated by seeing Midwinter's weak auras but obviously those are private so I'm doing my best to create my own.

    My first experiment is to track Artillery on Iron Reaver. I think I've got that figured out pretty well.

    Code:
    dOZZdaGEjQ2LQOTjHzsH0SPQBkI62e13OItRYoHu7fTBrTFvHFsKggeghKmnOAOuigSuYWvLoiLIxlfDmk6CuWcjclvkyXuOA5cEifkpf8yQ0ZLQjkI0ujmzOmDsxueXvjI6YkDDv1gfIdRWMv02jI4JseptO(mL8DjkJKsPtkrA0IW4LcDjIiDlH01GOZlslJs1FLs9BjnnPGqNG9NMpr8ejbzcyeWOGGvOwgHgkTeBfeAu6C2xLrIIJmgLdQcCtKXoOWJn5mkEmHWAD1Si9DjGLMhYNRvO(FjKkDo7RYifiqA6yAaPjsChtuofCgfhNq)D4UeTbee2gFhzSfJsq4WiytqpVFdPpA9OfOHR5(OvjH6)LqF9tJuVSsqcPcH0KnAsIiim8NvMqdLwITccLDyAcgXbrCbkN4yCCe2Xr6uWzu8cc5VSiCwwBOt0MesSNvcLrCqexGYbLJPDN44cdfCgfVGGVoWOGWVVTD9JENgNqy4Uuqq(71JcQujGDZ55(9AkfeK)E9OGkvc6WVzLccYFVEuqLkHq1Vuqq(71JcQuPsLGlfeTjfe0WzzTbki01HBZ2xEwj4w)zLGvO(FD918sji8ZNsWku)VeWwJ)Ntr67sWwBAi5is2OeYd5TtbrBsWMGEE)gsPsipK32xEwj86hPBOtW931QC7eh2sqp5fJkHe7zLqjAteii4RdmkiuEnVeSD9(5f2hTm2PdS1ta7MZZ971ukii)96rbvQe(9TD518sjieQ(LccYFVEuqLkHWWDPGG83RhfuPsqh(nRuqq(71JcQuPsa76V(rkOd3MDcsAMqyTUAwK(Ueo3AMqxhUn7gRM1XLL3SsqQKfqPjnjekVwLjAepJj0O05SVkrh1(tdgmGYXXGDdfOCqs4WiytqpVFdPpA9OfOHR5sOSdttq0Miqqi)LfHZYAdDI2KqQ05SVkJuGJSiogh3oshu4X2nWzuCCcdmStVAE4BRHZYAdDkOsORd3MDJuVSsqcPcH0KPsLGKq0M42nPsc

    However, the tricky part is getting the distance of all 3 players. Ideally, what I would like is to show the distance these players are from you and for the text to be red if under 40 yards. I didn't know how to do this in the original weak aura while keeping the names of the players as well so I made a seperate one and just lined the numbers up under the original group.

    Code:
    dyebfaGiOYLqenkiLtbjnluvClePDbuddIJHILPkEMkX0uLUgkzBsKVPIY4KqNdvvZtfQUhuL2huvDqjWcHeEOksnrvaUOkiTrG8rvKmsOQCsvqSse1mvr4MQiANsu)ufkdvfilvfvpLQPkvxvfuFfvLSxXFHunyLoSKwSkKEmOMSQ6Yk2mu(Sk1OvjDAKEnQk1Sj62OYUj8BadhL64qIwUuEoctN01bz7Qa67icJxc68OkRhQI5RcX9vbQ9t5WKECI4pGzaJaMvCU4)4)0JF3air8ZpKtHVE8cpgggXOPmPSqyfN3XWWignGy9EgdZzxqkYGCPyrwpbJ0334T5Mci68ypX)8evok8DdaIDCc2v4jLzyEItmsSdcGk04N4qb1Jtc6xVgqfrqkDH)xwLyDPetPsVbJ0x(JlG46n6990iszM4xh69vnGk9G8Y)f(Fy9W6cZdcsWi9TyC6pEbnLkLtJNTNxf3JTNQbaXoUeO(tpoeXGoSSsqKJgVvHN0JZbjvA6rJg)tXWOWqsLx6X5GKkn9OrJRv5i00JZbjvA6rJgVbiN0JZbjvA6rJgn(ui7Q4p)GIOXHtpLzspogGqDkEMu(5j(NsWww51Nc14KeoomeHcW1Nc14yqcyLciqdvJST2ARTsa4Q0wrLBSfV2YxfG(jpDxu5gBbA2IdNr2wBT1wjaCvA7NsOvb84OeQ2MVT41wIroWkAm85WcQEaucTkGhhLq128rtu5gur1iBRT2AReaUkT9tj0QaESfV2(PeAvapokHQT5BhmAiGzHQr2wBT1wkgAFkHwfWJT432xeWiiOAREDegzBT1wBT1wBTTnkutylUJadcecciqii43wCGbJb04QkA4ijygmC85tj0QaEqfmyC2ECCgzBT1wBhjXyKT1wBT1wBT122OqnHT4ocmiqGaHGGGGFBXbgmgqJRQOHJKGzWWXNpLqRc4bvWGXz7XXzKT1wBTDeFJ8i(gzJSroovqv0Hb4ylhD(Pmt82CtbeDESN46uOgxB077PLECcTcZ3OtfyaXHbGeA87gaeByjGyckIdjOA87gae74)5OqyyDESN44RGZpjOdFI4Ik3qKEkZeVGMsLYPXlACrLBqNkWaIxHA14Wqekah6xP)jUs5MF04KG(1RbeRlVfrEEEzqqykwKPuWi9TuC6pEbnLkLtJNTNxf3tCmaHg)bb5Xwuai)XfqC9g9(EAePmt8Rd9(QgqLy4)59HH1zixEpdbPyWi9TyCjq9NEC8aiM44BKsmABS90uT(hz8pfdJcdjvEPhNdsQ00JgnoeXGoEaetqr8gGCspohKuPPhnA8wfEspohKuPPhnACTkhHMECoiPstpA0OrJg)atzM3hMOja

    The Issue: I am just seeing red <0.0> under each player. It is not tracking the yards. This is the display custom text and I believe it is something in there that is the source of the problem.

    function()
    local name = WA_MCname or ""
    local distanceSquared = select(1,UnitDistanceSquared(name))
    local distance = distanceSquared^(0.5)
    if(distance > 40.00) then
    return "|cFF00FF00> "..format("%.1f",distance).." <"
    else
    return "|cFFFF0000> "..format("%.1f",distance).." <"
    end
    end

    I would like to learn first and foremost so I can replicate this kind of style on multiple abilities in HFC. Thanks.

  2. #2
    Field Marshal Translit's Avatar
    Join Date
    Jul 2014
    Location
    Moscow
    Posts
    71
    I bet WA_MCname came from margok weak auras and i have no idea why do you use it.
    i have similar WA for iron reaver and like 6+ more bosses of HFC. What kind of output do u want to see? like
    name1: yards, name2: yards..
    or
    name1: yards
    name2: yards
    ?
    and give me ID of the spell you want to track

  3. #3
    Yes, you are correct. My approach was to use that weak aura and attempt to switch whichever to Iron Reaver's Artillery.

    Boss: Iron Reaver
    Zone: Hellfire Citadel
    Boss: Iron Reaver
    Spell: Artillery
    Spell ID: 182280

    It will have a maximum of 3 targets. I would like 3 icons and under them have the name of player and the distance you are from each of them. Also to have the distance be in red text until you are 40 yards away. Distance can be whole number or just 1 decimal.

    Again, I'm more or less learning this from scratch at this point and appreciate any information.

  4. #4
    Field Marshal Translit's Avatar
    Join Date
    Jul 2014
    Location
    Moscow
    Posts
    71
    I can't make it with 3 icons. One weak auras 1 icon and text with players and distance

  5. #5
    translit will you do it 1 aura with safe distance from that player, would really help us in our guild thanks

  6. #6
    High Overlord
    Join Date
    May 2011
    Location
    Near Frankfurt, Germany
    Posts
    114
    http://pastebin.com/C6akEhcn
    Shows an icon for each player with artillery, the distance and how much damage you'll take. Changes color to green when over 40y away.

  7. #7
    Quote Originally Posted by Hamsda View Post
    http://pastebin.com/C6akEhcn
    Shows an icon for each player with artillery, the distance and how much damage you'll take. Changes color to green when over 40y away.
    nice thank you

Posting Permissions

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