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?
Login to Account Create an Account
How to Disable autoattack, and check !hasbuff?
#1
Posted 24 March 2018 - 09:22
#2
Posted 25 March 2018 - 12:24
Im amateur in making scripts there but I can show you my way
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 .
#3
Posted 25 March 2018 - 05:11
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 .
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users