Greetings,
I'm working on a project and I'm looking to change any resource to Fury. I've tried to change a resource that already exist (Like Rage) to Fury, I've changed the DBC for ChrClasses (Actually I want only the Warriors to have Fury) - I've also changed the name in GlobalStrings.Lua. And I'm looking to use that resource only via a Lua Script. I've made players when login to have 100 Fury, and every second it will decrease by 1.
v:SetPower(1, v:GetPower(1) - 1)
But there's a problem. If I use Rage, for absolutely no reason, if I set the delay on Lua Function to 1000 miliseconds (1 second), it run the event every 10 seconds. I've tried to check why, I have absolutely no idea! Then I've tried to change the energy to fury, but there's something strange with energy. Energy have a prediction in UnitFrames.XML and I have absolutely no idea how I can remove that. For example, if you are decreasing the value via a Lua Script, it will keep showing the max value too. (100, 99, 100, 98, 100, 97) and so on.
How else can I do that? Can anyone give me a suggestion?