Guest User

Untitled

a guest
Aug 5th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. -- MADE IN POLAND
  2.  
  3. if myHero.charName ~= "Alistar" then return end
  4.  
  5.  
  6. local ts
  7. local zasiegq = 365 -- Range Q
  8. local autozh = 200 -- HP on Auto Zhonya.
  9.  
  10. local DFG = GetInventorySlotItem(3128) -- Deathfire Grasp
  11. local ZH = GetInventorySlotItem(3157) -- Zhonya's Hourglass
  12.  
  13. function powitanie()
  14. PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun! By necek123.</font>")
  15. end
  16.  
  17. function OnLoad()
  18. powitanie()
  19. ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, 650, DAMAGE_MAGIC, true)
  20. menu()
  21.  
  22. end
  23.  
  24. function OnTick()
  25. ts:update()
  26. test()
  27. autozon()
  28.  
  29.  
  30. end
  31.  
  32.  
  33. function OnDraw()
  34. if(Config.otoczka) then
  35. DrawCircle(myHero.x, myHero.y, myHero.z, 650, 0x33CC33)
  36. end
  37.  
  38. test()
  39. autoe()
  40.  
  41. end
  42.  
  43.  
  44. function test()
  45.  
  46. if (Config.combo) then
  47. if (opcje.podazanie) then
  48. zakursorem()
  49. if (ts.target ~= nil) then
  50. if (myHero:CanUseSpell(_W and _Q) == READY) then
  51. if (GetDistance(ts.target) <= zasiegq) then
  52. CastSpell(_Q)
  53. if (DFG ~= nil) then
  54. if (activator.DFG and activator.onoff) then
  55. CastSpell(DFG, ts.target)
  56. end
  57. end
  58. else
  59. if (DFG ~= nil) then
  60. if (activator.DFG and activator.onoff) then
  61. CastSpell(DFG, ts.target)
  62. end
  63. end
  64. CastSpell(_W, ts.target)
  65. if (GetDistance(ts.target) <= zasiegq) then
  66. CastSpell(_Q)
  67. end
  68. end
  69. else
  70. siemanko = DrawText("Wait for cooldown to 'W', 'Q'", 18, 100, 100, 0xFFCC0000)
  71. end
  72. end
  73. end
  74. end
  75.  
  76.  
  77.  
  78.  
  79. function autoe()
  80.  
  81.  
  82. if (opcje.opcjemana) then
  83. if (myHero.mana <= (opcje.opcjemana * 100)) then
  84. DrawText("You don't have mana.", 24, 100, 140, 0xF203F000)
  85. else
  86. if (opcje.autoe) then
  87. if (myHero.health <= (opcje.autoe * 100 - 100)) then
  88. if (myHero:CanUseSpell(_E) == READY) then
  89. CastSpell(_E)
  90. end
  91. end
  92. end
  93. end
  94. end
  95. end
  96. end
  97.  
  98.  
  99. function zakursorem()
  100. if GetDistance(mousePos) > 10 then
  101. local moveToPos = myHero + (Vector(mousePos) - myHero):normalized()*250
  102. myHero:MoveTo(moveToPos.x, moveToPos.z)
  103. end
  104. end
  105.  
  106.  
  107. function autozon()
  108. if (activator.ZH and activator.onoff) then
  109. if (ZH ~= nil) then
  110. for _, enemy in ipairs(GetEnemyHeroes()) do
  111. if ValidTarget(enemy) and enemy.visible and GetDistance(enemy) <= 650 then
  112. if (myHero.health <= autozh) then
  113. CastSpell(ZH)
  114. end
  115. end
  116. end
  117. end
  118. end
  119. end
  120.  
  121. function menu()
  122. Config = scriptConfig("[NECEK CARRY] Alistar", "aliscio")
  123. opcje = scriptConfig("[NECEK CARRY] Settings", "aliscio2")
  124. activator = scriptConfig("[NECEK CARRY] Activator", "aliscio3")
  125.  
  126. Config:addParam("otoczka", "Draw circle", SCRIPT_PARAM_ONOFF, true)
  127. --Config:addParam("autoe", "Auto E", SCRIPT_PARAM_ONOFF, true)
  128. Config:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
  129. opcje:addParam("opcjemana", "Minimum mana to 'E'", SCRIPT_PARAM_LIST, 1, {"100 Many", "200 Many", "300 Many", "400 Many", "500 Many" })
  130. opcje:addParam("autoe", "Auto E", SCRIPT_PARAM_LIST, 3, {"OFF", "100 HP", "200 HP", "300 HP", "400 HP", "500 HP", "600 HP", })
  131. opcje:addParam("podazanie", "Follow the mouse", SCRIPT_PARAM_ONOFF, true)
  132. opcje:addTS(ts)
  133.  
  134. Config:addParam("infoo", "Script by necek123", SCRIPT_PARAM_INFO, "")
  135.  
  136. Config:permaShow("combo")
  137. opcje:permaShow("autoe")
  138. opcje:permaShow("podazanie")
  139.  
  140.  
  141. activator:addParam("onoff", "Activator", SCRIPT_PARAM_ONOFF, true)
  142. activator:addParam("DFG", "Deathfire Grasp", SCRIPT_PARAM_ONOFF, true)
  143. activator:addParam("ZH", "Zhonya's Hourglass", SCRIPT_PARAM_ONOFF, true)
  144. activator:permaShow("onoff")
  145. end
Advertisement
Add Comment
Please, Sign In to add comment