A Molten Giant
Join Date: Mar 2010
Posts: 758
|
Have you tryed to send a PM to tropiq? He posted the comment that he modified the code so just ask for it.
My guess this code in "Core.lua" is the part where it shoud be added, moving it is easy just play around with the numbers here:
Code:
-- Ox Statue
------------------------------------------------------------
Statue:SetPoint("TOPLEFT", f.Bar, "BOTTOMLEFT", 1, -3)
Then find the spell id of the thing you want to add like tiger-power: http://www.wowhead.com/spell=125359/
Lua Code:
-- Style local f = CreateFrame("Frame", nil, UIParent) local Icon1 = CreateFrame("Frame", nil, UIParent) local Icon2 = CreateFrame("Frame", nil, UIParent) local Icon3 = CreateFrame("Frame", nil, UIParent) local Statue = CreateFrame("Button", nil, UIParent, "SecureActionButtonTemplate") local function BuildStagger() f:SetSize(cfg.IconSize, cfg.IconSize) CreateIF(f, true) f.Bar = CreateFrame("StatusBar", nil, f) f.Bar:SetSize(cfg.IconSize*4 + 12, 5) CreateSB(f.Bar) f:SetPoint("BOTTOMRIGHT", f.Bar, "TOPRIGHT", 0, 4) f.Text = f:CreateFontString(nil, "OVERLAY") f.Text:SetFont(unpack(cfg.Font)) f.Text:SetPoint("TOPRIGHT", f.Bar, "BOTTOMRIGHT", 0, -2) -- Elusive Brew Icon3:SetSize(cfg.IconSize, cfg.IconSize) Icon3:SetPoint("RIGHT", f, "LEFT", -4, 0) CreateIF(Icon3, true) Icon3.Icon:SetTexture(select(3, GetSpellInfo(115308))) Icon3.Count = Icon3:CreateFontString(nil, "OVERLAY") Icon3.Count:SetFont(unpack(cfg.Font)) Icon3.Count:SetPoint("BOTTOMRIGHT", 3, -1) -- Guard Icon2:SetSize(cfg.IconSize, cfg.IconSize) Icon2:SetPoint("RIGHT", Icon3, "LEFT", -4, 0) CreateIF(Icon2, true) Icon2.Icon:SetTexture(select(3, GetSpellInfo(115295))) -- Shuffle Icon1:SetSize(cfg.IconSize, cfg.IconSize) Icon1:SetPoint("RIGHT", Icon2, "LEFT", -4, 0) CreateIF(Icon1, true) Icon1.Icon:SetTexture(select(3, GetSpellInfo(115307))) -- Ox Statue Statue:SetSize(cfg.IconSize*3/4, cfg.IconSize*3/4) Statue:SetPoint("TOPLEFT", f.Bar, "BOTTOMLEFT", 1, -3) CreateIF(Statue, true) Statue.Icon:SetTexture(select(3, GetSpellInfo(115069))) Statue:SetScript("OnEnter", function(self) GameTooltip:Hide() GameTooltip:SetOwner(self, "ANCHOR_RIGHT", 0, 0) GameTooltip:ClearLines() GameTooltip:SetSpellByID(115315) GameTooltip:Show() end) Statue:SetScript("OnLeave", GameTooltip_Hide) f.Mover = SetMover(f.Bar, NPE_MOVE, "Stagger", cfg.StaggerPos, 140, 20) SlashCmdList["STAGGER"] = function(msg) if msg:lower() == "reset" then wipe(MoverDB["Stagger"]) ReloadUI() else if f.Mover:IsVisible() then f.Mover:Hide() else f.Mover:Show() end end end SLASH_STAGGER1 = "/stg" end -- Function f:RegisterUnitEvent("UNIT_AURA", "player") f:RegisterUnitEvent("PLAYER_SPECIALIZATION_CHANGED", "player") f:RegisterEvent("PLAYER_ENTERING_WORLD") f:RegisterEvent("UNIT_MAXHEALTH") f:SetScript("OnEvent", function() if not f.styled then BuildStagger() f.styled = true end if f.styled then if GetSpecialization() == 1 then f:Show() Icon1:Show() Icon2:Show() Icon3:Show() Statue:Show() local Total, Per local name, _, icon, _, _, duration, expire, _, _, _, _, _, _, _, value = UnitAura("player", GetSpellInfo(124275), "", "HARMFUL") if (not name) then name, _, icon, _, _, duration, expire, _, _, _, _, _, _, _, value = UnitAura("player", GetSpellInfo(124274), "", "HARMFUL") end if (not name) then name, _, icon, _, _, duration, expire, _, _, _, _, _, _, _, value = UnitAura("player", GetSpellInfo(124273), "", "HARMFUL") end if name and value > 0 and duration > 0 then Total = value * math.floor(duration) Per = Total / UnitHealthMax("player") * 100 f:SetAlpha(1) f.Icon:SetTexture(icon) f.CD:SetCooldown(expire - 10, 10) else value = 0 Per = 0 f:SetAlpha(cfg.FadeAlpha) f.Icon:SetTexture(select(3, GetSpellInfo(124275))) f.CD:SetCooldown(0, 0) end f.Bar:SetMinMaxValues(0, 100) f.Bar:SetValue(Per) f.Text:SetText(cfg.InfoColor..Numb(value).." "..cfg.MyColor..Numb(Per).."%") if UnitAura("player", GetSpellInfo(124273), "", "HARMFUL") then ActionButton_ShowOverlayGlow(f) else ActionButton_HideOverlayGlow(f) end -- Shuffle local name1, _, _, _, _, dur1, exp1 = UnitBuff("player", GetSpellInfo(115307)) if exp1 then Icon1:SetAlpha(1) Icon1.CD:SetCooldown(exp1 - dur1, dur1) CreateAT(Icon1, name1) else Icon1:SetAlpha(cfg.FadeAlpha) Icon1.CD:SetCooldown(0, 0) end -- Guard local name2, _, _, _, _, dur2, exp2 = UnitBuff("player", GetSpellInfo(115295)) if exp2 then Icon2:SetAlpha(1) Icon2.CD:SetCooldown(exp2 - dur2, dur2) CreateAT(Icon2, name2, "ANCHOR_RIGHT") else Icon2:SetAlpha(cfg.FadeAlpha) Icon2.CD:SetCooldown(0, 0) end -- Elusive Brew local count = select(4, UnitBuff("player", GetSpellInfo(128939))) local name3, _, _, _, _, dur, exp3, _, _, _, id = UnitBuff("player", GetSpellInfo(115308)) local Status if count and count > 0 then Icon3:SetAlpha(1) Icon3.Count:SetText(count) CreateAT(Icon3, name3) Status = true else Icon3:SetAlpha(cfg.FadeAlpha) Icon3.Count:SetText(nil) Status = false end if id == 115308 then Icon3.CD:SetCooldown(exp3 - dur, dur) Icon3:SetAlpha(1) else Icon3.CD:SetCooldown(0, 0) if Status then Icon3:SetAlpha(1) else Icon3:SetAlpha(cfg.FadeAlpha) end end if count and count == 15 then ActionButton_ShowOverlayGlow(Icon3) else ActionButton_HideOverlayGlow(Icon3) end -- Ox Statue local haveStatue, sname, sstart, sdur, sicon = GetTotemInfo(1) local sid = select(7, GetSpellInfo(sname)) if haveStatue and sdur > 0 then Statue:SetAlpha(1) Statue.CD:SetCooldown(sstart, sdur) else Statue:SetAlpha(cfg.FadeAlpha) Statue.CD:SetCooldown(0, 0) end Statue:SetAttribute("*type*", "macro") Statue:SetAttribute("macrotext", "/click TotemFrameTotem1 RightButton") else f:Hide() Icon1:Hide() Icon2:Hide() Icon3:Hide() Statue:Hide() end end end)
|