Advertisement
Cloudhax23

Untitled

Aug 16th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. Config = scriptConfig("Lucian", "Lucian:")
  2. Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
  3. Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
  4. Config.addParam("E", "Use E To Mouse", SCRIPT_PARAM_ONOFF, true)
  5. Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
  6. DrawingsConfig = scriptConfig("Drawings", "Drawings:")
  7. DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
  8. DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
  9. DrawingsConfig.addParam("DrawR","Draw R", SCRIPT_PARAM_ONOFF, true)
  10.  
  11.  
  12.  
  13. myIAC = IAC()
  14.  
  15. OnLoop(function(myHero)
  16. Drawings()
  17.  
  18.  
  19. if IWalkConfig.Combo then
  20. local target = GetTarget(1300, DAMAGE_PHYSICAL)
  21. local mousePos = GetMousePos()
  22. if ValidTarget(target, 1300) then
  23. if Config.Q then
  24. if IsInDistance(target, GetCastRange(myHero, _Q)) and GotBuff(myHero, "lucianpassivebuff") == 0
  25. then CastTargetSpell(target, _Q)
  26. -- Heres where if GOtbuff is OVER the VALUE of 0
  27. elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
  28. -- If lucian has the buff we want to attack the target before we CONTINUE anything.
  29. Attacktarget(target)
  30. end
  31. end
  32. if Config.W then
  33. local WPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1600,300,GetCastRange(myHero, _W),80,true,true)
  34. if IsInDistance(target, GetCastRange(myHero, _W)) and GotBuff(myHero, "lucianpassivebuff") == 0
  35. then CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
  36. -- Heres where if GOtbuff is OVER the VALUE of 0
  37. elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
  38. -- If lucian has the buff we want to attack the target before we CONTINUE anything.
  39. Attacktarget(target)
  40. if Config.W then
  41. end
  42. end
  43. if Config.E then
  44. if IsInDistance(target, GetCastRange(myHero, _W)) and GotBuff(myHero, "lucianpassivebuff") == 0
  45. then CastSkillShot(_E, mousePos.x, mousePos.y, mousePos.z)
  46. -- Heres where if GOtbuff is OVER the VALUE of 0
  47. elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
  48. -- If lucian has the buff we want to attack the target before we CONTINUE anything.
  49. Attacktarget(target)
  50. end
  51. end
  52. local RPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),2800,550,1400,110,true,true)
  53. if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_R)) and Config.R then
  54. CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
  55. end
  56. end
  57. end
  58. end
  59. end)
  60.  
  61. function Drawings()
  62. myHeroPos = GetOrigin(myHero)
  63. if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,Un,0xff00ff00) end
  64. if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_E),3,100,0xff00ffc0) end
  65. if CanUseSpell(myHero, _R) == READY and DrawingsConfig.DrawR then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_R),3,100,0xff00ffd0) end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement