sociophobia

vayne beta

Jul 26th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. --done by Laiha (shi) , SPECIAL THANKS TO INSPIRED
  2. require('Inspired')
  3. require('IWalk')
  4. AddInfo("Vayne", "Gosu Vayne:")
  5. AddButton("Q", "Use Q gosu logic", true)
  6. AddButton("E", "Use E gosu logic", true)
  7. AddButton("Activator", "Use Activator", true)
  8.  
  9. OnLoop(function(myHero)
  10. IWalk()
  11.  
  12. for _, unit in pairs(GetEnemyHeroes()) do
  13. local unitPos=GetOrigin(unit)
  14. local drawPos = WorldToScreen(1,unitPos.x,unitPos.y,unitPos.z)
  15. local damage=GetCurrentHP(unit)/(GetBaseDamage(myHero)+GetBonusDmg(myHero))
  16. DrawText( math.ceil(damage+0,5) .." AA to kill",20,drawPos.x,drawPos.y,0xffffffff)
  17. local vectorx = unitPos.x-GetOrigin(myHero).x
  18. local vectory = unitPos.y-GetOrigin(myHero).y
  19. local vectorz = unitPos.z-GetOrigin(myHero).z
  20. local dist= math.sqrt(vectorx^2+vectory^2+vectorz^2)
  21. ourcoord={x = unitPos.x + 450 * vectorx / dist ,y = unitPos.y + 450 * vectory / dist, z = unitPos.z + 450 * vectorz / dist}
  22. DrawCircle(ourcoord.x,ourcoord.y,ourcoord.z,25,1,1,0xffffffff)
  23. end
  24. if GetKeyValue("Combo") then
  25. local unit = GetTarget(1000)
  26. if ValidTarget(unit, 550) then
  27. for i=0,63 do
  28. if GetBuffCount(myHero, i) > 2 then
  29. if GetBuffName(myHero, i):lower():find("silver bolts") then
  30. if GetButtonValue("Q") then
  31. if CanUseSpell(myHero, _Q) == READY then
  32. local mousePos=GetMousePos()
  33. CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
  34. end
  35. end
  36. end
  37. end
  38. end
  39. --if GetButtonValue("E") then
  40. --AddGapcloseEvent(_E, 450, unit)
  41. --end
  42.  
  43. --if GetButtonValue("E") then
  44. --if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
  45. --CastTargetSpell(unit, _R)
  46. --end
  47. --end
  48. if GetButtonValue("Activator") then
  49. if GetItemSlot(myHero,3153)>0 then
  50. CastTargetSpell(unit, GetItemSlot(myHero,3153))
  51. end
  52. if GetItemSlot(myHero,3144)>0 then
  53. CastTargetSpell(unit, GetItemSlot(myHero,3144))
  54. end
  55. if GetItemSlot(myHero,3142)>0 then
  56. CastTargetSpell(unit, GetItemSlot(myHero,3142))
  57. end
  58. end
  59. end
  60. --if GetButtonValue("Activator") then
  61. --CastItem(myHero,GetItemSlot(myHero,3140))
  62. --CastItem(myHero,GetItemSlot(myHero,3149))
  63. --end
  64. end
  65.  
  66. end)
  67. AddGapcloseEvent(_E, 450, true)
Advertisement
Add Comment
Please, Sign In to add comment