Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. if myHero.charName ~= "Skarner" then return end
  2.  
  3. require "DamageLib"
  4.  
  5. Callback.Add('Load',function()
  6. PrintChat("Skarner")
  7. end)
  8.  
  9. Q = {Delay = 0.25, Radius = 200, Range = 100, Speed = 2000, Collision = false}
  10. W = {Delay = 0.25, Radius = 1, Range = 1, Speed = 1, Collision = true}
  11. E = {Delay = 0.25, Radius = 230, Range = 980, Speed = 1500, Collision = false}
  12. R = {Delay = 0.25, Radius = 200, Range = 350, Speed = 1, Collision = true}
  13.  
  14. Menu:MenuElement({type = MENU, id = "Key", name = "Key Settings"})
  15. Menu.Key:MenuElement({id = "ComboKey", name = "Combo Key", key = 32})
  16. Menu.Key:MenuElement({id = "FarmKey", name = "Farm Key", key = 86})
  17.  
  18. Menu:MenuElement({type = MENU, id = "Combo", name = "Combo Settings"})
  19. Menu.Combo:MenuElement({id = "Q", name = "Q", value = true})
  20. Menu.Combo:MenuElement({id = "W", name = "W", value = true})
  21. Menu.Combo:MenuElement({id = "E", name = "E", value = true})
  22. Menu.Combo:MenuElement({id = "R", name = "R", value = true})
  23.  
  24.  
  25.  
  26. Callback.Add('Tick',function()
  27.  
  28. if Menu.Key.Combokey:Value() then
  29. if isReady(_Q) and Menu.Combo.Q:Value() then
  30. Control.CastSpell(hk_Q)
  31. end
  32. end
  33.  
  34. if isReady(_W) and Menu.Combo.W:Value() then
  35. Control.CastSpell(hk_W)
  36. end
  37. end
  38.  
  39. if isReady(_E) and Menu.Combo.E:Value() then
  40. local eTarget = GetTarget(E.Range)
  41. if qTarget and qTarget:GetCollision(E.Radius, E.Speed, E.Delay) == 0 then
  42. local qPos = qTarget:GetPrediction(E.Speed, E.Delay)
  43. Control.CastSpell(HK_E, ePos)
  44. end
  45. end
  46.  
  47. if isReady(_R) and Menu.Combo.ComboW:Value() then
  48. local RTarget = GetTarget(R.Range)
  49. if wTarget then
  50. local wPos = wTarget:GetPrediction(R.Radius, R.Delay)
  51. Control.CastSpell(HK_R)
  52. end
  53. end
  54.  
  55. end
  56. end
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement