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

#21
Meeboo

Meeboo

    Advanced Member

  • Scripts Developer
  • 786 posts
  • LocationUnited States

 

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*
     }
}

In TargetSelector choose NEAR MOUSE mode. When you press "Space" it will attack nearest champ to your mouse


  • 0

#22
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

Could someone post here a .lua file whit this script for me ? 

I am new to GoS and i dont know how to modify those codes into a luat that can work for me 

Ty !


  • 0

#23
alucard63

alucard63

    Advanced Member

  • Members
  • 38 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.

how can i install this on gamesteroide we need a (Raw) link


  • 0

#24
Ryzuki

Ryzuki

    Advanced Member

  • Contributor
  • 297 posts
  • LocationOsu!z

damm... :fappa:


  • 0

#25
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
Wait until it get update and I will make one with a target selector :fappa:
  • 0

#26
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

Those 2 post hunters are so funny haha.If you need an script to last hit creeps for you , clear lane , kite ,harass the others then why you are playing this game if you are basically doing nothing just watching an script playing for you and get your account banned because of the hight rate apm in games . All i want is something that can make my kite human when i have an real apm and not get banned . But whatever play more whit those ****ty orbwalkers that are here you won`t get banned for sure :)))


  • 0

#27
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
this code is orbwalking too but will just cancel every AA, np
  • 0

#28
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

this code is orbwalking too but will just cancel every AA, np

So you are saying that is impossible to make an script that can just modify the attack move click to target champs only ?


  • 0

#29
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

So you are saying that is impossible to make an script that can just modify the attack move click to target champs only ?


dunno why you need, we can do it if fere release IssueOrder API, but it still won't show range or anything when thet click is done.. its like it may look 40% more human than normal orbwalking cuz you wont move mouse so far from moving to attacking.. but if minions are around the target you'll have to move it to him, so far from orbwalking point to him. but should look human cause most professionals use attack-move for kiting.
  • 0

#30
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

??


  • 0

#31
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

??


  • 0

#32
asas

asas

    Member

  • Members
  • 15 posts

this code is orbwalking too but will just cancel every AA, np


It doesn't orbwalk nor cancel autos at all.

 

 

Wait until it get update and I will make one with a target selector  :fappa:

 

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)

  • 0

#33
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

@asas could you rewrite that code and replace the Q key whit left click key ? 


  • 0

#34
asas

asas

    Member

  • Members
  • 15 posts

@asas could you rewrite that code and replace the Q key whit left click key ? 

 

Try it: 

MOUSEEVENTF_RIGHTDOWN       = 0x0008;
MOUSEEVENTF_RIGHTUP         = 0x0010;


function TS()
	tg = nil
	for k,v in pairs(GetEnemyHeroes()) do 
		if v and GetTeam(v) ~= GetTeam(GetMyHero()) and IsVisible(v) and IsTargetable(v) and IsObjectAlive(v) 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 msg == 513 and IsObjectAlive(myHero) then
		if (tg and GetDistance(tg) <= GetRange(myHero) + 150) or (tg and GetDistance(tg, GetMousePos()) <= 400) then
			lol = WorldToScreen(0,Vector(tg.x, tg.y, tg.z))
			if (lol.x >= 0 and lol.x <= WINDOW_W) and (lol.y >= 0 and lol.y <= WINDOW_H) then
				AttackUnit(tg)
			end
		else
			mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0) 
			DelayAction(function() mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0) end, math.random(0.050,0.080))
		end
	end
	
end)

-> http://pastebin.com/LqqKJJL2 (don't save it as a .txt file)


  • 0

#35
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

It doesn't orbwalk nor cancel autos at all.


A good one, anyway I'm not supporting this idea anymore cause :lazy:
  • 0

#36
xskyclaw

xskyclaw

    Member

  • Members
  • 15 posts

@asas you are a genius big up bro ty ! 


  • 0

#37
asas

asas

    Member

  • Members
  • 15 posts

@asas you are a genius big up bro ty ! 

 

I'm still learning, but If it isn't working as you want or if you want some feature, just tell me and I'll try to fix/do it.

 

  • 0

#38
darkie

darkie

    Member

  • Members
  • 10 posts

The "Space" combo makes adc's stutter when kitting especially Vayne and jinx I'd like a good Kite script too


  • 0

#39
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp

The "Space" combo makes adc's stutter when kitting especially Vayne and jinx I'd like a good Kite script too

aka orbwalker


  • 0

#40
todor00

todor00

    Newbie

  • Members
  • 3 posts

i need help. Maybe downawaod autohotkey ?


  • 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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users