This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] - Making a new resource bar? Or something similar  (Read 908 times)

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
[QUESTION] - Making a new resource bar? Or something similar
« on: August 02, 2015, 03:24:14 am »
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.

Code: [Select]
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »