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

How to Disable autoattack, and check !hasbuff?


  • Please log in to reply
2 replies to this topic

#1
Cola44

Cola44

    Newbie

  • Members
  • 7 posts

So I remember in elobuddy I added some lines to check if Viktor has Siphon power buff to disable enable auto attacking in combo mode, so Viktor can kite better, not auto attacking when Q is on CD. How to disable auto attacking, and what is the equivelent to the if !hasbuff ? Also In Eb there was a tool to check what each buff was called, anybody know offhand what Viktors empowered autobuff is?


  • 0

#2
puszyy

puszyy

    Advanced Member

  • Members
  • 69 posts

Im amateur in making scripts there but I can show you my way :P
To check proper buff name I use GetBuffName(obj, index) and DrawText. As obj use myHero, and as index write numbers from 0 to 63 in sequence to find out buff name what u want (usually its not more than 20).
There simpe code:

OnDraw(function(myHero)
    local drawPos = WorldToScreen(1,GetOrigin(myHero))
	DrawText(GetBuffName(myHero, 0),80,drawPos.x,drawPos.y,0xFF00FF00)
end)

To disable AA in combo you must to disable proper orbwalker.

For IOW:

if _G.IOW then
		IOW.attacksEnabled = false
end

For GoSWalk:

if _G.GoSWalkLoaded then
		_G.GoSWalk:EnableAttack(false)
end

Then if your want to get clear hit with Viktor Q use  AttackUnit(target)


Edited by puszyy, 25 March 2018 - 12:31 .

  • 0

#3
Cola44

Cola44

    Newbie

  • Members
  • 7 posts

Ok thanks, this did the trick:
 

OnUpdateBuff(function(unit,buff) if unit == myHero and buff.Name == "ViktorPowerTransferReturn" then IOW.attacksEnabled = true end end) OnRemoveBuff(function(unit,buff) if unit == myHero and buff.Name == "ViktorPowerTransferReturn" then IOW.attacksEnabled = false end end)


Edited by Cola44, 25 March 2018 - 05:14 .

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users