Is it possible to simply approximate the spell cooldown timers? I don't know if you can pull statistical info from spells on the hotbar, but if you could in some way find out what the cooldown timer of the loaded spell is, couldn't you just add a countdown function that is set to that timer?
For example, all the HO starters have a 10sec timer. Therefore all you'd need to do is check what spell is in that hotbar slot, if it is a HO starter set the countdown to 10 seconds when that hotkey is pressed, and voila.
If nothing else, you may be able to let each player manually set the countdown timers in each hotbar slot whenever they change the spells assigned to them. It'd be kind clunky, but it would suffice.
If it is possible to setup a small table, you may be able to link the string of the ability's name to a specific timer in the code. Just create a table that includes the names of every HO starter and assigns a countdown timer of 10 seconds to that hotbar slot when an ability with one of those names is assigned to it.
I may be seriously overestimating the capabilities of the code here, as I have never actually played with it. However, it seems like this is a decent workaround for refresh timers since the pushed data cannot be accessed directly.
|