Quantcast WoWInterface - View Single Post - Mapping/optimize stuff in LUA to make it fit in a macro?
View Single Post
12-03-12, 08:08 PM   #3
A Defias Bandit
Join Date: Dec 2012
Posts: 3
nvm figured it out by my self.
Just put the mapping into an array

/script a={1,2,4,1,8,7,5,6,3,4,5}; v="player";for p=0,GetNumGroupMembers() do if(p>0) then v="party"..p;end;q,x,c=UnitClass(v); m=a[c]; SetRaidTarget(v, m);end
  Reply With Quote