Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if myHero.charName ~= "Malphite" then return end
- local kill = {}
- local range = 1000
- local TIASlot = nil
- local TIAREADY = false
- local SWSlot = nil
- local SWREADY = false
- local rDelay = 1000
- local rRange = 1000
- local ts = TargetSelector(TARGET_LOW_HP,range,false)
- function OnLoad()
- acConfig = scriptConfig("UnlimitedMalphite", "Combo")
- acConfig:addParam("scriptActive", "Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
- acConfig:addParam("drawcircles", "Draw Circles", SCRIPT_PARAM_ONOFF, true)
- acConfig:addParam("ks","KillSteal", SCRIPT_PARAM_ONOFF,true)
- acConfig:addParam("ulti","Ulti in Combo", SCRIPT_PARAM_ONOFF,true)
- acConfig:permaShow("scriptActive")
- ts.name = "Malphite"
- acConfig:addTS(ts)
- end
- function OnTick()
- ts:update()
- Damage()
- TIASlot = GetInventorySlotItem(3077) or GetInventorySlotItem(3074)
- TIAREADY = (TIASlot ~= nil and myHero:CanUseSpell(TIASlot) == READY)
- SWSlot = GetInventorySlotItem(3131)
- SWREADY = (SWSlot ~= nil and myHero:CanUseSpell(SWSlot) == READY)
- for i=1, heroManager.iCount do
- local target = heroManager:GetHero(i)
- local eDmg = getDmg("E",target,myHero)
- if target ~= nil and target.visible == true and player.team ~= target.team and target.dead == false then
- if player:CanUseSpell(_E) == READY and player:GetDistance(target) < 400 and eDmg > target.health then
- CastSpell(_E,target)
- end
- end
- end
- if acConfig.scriptActive then
- if ts.target~= nil and myHero:GetDistance(ts.target)<400 then
- if TIAREADY then
- CastSpell(TIASlot)
- end
- if SWREADY then
- CastSpell(SWSlot)
- end
- end
- if myHero:CanUseSpell(_W) then
- CastSpell(_W)
- end
- if myHero:CanUseSpell(_R) and ts.target ~= nil and acConfig.ulti then
- if GetDistance(ts.target) <= rRange then
- RPOS = GetPredictionPos(ts.target, rDelay)
- if RPOS ~= nil and ValidTarget(ts.target, rRange) then
- CastSpell(_R,RPOS.x,RPOS.z)
- end
- end
- end
- if myHero:CanUseSpell(_E) == READY then
- if ts.target ~= nil and myHero:GetDistance(ts.target) < 400 then
- CastSpell(_E)
- end
- end
- if ts.target ~= nil then
- myHero:Attack(ts.target)
- end
- if ts.target ~= nil and myHero:CanUseSpell(_Q) then
- if myHero:GetDistance(ts.target) < 625 then
- CastSpell(_Q,ts.target)
- end
- end
- end
- if acConfig.ks then
- for i=1, heroManager.iCount do
- target = heroManager:GetHero(i)
- local edmg = getDmg("E",target,myHero)
- if target.team ~= myHero.team and target.dead == FALSE and target.visible == TRUE and myHero:GetDistance(target) < 400 and myHero:CanUseSpell(_E) == READY and target.health < edmg then
- CastSpell(_E)
- end
- end
- end
- end
- function Damage()
- ts:update()
- for i=1, heroManager.iCount do
- local enemy = heroManager:GetHero(i)
- local qdmg = getDmg("Q",enemy,myHero)
- local wdmg = player:CalcDamage(enemy,player.totalDamage *(1 + (20+(player:GetSpellData(_W).level * 5))/100))
- local edmg = getDmg("E",enemy,myHero)
- local rdmg = getDmg("R",enemy,myHero)
- local possible = qdmg + wdmg*2 + edmg + rdmg
- local thatkill = 0
- if myHero:CanUseSpell(_Q) == READY then
- thatkill = thatkill + qdmg
- end
- if myHero:CanUseSpell(_W) == READY then
- thatkill = thatkill + wdmg*2
- end
- if myHero:CanUseSpell(_E) == READY then
- thatkill = thatkill + edmg
- end
- if myHero:CanUseSpell(_R) == READY then
- thatkill = thatkill + rdmg
- end
- if thatkill >= enemy.health then
- kill[i] = 2
- elseif possible>= enemy.health then
- kill[i] = 1
- else
- kill[i] = 0
- end
- end
- end
- function OnDraw()
- local coloraqua=ARGB(0xFF,0x00,0xFF,0xFF)
- if acConfig.drawcircles then
- DrawCircle(myHero.x,myHero.y,myHero.z,range,coloraqua)
- DrawCircle(myHero.x,myHero.y,myHero.z,400,0xFFFF0000)
- DrawCircle(myHero.x,myHero.y,myHero.z,625,0xFFFF0000)
- if acConfig.scriptActive then
- DrawText("Script Active",18,100,80,0xFF80FF00)
- end
- if ts.target ~= nil then
- DrawText("Targetting: " .. ts.target.charName, 18, 100, 100, 0xFFFF0000)
- DrawCircle(ts.target.x, ts.target.y, ts.target.z, 100, 0xFF80FF00)
- end
- for i=1, heroManager.iCount do
- local enemydraw = heroManager:GetHero(i)
- if ValidTarget(enemydraw) then
- if kill[i] == 1 then
- PrintFloatText(enemydraw,0,"Cooldown")
- DrawCircle(enemydraw.x,enemydraw.y,enemydraw.z, 100, 0xFF80FF00)
- DrawCircle(enemydraw.x,enemydraw.y,enemydraw.z, 150, 0xFF80FF00)
- elseif kill[i] == 2 then
- PrintFloatText(enemydraw,0,"MURDER!")
- DrawCircle(enemydraw.x,enemydraw.y,enemydraw.z, 100, 0xFF80FF00)
- DrawCircle(enemydraw.x,enemydraw.y,enemydraw.z, 150, 0xFF80FF00)
- DrawCircle(enemydraw.x,enemydraw.y,enemydraw.z, 200, 0xFF80FF00)
- end
- end
- end
- end
- end
- PrintChat(" >> UnlimitedMalphite Loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement