Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --done by Laiha (shi) , SPECIAL THANKS TO INSPIRED
- require('Inspired')
- require('IWalk')
- AddInfo("Vayne", "Gosu Vayne:")
- AddButton("Q", "Use Q gosu logic", true)
- AddButton("E", "Use E gosu logic", true)
- AddButton("Activator", "Use Activator", true)
- OnLoop(function(myHero)
- IWalk()
- for _, unit in pairs(GetEnemyHeroes()) do
- local unitPos=GetOrigin(unit)
- local drawPos = WorldToScreen(1,unitPos.x,unitPos.y,unitPos.z)
- local damage=GetCurrentHP(unit)/(GetBaseDamage(myHero)+GetBonusDmg(myHero))
- DrawText( math.ceil(damage+0,5) .." AA to kill",20,drawPos.x,drawPos.y,0xffffffff)
- local vectorx = unitPos.x-GetOrigin(myHero).x
- local vectory = unitPos.y-GetOrigin(myHero).y
- local vectorz = unitPos.z-GetOrigin(myHero).z
- local dist= math.sqrt(vectorx^2+vectory^2+vectorz^2)
- ourcoord={x = unitPos.x + 450 * vectorx / dist ,y = unitPos.y + 450 * vectory / dist, z = unitPos.z + 450 * vectorz / dist}
- DrawCircle(ourcoord.x,ourcoord.y,ourcoord.z,25,1,1,0xffffffff)
- end
- if GetKeyValue("Combo") then
- local unit = GetTarget(1000)
- if ValidTarget(unit, 550) then
- for i=0,63 do
- if GetBuffCount(myHero, i) > 2 then
- if GetBuffName(myHero, i):lower():find("silver bolts") then
- if GetButtonValue("Q") then
- if CanUseSpell(myHero, _Q) == READY then
- local mousePos=GetMousePos()
- CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
- end
- end
- end
- end
- end
- --if GetButtonValue("E") then
- --AddGapcloseEvent(_E, 450, unit)
- --end
- --if GetButtonValue("E") then
- --if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
- --CastTargetSpell(unit, _R)
- --end
- --end
- if GetButtonValue("Activator") then
- if GetItemSlot(myHero,3153)>0 then
- CastTargetSpell(unit, GetItemSlot(myHero,3153))
- end
- if GetItemSlot(myHero,3144)>0 then
- CastTargetSpell(unit, GetItemSlot(myHero,3144))
- end
- if GetItemSlot(myHero,3142)>0 then
- CastTargetSpell(unit, GetItemSlot(myHero,3142))
- end
- end
- end
- --if GetButtonValue("Activator") then
- --CastItem(myHero,GetItemSlot(myHero,3140))
- --CastItem(myHero,GetItemSlot(myHero,3149))
- --end
- end
- end)
- AddGapcloseEvent(_E, 450, true)
Advertisement
Add Comment
Please, Sign In to add comment