1. #1

    [Help Needed] Weakauras Icon + Range

    Hello MMO community, I was hoping someone could help me with my icons in my Weakauras setup. I figured out how to set them up the way I want except for one thing I just thought of; is it possible to do either of these with the addon?:

    A) Cause the icon to have a transparent red overlay if the target is out of range?

    B) Only allow the icon to appear if the target is in range, if 'A)' isn't possible?

    Current Setup thus far:

    Thank you very much for any help!

    *Edit* On a side note, how can I take and upload screenshots so they aren't all fuzzy and such a horrible quality?

  2. #2
    Deleted
    Hi Mortarius,

    it's quite simple to achieve A)

    Add another trigger: Custom ► Status ► Every Frame

    Custom Trigger:
    Code:
    function()
        if (IsSpellInRange("YourSpellName", "target")==1) then
            r,g,b,a = 1,1,1,1
            return true
        end
        r,g,b,a = 1,0.6,0.6,1
        return true
    end
    Custom Untrigger:
    Code:
    function()
       return true
    end
    Next, you go to Animations ► Main ► Custom ► Type in "1" in the Duration box ► Check Color ► Custom Function

    Custom Function:
    Code:
    function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
        return r,g,b,a
    end
    There you go.

    Here is one example for Smite:

    Code:
    dKJqeaGlbQ2MGuZekWCfKmBv6YuDBs6Ws1orQ9QSBc7hmkeXWeWVj6ViXqfegSOHRIoOGYPGsDmO68iPfkeTuOelwOSCipuGONI6XQYZLYPL0ujXKvHPt5Iqj5QceEMaLUoP2OaPwgIYMfQ2ou0hfizwQQPbf03fOyKqHgNGOrJOA8cQoPqQpJW1qKUNqYkLyrcHxdLup8PmUooAH5O49NhQOFsrlu8PFVuWO8sLcgLxQSA18XTXOGnaPJvhFm(ykJVY(XugJKxFkJv1xRoLzZMng5evPqH6PpU(KIX1JX0EWmwlmuLGWrtzC70Vx6UQpAsdjPZgBOkbHJMYyJ6PpUzDt3g7y6cBCypRkfqgeTESRpw3CkTt)EP7Q(ICSw4y6cBCxBYX6MtrlQ2ICC70Vx6UQpAsdjPZg3fv1UvLIPmwTxftz8tELiSmA8Xg1tF8t3mP642RF9Whn(4WhDGXTx)6uhn(4(9K8(Odm(jVsuyJgFm1rhy8tELOihn(4N8krb1OXh)KxjsH6Pp(PBMuD8tELOGwlEJrUPrciJRfpRkfKCIKeiV1(qIW)qsG)Hmg(hYo(hsezFiji7dzmY(q2jdBOajKqcjYnnsaj6t8J97qXfhqbkqbkqbkqbkqbkJrsRB(Odmw3Ckp5vIwKJp0OUvLIX4ZMnUFCuTQu0VumuLGWrTPmA8Pm2qvcchnLXnDmhtxyHa5XRHpMdbwHbyWyJ6Pp(PBMuD8t3mP644AXZQsbjydfiHesiRXHKKOB8PFVrlWsxq4KebRwnpIpKryDeHBrGDurHJnKg5UakqcjKqcjKqcj6t8J97qgfK4F8p(hhkqcjKqcjKqcjYnnsaPH0ouGesiH0fhqbsiHes0N4h73HmkiX)bcEO)bcEO)4qbsiHesKBAKasdPDO4IdOafOafOaLXnDmhtxySoE8A4JPeKHXkuyLWWIY4h5(dRhRpp6Mp(PBMuLIr90h3SUPBJDmDHngJE)AKp(PBMuLc51dFSvv9JzJ1cdvjiC0ug)0ntQooUw8SQuqc2qbsiHesKBAKasdPDO4IdOafOaLzZMnwOvvqvcch1gnzZgJ5OXXWabMTba
    Last edited by mmoc0f2139869f; 2013-07-09 at 03:44 PM. Reason: Updated for other Users to notice the SpellName

  3. #3
    Hmm, I did exactly as you said and it doesn't seem to be working. I tried it on my Concussive Shot aura which is set up to show the icon when it is available and to disappear when it's on cooldown. When I target an enemy it still just shows up normally.

    Thank you for the help.

  4. #4
    Deleted
    Have you set the Trigger Activation to All Triggers? Check that out first. If so, just post your aura here (Right click on your aura ► Export to string) or edit the one i posted and check if that works for you.

  5. #5
    I checked and All Triggers is set. Here is my icon currently, it might be easier for you to just see it to figure out what I am messing up haha.

    diK6gaGicYOqkNcrTkKQ6vivAwq1TKeTlcXWOIoMuTmQWZOsQPjj5AivzBesFJamoer15Ke6EeuheryHsk9qcuxKkj 2OKGpIiIrIurNusQvQqZKazNs0prQWqjGwQKINszQs4QiIYzrKYCrKyVQ(lvQbJ6WkAXeQhJWKHOllSzi8zOmAjvN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lPrggbgyGbEJuTsGZvfWyir(85lD8IB5IIHf7lULTBIBekFQhUrO8PE4gcLKir1sAKHrGbgyGr ramTQ9wtqrvTSMPelOjePPvR1euuLZHqiCGfkNlwKcrwyH7KboRhsyeyGbgyGbgyGxCmCX4tGfg4oEhVJ3HrGbgyGb gyGbEJuTsGZvfWiWadmWHejmcmWad8IJHlgFcSWa3XDkIO4ofru8omcmWad8gPALaNRkGXqI8MxjoAfY0uiqG6Yn3c MewHBRGe1uCJOEqqQ3uniNzCJq5t9G7SDtCZNZu5VfTczEJoJjvw)MxjoAfYuGBGa1LBMaDfbjON3uYCrXWI9f3iu( upCdHssKOAjnYWiWad8gPALaNRkGXqI85ZN3iDuKz9x6Ah3qLTI1hV2BOiVjyTKq59OTcGT668w9afRE(sx74gHwtH ut6Yl(5TwVSxLtNp)b

  6. #6
    Deleted
    you have to post your exports between [.code][./code] (without the dots) otherwise the structure of mmo-champ will mess up the string

  7. #7
    The Patient
    15+ Year Old Account
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    319
    Code:
    d8dWeaWzs16HK0HvLDPQyBQQ(nsZubYCvanBqopLQtRKZrj52kQFcjXojyVs7gX(fnkcXFjrJtrArkcdvbyWadhchuHQtrOCmqDCiPSqiXsvqTyvLwoupur0tr9yv65uCzHPsktwPA6uDrkP0vPKkptH46eTrcvdtf2SkA7KuFesQMLszAKKVRa1iPKILrPmAkX4jKoPcLBPq6Aq09uqwjK61usvFJeUWvR8Q8yepWNVBmWXUuIzGmIacsP4yQXvYUKu2ug(JQpk(yv55Y7L3RwzCOVOen7iIYRlLuwuu580eEfFufkSYg8VTFfhJOWQJJP9CuvQkFPuOD6Gj9Bz7OY5Pj8koYrq(pvX0)rSHC6iW)t75OQqwETxEsk5knML6ibSfQxwsC8sxpWvRSbrabj8MJkGeg(VEzICwdV01dSPc2kJQu6Cfo(ydz53((YxuYdsPJx66b2uTkaxTYoEPRh4Qv2TJikFLgNox(knoDU8PKC9fLiIyj6eKGeKG1zcezmdJiGGgJm8JOhImXKuYvAml1rcyluFITemH)W6HpHydneSyjWTeKeDcsqcsqcsqcsaEtF772lbdLa4n4n4n4eDcsqcsqcsqcsaoCjMKahlJeDcsqcsqq2t0jibjib4n9TVBVemucG3o(8VD85FdorNGeKGeGdxIjjWXYirhK9Yg53qDqCwEEUeTSYjhN1uYAJpSw5RL4A9LLi2FEu(knoDwPBhru24pxAkhQdIx2AIhKBPSr(nuheFa44CjAzEaw7Ggu9YsIJx66bUALVsJtNlFkjxFrjIiwIobjibjahUetsGJLrIoi71RxV8Gx7ULka)R6JcvhkSz7h5VnKLxe1b2efLYpYA(5lkPALNFls1kBUpOq0kax(sHO4HRaC5lfIIhVcWL3L4NVOKYWLD7iIYxPXPZLFqiS8QWrzrRWrz7v4O8LcrXOub4YxkefJ6vaU8LcrXA2reLVsJtNlFPquS4sYTmoCjMKGtj56lkreXs0jibjib4WLyscWB6BF3Ej6GSxgt9Nhv4OS0ekVuikUOu2CFqH9kaxVEzlXs3IxXvn1kKi)NEC8RsHvtvyRNJQczzhV01dC1k72reLn(ZLMYstO0Fy9Whoqn5ch7fLYH6G4Lh)6lkjbwN59fkklnHsjz5fLYgebeKWBoQasy4)YstO0GiGGeEZrrPSKeQdIx(jDAzYBomvRcWLNKsUsJzPosaBH61RxgI(2RwzmfkQw5zjKVQw961RxwDfGvDCuVfa
    That should work
    Last edited by suprep; 2013-07-09 at 03:24 PM.

  8. #8
    Deleted
    Okay,

    1) The custom function in Animations was the default one, make sure to click accept to save.

    2) You had 3 triggers with the second and third one exactly the same

    3) Meh
    Code:
    function()
        if (IsSpellInRange("YourSpellName", "target")==1) then
            r,g,b,a = 1,1,1,1
            return true
        end
        r,g,b,a = 1,0.6,0.6,1
        return true
    end
    "YourSpellName" has to be replaced with "Concussive Shot" or whatever spell you want to check the range for, I thought it was obvious ^^

    However, here is a working string

    Code:
    d8ZUeaqzH1lcXHvXUGaBdc63qntrQAUIuz2aoVi50k5CaLUTs5NIISte2R0UrA)un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09IWYsDiw)faaeNTOiwwsdLb1kFKgUm9Sf6QwIB5CX0NuRxkdFyfyRwTYa4ZEvldXarvlVjbSvvRvRwTYklXvuKiR1ca
    Glu

  9. #9
    Oh wow, I just blindly copied that in without noticing the 'YourSpellName', I'm sorry. Thank you very much though!

    And thank you turtlefreak, I'll have to remember that from now on. I just used the 'Insert Code' button.

Posting Permissions

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