Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = scriptConfig("Lucian", "Lucian:")
- Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("E", "Use E To Mouse", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig = scriptConfig("Drawings", "Drawings:")
- DrawingsConfig.addParam("DrawQ","Draw Q", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig.addParam("DrawE","Draw E", SCRIPT_PARAM_ONOFF, true)
- DrawingsConfig.addParam("DrawR","Draw R", SCRIPT_PARAM_ONOFF, true)
- myIAC = IAC()
- OnLoop(function(myHero)
- Drawings()
- if IWalkConfig.Combo then
- local target = GetTarget(1300, DAMAGE_PHYSICAL)
- local mousePos = GetMousePos()
- if ValidTarget(target, 1300) then
- if Config.Q then
- if IsInDistance(target, GetCastRange(myHero, _Q)) and GotBuff(myHero, "lucianpassivebuff") == 0
- then CastTargetSpell(target, _Q)
- -- Heres where if GOtbuff is OVER the VALUE of 0
- elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
- -- If lucian has the buff we want to attack the target before we CONTINUE anything.
- Attacktarget(target)
- end
- end
- if Config.W then
- local WPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),1600,300,GetCastRange(myHero, _W),80,true,true)
- if IsInDistance(target, GetCastRange(myHero, _W)) and GotBuff(myHero, "lucianpassivebuff") == 0
- then CastSkillShot(_W,WPred.PredPos.x,WPred.PredPos.y,WPred.PredPos.z)
- -- Heres where if GOtbuff is OVER the VALUE of 0
- elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
- -- If lucian has the buff we want to attack the target before we CONTINUE anything.
- Attacktarget(target)
- if Config.W then
- end
- end
- if Config.E then
- if IsInDistance(target, GetCastRange(myHero, _W)) and GotBuff(myHero, "lucianpassivebuff") == 0
- then CastSkillShot(_E, mousePos.x, mousePos.y, mousePos.z)
- -- Heres where if GOtbuff is OVER the VALUE of 0
- elseif GotBuff(myHero, "lucianpassivebuff") > 1 then
- -- If lucian has the buff we want to attack the target before we CONTINUE anything.
- Attacktarget(target)
- end
- end
- local RPred = GetPredictionForPlayer(GetMyHeroPos(),target,GetMoveSpeed(target),2800,550,1400,110,true,true)
- if CanUseSpell(myHero, _R) == READY and RPred.HitChance == 1 and ValidTarget(target, GetCastRange(myHero,_R)) and Config.R then
- CastSkillShot(_R,RPred.PredPos.x,RPred.PredPos.y,RPred.PredPos.z)
- end
- end
- end
- end
- end)
- function Drawings()
- myHeroPos = GetOrigin(myHero)
- if CanUseSpell(myHero, _Q) == READY and DrawingsConfig.DrawQ then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_Q),3,Un,0xff00ff00) end
- if CanUseSpell(myHero, _E) == READY and DrawingsConfig.DrawE then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_E),3,100,0xff00ffc0) end
- if CanUseSpell(myHero, _R) == READY and DrawingsConfig.DrawR then DrawCircle(myHeroPos.x,myHeroPos.y,myHeroPos.z,GetCastRange(myHero,_R),3,100,0xff00ffd0) end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement