Advertisement
Cloudhax23

Untitled

Jul 31st, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1.  
  2. --Menu
  3. Config = scriptConfig("Syndra", "Syndra.lua")
  4. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  5. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  6. Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
  7. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  8. --Start
  9. OnLoop(function(myHero)
  10. local target = GetCurrentTarget()
  11. if ValidTarget(target, math.huge) then
  12. if KeyIsDown(32) then
  13. castQ(target)
  14. castW(target)
  15. castW(target)
  16. castE(target)
  17. castr(target)
  18. end
  19. end
  20. end
  21. -- End
  22. -- Q cast
  23. )function castQ( target )
  24. if GetButtonValue("Q") then
  25. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_Q),800,false,true)
  26. if IsInDistance(target, GetCastRange(myHero,_Q)) and CanUseSpell(myHero,_Q) == READY and pred.HitChance == 1 then
  27. CastSkillShot(_Q,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
  28. end
  29. end
  30. -- W cast
  31. )function castW( target )
  32. if GetButtonValue("W") then
  33. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),925 false,true)
  34. if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
  35. CastTargetSpell(_W, DarkSphere)
  36. end
  37. end
  38. )function castW( target )
  39. if GetButtonValue("W") then
  40. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),900 false,true)
  41. if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
  42. CastTargetSpell(unit, _W)
  43. end
  44. end
  45. -- E cast
  46. end
  47. function castE( target )
  48. if GetButtonValue("E") then
  49. pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),700 false,true)
  50. if IsInDistance(target, GetCastRange(myHero,_E)) and CanUseSpell(myHero,_E) == READY and CanUseSpell(myHero, _Q) then
  51. CastSkillShot(_Q, GetMousePos().x, GetMousePos().y, GetMousePos().z) then
  52. CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
  53. end
  54. end
  55.  
  56. -- R cast
  57. function castR( target )
  58. if GetButtonValue("R") then
  59. if IsInDistance(target, GetCastRange(myHero,_R)) and CanUseSpell(myHero,_R) == READY then
  60. CastTargetSpell(unit,_R )
  61. end
  62. end
  63. end
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement