Advertisement
Guest User

Untitled

a guest
Jul 20th, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. require("Inspired")
  2. require("IMenu")
  3. require("IWalk")
  4.  
  5. AddInfo("Zed", "Zed:")
  6. AddButton("Q", "Use Q", true)
  7. AddButton("E", "Use E", true)
  8. AddButton("R", "Use R", true)
  9.  
  10. function AfterObjectLoopEvent(myHer0)
  11. DrawMenu()
  12. IWalk()
  13. AutoIgnite()
  14. myHero = myHer0
  15. myHeroPos = GetOrigin(myHero)
  16. DrawText("Evolved Zed is Loaded, and this is my first Script EVER",24,0,0,0xffff0000);
  17. if GetKeyValue("Combo") then
  18. local unit = GetCurrentTarget()
  19. local currhp = GetCurrentHP(myHero)
  20. if ValidTarget(unit, 900) then
  21.  
  22. if GetButtonValue("R") then
  23. if CanUseSpell(myHero, _R) == READY and IsInDistance(unit, 625) then
  24. CastTargetSpell(unit, _R)
  25. end
  26.  
  27. -- GetPredictionForPlayer(startPosition, targetUnit, targetUnitMoveSpeed, spellTravelSpeed, spellDelay, spellRange, spellWidth, collision, addHitBox)
  28. local QPred = GetPredictionForPlayer(GetMyHeroPos(),unit,GetMoveSpeed(unit),1600,250,900,55,true,true)
  29. if GetButtonValue("Q") then
  30. if CanUseSpell(myHero, _Q) == READY and QPred.HitChance == 1 then
  31. CastSkillShot(_Q,QPred.PredPos.x,QPred.PredPos.y,QPred.PredPos.z)
  32. end
  33. end
  34.  
  35. if GetButtonValue("E") then
  36. if CanUseSpell(myHero, _E) == READY and IsInDistance(unit, 290) then
  37. CastTargetSpell(myHero, _E)
  38. end
  39. end
  40. end
  41. end
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement