Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://i.imgur.com/VDZIFq5.png
- https://i.imgur.com/FDWrIx0.png
- if not _mor then
- -- if UnitGUID("player") == "0x00000000002EDF06" then
- -- 0x00000000002EDF06
- ---------------------------------------------
- -- Раскол брони
- ---------------------------------------------
- -- local fire = CreateFrame("Frame", nil, UIParent)
- -- fire:SetParent(ActionButton1)
- -- fire:SetPoint("CENTER", 0, 43)
- -- fire:SetSize(512/2, 256/2)
- -- fire = fire:CreateTexture("warrior")
- -- fire:SetAllPoints()
- -- fire:SetAlpha(1)
- -- fire:SetTexture("Interface\\AddOns\\Diablo\\figure_left")
- --
- ---------------------------------------------
- -- ЛП
- ---------------------------------------------
- local color = {0, 0, 255}
- local f = CreateFrame("StatusBar", "sealofmastery", UIParent) --frameType, frameName, frameParent
- f:SetPoint("CENTER", 0, -250)
- f:SetSize(220, 40)
- --Шоб двигать
- f:EnableMouse(true)
- f:SetMovable(true)
- f:RegisterForDrag("RightButton")
- f:SetScript("OnDragStart", f.StartMoving)
- f:SetScript("OnDragStop", f.StopMovingOrSizing)
- --statusbar background
- f.bg = f:CreateTexture()
- f.bg:SetAllPoints(f)
- f.bg:SetTexture(unpack(color))
- f.bg:SetAlpha(0.2)
- --statusbar texture
- local tex = f:CreateTexture()
- tex:SetTexture(unpack(color))
- f:SetStatusBarTexture(tex)
- f:SetStatusBarColor(unpack(color))
- --values
- f:SetMinMaxValues(1, 20)
- f.minValue, f.maxValue = f:GetMinMaxValues()
- -- statusbar:SetValue(50)
- --20x20 иконка
- local f = CreateFrame("Frame", nil, UIParent)
- f:SetParent(sealofmastery)
- f:SetPoint("LEFT", sealofmastery, -40, 0)
- f:SetSize(40, 40)
- f = f:CreateTexture()
- f:SetAllPoints()
- f:SetAlpha(1)
- f:SetTexture("Interface\\Icons\\Spell_DeathKnight_IceTouch")
- -- Text любой по центру
- local sealofmastery_text = sealofmastery:CreateFontString()
- sealofmastery_text:SetPoint("CENTER", sealofmastery, 0, 0)
- sealofmastery_text:SetFontObject("CombatLogFont")
- -- sealofplague_text:SetText("Удар чумы")
- ---------------------------------------------
- -- Чума
- ---------------------------------------------
- local color = {0, 255, 0}
- local f = CreateFrame("StatusBar", "sealofplague", UIParent) --frameType, frameName, frameParent
- f:SetPoint("CENTER", 0, -290)
- f:SetSize(220, 40)
- --Шоб двигать
- f:EnableMouse(true)
- f:SetMovable(true)
- f:RegisterForDrag("RightButton")
- f:SetScript("OnDragStart", f.StartMoving)
- f:SetScript("OnDragStop", f.StopMovingOrSizing)
- --statusbar background
- f.bg = f:CreateTexture()
- f.bg:SetAllPoints(f)
- f.bg:SetTexture(unpack(color))
- f.bg:SetAlpha(0.2)
- --statusbar texture
- local tex = f:CreateTexture()
- tex:SetTexture(unpack(color))
- f:SetStatusBarTexture(tex)
- f:SetStatusBarColor(unpack(color))
- --values
- f:SetMinMaxValues(1, 20)
- f.minValue, f.maxValue = f:GetMinMaxValues()
- -- statusbar:SetValue(50)
- --20x20 иконка
- local f = CreateFrame("Frame", nil, UIParent)
- f:SetParent(sealofplague)
- f:SetPoint("LEFT", sealofplague, -40, 0)
- f:SetSize(40, 40)
- f = f:CreateTexture()
- f:SetAllPoints()
- f:SetAlpha(1)
- f:SetTexture("Interface\\Icons\\Spell_DeathKnight_EmpowerRuneBlade")
- -- Text любой по центру
- local sealofplague_text = sealofplague:CreateFontString()
- sealofplague_text:SetPoint("CENTER", sealofplague, 0, 0)
- sealofplague_text:SetFontObject("CombatLogFont")
- -- sealofplague_text:SetText("Удар чумы")
- -- Text 1-е секунды + 2-е секунды(чаще всего)
- local both_text = sealofplague:CreateFontString()
- both_text:SetPoint("RIGHT", sealofplague, 16, 20)
- both_text:SetFontObject("CombatLogFont")
- -- both_text:SetText("12")
- ---------------------------------------------
- -- Функция
- ---------------------------------------------
- local function onUpdate()
- --start
- if UnitDebuff("target", "Озноб", nil, "Player") == nil then
- sealofmastery:SetValue(0)
- sealofmastery_text:SetText("Отсутствует")
- else
- local lp = (select(7, UnitDebuff("target", "Озноб", nil, "Player")) - GetTime())
- sealofmastery:SetValue(lp)
- sealofmastery_text:SetText(floor(lp))
- end;
- if UnitDebuff("target", "Кровавая чума", nil, "Player") == nil then
- sealofplague:SetValue(0)
- sealofplague_text:SetText("Отсутствует")
- else
- local pl = (select(7, UnitDebuff("target", "Кровавая чума", nil, "Player")) - GetTime())
- sealofplague:SetValue(pl)
- sealofplague_text:SetText(floor(pl))
- end;
- if UnitDebuff("target", "Озноб", nil, "Player") == nil
- and UnitDebuff("target", "Кровавая чума", nil, "Player") == nil then
- both_text:SetText("0")
- elseif UnitDebuff("target", "Озноб", nil, "Player")
- and UnitDebuff("target", "Кровавая чума", nil, "Player") then
- local lp = (select(7, UnitDebuff("target", "Озноб", nil, "Player")) - GetTime())
- local pl = (select(7, UnitDebuff("target", "Кровавая чума", nil, "Player")) - GetTime())
- local both = (lp + pl)
- both_text:SetText(floor(both))
- end
- --finish
- end;
- local f = CreateFrame("Frame")
- f:SetScript("OnUpdate", onUpdate)
- _mor = true end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement