Advertisement
Cloudhax23

Untitled

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