• 0

    posted a message on LuaTexts Official Thread
    Quote from sfan27
    ahhh, I thought you had said somewhere that LuaText handled return nil for us. Regarding local, yeah I know, I just forget way too often.


    Big Thanks to you sfan27 i have achieved what i wanted with your help and am greatful also i have learnt more about pitbull so its not so complicated anymore coz i didnt think i would be able to use it when i first got it.

    Here's a screenshot.
    http://www.mill3r.karoo.net/WoW/wowui.jpg

    Edit Oh Btw the classification is working too. Elite and Rare mobs are shown with a text on left of my mana bar i tested it earlier.

    Not sure how but how would i backup my pitbull settings now so if i reinstalled it to export all of what i have done to the new install.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from sfan27
    The tag I wrote regarding classes does display it as you wanted, for players, it just leaves out NPCs displaying 'race' alone.

    As for other issues, I'll get to it tomorrow, I'm tired from a long day of work (and by work I mean slacking off and helping you guys) and evening class.


    Hey i would like to thank you for your help,

    I have got it all working now apart from the classification if [Rare or Elite] to show up but apart from that everything is showing how i wanted it to.

    Thanks again
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from sfan27
    leemiller09: I made some slight assumptions and adjustments (class for NPCs is a meaningless piece of data), but this should work well for you:

    Hello thanks for this, yes class for NPC's is meaningless but its my target window so i do kinda need it to show as i target other stuff.

    Quote from sfan27

    Health Bar, Left
    Health Bar, Right

    Also you have seperated the bars Right and left i am not sure how to put that in coz i put both of the codes for right and left together and it doesnt do any change. I am not sure of any other way to seperate them coz i only have one textbox to play around with well as far as i am aware.

    I am not sure if it is possible but i want the name on left and the total health on the right if you know what i mean.

    Anyway i will try mess around with it tomorrow see what i can get.

    Again thanks for the codes appreciate it.

    Edit:

    Just did a quick test

    Right Health Bar works perfect
    Right Mana bar works perfect
    Bottom blank space works perfect too.

    Thanks

    Just need the Name and the class working
    ----------------

    oh and Power Bar, Left

    return Classification(unit)

    this gives me an error when i put it in on its own.
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Help please

    I only found out about pitbull yesterday so i have been messing around on it for about 5 hours at least and i have done most of what i want the layout to look like but i am having trouble with the coding as i do not know anything about this type of codes. I tried to find out reading forums, trying codes from other sources adding to what i have but keep gettin errors and also used google and search bar too but no success so i resorted to asking for help here.

    As you can see from the screenshot i have done most of the things i want. I just need a few things added and edited to make it complete so i am asking for help here.

    Heres a screen shot of what i want it to look like and what it is like now.


    So here is the code i am using rite now so you can see how i got it and what you can do to change it.

    Health Bar Code
    local max = MaxHP(unit)
    if max > 0 then
      return "%s",HP(unit),max
    end


    MP Bar Code
    local max = MaxPower(unit)
    if max > 0 then
      return "%s",Power(unit),max
    end


    and

    Cast Bar Code
    local dr,dg,db = DifficultyColor(unit)
    local form = DruidForm(unit)
    local classification = Classification(unit)
    if UnitIsPlayer(unit) or (not UnitIsFriend(unit,"player") and not IsPet(unit)) then
      local cr,cg,cb = ClassColor(unit)
      if form then
        return "%s%s|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r (%s) %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),cr,cg,cb,Class(unit),form,SmartRace(unit) or ''
      else
        return "%s%s|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),cr,cg,cb,Class(unit),SmartRace(unit) or ''
      end
    else
      if form then
        return "%s%s|cff%02x%02x%02x%s|r (%s) %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),form,SmartRace(unit) or ''
      else
        return "%s%s|cff%02x%02x%02x%s|r %s",classification or '',classification and ' ' or '',dr,dg,db,Level(unit),SmartRace(unit) or ''
      end
    end
    


    Ofcourse i am a novice at coding so i have no idea what is what i just got them from other sources and using it so have got this far but not looking how i want it to look

    If Anyone has any links to where i can read about how to use these codes and what they mean i could learn some so please post some links if you know of beginner coding in this language.

    Thanks in Advance
    Posted in: Unit Frames
  • To post a comment, please or register a new account.