sociophobia

VAYNE v2

Jul 27th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. --done by Laiha -- REWORKED--
  4. Table = { noa = 0 }
  5. require('Inspired')
  6. require('IWalk')
  7. AddInfo("Vayne", "Gosu Vayne:")
  8. AddButton("Q", "Use Q gosu logic", true)
  9. AddButton("E", "Use E gosu logic", true)
  10. AddButton("Activator", "Use Activator", true)
  11.  
  12. OnLoop(function(myHero)
  13.     IWalk()
  14.         for _, unit in pairs(GetEnemyHeroes()) do
  15.             local unitPos=GetOrigin(unit)
  16.             local drawPos = WorldToScreen(1,unitPos.x,unitPos.y,unitPos.z)
  17.             local damage=GetCurrentHP(unit)/(GetBaseDamage(myHero)+GetBonusDmg(myHero))
  18.         if(GetCastLevel(myHero, _W) > 0 then
  19.         local tdamage= damage/3
  20.         local ndamage= damage-rdamage
  21.         if GetCastLevel(myHero, _W) == 1 then
  22.             damage=  20  +GetMaxHP(unit)/100*4+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
  23.         elseif GetCastLevel(myHero, _W)==2
  24.             damage=  30  +GetMaxHP(unit)/100*5+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
  25.         elseif GetCastLevel(myHero, _W)==3
  26.             damage=  40  +GetMaxHP(unit)/100*6+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
  27.         elseif GetCastLevel(myHero, _W)==2
  28.             damage=  50  +GetMaxHP(unit)/100*7+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
  29.         elseif GetCastLevel(myHero, _W)==2
  30.             damage=  60  +GetMaxHP(unit)/100*8+(GetBaseDamage(myHero)+GetBonusDmg(myHero)
  31.         end
  32.         end
  33.             DrawText( math.ceil(damage+0,5) .." AA to kill",20,drawPos.x,drawPos.y,0xffffffff)
  34.         local vectorx = unitPos.x-GetOrigin(myHero).x
  35.         local vectory = unitPos.y-GetOrigin(myHero).y
  36.         local vectorz = unitPos.z-GetOrigin(myHero).z
  37.         local dist= math.sqrt(vectorx^2+vectory^2+vectorz^2)
  38.         ourcoord={x = unitPos.x + 450 * vectorx / dist ,y = unitPos.y + 450 * vectory / dist, z = unitPos.z + 450 * vectorz / dist}
  39.         DrawCircle(ourcoord.x,ourcoord.y,ourcoord.z,25,1,1,0xffffffff)
  40.         end
  41.     if GetKeyValue("Combo") then
  42.         local unit = GetTarget(1000)
  43.         if ValidTarget(unit, 550) then
  44.             local stacks= GotBuff(unit,"VayneSilveredBolts")
  45.             if GetButtonValue("Q") then
  46.                 if CanUseSpell(myHero, _Q) == READY and stacks>1 then
  47.                         local mousePos=GetMousePos()
  48.                         CastSkillShot(_Q,mousePos.x,mousePos.y,mousePos.z)
  49.                 end
  50.             end
  51.             --if GetButtonValue("E") then
  52.                 --AddGapcloseEvent(_E, 450, unit)  
  53.             --end
  54.                        
  55.             --if GetButtonValue("E") then
  56.                 --if CanUseSpell(myHero,_E) == READY and ((GetCurrentHP(myHero)/(GetMaxHP(myHero)/100))) < 26 then
  57.                     --CastTargetSpell(unit, _R)
  58.                 --end
  59.             --end
  60.             if  GetButtonValue("Activator") then
  61.                 if GetItemSlot(myHero,3153)>0 then
  62.                     CastTargetSpell(unit, GetItemSlot(myHero,3153))
  63.                 end
  64.                 if GetItemSlot(myHero,3144)>0 then
  65.                     CastTargetSpell(unit, GetItemSlot(myHero,3144))
  66.                 end
  67.                 if GetItemSlot(myHero,3142)>0 then
  68.                     CastTargetSpell(unit, GetItemSlot(myHero,3142))
  69.                 end
  70.             end
  71.         end
  72.         --if  GetButtonValue("Activator") then
  73.             --CastItem(myHero,GetItemSlot(myHero,3140))
  74.             --CastItem(myHero,GetItemSlot(myHero,3149))
  75.         --end  
  76.     end
  77.  
  78. end)
  79. AddGapcloseEvent(_E, 450, true)
  80.  
  81. --IM THE FIRST ONE WHO DOES THAT , GIVE ME THE HONORS SLUTS AND USE CREDITS BEFORE I FKING RAPE YOU ASSHOLE
  82. --OnProcessSpell(function(unit, spell)
  83. --if unit and unit == myHero and spell then
  84.     --if spell.name:lower():find("attack") then
  85.         --Table.noa=Table.noa+1
  86.         --if Table.noa > 3 then
  87.             --Table.noa=0
  88.         --end
  89.     --end
  90. --end
  91.                
  92. --end)
Advertisement
Add Comment
Please, Sign In to add comment