LUA Function to check if Global Cooldown is done. menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Wopak's Avatar Active Member
    Reputation
    59
    Join Date
    Jul 2008
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Function to check if Global Cooldown is done.

    -- Global Cooldown Check
    -- Call it with:
    -- if not GCDDone() then return; end
    function GCDDone(spellName)
    local spellID = nil;
    if spellName == nil then spellID = 61304; end
    if spellID == nil then
    local spellID = GetSpellID(spellName);
    end

    local minValue = 0.05;
    local maxValue = 0.3;
    local curPing = tonumber((select(3, GetNetStats()) + select(4, GetNetStats())) / 1000) + .025;

    if curPing < minValue then
    curPing = minValue;
    elseif curPing > maxValue then
    curPing = maxValue;
    end

    if GetSpellCooldown(spellID) - curPing <= 0 then
    return true;
    end
    return false;
    end

    LUA Function to check if Global Cooldown is done.
  2. #2
    CrazyCactuaR's Avatar Contributor
    Reputation
    84
    Join Date
    Sep 2008
    Posts
    201
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mind = blown.
    (╯°□°)╯︵┻━┻ ლ(ಠ益ಠლ

  3. #3
    Iaccidentallytwink's Avatar Elite User
    Reputation
    590
    Join Date
    Aug 2007
    Posts
    1,020
    Thanks G/R
    1/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lawlwut .

  4. #4
    Netzgeist's Avatar Contributor
    Reputation
    144
    Join Date
    Jan 2008
    Posts
    353
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +5 from me. excellent!
    regards,
    NG

  5. #5
    Kwapuzzi's Avatar Member
    Reputation
    12
    Join Date
    Apr 2007
    Posts
    62
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    10 Years later necroing this thread with a small fix for pixel based things. But big thanks for the snipped, works now like a charme.

    -- Global Cooldown Check
    -- Call it with:
    -- if not GCDDone() then return; end
    function GCDDone(spellName)
    local spellID = nil;
    if spellName == nil then spellID = 61304; end
    if spellID == nil then
    local spellID = GetSpellID(spellName);
    end

    local minValue = 0.05;
    local maxValue = 0.3;
    local curPing = tonumber((select(3, GetNetStats()) + select(4, GetNetStats())) / 1000) + .025;

    if curPing < minValue then
    curPing = minValue;
    elseif curPing > maxValue then
    curPing = maxValue;
    end

    if GetSpellCooldown(spellID) - curPing <= 0 then
    print("No GCD")
    return true;
    else
    print("GCD")
    return false;
    end
    end

Similar Threads

  1. Checking for global cooldown
    By namreeb in forum WoW Memory Editing
    Replies: 15
    Last Post: 07-08-2009, 03:00 PM
  2. No Global Cooldown For druids
    By Alisar in forum WoW EMU Exploits & Bugs
    Replies: 9
    Last Post: 06-21-2008, 04:05 AM
  3. No Icelance Global Cooldown!!
    By lundish in forum WoW EMU Exploits & Bugs
    Replies: 21
    Last Post: 04-24-2008, 06:42 AM
  4. No Global-Cooldown on any spell/ability. [NOT WPE]
    By shadeburn in forum WoW EMU Exploits & Bugs
    Replies: 6
    Last Post: 04-07-2008, 08:30 AM
  5. No more Global Cooldown on your spells.
    By zephiroth in forum World of Warcraft Bots and Programs
    Replies: 31
    Last Post: 03-23-2008, 10:02 PM
All times are GMT -5. The time now is 12:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search