Guest User

Pro Alistar! v2.2

a guest
Aug 30th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.20 KB | None | 0 0
  1. -- MADE IN POLAND
  2.  
  3. if myHero.charName ~= "Alistar" then return end
  4.  
  5. local ts
  6. local version = 2.2
  7. local DFG = GetInventorySlotItem(3128) -- Deathfire Grasp
  8.  
  9. function OnLoad()
  10.     PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun! By necek123. (V"..version..")</font>")
  11.     ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, 650, DAMAGE_MAGIC, true)
  12.     menu()
  13. end
  14.  
  15. function OnTick()
  16.     ts:update()
  17.     podazanie()
  18.     fullcombo()
  19.     autoe()
  20.     dfg()
  21.     autoesojusznicy()
  22. end
  23.  
  24. function OnDraw()
  25.     if (Alistar.otoczka) then
  26.         DrawCircle(myHero.x, myHero.y, myHero.z, 650, ARGB(102, 255, 102, 102))
  27.     end
  28.    
  29.     if (Alistar.otoczkaq) then
  30.         DrawCircle(myHero.x, myHero.y, myHero.z, 365, ARGB(33, 25, 4, 54))
  31.     end
  32.    
  33.     if (Alistar.otoczkae) then
  34.         DrawCircle(myHero.x, myHero.y, myHero.z, 575, ARGB(33, 25, 4, 54))
  35.     end
  36.     autoe()
  37. end
  38.  
  39. -- COMBO SPACE ==============================
  40.  
  41.  
  42. function fullcombo()
  43.     if (Alistar.combo) then
  44.         if (ts.target ~= nil) then
  45.             if (GetDistance(ts.target) <= 365) then
  46.                 if (myHero:CanUseSpell(_Q) == READY) then
  47.                     CastSpell(_Q)
  48.                 end
  49.             else
  50.                 if (myHero:CanUseSpell(_W and _Q) == READY) then
  51.                     if (GetDistance(ts.target) <= 650) then
  52.                         CastSpell(_W, ts.target)
  53.                         podrzutq()
  54.                     end
  55.                 end
  56.             end
  57.         end
  58.     end
  59. end
  60.  
  61. function podrzutq()
  62.                 if (GetDistance(ts.target) <= 365) then
  63.                     if (myHero:CanUseSpell(_Q) == READY) then
  64.                         CastSpell(_Q)
  65.                 end
  66.         end
  67.     end
  68. -- RANDOM OPTIONS ====================
  69.  
  70. function podazanie()
  71.     if (Misc.podazanie) then
  72.         if (Alistar.combo) then
  73.             zakursorem()
  74.         end
  75.     end
  76. end
  77.  
  78. function zakursorem()
  79.     if GetDistance(mousePos) > 10 then
  80.         local moveToPos = myHero + (Vector(mousePos) - myHero):normalized()*250
  81.         myHero:MoveTo(moveToPos.x, moveToPos.z)
  82.     end
  83. end
  84.  
  85.  
  86. function menu()
  87.     Alistar = scriptConfig("[NECEK CARRY] Alistar", "ali")
  88.     Misc = scriptConfig("[NECEK CARRY] Misc", "ali2")
  89.     Activator = scriptConfig("[NECEK CARRY] Activator", "ali3")
  90.    
  91.     -- ALISTAR ==================
  92.    
  93.     Alistar:addParam("otoczka", "Draw circle W", SCRIPT_PARAM_ONOFF, true)
  94.     Alistar:addParam("otoczkaq", "Draw circle Q", SCRIPT_PARAM_ONOFF, true)
  95.     Alistar:addParam("otoczkae", "Draw circle E", SCRIPT_PARAM_ONOFF, true)
  96.     Alistar:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
  97.     Alistar:addParam("info", "     == By necek123 ==", SCRIPT_PARAM_INFO, "")
  98.    
  99.     -- MISC =======================
  100.    
  101.     Misc:addParam("podazanie", "Follow the mouse", SCRIPT_PARAM_ONOFF, true)
  102.     Misc:addParam("autoe", "Auto E %", SCRIPT_PARAM_SLICE, 30, 0, 100, 0)
  103.     Misc:addParam("autoesojusznik", "Auto Heal Ally", SCRIPT_PARAM_ONOFF, true)
  104.     Misc:addParam("AllyPro", "Heal Ally % HP", SCRIPT_PARAM_SLICE, 50, 0, 100, 0)
  105.     Misc:addTS(ts)
  106.    
  107.    
  108.     -- ACTIVATOR ==================
  109.    
  110.     Activator:addParam("DFG", "Deathfire Grasp", SCRIPT_PARAM_ONOFF, true)
  111.    
  112.    
  113.     -- PERMA SHOW ====================
  114.    
  115.     Alistar:permaShow("info")
  116.     Alistar:permaShow("combo")
  117.     Misc:permaShow("autoe")
  118.     Misc:permaShow("autoesojusznik")
  119. end
  120.  
  121.  
  122.  
  123. function dfg()
  124. if (Alistar.combo) then
  125.     if (Activator.DFG) then
  126.         if (DFG ~= nil) then
  127.             if (ts.target ~= nil) then
  128.                 if (GetDistance(ts.target) <= 750) then -- range dfg
  129.                     CastSpell(DFG, ts.target)
  130.                 end
  131.             end
  132.         end
  133.     end
  134. end
  135. end
  136.  
  137. -- AUTO HEAL =======================
  138.  
  139. function autoe()
  140.     if (Misc.autoe ~= 0) then
  141.         if myHero.health < (myHero.maxHealth * ( Misc.autoe / 100)) then
  142.             if (myHero:CanUseSpell(_E)) then
  143.                 CastSpell(_E)
  144.             end
  145.         end
  146.     end
  147.    
  148.     if (Misc.autoe == 0) then
  149.         DrawText("AUTO 'E' OFF",16,100,110,0xFF80FF00)
  150.     end
  151. end
  152.  
  153. -- AUTO HEAL SOJUSZNIKOW (ALLY) ======================================
  154.  
  155. function autoesojusznicy()
  156.     for i, ally in ipairs(GetAllyHeroes()) do
  157.         if ally ~= nil and GetDistance(ally) < 575 and not ally.dead and ally.visible and myHero:CanUseSpell(_E) == READY and Misc.autoesojusznik and sprawdzhp(ally, Misc.AllyPro) then
  158.             CastSpell(_E)
  159.         end
  160.     end
  161. end
  162.  
  163. function sprawdzhp(unit, HealthValue)
  164.     if unit.health < (unit.maxHealth * (HealthValue/100))
  165.         then return true
  166.     else
  167.         return false
  168.     end
  169. end
  170.  
  171. -- =============================================
Advertisement
Add Comment
Please, Sign In to add comment