[원문] 매크로 질문이요~
/살펴보기
/run t,c,u=0,0,UnitExists("target") and "target" or "player" for i =1,18 do if i~=4 then local k=GetInventoryItemLink(u,i) if k then local _,_,_,l=GetItemInfo(k) t=t+l c=c+1 end end end if c>0 then print(UnitName('target')..':'..floor(t/c)) end
이렇게하면 상대방 템창뜨면서 평균렙뜨잖아요?
그냥 평균렙만 뜨게 어떻게하나요?
상대방 템창아뜨게요
-------------------------------------------------------------------------------------
아주 간단하저 ㅎㅎㅎㅎㅎㅎㅎㅎ
/살펴보기
/run t,c,u=0,0,UnitExists("target") and "target" or "player" for i =1,18 do if i~=4 then local k=GetInventoryItemLink(u,i) if k then local _,_,_,l=GetItemInfo(k) t=t+l c=c+1 end end end if c>0 then print(UnitName('target')..':'..floor(t/c)) end
여기서 /살펴보기 만 삭제하심 되내여 ㅎㅎ
/run t,c,u=0,0,UnitExists("target") and "target" or "player" for i =1,18 do if i~=4 then local k=GetInventoryItemLink(u,i) if k then local _,_,_,l=GetItemInfo(k) t=t+l c=c+1 end end end if c>0 then print(UnitName('target')..':'..floor(t/c)) end
일케하시면... 살펴보기창은 안뜨고 쳇창에 템렙만 뜨내여...