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

[Kiting] Combine "Attack Move Click" and "Target champions only"

kite kiting attack move target champion attack move click target champions target champions only target champion only script

Best Answer asas , 01 April 2016 - 02:43

I'm not the best coder but here we go:

function TS()
	tg = nil
	for k,v in pairs(GetEnemyHeroes()) do 
		if v and GetTeam(v) ~= GetTeam(GetMyHero()) and IsVisible(v) and GetCurrentHP(v) > 0 then
			if not tg then
				tg = v
			elseif tg then
				local vp = GetOrigin(v)
				local tgp = GetOrigin(tg)
				local mp = GetMousePos()
				local vDis = GetDistance(mp,vp)
				local tDis = GetDistance(mp,tgp)
				if vDis and tDis and vDis < tDis then
					tg = v
				end
			end
		end
	end
end

OnTick(function(myHero)
	TS()
end)

OnWndMsg(function (msg, param)
	
	if param == 81 then
		if msg == 256 and not click then	
			click = true		
			if tg and GetDistance(tg) <= GetRange(myHero) + 50 then
				AttackUnit(tg)
			else
				MoveToXYZ(GetMousePos())
			end
			
		elseif msg == 257 then
			click = false
		end
	end
	
end)

When you press Q, if there is any enemy hero in your AA range, you will attack the closest to your mouse, else, your hero will move to mouse pos.

Go to the full post »


  • Please log in to reply
41 replies to this topic

#41
todor00

todor00

    Newbie

  • Members
  • 3 posts

maybe downawoad autohotkey for this macro ?  GIve me macro for target champion and Autoatack  ok ? please


Edited by todor00, 08 March 2017 - 09:13 .

  • 0

#42
todor00

todor00

    Newbie

  • Members
  • 3 posts

how to use ?


  • 0





Also tagged with one or more of these keywords: kite, kiting, attack move, target champion, attack move click, target champions, target champions only, target champion only, script

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users