View Single Post
11-08-09, 10:29 PM   #25
derickso
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
Still no luck Here is the exact 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
  local inst = RDXDB.GetObjectInstance("shakar_Heal2:badAuras");
  if inst then RDXDB.WriteFilter(inst,od); end
end

WoWEvents:Bind("PLAYER_ENTERING_WORLD", nil, SetTalentedBindings, "RDX_TALENTBINDINGS");
WoWEvents:Bind("PLAYER_TALENT_UPDATE", nil, SetTalentedBindings, "RDX_TALENTBINDINGS2");
Any other ideas?

Last edited by derickso : 11-08-09 at 10:32 PM.
  Reply With Quote