Advertisement
sociophobia

vayne

Jul 20th, 2015
3,447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.50 KB | None | 0 0
  1. require('MapPositionGOS')
  2. require('MapPosition') --put these libs in your COMMON
  3. require('MapPosition_walls_1_1') --put these libs in your COMMON  
  4. require('MapPosition_bushes_1')
  5. require('2DGeometry')--put these libs in your COMMON
  6.  
  7.  
  8. --vayne version 0.0.8 // credits to maxxel deftsu inspired
  9. PrintChat("its funny how people can copy the script edit this and pretend they did it huh?")
  10. OnLoop(function(myHero)
  11.     for _, Targets in pairs(GetEnemyHeroes()) do
  12.    local TargetPos=GetOrigin(Targets)
  13.    local drawPos = WorldToScreen(1, TargetPos.x, TargetPos.y, TargetPos.z) -- Draw Position for AA Text
  14.    local Damage = GetBaseDamage(myHero) + GetBonusDmg(myHero) -- Damage without W extra Damage
  15.    if GetCastLevel(myHero, _W) > 0 then -- Check if W is skilled
  16. if GetCastLevel(myHero, _W) == 1 then      -- W Spell Level 1
  17. Damage = 20 + (GetMaxHP(Targets) / 100 * 4) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
  18. elseif GetCastLevel(myHero, _W) == 2 then  -- W Spell Level 2
  19. Damage = 30 + (GetMaxHP(Targets) / 100 * 5) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
  20. elseif GetCastLevel(myHero, _W) == 3 then  -- W Spell Level 3
  21. Damage = 40 + (GetMaxHP(Targets) / 100 * 6) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
  22. elseif GetCastLevel(myHero, _W) == 4 then  -- W Spell Level 4
  23. Damage = 50 + (GetMaxHP(Targets) / 100 * 7) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
  24. elseif GetCastLevel(myHero, _W) == 5 then  -- W Spell Level 5
  25. Damage = 60 + (GetMaxHP(Targets) / 100 * 8) + (GetBaseDamage(myHero) + GetBonusDmg(myHero))
  26. end
  27. end
  28. if GetCastLevel(myHero, _W) == 0 then
  29. DrawText((math.floor(GetCurrentHP(Targets) / Damage) + 0.0) .." AA to Kill", 20, drawPos.x, drawPos.y, 0xffffffff)
  30. elseif GetCastLevel(myHero, _W) >= 1 then  -- W Spell Level 1 or higher
  31. DrawText((math.floor(GetCurrentHP(Targets) / Damage * 2) + 0.0) .." AA to Kill", 20, drawPos.x, drawPos.y, 0xffffffff)
  32. end
  33.     end
  34. if KeyIsDown(0x20) then
  35. local unit = GetTarget(1000)
  36. AutoE()
  37. if ValidTarget(unit, 550) then
  38. local stacks= GotBuff(unit,"VayneSilveredBolts")
  39.  
  40. if CanUseSpell(myHero, _Q) == READY and stacks>1 then
  41. local mousePos=GetMousePos()
  42. CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
  43. end
  44. --if GetButtonValue("E") then
  45. --AddGapcloseEvent(_E, 450, unit)
  46. --end
  47.  
  48. --if GetButtonValue("E") then
  49. --if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
  50. --CastTargetSpell(unit, _R)
  51. --end
  52. --end
  53.  
  54. if GetItemSlot(myHero,3153)>0 then
  55. CastTargetSpell(unit, GetItemSlot(myHero,3153))
  56. end
  57. if GetItemSlot(myHero,3144)>0 then
  58. CastTargetSpell(unit, GetItemSlot(myHero,3144))
  59. end
  60. if GetItemSlot(myHero,3142)>0 then
  61. CastTargetSpell(unit, GetItemSlot(myHero,3142))
  62. end
  63.  
  64. end
  65. --if  GetButtonValue("Activator") then
  66. --CastItem(myHero,GetItemSlot(myHero,3140))
  67. --CastItem(myHero,GetItemSlot(myHero,3149))
  68. --end
  69. end
  70.  
  71. end)
  72. AddGapcloseEvent(_E, 450, true)
  73.  
  74. --IM THE FIRST ONE WHO DOES THAT , GIVE ME THE HONORS SLUTS AND USE CREDITS BEFORE I FKING RAPE YOU *******
  75. --OnProcessSpell(function(unit, spell)
  76. --if unit and unit == myHero and spell then
  77. --if spell.name:lower():find("attack") then
  78. --Table.noa=Table.noa+1
  79. --if Table.noa > 3 then
  80. --Table.noa=0
  81. --end
  82. --end
  83. --end
  84.  
  85. --end)
  86.  
  87. function AutoE()
  88. for _,unit in pairs(GetEnemyHeroes()) do
  89. if ValidTarget(unit,20000) then
  90. local enemyposx,enemyposy,enemypoz,selfx,selfy,selfz
  91. local distance1=24
  92. local distance2=118
  93. local distance3=212
  94. local distance4=306
  95. local distance5=400
  96. --setting enemyPos--
  97. local enemyposition = GetOrigin(unit)
  98. enemyposx=enemyposition.x
  99. enemyposy=enemyposition.y
  100. enemyposz=enemyposition.z
  101. local TargetPos = Vector(enemyposx,enemyposy,enemyposz)
  102. --setting coordinates myHero--
  103. local self=GetOrigin(myHero)
  104. selfx = self.x
  105. selfy = self.y
  106.     selfz = self.z
  107. local HeroPos = Vector(selfx, selfy, selfz)
  108.     ------------------------------
  109. local Pos1 = TargetPos-(TargetPos-HeroPos)*(-distance1/GetDistance(unit))
  110. local Pos2 = TargetPos-(TargetPos-HeroPos)*(-distance2/GetDistance(unit))
  111. local Pos3 = TargetPos-(TargetPos-HeroPos)*(-distance3/GetDistance(unit))
  112. local Pos4 = TargetPos-(TargetPos-HeroPos)*(-distance4/GetDistance(unit))
  113. local Pos5 = TargetPos-(TargetPos-HeroPos)*(-distance5/GetDistance(unit))
  114.  
  115. if MapPosition:inWall(Pos1)==false then
  116. DrawCircle(Pos1.x,Pos1.y,Pos1.z,20,10,0,0xffff0000)
  117. elseif MapPosition:inWall(Pos1)==true then
  118. DrawCircle(Pos1.x,Pos1.y,Pos1.z,20,10,0,0xff00ff00)
  119. if GetDistance(unit)<=550 then
  120. CastTargetSpell(unit, _E)
  121. end
  122. end
  123. if MapPosition:inWall(Pos2)==false then
  124. DrawCircle(Pos2.x,Pos2.y,Pos2.z,20,10,0,0xffff0000)
  125. elseif MapPosition:inWall(Pos2)==true then
  126. DrawCircle(Pos2.x,Pos2.y,Pos2.z,20,10,0,0xff00ff00)
  127. if GetDistance(unit)<=550 then
  128. CastTargetSpell(unit, _E)
  129. end
  130. end
  131. if MapPosition:inWall(Pos3)==false then
  132. DrawCircle(Pos3.x,Pos3.y,Pos3.z,20,10,0,0xffff0000)
  133. elseif MapPosition:inWall(Pos3)==true then
  134. DrawCircle(Pos3.x,Pos3.y,Pos3.z,20,10,0,0xff00ff00)
  135. if GetDistance(unit)<=550 then
  136. CastTargetSpell(unit, _E)
  137. end
  138. end
  139. if MapPosition:inWall(Pos4)==false then
  140. DrawCircle(Pos4.x,Pos4.y,Pos4.z,20,10,0,0xffff0000)
  141. elseif MapPosition:inWall(Pos4)==true then
  142. DrawCircle(Pos4.x,Pos4.y,Pos4.z,20,10,0,0xff00ff00)
  143. if GetDistance(unit)<=550 then
  144. CastTargetSpell(unit, _E)
  145. end
  146. end
  147. if MapPosition:inWall(Pos5)==false then
  148. DrawCircle(Pos5.x,Pos5.y,Pos5.z,20,10,0,0xffff0000)
  149. elseif MapPosition:inWall(Pos5)==true then
  150. DrawCircle(Pos5.x,Pos5.y,Pos5.z,20,10,0,0xff00ff00)
  151. if GetDistance(unit)<=550 then
  152. CastTargetSpell(unit, _E)
  153. end
  154. end
  155. end
  156. end
  157. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement