• 0

    posted a message on CowTip 2.0
    Hello,

    I recognized that
    if (Name(unit="mouseovertarget") = Name(unit="target")) then 'Your Aim'

    even is true when the target is different but the name of the target is the same. This was not intended.


    I am looking for a correct working translation of this dt2 code:
    [ [Target = Name#target] ? Text(Your Aim):Yellow ! NameRealm#mouseovertarget:HideZero] ] 

    It only should return 'Your Aim' when the target of me and the mouseovertarget is the same target.

    @roughknight :
    I am using dt3
    Posted in: General AddOns
  • 0

    posted a message on CowTip 2.0
    Hello,

    here is an update uf my extended tool tip.
    XP is now working on unit=player.

    ["lefts"] = {
    						"[Outline][((if IsPlayer and not PvP then ClassColor else HostileColor end) (if IsPet then Green end) Name Realm:Prepend(' von '):Gray) PvP:Paren:Prepend(' ')]", -- [1]
    						"[(if Level = '??' then '??':DifficultyColor else Level:DifficultyColor end) ShortClassification:DifficultyColor] [if Classification = 'Elite' then Classification:Color(\"ffcc00\") elseif Classification = \"Boss\" then Classification:Red else Classification:DifficultyColor end] [(if IsPlayer then Race:Cyan else Creature:Hide('Nicht spezifiziert') end)] [(if IsPlayer or (IsEnemy and not IsPet) then Class:ClassColor end)] [DruidForm:Paren:ClassColor]", -- [2]
    						"[Guild ? (if Guild = 'player':Guild then Color Fuchsia else Green end) Guild:Angle]", -- [3]
    						"[GuildRank ? (if Guild = 'player':Guild then Fuchsia else Green end) GuildRank:Angle]", -- [4]
    						"[(InGroup ? 'in Gruppe':Angle:Color(\"ffcc00\")) (IsLeader ? Icon(\"Interface\\GroupFrame\\UI-Group-LeaderIcon\"):Prepend(' '))]", -- [5]
    						"[if Faction = 'Horde' then Faction:HostileColor else Faction:ReputationColor(Faction) end] [ReputationReaction(Faction):Paren:ReputationColor(Faction)]", -- [6]
    						"[Alpha(0)]['------------------':Gray]", -- [7]
    						"", -- [8]
    						"[Alpha(0.75)][(HasThreat ? 'Bedrohung:')]", -- [9]
    						"[Alpha(0.75)]Gesundheit:", -- [10]
    						"[Alpha(0.75)][(if HasMP then TypePower ':' end)]", -- [11]
    						"", -- [12]
    						"[Alpha(0.75)][(if Name = Name(unit=\"player\") then 'Erfahrung:' end)]", -- [13]
    						"", -- [14]
    						"[Alpha(0.7)][(if TalentSpec then TalentTree ':' end)]", -- [15]
    						"[Alpha(0.75)][(Zone ? 'In Zone: ') (if IsVisible and not Dead then 'Entfernung:' end)]", -- [16]
    						"[Alpha(0)]['------------------':Gray]", -- [17]
    						"[Alpha(0.75)][(Target:Exists ? 'Ziel: ')]", -- [18]
    						nil, -- [19]
    						nil, -- [20]
    						nil, -- [21]
    						"[Alpha(0.75)][(IsUnit('target') ? 'Angezielt von ':White) NumTargeting:Hide(0):Paren:Append(':')]", -- [22]
    						nil, -- [23]
    						"[Alpha(0)][((NumTargeting > 0) ? '------------------':Gray ! Target:Exists ? '------------------':Gray)]", -- [24]
    					},
    ["rights"] = {
    						"[Alpha(0.75)][(IsCharmed ? 'Bezaubert':Paren:Cyan) (IsFeignedDeath ? 'Totstellen':Paren:Gray) (IsStealthed ? 'Unsichtbar':Paren:Gray) (InCombat ? 'X':Paren:Red) AFK:Gray DND:Gray (if IsPet then HappyIcon:HappyColor:Prepend(' ') end)]", -- [1]
    						"", -- [2]
    						"", -- [3]
    						"", -- [4]
    						"[(RaidGroup ? ('Raid' RaidGroup):Angle:Color(\"ffcc00\")) (IsMasterLooter ? Icon(\"Interface\\GroupFrame\\UI-Group-MasterLooter\"):Prepend(' '))]", -- [5]
    						"", -- [6]
    						"[Alpha(0)]['------------------':Gray]", -- [7]
    						"", -- [8]
    						"[HasThreat ? FractionalThreat:Short:AggroColor ' ' PercentThreat:Percent:Paren:AggroColor]", -- [9]
    						"[Status:Paren:StatusColor || FractionalHP(known=true):Short || PercentHP:Percent:Paren] [PercentHP:Percent:Hide('0%'):Paren:HPColor]", -- [10]
    						"[if HasMP then FractionalMP:Short ' ' PercentMP:Percent:Paren:PowerColor end]", -- [11]
    						"", -- [12]
    						"[if Name = Name(unit=\"player\") then FractionalXP(unit=\"player\"):Short ' ' PercentXP(unit=\"player\"):Percent:Paren:Color(\"b048f8\") end]", -- [13]
    						"", -- [14]
    						"[if TalentSpec then TalentSpec:Color(\"ffffff\") end]", -- [15]
    						"[Zone:Gray ' ' (if IsVisible then Range else 'Au\\195\\159er Reichweite' end)]", -- [16]
    						"[Alpha(0)]['------------------':Gray]", -- [17]
    						"[Target:Exists ? (if (Name(unit=\"mouseovertarget\") = Name(unit=\"player\")) then 'Du':Fuchsia elseif (Name(unit=\"mouseovertarget\") = Name(unit=\"pet\")) then 'Dein Begleiter':Green elseif (Name(unit=\"mouseovertarget\") = Name(unit=\"target\")) then 'Dein Ziel':Yellow elseif IsPlayer(unit=\"mouseovertarget\") then Name(unit=\"mouseovertarget\"):ClassColor(unit=\"mouseovertarget\") elseif not IsPlayer(unit=\"mouseovertarget\") then Name(unit=\"mouseovertarget\"):HostileColor(unit=\"mouseovertarget\") end)]", -- [18]
    						nil, -- [19]
    						nil, -- [20]
    						nil, -- [21]
    						"[if (TargetingList = Name(unit=\"player\")) then 'Dir':Fuchsia else TargetingList:ClassColor end]", -- [22]
    						nil, -- [23]
    						"[Alpha(0)][((NumTargeting > 0) ? '------------------':Gray ! Target:Exists ? '------------------':Gray)]", -- [24]
    Posted in: General AddOns
  • 0

    posted a message on CowTip 2.0
    after some hours of hard brainwork :) i finally got my extended tool tip.
    Feel free to use or improve it.
    P.s: a blank line is simply done with [Alpha(0)] right in front of any text.
    If you like to copy and paste please delete backslashes \ in front of the " first.

    German = English

    Angezielt von = Targeted by
    Au\195\159er Reichweite = Out Of Range
    Bedrohung = Threat
    Bezaubert = Charmed
    Dein Begleiter = Your Pet
    Dein Ziel = Your Target
    Dir = Yourself
    Du = You
    Entfehrnung = Range
    Gesundheit = Health
    Nicht spezifiziert = Not Specified
    Tot = Dead
    Totstellen = Feigned Death
    von = From
    Ziel = Target

    The only thing not working is XP. I did not figure out why yet.
    Have fun.

    ["lefts"] = {
    
    						"[Outline][((if IsPlayer then ClassColor else HostileColor end) (if IsPet then Green end) Name Realm:Prepend(' von '):Gray) PvP:Paren:Prepend(' ')]", -- [1]
    						"[(if Level = '??' then Red else Level:DifficultyColor end) ShortClassification:DifficultyColor] [Classification:DifficultyColor] [(if IsPlayer then Race:Cyan else Creature:Hide('Nicht spezifiziert') end)] [(if IsPlayer or (IsEnemy and not IsPet) then Class:ClassColor end)] [DruidForm:Paren:ClassColor]", -- [2]
    						"[Guild ? (if Guild = 'player':Guild then Color Fuchsia else Green end) Guild:Angle]", -- [3]
    						"[GuildRank ? (if Guild = 'player':Guild then Fuchsia else Green end) GuildRank:Angle]", -- [4]
    						"[InGroup ? 'Gruppe':Angle:Yellow]", -- [5]
    						"[Faction:ReputationColor(Faction)] [ReputationReaction(Faction):Paren:ReputationColor(Faction)]", -- [6]
    						"", -- [7]
    						"[Alpha(0)]['------------------':Gray]", -- [8]
    						"", -- [9]
    						"[Alpha(0.75)]Gesundheit:", -- [10]
    						"[Alpha(0.75)][(if HasMP then TypePower ':' end)]", -- [11]
    						"", -- [12]
    						"Erfahrung:", -- [13]
    						"", -- [14]
    						"[Alpha(0.7)][(if TalentSpec then TalentTree ':' end)]", -- [15]
    						"[Alpha(0.7)][[(Zone ? 'In Zone: ')] (IsVisible ? 'Entfehrnung:')]", -- [16]
    						"[Alpha(0)]['------------------':Gray]", -- [17]
    						"[Alpha(0.75)][(Target:Exists ? 'Ziel: ')]", -- [18]
    						"[HasThreat ? 'Bedrohung:']", -- [19]
    						nil, -- [20]
    						nil, -- [21]
    						"[Alpha(0.75)][(IsUnit('target') ? 'Angezielt von ':White) NumTargeting:Hide(0):Paren:Append(':')]", -- [22]
    						nil, -- [23]
    						"[Alpha(0)][((NumTargeting > 0) ? '------------------':Gray ! Target:Exists ? '------------------':Gray)]", -- [24]
    					    },
    ["rights"] = {
    
    						"[Status:Paren:StatusColor] [InCombat ? 'X':Paren:Red] [AFK:Gray] [DND:Gray] [(if IsPet then HappyIcon:HappyColor end)]", -- [1]
    						"[Alpha(1)][(IsCharmed ? 'Bezaubert':Paren:Cyan) (IsFeignedDeath ? 'Totstellen':Paren:Gray) Dead:Hide(\"Tot\"):Paren:Gray]", -- [2]
    						"", -- [3]
    						"", -- [4]
    						"[RaidGroup ? ('Raid' RaidGroup):Angle:Yellow]", -- [5]
    						"", -- [6]
    						"", -- [7]
    						"[Alpha(0)]['------------------':Gray]", -- [8]
    						"", -- [9]
    						"[FractionalHP:Short] [PercentHP:Percent:Paren:HPColor]", -- [10]
    						"[if HasMP then FractionalMP:Short ' ' PercentMP:Percent:Paren:PowerColor end]", -- [11]
    						"", -- [12]
    						"[if XP > 0 then FractionalXP:Short ' ' PercentXP:Percent:Paren end]", -- [13]
    						"", -- [14]
    						"[if TalentSpec then TalentSpec:Paren:Color(\"ffcc00\") end]", -- [15]
    						"[Zone:Gray ' ' (if IsVisible then Range else 'au\\195\\159er reichweite' end)]", -- [16]
    						"[Alpha(0)]['------------------':Gray]", -- [17]
    						"[Target:Exists ? (if (Name(unit=\"mouseovertarget\") = Name(unit=\"player\")) then 'Du':Fuchsia elseif (Name(unit=\"mouseovertarget\") = Name(unit=\"pet\")) then 'Dein Begleiter':Green elseif (Name(unit=\"mouseovertarget\") = Name(unit=\"target\")) then 'Dein Ziel':Yellow elseif IsPlayer(unit=\"mouseovertarget\") then Name(unit=\"mouseovertarget\"):ClassColor(unit=\"mouseovertarget\") elseif not IsPlayer(unit=\"mouseovertarget\") then Name(unit=\"mouseovertarget\"):HostileColor(unit=\"mouseovertarget\") end)]", -- [18]
    						"[HasThreat ? FractionalThreat:Short:AggroColor ' ' PercentThreat:Percent:Paren:AggroColor]", -- [19]
    						nil, -- [20]
    						nil, -- [21]
    						"[if (TargetingList = Name(unit=\"player\")) then 'Dir':Fuchsia else TargetingList:ClassColor end]", -- [22]
    						nil, -- [23]
    						"[Alpha(0)][((NumTargeting > 0) ? '------------------':Gray ! Target:Exists ? '------------------':Gray)]", -- [24]


    Posted in: General AddOns
  • 0

    posted a message on CowTip 2.0
    [code]I tried for about 3h now. I could get some code to work with ldt3 but not all of it. Could someone please help me? This is my ldt2 code (working perfectly :)): [code]["lefts"] = { "[Outline][IsPlayer ? [IsEnemy ? [PvP ? Name:HostileColor ! Name:ClassColor] ! Name:ClassColor] ! [IsPet ? Name ! [~IsPlayerOrPet ? [Status ? Name:StatusColor ! Name:HostileColor] ] ] ] [Realm:Bracket] [PvP:Paren:HostileColor]", -- [1] "", -- [2] "[Guild ? Text([ [Guild = Guild#player] ? Fuchsia ! Green][Guild:Angle])]", -- [3] "[GuildRank ? Text([[Guild = Guild#player] ? Fuchsia ! Green][GuildRank:Angle])]", -- [4] "[InGroup ? Text(in Gruppe):Angle:Green]", -- [5] "[ [Level = Text(??)] ? Red ! [ [Level > [Level#player + 4] ] ? Red ! [ [Level > [Level#player + 2] ] ? Color(ffa500) ! [ [Level < [Level#player - 7] ] ? Gray ! [ [Level < [Level#player - 2] ] ? Green ! Yellow] ] ] ] ][Level][ShortClassification:DifficultyColor] [Classification:DifficultyColor] [IsPlayer ? SmartRace:Cyan ! SmartRace:Hide(Nicht spezifiziert):White] [IsPlayer ? SmartClass:ClassColor ! SmartClass:ClassColor] [DruidForm:Paren:ClassColor]", -- [6] "[Faction:HostileColor]", -- [7] "[Text(------------------):Gray]", -- [8] "[~HasNoThreat?Text(Bedrohung:)]", -- [9] "Gesundheit:", -- [10] "[~HasNoMP ? Text([TypePower]:)]", -- [11] "[CurXP:HideZero ? Text(Erfahrung:)]", -- [12] "[TalentSpec ? Text(Talente:)]", -- [13] "[Zone ? Text(Zone:)]", -- [14] "", -- [15] "", -- [16] nil, -- [17] "[Text(------------------):Gray]", -- [18] "[Target ? Text(Ziel:):White] ", -- [19] [21] = "[IsUnit(target) ? Text(Angezielt von):White][NumTargeting:HideZero:Paren:Prepend( )][NumTargeting:HideZero ? Text(:):White]", [22] = "[[[NumTargeting > 0] ? Text(------------------) ! Target ? Text(------------------)]:Gray]", }, ["rights"] = { "[Status:Paren:StatusColor] [InCombat ? Text(Kampf):Paren:Red] [AFKDND:Gray] [IsUnit(pet) ? HappyIcon:HappyColor]", -- [1] "", -- [2] "", -- [3] "", -- [4] "", -- [5] "", -- [6] "", -- [7] "[Text(------------------):Gray]", -- [8] "[~HasNoThreat ? Text([FractionalThreat:Short:AggroColor] [PercentThreat:Percent:Paren:AggroColor])]", -- [9] "[Status:StatusColor:SmartHP:Short:HPColor]", -- [10] "[~HasNoMP?Text([FractionalMP:Short:PowerColor])]", -- [11] nil, -- [12] "[TalentSpec]", -- [13] "[Zone]", -- [14] "", -- [15] "", -- [16] nil, -- [17] "[Text(------------------):Gray]", -- [18] "[SmartClass#mouseovertarget ? ClassColor#mouseovertarget][ [Target = Name#player] ? Text(DU):Fuchsia ! [ [Target = Name#pet] ? Text(Dein Begleiter):Green ! [ [Target = Name#target] ? Text(Dein Ziel):Yellow ! NameRealm#mouseovertarget:HideZero] ] ]", -- [19] [21] = "[ [TargetingList = Name#player] ? Text(DIR):Fuchsia:HideZero ! TargetingList:ClassColor]", [22] = "[[[NumTargeting > 0] ? Text(------------------) ! Target ? Text(------------------)]:Gray]",[/code]


    This is what I worked out with ldt3 so far:

    [code]["lefts"] = { "[(if IsPlayer then ClassColor else HostileColor) NameRealm] [Realm:Bracket] [PvP:Paren:HostileColor]", -- [1] nil, -- [2] "[Guild ? (if Guild = 'player':Guild then Fuchsia else Green) Guild:Angle]", -- [3] "[GuildRank ? (if Guild = 'player':Guild then Fuchsia else Green) GuildRank:Angle]", -- [4] "[if Level = \"??\" then Red else Level:DifficultyColor] [ShortClassification:DifficultyColor] [Classification:DifficultyColor] [(if IsPlayer then Race:Cyan else Creature:Hide(\"Nicht spezifiziert\"))] [if IsPlayer or [IsEnemy and not IsPet] then Class:ClassColor] [DruidForm:Paren:ClassColor]", -- [5] "[InGroup ? \"in Gruppe\":Angle:Green]", -- [6] "", -- [7] "[Faction:HostileColor]", -- [8] "[\"------------------\":Gray]", -- [9] }, ["rights"] = { "[Status:Paren:StatusColor] [InCombat ? \"X\":Paren:Red] [AFK] [(if IsUnit(\"pet\") then HappyIcon)]", -- [1] "[(if Target:IsPlayer or (Target:IsEnemy and not Target:IsPet) then ClassColor(unit=Target)) (if IsUnit('player', Target) then 'DU':Fuchsia else Target:NameRealm or 'None')]", -- [2] "", -- [3] "", -- [4] "", -- [5] "", -- [6] "", -- [7] "", -- [8][/code]


    Please help...

    Greetings Wavebow of Alleria[/code]
    Posted in: General AddOns
  • To post a comment, please or register a new account.