Guest User

Untitled

a guest
Aug 4th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. -- MADE IN POLAND
  2.  
  3. if myHero.charName ~= "Alistar" then return end
  4.  
  5.  
  6. myHero = GetMyHero()
  7.  
  8. local ts
  9. local zasiegq = 365 -- Range Q
  10.  
  11. function powitanie()
  12. PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun! By necek123.</font>")
  13. end
  14.  
  15. function OnLoad()
  16. powitanie()
  17. ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, 650, DAMAGE_MAGIC, true)
  18.  
  19. Config = scriptConfig("[NECEK CARRY] Alistar", "aliscio")
  20. opcje = scriptConfig("[NECEK CARRY] Settings", "aliscio2")
  21. Config:addParam("otoczka", "Draw circle", SCRIPT_PARAM_ONOFF, true)
  22. --Config:addParam("autoe", "Auto E", SCRIPT_PARAM_ONOFF, true)
  23. Config:addParam("autoe", "Auto E", SCRIPT_PARAM_LIST, 3, {"OFF", "100 HP", "200 HP", "300 HP", "400 HP", "500 HP", "600 HP", })
  24. Config:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
  25. opcje:addParam("opcjemana", "Minimum mana to 'E'", SCRIPT_PARAM_LIST, 1, {"100 Many", "200 Many", "300 Many", "400 Many", "500 Many" })
  26. opcje:addParam("podazanie", "Follow the mouse", SCRIPT_PARAM_ONOFF, true)
  27. opcje:addTS(ts)
  28.  
  29. Config:permaShow("combo")
  30. Config:permaShow("autoe")
  31. opcje:permaShow("podazanie")
  32.  
  33. end
  34.  
  35. function OnTick()
  36. ts:update()
  37. test()
  38.  
  39.  
  40.  
  41. end
  42.  
  43. function OnWndMsg()
  44.  
  45.  
  46.  
  47. end
  48.  
  49. function OnDraw()
  50. if(Config.otoczka) then
  51. DrawCircle(myHero.x, myHero.y, myHero.z, 650, 0x33CC33)
  52. end
  53.  
  54. test()
  55. autoe()
  56.  
  57. end
  58.  
  59.  
  60. function test()
  61.  
  62. if (Config.combo) then
  63. if (opcje.podazanie) then
  64. zakursorem()
  65. if (ts.target ~= nil) then
  66. if (myHero:CanUseSpell(_W and _Q) == READY) then
  67. if (GetDistance(ts.target) <= zasiegq) then
  68. CastSpell(_Q)
  69. else
  70. CastSpell(_W, ts.target)
  71. if (GetDistance(ts.target) <= zasiegq) then
  72. CastSpell(_Q)
  73. end
  74. end
  75. else
  76. siemanko = DrawText("Wait for cooldown to 'W', 'Q'", 18, 100, 100, 0xFFCC0000)
  77. end
  78. end
  79. end
  80. end
  81.  
  82.  
  83.  
  84.  
  85. function autoe()
  86.  
  87.  
  88. if (opcje.opcjemana) then
  89. if (myHero.mana <= (opcje.opcjemana * 100)) then
  90. DrawText("You don't have mana.", 24, 100, 140, 0xFFCC0000)
  91. else
  92. if (Config.autoe) then
  93. if (myHero.health <= (Config.autoe * 100 - 100)) then
  94. if (myHero:CanUseSpell(_E) == READY) then
  95. CastSpell(_E)
  96. end
  97. end
  98. end
  99. end
  100. end
  101. end
  102. end
  103.  
  104.  
  105. function zakursorem()
  106. if GetDistance(mousePos) > 10 then
  107. local moveToPos = myHero + (Vector(mousePos) - myHero):normalized()*250
  108. myHero:MoveTo(moveToPos.x, moveToPos.z)
  109. end
  110. end
Advertisement
Add Comment
Please, Sign In to add comment