end |
|
function lib:GetCooldownByCmd(cmd,watch) |
if cmd=='spell' then |
return GetSpellCooldown(tonumber(watch) or watch) |
elseif cmd=='item' then |
return GetItemCooldown(tonumber(watch) or watch) |
elseif cmd=='flag' then |
return GetInventoryItemCooldown("player", watch) |
else |
error(tostring(cmd)..' is an invalid Command') |
if watch then |
if cmd=='spell' then |
return GetSpellCooldown(tonumber(watch) or watch) |
elseif cmd=='item' then |
return GetItemCooldown(tonumber(watch) or watch) |
elseif cmd=='flag' then |
return GetInventoryItemCooldown("player", watch) |
else |
error(tostring(cmd)..' is an invalid Command') |
end |
else |
return 0,0,0 |
end |
end |
|