Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if myHero.charName ~= "Alistar" then return end
- myHero = GetMyHero()
- local ts
- local zasiegq = 365 -- Wpisz obecny zasieg z "Q"
- local ee = 200 -- Tutaj wpisz, ile musisz miec hp zeby zalaczyc E.
- function powitanie()
- PrintChat("<font color=\"#ff9e00\">[NECEK CARRY]</font> <font color=\"#00ff00\">Combo Alistar! Have fun!</font>")
- end
- function OnLoad()
- powitanie()
- ts = TargetSelector(TARGET_LOW_HP_PRIORITY, 650)
- Config = scriptConfig("[NECEK CARRY] Alistar", "aliscio")
- opcje = scriptConfig("[NECEK CARRY] Ustawienia", "aliscio2")
- Config:addParam("otoczka", "Otoczka postaci", SCRIPT_PARAM_ONOFF, true)
- --Config:addParam("autoe", "Auto E", SCRIPT_PARAM_ONOFF, true)
- Config:addParam("autoe", "Auto E", SCRIPT_PARAM_LIST, 3, {"OFF", "100 HP", "200 HP", "300 HP", "400 HP", "500 HP", "600 HP", })
- Config:addParam("combo", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, string.byte(32))
- opcje:addParam("opcjemana", "Minimalna mana do 'E'", SCRIPT_PARAM_LIST, 2, {"100 Many", "200 Many", "300 Many", "400 Many", "500 Many" })
- end
- function OnTick()
- ts:update()
- test()
- end
- function OnDraw()
- if(Config.otoczka) then
- DrawCircle(myHero.x, myHero.y, myHero.z, 650, 0x33CC33)
- end
- test()
- autoe()
- end
- function test()
- if (Config.combo) then
- if (ts.target ~= nil) then
- if (myHero:CanUseSpell(_W and _Q) == READY) then
- if (GetDistance(ts.target) <= zasiegq) then
- CastSpell(_Q)
- else
- CastSpell(_W, ts.target)
- if (GetDistance(ts.target) <= zasiegq) then
- CastSpell(_Q)
- end
- end
- else
- siemanko = DrawText("Poczekaj, az 'Q' oraz 'W' bedzie dostepne.", 18, 100, 100, 0xFFCC0000)
- end
- end
- end
- end
- function autoe()
- if (opcje.opcjemana) then
- if (myHero.mana <= (opcje.opcjemana * 100)) then
- DrawText("Brakuje Ci many!", 24, 100, 140, 0xFFCC0000)
- else
- if (Config.autoe) then
- if (myHero.health <= (Config.autoe * 100 - 100)) then
- if (myHero:CanUseSpell(_E) == READY) then
- CastSpell(_E)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment