Friday, April 13, 2012

I need help.

[:1]I'm trying to develop my first addon and I'm running into a lot of problems. I've already figured out the XML and have it set up exactly how I want. I'm just having trouble writing to LUA to do what I want.

Heres the situation. Glyph of Shred extends the duration of Rip by a total of 6sec if you shred 3 times. Ferocious Bite should really only be used if you have 8-10 sec left on your Rip so you have enough time to rebuild combo points and reapply Rip with no loss in dot uptime. In the situation you lose track of how many times you have used Shred, it may be a large loss in DPS if you chose not to use Ferocious Bite when you still have 2 more procs of Glyph of Shred available.

Heres the mod. My XML is a simple grey background box with no border and 3 shred icons displayed inside the box. I need a few things to happen but I just cant seem to get them to work. 1: I need the box to be movable. 2: I need the box to display no shred icons when out of combat or had just entered the game. 3: I need the mod to do a combat log check for Rip, and after a Rip has been used it displays the 3 icons. 4: I need the icons to disapear 1 at a time when Shred is used. 5: I need it to reset when Rip is reapplied.

The LUA is my problem. I having trouble figuring out the appropriate event strings and how they should be registered in the LUA code. Can anyone help me?

No comments:

Post a Comment