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

#1
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

Hey there, I was wondering if we could combine these two features using a script

 

When I press on the Target champions only button and then use attack move click, I still auto attack the creeps

 

Edit: I'm thinking about someting like this:

Event: Press [Q] (function) {
     if (*an ennemy is in auto-attack range* == true) {
     -> *auto-attack the closest champion from the cursor*
     }
     else {
     -> *move to click position*
     }
}

  • 0

#2
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

Use combo?


  • 1

#3
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

When I press on "Target champs only" and "attack move click" at the same time, I still attack the nearest target, not the nearest champion

 

So i'm just wondering if it's possible to code something like this:

Event: Press [Q] (function) {
     if (*an ennemy is in auto-attack range* == true) {
     -> *auto-attack the closest champion from the cursor*
     }
     else {
     -> *move to click position*
     }
}

But I have no idea how to develop a script


  • 0

#4
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

press SPACE


  • 0

#5
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

wut


  • 0

#6
ButterSmooth

ButterSmooth

    Advanced Member

  • Members
  • 710 posts

wut


Use an orbwalker > hold space. Profit?
  • 0

#7
asas

asas

    Member

  • Members
  • 15 posts
✓  Best Answer

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.


  • 0

#8
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

thanks, i'll give it a try

 

I'd prefer not use other sorts of scripts like orbwalker


  • 0

#9
asas

asas

    Member

  • Members
  • 15 posts

thanks, i'll give it a try

 

I'd prefer not use other sorts of scripts like orbwalker

 

If something isn't working right, just tell me and I'll try to fix it. =)


  • 0

#10
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

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.

 

this works, thank you!

 

I'm just having low fps while using GoS, I'll try to disable other scripts I don't need

 

how can I disable the other scripts? i'm getting bug splat after I delete the others .lua files

 

for example I don't need the ugly white circle around me


  • 0

#11
asas

asas

    Member

  • Members
  • 15 posts

Don't delete anything, just uncheck them on GoS or/and disable on in-game menu (F7 and shift).


  • 0

#12
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

what the ****


  • 0

#13
Icesythe7

Icesythe7

    Forum Manager

  • Contributor
  • 181 posts

Load any orbwalker and use its "Combo" key wtf am i even reading?


  • 0

#14
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts
rofl this thread Kappa
  • 0

#15
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
Wtf I'm reading
  • 0

#16
asas

asas

    Member

  • Members
  • 15 posts

??
He just wants to kite manually, what is the problem with it?


  • 0

#17
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

??
He just wants to kite manually, what is the problem with it?


Why not just use orbwalker then ?.?
  • 0

#18
Imstuckinhell

Imstuckinhell

    l o a d s e m o n e

  • +VIP
  • 841 posts

Kappa 


  • 0

#19
cantvalidateemail

cantvalidateemail

    Newbie

  • Members
  • 8 posts

Why not just use orbwalker then ?.?

 

This is too much cheating for me

 

I just think that combining attack move click and target champions only should be an in-game feature


  • 0

#20
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts

sooooooooo dense


  • 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