View Single Post
10-24-09, 01:22 PM   #7
derickso
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
Great info all thank you very much, I combined features of both since I do not use the desktops feature at all, so my function uses a bindings symlink and adds/removes weakened soul from my debuff list. Here is the code:

Code:
function SetTalentedBindings()
   local od = RDXDB.GetObjectData("shakar_Heal2:badAuras");

   if ( GetActiveTalentGroup() == 2 ) then
      RDXDB.SetSymLinkTarget("shakar_Heal2:bindings_sym", "shakar_Heal2:current_bindings_disc")
      local found = false;
      for i=1, #(od.data) do if (od.data[i] == 6788) then found = true; end; end;
      if (found == false) then table.insert(od.data, 6788); end;
   else
      RDXDB.SetSymLinkTarget("shakar_Heal2:bindings_sym", "shakar_Heal2:current_bindings")
      for i=1, #(od.data) do if (od.data[i] == 6788) then table.remove(od.data, i); end; end;
   end
end

WoWEvents:Bind("PLAYER_ENTERING_WORLD", nil, SetTalentedBindings, "RDX_TALENTBINDINGS");
WoWEvents:Bind("PLAYER_TALENT_UPDATE", nil, SetTalentedBindings, "RDX_TALENTBINDINGS");
  Reply With Quote