Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Simple cooldown data


  • Please log in to reply
No replies to this topic

#1
francoiz

francoiz

    Newbie

  • Members
  • 3 posts

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:
 
 ac0cbf0125810e2bf78a234df15ec458.png
 
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!


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users