• 0

    posted a message on Prat 3.0 Chat Mod Framework
    editbox has been resetting for me to for as long as i can remember
    Posted in: General AddOns
  • 0

    posted a message on Masque - Official Thread
    hey sorry if this should be posted at bagnon thread but am not sure.
    I am making a skin for masque and last time i did it I was able to skin bagnon item highlight but this no longer seem to work I do have bagnonfacade installed.
    I am just wondering if it is no longer possible
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    Hey phanx
    I can stop reading this
    Your code formatting habits are really painful... stop inserting random linebreaks in the middle of conditional statements. Also, these code snippets aren't macros, so there's no character limit; you don't have to mash everything together and use non-descriptive one-letter variable names.

    It assumes I have code habbits ;D

    If it was unclear I have absolutely no understanding of lua or coding in general I have been searching google for days and hours to find something that does something similar to what I want I then use copy and paste until something works ;)
    and the line breaks ehh was an attempt to clean up after notepad that for some reasen inserted 4 or 5 lines after a paste to wow (have gone over to ++)
    ok to the problems at hand
    just fyi I am using Pitbull if that helps
    your name string with the time for status removed dont work it, I think its related to the "gsub"
    Outline()
    local cr, cg, cb
    if UnitIsPlayer(unit) then
    	cr, cg, cb = ClassColor(unit)
    else
    	cr, cg, cb = HostileColor(unit)
    end
    return " |cff%02x%02x%02x%s|r |cffff0000%s|r |cffff0000%s|r", cr, cg, cb, Name(unit), Angle(gsub(Status(unit) or AFK(unit) or DND(unit), " %(.-%)", ""))
    here is the error message
    Message: [string "PitBull4_LuaTexts:Normal:Lua:Name"] line 8:
    bad argument #1 to 'gsub' (string expected, got nil)

    and the level/class text, ignores the elite text so when its elites it just get the rreturn string but without clasification I have not tested on rares.
    The power string works great on my dk but bugs out on everyone else
    Outline()
    local power = MaxPower(unit) > 0 and Power(unit)
    return power > 0 and VeryShort(power) or nil

    Message: PitBull4_LuaTexts:Normal:Lua:Power caused the following error:
    bad argument #3 to 'SetFormattedText' (number expected, got no value)

    ok I think that was it
    thanks again Ztrust
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Hey Phanx
    Thank you for all the help I could never fix this alone.
    Your name code just gives me "Err" text on pitbull
    What exactly does "include non elites" mean? Units that are not bosses, rares, or elites don't have a classification. What do you want to be displayed, and what color do you want it displayed in?

    I mean npc that are non elites gets the class string from what is meant to be for players
    return "|cff%02x%02x%02x%s|r %s", r, g, b, Level(unit), race
    vs. what I would like them to use
    c == "elite" 
    then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffffcc00 Elite|r",dr,dg,db,race

    I have done it this way because I have my power bars for players by class and nps by hostility.

    Many hours later I have finaly got this to work! so ignore the underline. The reason I havent deleted it, is so yo can see I am trying myself. Here is the result I wanted
    Outline()
    local dr,dg,db = ClassColor(unit)
    local race = SmartRace(unit)
    local r, g, b = DifficultyColor(unit)
    local c = UnitClassification(unit)
    if c == "worldboss"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffff0000Boss|r",dr,dg,db,race
    elseif
     c == "rareelite"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffffcc00Rare Elite|r",dr,dg,db,race
    elseif
     c == "rare"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cff999999Rare|r",dr,dg,db,race
    elseif 
    c == "elite" 
    then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffffcc00Elite|r",dr,dg,db,race
    elseif
    not (UnitIsPlayer(unit)
     or UnitPlayerControlled(unit)) 
    then
       return "|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r", r, g, b, Level(unit),dr,dg,db,race
     else
     return "|cff%02x%02x%02x%s|r %s", r, g, b, Level(unit),race
    end


    and i should have been more clear regarding the power code I have a DK and when he has no power I would like the 0 (zero) to go away

    Hey again been playing some more got line brak working in pitbull so thank you for that.
    been playing with class colored mini health and percent with class colored seperator it has been a pain but got it semi working but can you tell me why this works
     Outline()
    local cr,cg,cb
    if not (UnitIsPlayer(unit)
     or UnitPlayerControlled(unit)) 
    then
      cr,cg,cb = HostileColor(unit)
    else
      cr,cg,cb = ClassColor(unit)
    end
    return "|cff%02x%02x%02x%s/|r|cff%02x%02x%02x%s%%|r",cr,cg,cb, VeryShort(HP(unit),true),cr,cg,cb, Percent(HP(unit),MaxHP(unit))

    but not this
    local cr,cg,cb = ClassColor(unit)
    end
    return "|cff%02x%02x%02x%s/|r|cff%02x%02x%02x%s%%|r",cr,cg,cb, VeryShort(HP(unit),true),cr,cg,cb, Percent(HP(unit),MaxHP(unit))

    This has gotten rather lenghty during the night sorry about that
    Posted in: Unit Frames
  • 0

    posted a message on Quartz: Modular Casting Bar
    Quote from tordenflesk
    Is it possible to add an outline to fonts? I need it on my Player, Target and Mirror bars only.

    http://us.battle.net/wow/en/forum/topic/1869220436
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    Hey Phanx I actually managed to cut 'n paste some code together that works for me but would like your help to perfect it
    I am using classcolored Minehealth and would like to have percent on a new line but cant get it to work (n/) This also show dead with a timer I would like to move dead up to my name where I have my afk flags but would like to remove timers for bot afk and dead
    health
    Outline()
    local s = Status(unit)
    local cr,cg,cb = ClassColor(unit)
    if s
    then
      return s
    end 
    return "|cff%02x%02x%02x%s|r",cr,cg,cb, VeryShort(HP(unit),true)

    name
    Outline()
    local cr,cg,cb
    if not (UnitIsPlayer(unit)
     or UnitPlayerControlled(unit)) 
    then
      cr,cg,cb = HostileColor(unit)
    else
      cr,cg,cb = ClassColor(unit)
    end
    return " |cff%02x%02x%02x%s|r |cffff0000%s|r |cffff0000%s|r",cr,cg,cb,Name(unit),Angle(AFK(unit) or DND(unit))

    I am just using minipower but would like for it to disapear when empty
    Outline()
    local max = MaxPower(unit)
    if max > 0 then
      return VeryShort(Power(unit))
    end

    and lastly my class code I would like to include non elites in the class color tag too
    Outline()
    local dr,dg,db = ClassColor(unit)
    local race = SmartRace(unit)
    local r, g, b = DifficultyColor(unit)
    local c = UnitClassification(unit)
    if c == "worldboss"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffff0000 Boss|r",dr,dg,db,race
    elseif
     c == "rareelite"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffffcc00 Rare Elite|r",dr,dg,db,race
    elseif
     c == "rare"
     then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cff999999 Rare|r",dr,dg,db,race
    elseif 
    c == "elite" 
    then
    return "|cff%02x%02x%02x%s|r %s |cff%02x%02x%02x%s|r ", r, g, b, Level(unit), "|cffffcc00 Elite|r",dr,dg,db,race
    else
      return "|cff%02x%02x%02x%s|r %s", r, g, b, Level(unit), race
    end

    thank you hope you can help yet again
    ztrust
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    hey Phanx

    You helped me alot last time I played wow and I have used that and alot of copy paste to almost finish it but I am still having trouble with hostile and class coloring I can only produce Err what ever I try.
    I played with what you posted a coupple of pages back but I dont have any exitsing code to use.
    I would like class coloring for player and hostile colors for npc dont know about player pets but I do hate that blue color. I hope you can help out yet again

    Ztrust
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Hi I am trying to make a simple naming string and have been searching the thread for hours and cant find anything that works

    this is for the names not the bars

    class color for players, and hostile for npc´s, i cant figure out how to combine them

    Lvl race class for players {no color}
    and for nps lvl race (elite) (rare elite) (boss)

    I have come along way but cant get boss to show up dont know about rare elites,

    Hope someone can help since my expirience with lua started only a coupple of hours ago
    ;)
    Posted in: Unit Frames
  • To post a comment, please or register a new account.