sociophobia

Viktor

Jul 31st, 2015
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. gapCloseList = {
  2. ['Ahri'] = {true, spell = 'AhriTumble'},
  3. ['Aatrox'] = {true, spell = 'AatroxQ'},
  4. ['Akali'] = {true, spell = 'AkaliShadowDance'},
  5. ['Alistar'] = {true, spell = 'Headbutt'},
  6. ['Diana'] = {true, spell = 'DianaTeleport'},
  7. ['Gragas'] = {true, spell = 'GragasE'},
  8. ['Graves'] = {true, spell = 'GravesMove'},
  9. ['Hecarim'] = {true, spell = 'HecarimUlt'},
  10. ['Irelia'] = {true, spell = 'IreliaGatotsu'},
  11. ['JarvanIV'] = {true, spell = 'JarvanIVDragonStrike'},
  12. ['Jax'] = {true, spell = 'JaxLeapStrike'},
  13. ['Jayce'] = {true, spell = 'JayceToTheSkies'},
  14. ['Katarina'] = {true, spell = 'KatarinaE'},
  15. ['Khazix'] = {true, spell = 'KhazixW'},
  16. ['Leblanc'] = {true, spell = 'LeblancSlide'},
  17. ['LeeSin'] = {true, spell = 'blindmonkqtwo'},
  18. ['Leona'] = {true, spell = 'LeonaZenithBlade'},
  19. ['Malphite'] = {true, spell = 'UFSlash'},
  20. ['Maokai'] = {true, spell = 'MaokaiTrunkLine',},
  21. ['MasterYi'] = {true, spell = 'AlphaStrike',},
  22. ['MonkeyKing'] = {true, spell = 'MonkeyKingNimbus'},
  23. ['Pantheon'] = {true, spell = 'PantheonW'},
  24. ['Pantheon'] = {true, spell = 'PantheonRJump'},
  25. ['Pantheon'] = {true, spell = 'PantheonRFall' },
  26. ['Poppy'] = {true, spell = 'PoppyHeroicCharge'},
  27. --['Quinn'] = {true, spell = 'QuinnE', range = 725, projSpeed = 2000, },
  28. ['Renekton'] = {true, spell = 'RenektonSliceAndDice'},
  29. ['Sejuani'] = {true, spell = 'SejuaniArcticAssault'},
  30. ['Shen'] = {true, spell = 'ShenShadowDash'},
  31. ['Tristana'] = {true, spell = 'RocketJump'},
  32. ['Tryndamere'] = {true, spell = 'Slash'},
  33. ['XinZhao'] = {true, spell = 'XenZhaoSweep'}, -- Targeted ability
  34. }
  35.  
  36. champsToStun = {
  37. { charName = "Katarina", spellName = "KatarinaR" , important = 0},
  38. { charName = "Galio", spellName = "GalioIdolOfDurand" , important = 0},
  39. { charName = "FiddleSticks", spellName = "Crowstorm" , important = 1},
  40. { charName = "FiddleSticks", spellName = "DrainChannel" , important = 1},
  41. { charName = "Nunu", spellName = "AbsoluteZero" , important = 0},
  42. { charName = "Shen", spellName = "ShenStandUnited" , important = 0},
  43. { charName = "Urgot", spellName = "UrgotSwap2" , important = 0},
  44. { charName = "Malzahar", spellName = "AlZaharNetherGrasp" , important = 0},
  45. { charName = "Karthus", spellName = "FallenOne" , important = 0},
  46. { charName = "Pantheon", spellName = "PantheonRJump" , important = 0},
  47. { charName = "Pantheon", spellName = "PantheonRFall", important = 0},
  48. { charName = "Varus", spellName = "VarusQ" , important = 1},
  49. { charName = "Caitlyn", spellName = "CaitlynAceintheHole" , important = 1},
  50. { charName = "MissFortune", spellName = "MissFortuneBulletTime" , important = 1},
  51. { charName = "Warwick", spellName = "InfiniteDuress" , important = 0}
  52. }
  53.  
  54. OnLoop(function()
  55. if KeyIsDown(0x20) then
  56. PrintChat ("loaded")
  57. combo()
  58. end
  59.  
  60. end)
  61.  
  62. local qrange=600
  63. local wrange=625
  64. local erange=1040
  65. local rrange=700
  66.  
  67.  
  68. function combo()
  69. local target= GetCurrentTarget()
  70. if ValidTarget(target,1200) then
  71. if GetDistance(myHero(), target)<540 and CanUseSpell(myHero,_E) == READY then
  72. local epred = GetPredictionForPlayer(GetMyHeroPos(),Target,GetMoveSpeed(Target),50,250,1500,80,false,false)
  73. CastSkillShot(_E, eprediction.PredPos.x, eprediction.PredPos.y, eprediction.PredPos.z)
  74. else
  75. local start = Vector(myHero) - 530 * (Vector(myHero) - Vector(target)):normalized()
  76. if start ~= nil then
  77. CastSkillShot(_E,start,epred)
  78. end
  79. end
  80. if IsInDistance(target, qrange) and CanUseSpell(myHero,_Q) == READY then
  81. CastTargetSpell(target, _Q)
  82. end
  83. if IsInDistance(target, wrange) and CanUseSpell(myHero,_W) == READY then
  84. posw = GetPredictionForPlayer(GetMyHeroPos(),Target,GetMoveSpeed(Target),1750,500,625,300,false,false)
  85. if isFacing(target,myHero()) then
  86. pw = Vector(posw) - 150 * (Vector(posw) - Vector(ts.target)):normalized()
  87. else
  88. pw = Vector(posw) + 150 * (Vector(posw) - Vector(ts.target)):normalized()
  89. end
  90. CastSkillShot(_W,pw.PredPos.x,pw.PredPos.y,pw.PredPos.z)
  91. end
  92.  
  93. if IsInDistance(target, _R) and CanUseSpell(myHero,_R) == READY then
  94. CastSkillShot(_R, GetOrigin(Target).x, GetOrigin(Target).y, GetOrigin(Target).z)
  95. controlR()
  96. end
  97.  
  98. end
  99.  
  100. function controlR(target)
  101. targetpos=GetOrigin(target)
  102. if GetCastName(myHero,_R) == "viktorchaosstormguide" then
  103. CastSkillShot(_R, targetpos.x,targetpos.y, targetpos.z)
  104. end
  105. end
  106.  
  107. function face(target,myHero)
  108. local source=GetOrigin(myHero)
  109. local sourceVector = Vector(source.visionPos.x, source.visionPos.z)
  110. local sourcePos = Vector(sourceo.x, source.z)
  111. sourceVector = (sourceVector-sourcePos):normalized()
  112. sourceVector = sourcePos + (sourceVector*(GetDistance(target, source)))
  113. return GetDistanceSqr(target, {x = sourceVector.x, z = sourceVector.y}) <= 90000
  114. end
Advertisement
Add Comment
Please, Sign In to add comment