WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /xlifes
    from Rev 83 to Rev 84
    Reverse comparison

Rev 83 → Rev 84

xlifes.lua
3,11 → 3,10
 
local function getdata()
local name = UnitName("target")
local level = UnitLevel("target")
local healthperc = math.floor(UnitHealth("target")/UnitHealthMax("target")*100).."%"
local player = UnitIsPlayer("target")
local creature,pvp,guild
if level == "lvl-1" then level = "lvl??" elseif level == "lvl0" then level = "lvl??" end
local level,creature,pvp,guild
if (UnitLevel("target") == -1 or UnitLevel("target") == 0) then level = "??" else level = UnitLevel("target") end
if UnitIsPVP("target") then pvp = " [PvP])" else pvp = ")" end
if player then
local class = UnitClass("target")
Bindings.xml
1,5 → 1,7
<Bindings>
<Binding name="XLIFESBIND1" description="Paste target info into chat inputbox" header="XLIFES">
Announce()
</Binding>
<Binding name="XLIFESBIND1" description="Paste target info into chat inputbox" header="XLIFES">
if ( keystate == "up" ) then
Announce()
end
</Binding>
</Bindings>
\ No newline at end of file