Jump to content

  • Curse Sites
Help

Raidicon macro

lazy

  • Please log in to reply
4 replies to this topic

#1 Askin

Askin
  • Junkies
  • Humanclass_name
  • EU-Blackrock
  • Glutsturm / Emberstorm
  • Posts: 214
  • Talents: Marksmanship
  • RBG: 2233

Posted 06 October 2012 - 04:15 PM

Raidicons seem to disappear when you join an arena, perhaps someone needs this:


/script SetRaidTarget("player",1);
/script SetRaidTarget("party1",2);
/script SetRaidTarget("party2",3);

Edited by Askin, 06 October 2012 - 04:18 PM.


#2 Wildbreath

Wildbreath
  • Premium
  • Curse Premium
  • Night Elfclass_name
  • EU-Азурегос
  • Шквал
  • Posts: 26
  • Talents: Feral 0/0/2/1/2/1

Posted 08 October 2012 - 12:51 PM

/run ci={WARRIOR=1,DEATHKNIGHT=2,PALADIN=3,MONK=4,PRIEST=5,SHAMAN=6,DRUID=7,ROGUE=8,MAGE=1,WARLOCK=2,HUNTER=3,} SetRaidTarget('player',ci[select(2,UnitClass('player')]) for i=1,4 do SetRaidTarget('party'..i,ci[select(2,UnitClass('party'..i)]) end

#3 DDoSWarsNA

DDoSWarsNA
  • Members
  • Posts: 11

Posted 20 October 2012 - 10:55 PM

This is truf.

#4 summlan

summlan
  • Members
  • Taurenclass_name
  • EU-Stormscale
  • Cyclone / Wirbelsturm
  • Posts: 472
  • Talents: Feral Combat

Posted 24 October 2012 - 02:51 PM

ArenaRaidIcons.toc

## Interface: 40000
## Title: Arena Raid Icons
## Notes: Automatically set Raid Icons on your team when you enter an arenamatch. Made by Summlan
ArenaRaidIcons.lua


ArenaRaidIcons.lua

local function seticons()

members = GetNumGroupMembers();
ci={WARRIOR=8,DEATHKNIGHT=7,PALADIN=3,MONK=4,PRIEST=5,SHAMAN=6,DRUID=2,ROGUE=1,MAGE=8,WARLOCK=3,HUNTER=4}
SetRaidTarget('player',ci[select(2,UnitClass('player'))])
for i=1,(members-1) do
SetRaidTarget('party'..i,ci[select(2,UnitClass('party'..i))])
end
end



local w = CreateFrame("Frame")
w:RegisterEvent("GROUP_ROSTER_UPDATE")

function w:OnEvent(event, ...)
if event == "GROUP_ROSTER_UPDATE" and GetNumArenaOpponentSpecs() ~= 0 then
seticons()
end
end
w:SetScript("OnEvent", w.OnEvent)


Automatically sets icons when you enter arena if you are leader or you get leader

#5 summlan

summlan
  • Members
  • Taurenclass_name
  • EU-Stormscale
  • Cyclone / Wirbelsturm
  • Posts: 472
  • Talents: Feral Combat

Posted 12 November 2012 - 01:07 PM

link to the addon above
http://wow.curseforg...ena-raid-icons/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<