Created
August 14, 2011 22:50
-
-
Save gig3m/1145413 to your computer and use it in GitHub Desktop.
Item CD check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jps.get_item_cooldown(slot) | |
local start,duration,_ = GetInventoryItemCooldown("player", slot) | |
local cd = start+duration-GetTime()-jps.Lag | |
if cd < 0 then return 0 end | |
return cd | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment