Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vanilla: ObjectManager.Me.GlobalCooldownEnabled always returns false

  • Version: All
  • Product: WRobot General
  • Type: Bug
  • Status: Not a Bug

I have long wondered why my fghtclasses spams spells.
I just realized that ObjectManager.Me.GlobalCooldownEnabled  always returns false on vanilla. That explains it.
Any way to fix this?

User Feedback

Recommended Comments

Ordush

Elite user
SpellManager.GlobalCooldownTimeLeft()

 always returns 0 as well

skeletonboy360

Members

I used aquatic form to check gcd on mine. Anything with 0 cd would work. 

if (SpellManager.GetSpellCooldownTimeLeft(“Aquatic Form”) > 0)

return. 

Ordush

Elite user
1 hour ago, skeletonboy360 said:

I used aquatic form to check gcd on mine. Anything with 0 cd would work. 

if (SpellManager.GetSpellCooldownTimeLeft(“Aquatic Form”) > 0)

return. 

Thanks for the tip.
The issue with that is just that you need to have the spell on the action bar in vanilla for that to work. ?

Matenia

Elite user

@Ordush 

@Droidz

public static float GetGlobalCooldown()
    {
        string luaString = @"
        local i = 1
        while true do
            local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL);
            if not spellName or i >= 10 then
                break;
            end
   
            local start, duration, enabled = GetSpellCooldown(i, BOOKTYPE_SPELL);
            if enabled == 1 and start > 0 and duration > 0 then
                local cooldownLeft = duration - (GetTime() - start)
                --DEFAULT_CHAT_FRAME:AddMessage('GCD check for ' .. spellName .. ' ' .. cooldownLeft);
                if (cooldownLeft < 1500 and cooldownLeft ~= 0) then
                    return cooldownLeft / 1000;
                end
            end

            i = i + 1;
        end

        return 0;
        ";

        return Lua.LuaDoString<float>(luaString);
    }

Correct me if I'm wrong, but this should work (pure Lua, vanilla). Checks 10 first spells in spellbook for their cd. Rogues have 1 second GCD tho, so idk

Ordush

Elite user
3 hours ago, Matenia said:

@Ordush 

@Droidz


public static float GetGlobalCooldown()
    {
        string luaString = @"
        local i = 1
        while true do
            local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL);
            if not spellName or i >= 10 then
                break;
            end
   
            local start, duration, enabled = GetSpellCooldown(i, BOOKTYPE_SPELL);
            if enabled == 1 and start > 0 and duration > 0 then
                local cooldownLeft = duration - (GetTime() - start)
                --DEFAULT_CHAT_FRAME:AddMessage('GCD check for ' .. spellName .. ' ' .. cooldownLeft);
                if (cooldownLeft < 1500 and cooldownLeft ~= 0) then
                    return cooldownLeft / 1000;
                end
            end

            i = i + 1;
        end

        return 0;
        ";

        return Lua.LuaDoString<float>(luaString);
    }

Correct me if I'm wrong, but this should work (pure Lua, vanilla). Checks 10 first spells in spellbook for their cd. Rogues have 1 second GCD tho, so idk

Yep works. I already pointed Droidz towards your shit Schaka. ?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.