AudreyH 17 Posted March 29, 2016 Share Posted March 29, 2016 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 :( Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/ Share on other sites More sharing options...
Droidz 2738 Posted March 30, 2016 Share Posted March 30, 2016 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) Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13159 Share on other sites More sharing options...
AudreyH 17 Posted March 30, 2016 Author Share Posted March 30, 2016 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? Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13165 Share on other sites More sharing options...
BetterSister 367 Posted March 30, 2016 Share Posted March 30, 2016 getspellcooldowntimeleft doesn't work for trinkets Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13166 Share on other sites More sharing options...
AudreyH 17 Posted March 30, 2016 Author Share Posted March 30, 2016 yes tested right now Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13167 Share on other sites More sharing options...
AudreyH 17 Posted March 31, 2016 Author Share Posted March 31, 2016 Any idea? Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13171 Share on other sites More sharing options...
Brian 10 Posted March 31, 2016 Share Posted March 31, 2016 Im sure you could do it with LUA code from c# Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13177 Share on other sites More sharing options...
AudreyH 17 Posted March 31, 2016 Author Share Posted March 31, 2016 int notReady = Lua.LuaDoString<int>("local start, duration, enable = GetItemCooldown(124224); return start;"); return 0 if item is ready; > 1 if not Droidz 1 Link to comment https://wrobot.eu/forums/topic/2860-cooldown-time-left/#findComment-13179 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now