확장팩 팁과 노하우 게시판

전체보기

모바일 상단 메뉴

본문 페이지

[매크로] (매크로로만드는에드온)초상화에 상태표시-글라디우스 이제필요없을듯

아이콘 고대인
댓글: 17 개
조회: 9698
추천: 61
2011-11-04 21:16:14


1.
/run state={498,1044,8122,85388,5246,47476,853,20066,19503,1499,11641,408,1833,2094,29538,5782,5484,6789,118,23187,82676,1330,6770};
/run f=CreateFrame("frame");f:SetAllPoints()


2.
/run function mString(name,size) f.s=f:CreateFontString(name,"BORDER");f.s:SetFont("Fonts//2002B.TTF",size,0); return f.s;end;


3. 글자크기 수정부분
/run function mFS(unit) mString((unit.."FS"),40); _G[unit.."FS"]:SetAllPoints(unit.."FT");end;
/run LoadAddOn("Blizzard_ArenaUI");for i=1,5 do _G["arena"..i.."FT"]=_G["ArenaEnemyFrame"..i].classPortrait;mFS("arena"..i);end;


4.
/run UFP = "UnitFramePortrait_Update";UICC = "Interface//Glues//CharacterCreate//UI-CharacterCreate-Classes"; CIT =

CLASS_ICON_TCOORDS;playerFT=PlayerFrame.portrait;mFS("player");targetFT=TargetFrame.portrait;mFS("target");

4.
/run function NTexture(unit) _G[unit.."FS"]:SetText("");local t=CIT[select(2,UnitClass(unit))] if(t)then _G[unit.."FT"]:SetTexture

(UICC);_G[unit.."FT"]:SetTexCoord(unpack(t))end;end;

5.
/run function State(self,e,unit) if(_G[unit.."FT"])then for i=1,#state do if(checkState(unit,state[i]))then _G[unit.."FT"]:SetTexture

(GetSpellTexture(state[i]));_G[unit.."FT"]:SetTexCoord(0,1,0,1);break;end;if(i==#state)then NTexture(unit);end;end;end;end

6.
/run function checkState(unit,id) a={UnitBuff(unit,GetSpellInfo(id))};if(a[1])then return UnitBuff(unit,GetSpellInfo(id));else return

UnitDebuff(unit,GetSpellInfo(id));end;end;

8.
/run function StateStr(unit) for i=1,#state do a={checkState(unit,state[i])};if(a[1])then _G[unit.."FS"]:SetText(floor(a[7]-GetTime

()));end;end;end;
/run function pState() StateStr("player");StateStr("target");for i=1,5 do StateStr("arena"..i);end;end;

9.
/run hooksecurefunc(UFP,function(self) if(self.unit=="player" or self.unit=="target")then State(self,nil,self.unit);end;end)
/script f:SetScript("OnEvent",State);f:RegisterEvent("UNIT_AURA");f:SetScript("OnUpdate", pState);

============================================================================================================
그대로 복사하면 에러뜹니다 //를 역슬러쉬로 바꾸세요 2개씩입니다.

- 스킬을 원래 다등록하려고했는데 너무많아서 등록할수가없습니다. 따로 등록하세요... 우선순위가 높은 무적등을 1번으로

하세요

이니부자

Lv78 고대인

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예
AD