March 29, 201610 yr Hi, i'm sure i have the answer but i cant find it lol How can i in C# test the Cooldown Time Left on Vanish or killing spree for example. Nothing usable in private Spell killingSpree; or ObjectManager.Me but i'm sure i already done that before :(
March 30, 201610 yr Hello private Spell killingSpree; //... var timeLeftMs = wManager.Wow.Helpers.SpellManager.GetSpellCooldownTimeLeftBySpellName(killingSpree.Name); or private Spell killingSpree; //... var timeLeftMs = wManager.Wow.Helpers.SpellManager.GetSpellCooldownTimeLeft(killingSpree.NameInGame); (method "ObjectManager.Me.CooldownTimeLeft(string spellName, bool isSpellNameInGame = false);" bug in this wrobot version)
March 30, 201610 yr Author Thxs for the answer ;) And for a trinket like http://fr.wowhead.com/item=124224/miroir-du-maitre-lame&bonus=0, how can i get the CooldownTimeLeft var timeLeftMs = wManager.Wow.Helpers.SpellManager.GetSpellCooldownTimeLeft(124224); Perhaps? Or how can i test it's ready to use?
March 31, 201610 yr Author int notReady = Lua.LuaDoString<int>("local start, duration, enable = GetItemCooldown(124224); return start;"); return 0 if item is ready; > 1 if not
Create an account or sign in to comment