Hi, I have been banned in Lol las. I was making a tool, but as I was banned I left the tool abandoned.
I had planned to add the cooldown time, anyway the tool works.
The tool gives information about the cooldown of the nearest enemy's skills.
Image of the tool:
The code:
require("Inspired") function campeonCercano(myHero) local masCercano = math.round(GetDistance(myHero,campeonesEnemigos[1])) local i = 2 local indice = 1 while i <= #campeonesEnemigos do if math.round(GetDistance(myHero,campeonesEnemigos[i])) < masCercano then masCercano = math.round(GetDistance(myHero,campeonesEnemigos[i])) indice = i end i = i + 1 end return campeonesEnemigos[indice] end campeonesEnemigos = {} OnLoad(function() for key, value in pairs(GetEnemyHeroes()) do if value ~= nil then table.insert(campeonesEnemigos, value) end end end) OnDraw(function(myHero) enemigo = campeonCercano(myHero) DrawText(GetObjectName(enemigo), 12, 20, 100, 0xffffffff) aux = {"Q", "W", "E", "R", "D", "F"} for clave, valor in pairs(aux) do if CanUseSpell(enemigo, clave-1) == 8 then DrawText(valor..": Ready", 12, 20, 100 + (clave)*10, 0xff01df01) else DrawText(valor..": Cooldown", 12, 20, 100 + (clave)*10, 0xffdf0101) end end end)
Sorry for my bad english, i hope someone is useful!