WeakAuras

Health 100000 and Health 100k

  • 8 posts
    #1 Jul 19, 2011 at 06:33 UTC - 0 likes

    Helo how to display 100 000 hp in 100k hp ?

    da0AdaGijQljk1OKiNscTkeIULOIFHqvdtOogrTmKKEMOKPHe01efTnKIVjkmoKuNtazDieUhcLoisKfIu6HIQ6IiKAJib(icvgPaCsekwPeyMsq3ua1of0pfvAOsLwksupfmvfUksI9s9xemyHCyPSyKQhRitwvDzsBMiFwQA0kQtR0RrcnBuCBvXUj8BrgokTCvEoQMo01L02fOVJqY4LkoVQ06fvz)iAl7HHhdFdFpmmv5y6zODqdsvXeUjrPIKfqgrgrgrgXKMAmKrS6nPcKmIyjJkrfXIbOngCUuzwM2RELls8urSyaAJbNdCRtPYSmTx9kxSirkhhtwazezezez0Py9eKrLkN9wUiriLUNgwIvVjvGfjlqfFd)LZY0EhAhSqvcnK9ezu2gAI9PHBs4Hbo2o0dd4lRAG9uUIgypLROb(8TckA0G0kw(ShgWxw1a7PCfnWEkxrd85Bfu0Ord4T9965Hb8LvnWXgw5gQcnOkqdTkMmmv5y6HW8(vd4(OFdvUsOkw00A0a92LFIjDE4qzhg7qQ6qzhMLPaAYGAzQdKmvJZktAcenutTLYjtAmAG9s9NY5DpDA5Bs4WydZ62pJouo2atQ99WWLyupm8uzW1dJgnAqkjqyZtDOCSb6P7RNbAz28YRDFYOrkXGlRHt73Ky8YQgA1RrVDg4kJu30kqduMyiUagg2PKW0n8MRKexrhMJCSb6P7RxUssCfDyMgA))IBs0yiG323Rh3dhk7Hb82(E98Wa(YQg4ydRCdvHgufOHwftg0GQanKFs8xCtcUbELUgufy3tL2ogGUeDHfAOYvcpPQa1VPBGxPRbvbcvjPTJbc5tjyqaguIYddvUsOXSbvtRHkxjuflAAnmv5y6HW8(vd4(OFJgQc82(E98WOrJg2VHa6kBGO2po7q5SIn0jxjjUIomh54yJg4go5mYWqqhktHXXgTb
    

    exemple:

    if health(player) > 10000 then health(player) / 1000 else health(player) end;

    Last edited Jul 19, 2011 by andfinnel
    #2 Jul 20, 2011 at 16:22 UTC - 0 likes

    Its really easy, you only need to edit the custom text a bit. It's basically everything there already. ;)

    Here is your display:

    diKieaGivrxsLKrPeoLs0RiLKBPsQDrQQ(fPumms6yIYYivPNPsX0iLQUMqyBcrFtLOXjKCosLSosfDpvc2NkHoiPkwOqQhQsLlskL2iPu5JKkyKQu1jjvOvQKEjPeMPQGDQu(PQqdfHSusv5PetfWvjLu7v6VKIbt5WkAXcLhlQmzeDzQ2mj(mcgTQ60GEnPsnBGUTQ0Uf53kmCLQLJ0ZfmDuxxfBxu13jLOXJqDEHQ1RsP9dDZkqL3kKvilqfIFurj4C3UotvTsUtGhVaoXCfLtkhdhPflXv0qdn0ah5MGO99ji)r7cOP1jiFVpb5)IN7GZ4o95sCfn0qdnCfn0qdnOcAFFcYF0UiAzQQQOXFpHROHgAOHgAOH23NG8hTlG27K)6xbCmOl((eK)OPnOLPQQIMwHMQ(JyjUIgAOHgAOHgA4kAOHgAOHgAOrD(qtOT45vqT45sDQmOVtEX3NG8FjUIgAOHMdgCCfn0qdn0qdn0OoFOj0w88k4ZL6uzqFN8IVpb5)sCfn0qdnprIREIexXvCfxRe)rfLGZD76m1kKWWo4moGtm)GRWvUkxLGdQq0aM4k6th1H7bQWuibcoTav447ELap5tOYj4Aoji3ORCsEEpXvMhEuj3jWJxnFiPxHHVoz5kXM07gGdAb6ww3u7ME7ww3UPAxKxgvwu6ktVQ3erK6kYOIQkxhrKLRStheOEiqe1ZbdWrQBQv(oKWN7wMAfWXKSavOdqVavEpGmSaLlxUIYiXc8wVBzQvInOKoTs0GWBVDsjrdymaz4EfQtaosaX39kZdDgBsRmtW3jdhPcujWtkxGkC8DVYo1doxzN6bNRe(uys3LROatWWVav447ELDQhCUYo1doxj8PWKUlxUsSbL0PpQOeCUBrubsw5EIYQmjjHmCKMGAykKabNgkq3YkqfMcjqWPfOchF3Re4jFcvojpVN4kZdpQ459ex5UrIeYWrkujCI559ete1vGexrisBF4Hk5obE8Q5dj9km81jRCcUMtcYn6kNGRzccZ7n6kHtmpVNy5OOajUIM70JaOra0J(aQCcUM3XjXozJvUYjXuibcoTaLlxUIwcj5F3YUrTcm3i1yLReQqZU8Yk57wM2RQwUfa
    
    #3 Jul 21, 2011 at 05:06 UTC - 0 likes

    THX. :D

    How can or .. can I use two custom on the same bar ?

    displays custom 1 : Health

    displays custom 2 : % Health

    Last edited Jul 21, 2011 by andfinnel
    #4 Jul 21, 2011 at 08:37 UTC - 0 likes

    You can just add the second text to the first custom text function, eg.

    replace

    string.format("%i", health)

    with

    string.format("%i - %i%%", health)

    (which Displays as 100k - 50%) and (re)add

    local percent = UnitHealth("player") / UnitMaxHealth("player") * 100

    just below

    local health = ...

    Last edited Jul 21, 2011 by CommanderSirow
    #5 Jul 21, 2011 at 09:42 UTC - 0 likes

    thank you for the answer. but I do not understand. I'm probably a donkey but how?

    %c - 1

    function()
        local percent = (UnitHealth("player")/UnitHealthMax("player"))*100
        return ("%i"):format(percent)
    end
    

    %c - 2

    function()
        local health = UnitHealth("player")
            
            if health > 1000 then
                health = math.floor(health / 1000)
                
                return ("%iK"):format(health)
            else
                return ("%i"):format(health)
            end
        end
    

    how to display a right %c - 1 and left %c - 2 on the same bar

    Last edited Jul 21, 2011 by andfinnel
    #6 Jul 23, 2011 at 09:49 UTC - 0 likes

    that is currently not possible, but I'll add it to the enhancement list.

    http://www.wowace.com/addons/weakauras/tickets/198-custom-text-return-value-count/

    Last edited Jul 23, 2011 by CommanderSirow
    #7 Jul 23, 2011 at 11:07 UTC - 0 likes

    It would be easier to add %p% in the special code that directly displays the percentage of progress?

    Last edited Jul 23, 2011 by andfinnel
    #8 Aug 06, 2011 at 05:18 UTC - 0 likes

    @andfinnel: Go

    MP Player (Texte)

    dKeEiaGiGKlbIYOOkDkQkRIkQEfqWSOIYTaI2fKYVOIyyuPJjsldaptQOPbsUgiSnPs9nqQXHOY5acTosuCpaQ2hIQ0bPkAHqQEiqQjsIQUOujBeG8revLrcIQojaL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FIPozUhz3rAiCkpNe0LJnDEAuaMqgEPja5syqwh7AAYEfMGJW1DrhCy6QXAqesHXt2RW0J0G6W0J0G6W0HfuWbhghv33veKcJNSxHj4yVfGPfvj0OddU5wyYAb3Y2GyvqHXRSvbyAb1qlwDqAyIy2Aasb5syKcXUH0tc5yJpBBSInonfCWHj41SItY0ne2R2iSbgHAidPUAazDSxTrqMdMoB0HrkufVoj9cNvmmIADx0bMBKrBzKJro(3w4wogZ92CdDmRigggK1XUcBGjdz7nKeK54ROsy2GZkEhzBrHunH3qkmPAcVH0aRtVUwsL5vjWE1gZNekAHtgyvszRAFqnmTimllwasHbzxkKcd72YRqk4GdomDwKUJSTOqQMWBifgMm6kQdNPSIfeSXaR5SIlwQgchyn)QqfZAQMWBinWQfTXqxDTQX9Ysy6r2DKgcSePz1q1gbzoye0a2BiSRWgyyxrilcKggKUxTX0K9kmUMWHrqdyVHWUYCls3r2wua2aZMLgfYVvqHrkMMPHPZI0DKTffyHDzrqkixcYCGmJGCjixiW8TgXidBeJBnIRiUs(zyUsOJz8BeixeixcomjYxxxqDqMzLB5GjGzRPAcVHuqAyCnH3qkmmz0vuhotzfliyJbwZzfxSuneoWA(vHkM1unH3qAGvHcnGJ76IryWRErmixctlOidjbzoymETGx7scdlKKCQKYlmzw29ineGnWufGHLmiwEcgSGq1R2iEzWr19DffGuqUesHXr19DfbPW4j7vyco2BbyArvcn6WGBUfMwqniHkwZwkSbgvcn6WWcBuO6vBmatOTrLqJolrAxnbmdlLetWeWK1cULTbXQGcJxzRcW0cQHwS6G0W0cQb8QkHcsdtOTrLqJ(066QjGXalKAsnmPsL3uyAb1aBBl6QaSbCyArhv33veKco4GdddUk4IaZ5VWc3AujNrgL7TBlm3B5h6ywrBHjz(66cQdYmRKr(HPgLqrbf2aJfv1OJ9QncJXvs5nLjzHumbmziBVHeGmhFfvcdY6yVAJGmhmBWzfVJSTOq(66cQdYmcombyqLB3cJeGCzrCCGdaa
    

    HP Target K and M (texte)

    dyuVha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afZmEb5xW66RTA44jSmuwxtnlG37Ln3cSB2BX4goMTzbCbPxDla9feDMgrqyiAC88f5yatQx8mZitqjxUhwqXfxmjNj5m)oqjxMxeRM)5F5weZ5FjILqnN)61RV6waAzyWCblPx9wo)X9cgcddyqZ5hKFTiuJTxQr04omVCdyZcGhwBZlD6RV2AJJN7dZR9q0jMLbqFzVDe4TdeEz4Sa8Un(ZliWD2nO5F5p7MY6A68EV6dYUU9OxGlPx60xzDZlyimmGbnN)RElN)4azx3E0li)LVzBJObl)0xHGbmP(cYCE189nQzb0i8QodyWJBF(lyD(xQZag84o)lfwBZRT2u29lwGb(bqF1y11l294f(H0WHyEVxd8dG(Y(fGVrnlG9RnBVb(bqfJB6m9FvIXoIvSVy3JxrlwaD8FVxB2Ed8dGwSDDM(V8ApelEVfpeHa)l294TryGFomVy3JxwaJEyEXHDRlrEjn(Zl1iA8V(IfqDgWGh35VE96lJ)lqZB9QryJSDbRxqY4RKx8CbfumAXeJYLrgMSKl3IR3bk5Y8QxJJNGDlwaF7xel35VG1fKUauxq6cECbPli)csGiZxF1y11H5Lba(XTN37LVzBJObl)0xf70PVy4GY(xlNza0MAwaVaniHa3XWaPapef7lwa1zadECN)flGrFPnh4rV(QXrnlG95FT1Mtp)l)LxWeli9EVatSGK3gh1SaETjxq6fyIfK825AIMxCZP5jezDTT4anV11RV0PVA)Iy5o)fSUG1fG6cwxWJlyDb5xW661x7xolgz8f8xWsUK01Fa
    
    Last edited Aug 06, 2011 by andfinnel
  • 8 posts

You must login to post a comment. Don't have an account? Register to get one!