Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MADE IN POLAND
- if myHero.charName ~= "Alistar" then return end
- local ts
- local version = 2.2
- local DFG = GetInventorySlotItem(3128) -- Deathfire Grasp
- function OnLoad()
- PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun! By necek123. (V"..version..")</font>")
- ts = TargetSelector(TARGET_LESS_CAST_PRIORITY, 650, DAMAGE_MAGIC, true)
- menu()
- end
- function OnTick()
- ts:update()
- podazanie()
- fullcombo()
- autoe()
- dfg()
- autoesojusznicy()
- end
- function OnDraw()
- if (Alistar.otoczka) then
- DrawCircle(myHero.x, myHero.y, myHero.z, 650, ARGB(102, 255, 102, 102))
- end
- if (Alistar.otoczkaq) then
- DrawCircle(myHero.x, myHero.y, myHero.z, 365, ARGB(33, 25, 4, 54))
- end
- if (Alistar.otoczkae) then
- DrawCircle(myHero.x, myHero.y, myHero.z, 575, ARGB(33, 25, 4, 54))
- end
- autoe()
- end
- -- COMBO SPACE ==============================
- function fullcombo()
- if (Alistar.combo) then
- if (ts.target ~= nil) then
- if (GetDistance(ts.target) <= 365) then
- if (myHero:CanUseSpell(_Q) == READY) then
- CastSpell(_Q)
- end
- else
- if (myHero:CanUseSpell(_W and _Q) == READY) then
- if (GetDistance(ts.target) <= 650) then
- CastSpell(_W, ts.target)
- podrzutq()
- end
- end
- end
- end
- end
- end
- function podrzutq()
- if (GetDistance(ts.target) <= 365) then
- if (myHero:CanUseSpell(_Q) == READY) then
- CastSpell(_Q)
- end
- end
- end
- -- RANDOM OPTIONS ====================
- function podazanie()
- if (Misc.podazanie) then
- if (Alistar.combo) then
- zakursorem()
- end
- end
- end
- function zakursorem()
- if GetDistance(mousePos) > 10 then
- local moveToPos = myHero + (Vector(mousePos) - myHero):normalized()*250
- myHero:MoveTo(moveToPos.x, moveToPos.z)
- end
- end
- function menu()
- Alistar = scriptConfig("[NECEK CARRY] Alistar", "ali")
- Misc = scriptConfig("[NECEK CARRY] Misc", "ali2")
- Activator = scriptConfig("[NECEK CARRY] Activator", "ali3")
- -- ALISTAR ==================
- Alistar:addParam("otoczka", "Draw circle W", SCRIPT_PARAM_ONOFF, true)
- Alistar:addParam("otoczkaq", "Draw circle Q", SCRIPT_PARAM_ONOFF, true)
- Alistar:addParam("otoczkae", "Draw circle E", SCRIPT_PARAM_ONOFF, true)
- Alistar:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
- Alistar:addParam("info", " == By necek123 ==", SCRIPT_PARAM_INFO, "")
- -- MISC =======================
- Misc:addParam("podazanie", "Follow the mouse", SCRIPT_PARAM_ONOFF, true)
- Misc:addParam("info2", "", SCRIPT_PARAM_INFO, "")
- Misc:addParam("autoeon", "Auto E", SCRIPT_PARAM_ONOFF, true)
- Misc:addParam("autoe", "Auto E %", SCRIPT_PARAM_SLICE, 30, 0, 100, 0)
- Misc:addParam("autoesojusznik", "Auto Heal Ally", SCRIPT_PARAM_ONOFF, true)
- Misc:addParam("AllyPro", "Heal Ally % HP", SCRIPT_PARAM_SLICE, 50, 0, 100, 0)
- Misc:addTS(ts)
- -- ACTIVATOR ==================
- Activator:addParam("DFG", "Deathfire Grasp", SCRIPT_PARAM_ONOFF, true)
- -- PERMA SHOW ====================
- Alistar:permaShow("info")
- Alistar:permaShow("combo")
- Misc:permaShow("autoeon")
- Misc:permaShow("autoesojusznik")
- end
- function dfg()
- if (Alistar.combo) then
- if (Activator.DFG) then
- if (DFG ~= nil) then
- if (ts.target ~= nil) then
- if (GetDistance(ts.target) <= 750) then -- range dfg
- CastSpell(DFG, ts.target)
- end
- end
- end
- end
- end
- end
- -- AUTO HEAL =======================
- function autoe()
- if (Misc.autoe ~= 0 and Misc.autoeon) then
- if myHero.health < (myHero.maxHealth * ( Misc.autoe / 100)) then
- if (myHero:CanUseSpell(_E)) then
- CastSpell(_E)
- end
- end
- end
- end
- -- AUTO HEAL SOJUSZNIKOW (ALLY) ======================================
- function autoesojusznicy()
- for i, ally in ipairs(GetAllyHeroes()) do
- 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
- CastSpell(_E)
- end
- end
- end
- function sprawdzhp(unit, HealthValue)
- if unit.health < (unit.maxHealth * (HealthValue/100))
- then return true
- else
- return false
- end
- end
- -- =============================================
Advertisement
Add Comment
Please, Sign In to add comment