Apollo

Weak Auras - Aktueller Krit-Wert

Recommended Posts

Moin,

 

ich suche ne Möglichkeit mir meinen aktuellen Kritwert anzeigen zu lassen.

Also auch mit Trinketprocc's bzw ohne.

 

lg

Link to comment
Share on other sites

function ()

local now = GetTime();

WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1;

if now >= WA_STATS_LAST_UP + 0.1 then

WA_STATS_LAST_UP = now;

local int = select(1, UnitStat("player", 4));

local mas = GetMasteryEffect();

local has = UnitSpellHaste("player");

local crit = GetSpellCritChance(6);

local dmg = GetSpellBonusDamage(6);

WA_STATS_RETURN = string.format([[

Int: %.0f

Mastery: %.1f

Haste: %.1f

Crit: %.1f

Damage: %.0f]],

int or 0,

mas or 0,

has or 0,

cri or 0,

dmg or 0

);

end

return WA_STATS_RETURN or "<no data>";

end

 

Das hatte ich auch schon gefunden, problem was ich hierbei habe ist das ich diese LUA-Funktion nicht verstehe, bzw so umschreiben kann das es funktioniert. Vielleicht kennt sich ja damit jemand hier aus.

Edited by Apollo
Link to comment
Share on other sites

function ()    local now             = GetTime();    WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1;    if now >= WA_STATS_LAST_UP + 0.1 then        WA_STATS_LAST_UP = now;                local crit              = GetCritChance();                        local multi              = GetMultistrike();                                WA_STATS_RETURN = string.format([[Crit: %.1fMulti: %.0f]],             crit or 0,            multi or 0        );    end        return  WA_STATS_RETURN or "<no data>";end 

So funktionierts bei mir, falls ihr andere Werte auslesen wollt müsst ihr euch hier die Funktion raussuchen und die entsprechenden Werte in der Funktion oben ersetzen. http://wowprogramming.com/docs/api_categories#stats

 

Hier ist noch der String http://pastebin.com/JVimxL39, ihr müsst nur den Trigger umändern.

Edited by Apollo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now