Jump to content

Photo

Converting code into Addon


  • Please log in to reply
2 replies to this topic

#1 HTFael

HTFael
  • Members
  • Humanclass_name
  • US-Aerie Peak
  • Nightfall
  • Posts: 35
  • Talents: Destruction 0/2/0/1/0/0/1
  • 2v2: 1514
  • 3v3: 2024
  • 5v5: 576
  • RBG: 1600

Posted 03 November 2015 - 05:39 AM

Hey, so here are 3 scripts in macro form, but I would like to put it into an addon so I don't have to press these 3 macros each time I log in.

1) /run CBT="CompactDebuffTemplate";function mb(ff3) for p=7,12 do ff3.debuffFrames[p]:ClearAllPoints();ff3.debuffFrames[p]:SetPoint("BOTTOMRIGHT", ff3.debuffFrames[p-3], "TOPRIGHT", 0, 0) end end;
2) /run function CBF(pr,i) bf=CreateFrame("Button",pr:GetName().."Debuff"..i,pr,CBT);bf.baseSize=22;end;function mv(u) mb(u);for k=4,6 do f2=u.debuffFrames[k];f2:ClearAllPoints();f2:SetPoint("TOPRIGHT", u.debuffFrames[1], "TOPRIGHT", -(22*(k-3)), 0) end end
3) /run function mv3(t) CompactUnitFrame_SetMaxDebuffs(t,12); if(not t.debuffFrames[4]) then for j=4,12 do CBF(t,j) end end mv(t) end;hooksecurefunc("CompactUnitFrame_UpdateDebuffs",function(f) mv3(f) end);

  • 0

#2 Beer

Beer
  • Junkies
  • Trollclass_name
  • EU-Stormscale
  • Cyclone / Wirbelsturm
  • Posts: 49
  • Talents: Restoration 1/2/2/0/0/0
  • 2v2: 2221
  • 3v3: 2139
  • 5v5: 2178
  • RBG: 2210

Posted 03 November 2015 - 09:35 AM

maybe this helps http://www.mmo-champ...elve-easy-steps
  • 0

#3 HTFael

HTFael
  • Members
  • Humanclass_name
  • US-Aerie Peak
  • Nightfall
  • Posts: 35
  • Talents: Destruction 0/2/0/1/0/0/1
  • 2v2: 1514
  • 3v3: 2024
  • 5v5: 576
  • RBG: 1600

Posted 06 November 2015 - 03:33 AM

maybe this helps http://www.mmo-champ...elve-easy-steps


I know how to do that. I'm saying removing the /run does not make these 3 codes work. I need someone to rewrite it or create a condition like loading the raid frames prior to loading into the game.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<