Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Menu
- Config = scriptConfig("Syndra", "Syndra.lua")
- Config.addParam("Q", "Use Q", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("W", "Use W", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("E", "Use E", SCRIPT_PARAM_ONOFF, true)
- Config.addParam("R", "Use R", SCRIPT_PARAM_ONOFF, true)
- --Start
- OnLoop(function(myHero)
- local target = GetCurrentTarget()
- if ValidTarget(target, math.huge) then
- if KeyIsDown(32) then
- castQ(target)
- castW(target)
- castW(target)
- castE(target)
- castr(target)
- end
- end
- end
- -- End
- -- Q cast
- )function castQ( target )
- if GetButtonValue("Q") then
- pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_Q),800,false,true)
- if IsInDistance(target, GetCastRange(myHero,_Q)) and CanUseSpell(myHero,_Q) == READY and pred.HitChance == 1 then
- CastSkillShot(_Q,pred.PredPos.x,pred.PredPos.y,pred.PredPos.z)
- end
- end
- -- W cast
- )function castW( target )
- if GetButtonValue("W") then
- pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),925 false,true)
- if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
- CastTargetSpell(_W, DarkSphere)
- end
- end
- )function castW( target )
- if GetButtonValue("W") then
- pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),900 false,true)
- if IsInDistance(target, GetCastRange(myHero,_W)) and CanUseSpell(myHero,_W) == READY and pred.HitChance == 1 then
- CastTargetSpell(unit, _W)
- end
- end
- -- E cast
- end
- function castE( target )
- if GetButtonValue("E") then
- pred = GetPredictionForPlayer(GetOrigin(target),target,GetMoveSpeed(target),math.huge,500,GetCastRange(myHero,_W),700 false,true)
- if IsInDistance(target, GetCastRange(myHero,_E)) and CanUseSpell(myHero,_E) == READY and CanUseSpell(myHero, _Q) then
- CastSkillShot(_Q, GetMousePos().x, GetMousePos().y, GetMousePos().z) then
- CastSkillShot(_E, GetMousePos().x, GetMousePos().y, GetMousePos().z)
- end
- end
- -- R cast
- function castR( target )
- if GetButtonValue("R") then
- if IsInDistance(target, GetCastRange(myHero,_R)) and CanUseSpell(myHero,_R) == READY then
- CastTargetSpell(unit,_R )
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement