Код:
/run USS="UNIT_SPELLCAST_SUCCEEDED";OE="OnEvent";PvP="Interface\\Icons\\inv_jewelry_trinketpvp_01";F="Frame";CF=CreateFrame;BO="Border";PvPT="PvP Trinket";EMFH="Every Man For Himself";CTFS=COMBAT_TEXT_SCROLL_FUNCTION
/run function TrS(f,x,y,cd) f:SetPoint("CENTER",TargetFrame,"CENTER",x,y)f:SetSize(20,20)f.c=CF("Cooldown",cd)f.c:SetAllPoints(f)f.t=f:CreateTexture(nil,BO)f.t:SetAllPoints()f.t:SetTexture(PvP);f:Hide();f:RegisterEvent(USS) end
/run t1=CF(F);TrS(t1,200,76,"cd1");t2=CF(F);TrS(t2,200,135,"cd2");t3=CF(F)TrS(t3,200,191,"cd3")
/run function Tr(f,cd,U,N,T)if(U==T and N==PvPT or N==EMFH)then f:Show();CooldownFrame_SetTimer(cd,GetTime(),10,1)end end
/run t1:SetScript(OE,function(_,_,U,N)Tr(t1,cd1,U,N,"arena3")end);t2:SetScript(OE,function(_,_,U,N)Tr(t2,cd2,U,N,"arena2")end);t3: