Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
Active cooldown print (onHotkey) #10
This will print in chat the number of any active cooldowns.
I used this for my spell caster to get all the IDs of unknown spells on custom servers such as Evolunia
649b | 15 lines.
  Script made by Lee (Discord: l33_) -
  If you want to support my work, feel free to donate at
  PS. Stop ripping off my work and selling it as your own.
hotkey("F1", "Cooldown print", function()
    local tStr = {}
    local gStr = {}
    for i = 1, 255 do
        if (modules.game_cooldown.isCooldownIconActive(i)) then table.insert(tStr, i) end
        if i <= 4 and (modules.game_cooldown.isGroupCooldownIconActive(i)) then table.insert(gStr, i) end

    if table.getn(tStr) >= 1 or table.getn(gStr) >= 1 then
        modules.game_textmessage.displayGameMessage('Active Cooldowns:\n'..table.concat(tStr, ', ')..
                '\nGroup Cooldowns: ' .. table.concat(gStr, ', '))
        modules.game_textmessage.displayGameMessage('No active cooldowns')

12 Jun 2022