WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Getting stacks from death strike (https://www.wowinterface.com/forums/showthread.php?t=49565)

Lybrial 08-04-14 05:29 AM

Getting stacks from death strike
 
Hi,

i need a lua code which return the stacks on death strike.
It is not a buff so i cant use UnitBuff i guess. The stacks
on death strike are just showing how much the next
death strike will heal.

So how can i get the stack information from death strike?

Phanx 08-04-14 06:42 AM

I don't have a death knight, but based on the spell's description, there are no "stacks" of anything to be tracked; you'd need to keep a running total of damage sustained by the player from non-player over the last 5 seconds, by watching the combat log.

jeruku 08-04-14 08:51 AM

Did you by any chance mean the buff Scent of Blood?

Lybrial 08-04-14 10:23 AM

Quote:

Originally Posted by jeruku (Post 294696)
Did you by any chance mean the buff Scent of Blood?

Oh right! Thx man!

Vlad 08-04-14 11:40 AM

The GetSpellCount(49998) returns how many charges you have.

Note that it returns 0 at no charges, even if you can use the spell at that moment.

Lybrial 08-04-14 11:43 AM

Quote:

Originally Posted by Vlad (Post 294709)
The GetSpellCount(49998) returns how many charges you have.

Note that it returns 0 at no charges, even if you can use the spell at that moment.

Thx for the hint.

I solved it with that code:

Code:

function()
    local stacks = select(4, UnitBuff("player","Blutgeruch"))
    return stacks or 0;
end



All times are GMT -6. The time now is 01:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI