Guest User

Pro Alistar! v2.1

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