Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local icons = {
- {
- '|TInterface\\Icons\\spell_holy_wordfortitude:20:20:0:0:20:20:2:18:2:18|t', ---:height(pixels):width(pixels):x-offset:y-offset:set equal to height:set equal to width:inset left: inset right: inset top: inset bottom
- (GetSpellInfo(469)), --Commanding Shout (All Warriors)
- (GetSpellInfo(109773)), --Dark Intent (All Warlocks)
- (GetSpellInfo(21562)), --Power Word: Fortitude (All Priests)
- (GetSpellInfo(90364)), --Qiraji Fortitude (Silithid (Beast Mastery Hunter))
- (GetSpellInfo(111922)) --Fortitude (Runescroll of Fortitude III)
- },
- {
- '|TInterface\\Icons\\spell_nature_regeneration:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(115921)), --Legacy of the Emperor (All Monks)
- (GetSpellInfo(20217)), --Blessing of Kings (All Paladins)
- (GetSpellInfo(1126)), --Mark of the Wild (All Druids)
- (GetSpellInfo(90363)), --Embrace of the Shale Spider (Shale Spider (Beast Mastery Hunter))
- (GetSpellInfo(69378)) --Blessing of Forgotten Kings (Drums of Forgotten Kings)
- },
- {
- '|TInterface\\Icons\\ability_warrior_battleshout:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(6673)), --Battle Shout (All Warriors)
- (GetSpellInfo(57330)), --Horn of Winter (All Death Knights)
- (GetSpellInfo(19506)) --Trueshot Aura (All Hunters)
- },
- {
- '|TInterface\\Icons\\spell_fire_totemofwrath:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(1459)), --Arcane Brilliance (All Mages)
- (GetSpellInfo(77747)), --Burning Wrath (All Shamans)
- (GetSpellInfo(109773)), --Dark Intent (All Warlocks)
- (GetSpellInfo(61316)), --Dalaran Brilliance (All Mages)
- (GetSpellInfo(126309)) --Still Water (Waterstrider (Beast Mastery Hunter))
- },
- {
- '|TInterface\\Icons\\ability_rogue_disembowel:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(55610)), --Unholy Aura (Frost/Unholy Death Knights)
- (GetSpellInfo(113742)), --Swiftblade's Cunning (All Rogues)
- (GetSpellInfo(30809)), --Unleashed Rage (Enhancement Shaman)
- (GetSpellInfo(128432)), --Cackling Howl (Hyena (All Hunters))
- (GetSpellInfo(128433)) --Serpent's Swiftness (Serpent (All Hunters))
- },
- {
- '|TInterface\\Icons\\spell_shaman_elementaloath:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(51470)), --Elemental Oath (Elemental Shaman)
- (GetSpellInfo(24907)), --Moonkin Aura (Balance Druid)
- (GetSpellInfo(49868)), --Mind Quickening (Shadow Priest)
- (GetSpellInfo(135678)) --Energizing Spores (Sporebat (All Hunters))
- },
- {
- '|TInterface\\Icons\\spell_nature_unyeildingstamina:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(116781)), --Legacy of the White Tiger (Windwalker Monk)
- (GetSpellInfo(17007)), --Leader of the Pack (Feral/Guardian Druid)
- (GetSpellInfo(1459)), --Arcane Brilliance (All Mages)
- (GetSpellInfo(61316)), --Dalaran Brilliance (All Mages)
- (GetSpellInfo(97229)), --Bellowing Roar (Hydra (All Hunters))
- (GetSpellInfo(24604)), --Furious Howl (Wolf (All Hunters))
- (GetSpellInfo(90309)), --Terrifying Roar (Devilsaur (Beast Mastery Hunter))
- (GetSpellInfo(126373)), --Fearless Roar (Quilen (Beast Mastery Hunter))
- (GetSpellInfo(126309)) --Still Water (Waterstrider (Beast Mastery Hunter))
- },
- {
- '|TInterface\\Icons\\spell_nature_invisibilitytotem:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(19740)), --Blessing of Might (All Paladins)
- (GetSpellInfo(116956)), --Grace of Air (All Shamans)
- (GetSpellInfo(93435)), --Roar of Courage (Cat (All Hunters))
- (GetSpellInfo(128997)) --Spirit Beast Blessing (Spirit Beast (Beast Mastery Hunter))
- },
- {
- '|TInterface\\Icons\\trade_alchemy_potione3:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(105689)) --300 Agility (Flask of Spring Blossoms)
- },
- {
- '|TInterface\\Icons\\spell_misc_food:20:20:0:0:20:20:2:18:2:18|t',
- (GetSpellInfo(104275)), --300 Agility (Sea Mist Rice Noodles)
- (GetSpellInfo(104273)), --250 Agility (Sauteed Carrots)
- (GetSpellInfo(104274)), --275 Agility (Valley Stir Fry)
- (GetSpellInfo(146805)) --300 Agility (Seasoned Pomfruit Slices)
- }
- }
- local PBF = CreateFrame('Button', 'PlayerBuffFrame', UIParent)
- PBF:SetSize(164,20)
- PBF:SetPoint('LEFT', UIParent, 'CENTER', -470, -16)
- PBF:EnableMouse(false)
- PBF:RegisterEvent('PLAYER_ENTERING_WORLD')
- PBF:RegisterUnitEvent('UNIT_AURA', 'player')
- local PBFText = PBF:CreateFontString('PlayerBuffFrameText', 'OVERLAY')
- PBFText:SetAllPoints(true)
- PBFText:SetFont('Fonts\\MORPHEUS.ttf', 10)
- PBFText:SetJustifyH('LEFT')
- PBFText:SetJustifyV('BOTTOM')
- PBF:SetScript('OnEvent', function(self, event, unit)
- local text = ''
- for i = 1,10 do
- local buffs = icons[i]
- local icon = buffs[1]
- for j = 2, #buffs do
- if UnitAura('player', buffs[j]) then
- icon = nil
- break
- end
- end
- if icon then
- text = text .. icon
- end
- end
- PBFText:SetText(text)
- end)
- local raidleadhelper = CreateFrame('Frame', 'RaidLeadHelperFrame', UIParent)
- local isInstance, instanceType
- raidleadhelper:RegisterEvent('PLAYER_ENTERING_WORLD')
- raidleadhelper:RegisterEvent('PARTY_LEADER_CHANGED')
- raidleadhelper:SetScript('OnEvent', function(self, event, ...)
- isInstance, instanceType = IsInInstance()
- if (event == 'PLAYER_ENTERING_WORLD' and isInstance and instanceType == 'raid') then
- LoggingCombat(true)
- if UnitIsGroupLeader('player') then
- if select(1, GetLootMethod()) ~= 'master' then
- SetLootMethod('master', 'player')
- SetLootThreshold(4)
- end
- PromoteToAssistant('Elera')
- end
- elseif (event == 'PARTY_LEADER_CHANGED' and isInstance and instanceType == 'raid' and UnitIsGroupLeader('player')) then
- PromoteToAssistant('Elera')
- if select(1, GetLootMethod()) ~= 'master' then
- SetLootMethod('master', 'player')
- SetLootThreshold(4)
- end
- else
- LoggingCombat(false)
- end
- end)
- SLASH_SHOP1 = '/shop'
- SLASH_RELOAD1 = '/rl'
- SLASH_GM1 = '/gm'
- SLASH_READYCHECK1 = '/rc'
- SlashCmdList.SHOP = function()
- ToggleStoreUI()
- end
- SlashCmdList.RELOAD = function()
- ReloadUI()
- end
- SlashCmdList.GM = function()
- ToggleHelpFrame()
- end
- SlashCmdList.READYCHECK = function ()
- DoReadyCheck()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement