Trinket script

Locked and being moved to appropriate class sections

Trinket script

Postby Prideful » 14 Oct 2013, 01:15

Hello. My name is alex ( aka nerkaix ) Today Im going to post a ''Script'' for show trinkets in arena.


PVP Trinket Scripts:
There are five seperate scripts, enter one after another in order.


/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";UC=UnitClass;AE="ArenaEnemyFrame"

/run function TrS(f,x,y,cd,T,s,h,n) f:SetPoint("LEFT",AE..n,"Right",x,y)f:SetSize(s,s)f.c=CF("Cooldown",cd)f.c:SetAllPoints(f)f.t=f:CreateTexture(nil,BO)f.t:SetAllPoints()f.t:SetTexture(T);if h then end f:RegisterEvent(USS) end

/run function Tr(f,cd,U,N,T)if(U==T and (N==PvPT or N==EMFH))then f:Show();CooldownFrame_SetTimer(cd,GetTime(),120,1) C=UC(T)end end

/run t1=CF(F);TrS(t1,0,0,"cd1",PvP,28,true,1);t2=CF(F);TrS(t2,0,0,"cd2",PvP,28,true,2);t3=CF(F)TrS(t3,0,0,"cd3",PvP,28,true,3)

/run t1:SetScript(OE,function(_,_,U,N)Tr(t1,cd1,U,N,"arena1")end);t2:SetScript(OE,function(_,_,U,N)Tr(t2,cd2,U,N,"arena2")end);t3:SetScript(OE,function(_,_,U,N)Tr(t3,cd3,U,N,"arena3")end)



Script To Move Enemy Arena Frames:
 
Click and drag by first class icon. 



/run local f=ArenaEnemyFrame1; f:SetUserPlaced(true) f:SetMovable(true) f:EnableMouse(true) f:RegisterForDrag("LeftButton") f:SetScript("OnDragStart",f.StartMoving) f:SetScript("OnDragStop",f.StopMovingOrSizing)
User avatar
 
Posts: 17
Joined: 28 Jul 2012, 13:49
 

Re: Trinket script

Postby Voltagex » 14 Oct 2013, 02:55

thx for the share, appreciate it.
noisa wrote:enay u didnt say that when u asslicked hophel and me to play with u so u can get more than 2k ahhaha
User avatar
 
Posts: 1490
Joined: 24 Sep 2012, 16:38
Location: あなたが見た
 

Re: Trinket script

Postby Roughjohny » 14 Oct 2013, 14:57

do u have scripts for vanish perhaps?
User avatar
 
Posts: 823
Joined: 26 Jun 2012, 15:05
 

Re: Trinket script

Postby gza » 16 Oct 2013, 22:19

In case i cant test them in time, what do they do ? The scripts ? What do you mean by showing trinkets in arena ?
User avatar
 
Posts: 205
Joined: 27 Jun 2012, 08:59
Location: Romania
 

Re: Trinket script

Postby Ataled » 07 Dec 2013, 22:52

end);t3:SetScript(OE,function(_,_,U,N)Tr(t3,cd3,U,N,"arena3")end)


Fixed
User avatar
 
Posts: 51
Joined: 26 Jun 2012, 21:09
 

Re: Trinket script

Postby Krayzee » 08 Dec 2013, 00:28

gza wrote:In case i cant test them in time, what do they do ? The scripts ? What do you mean by showing trinkets in arena ?

It adds the trinket cooldown to the standard Blizzard arena frames so that you can see when a certain player has trinketed. Personally, I just use sArena 3.3.5 that someone posted in the addon section, means I don't have to use a script and makes moving the frames so much easier.
Niriam wrote:in rage mode i never spec properly.
User avatar
 
Posts: 56
Joined: 03 Jul 2012, 23:57
 

Re: Trinket script

Postby gza » 08 Dec 2013, 07:12

Ok i understand. I am using Gladius probably thats why didnt saw anything new.
User avatar
 
Posts: 205
Joined: 27 Jun 2012, 08:59
Location: Romania
 

Re: Trinket script

Postby tapacompris » 25 Dec 2013, 20:09

i see the trinket icons but they seems not to be interactive.. (even if sb trinkets nothing happens)
User avatar
 
Posts: 63
Joined: 28 Jul 2012, 03:13
 

Re: Trinket script

Postby Achylles » 28 Dec 2013, 11:47

Roughjohny wrote:do u have scripts for vanish perhaps?
User avatar
 
Posts: 424
Joined: 26 Jun 2012, 19:11
 

Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests