결국 여기까지 왔습니다. 매크로게시판에서
1.Interrupt
/run skill={52870,1766,96231,6552,47528,80964,47476,2139,19647,34490,6726,8122,5484}; c_skill={6,10,10,10,10,10,120,24,24,20,45,24,32};sVal={-200,-20,35,5};x=sVal[1];
2.Interrupt
/run function mCool(name,id,size,x,y) f.t=f:CreateTexture(name,"BORDER");f.t:SetSize(size,size);f.t:SetTexture(GetSpellTexture(id));f.c=CreateFrame("Cooldown",name.."C"); f.c:SetAllPoints(f.t); f.t:SetPoint("Center",x,y);f.t:Show();end;
3.Interrupt
/run function dCool() for j=1,5 do for i=1,#skill do frame=_G[skill[i].."arena"..j]; if(frame) then frame:Hide();_G[skill[i].."arena"..j]=nil;_G[skill[i].."arena"..j.."C"]:SetCooldown(0,0);end;end;end;x=sVal[1];end;
4.Interrupt
/run function cSpell(unit,spellID) for i=1,#skill do if(spellID==skill[i])then if(_G[spellID..unit]==nil)then mCool(spellID..unit,spellID,sVal[3],x,sVal[2]);x=x+sVal[3]+sVal[4];end;ActCooldown(spellID..unit,c_skill[i]);end;end;end;
5.Interrupt
/run function checkCool(self,e,unit,a1,a2,a3,a4) if(e==e1 and a1=="cleared")then for i=1,5 do if(unit=="arena"..i)then print(unit);end;end;dCool();end;if(e==e2)then for i=1,5 do if(unit=="arena"..i)then cSpell(unit,a4);end;end;end;end;
6.Interrupt
/run function ActCooldown(name,time) _G[name.."C"]:SetCooldown(GetTime(),time);end;
7.Interrupt
/run e1="ARENA_OPPONENT_UPDATE";e2="UNIT_SPELLCAST_SUCCEEDED";f=CreateFrame("frame");f:SetAllPoints();
/script f:SetScript("OnEvent", checkCool) f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED"); f:RegisterEvent("ARENA_OPPONENT_UPDATE")
이런 매크로를 찾아내긴 했는데 더 정확하게는 http://www.inven.co.kr/board/wow/2872/133?my=con&name=subject
이거인데 현재 스킬아이디로 대체해봣지만 전혀 적용이 안되더라구요.
루아파일로 넣고 싶은데 뭐가 잘못됐는지 좀 부탁드립니다. 굽신굽신