Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Prosze tutaj masz kod ;)

sam na nim czasami gram robi totalną miazgę na low elo ...

 

 

	

           
     
      -- AP TRISTANA OP  v 1.4-- Smarter Combo, Orbwalking.|||||||||||BuffCheck ( Tryndamere, kayle ulti) following soon.    |||||||
      -- Took out the "bad" combo, now checks after combo if there are killable enemys within W range, else it jumps to your cursor.
         
    if myHero.charName ~= "Tristana" then return end
         
    local DeathfireGraspBought, BlackFireTorch = nil, nil
    local ts = nil
    local Q, W, E, R = false, false, false, false -- Variables for if Skill ready or not (True/False)
    local IgniteSlot = nil
    local IgniteDmg = nil
    local IgniteReady = false
    local EDAMAGE, WDAMAGE, RDAMAGE = nil, nil, nil
    local DFGREADY, BlackFireTorchRDY = nil
    local Target = false
    local lastAttack, lastWindUpTime, lastAttackCD = 0, 0, 0
     
     
    function OnLoad()
                menu()
                getIgniteSlot()
                            PrintChat("GermanTank's AP Tristana loaded (1.4)." )   
    end
     
         
    function OnTick()
        ts:update()
        CheckSpells()
        checkDeathFireGrasp()
        UpdateDamage()
                                    if APTMENU.AutoHarrasE then
                                if APTMENU.Orby then
                                        OrbWalk()
                                elseif APTMENU.ToMouse then
                                        moveToCursor()
                                end
                               
                                if ValidTarget(ts.target) and ts.target ~= nil then
                                        AutoHarrasEToggle()
                                end
                        end
                       
                        if APTMENU.ComboPussy then
                                if APTMENU.Orby then
                                        OrbWalk()
                                elseif APTMENU.ToMouse then
                                        moveToCursor()
                                end
                               
                                if ValidTarget(ts.target) and ts.target ~= nil then
                                        FinalCombo()
                                end
                        end
        AutoHarrasE()
        KillstealWithW()
            KillstealWithR()
            KillstealWithWandUlti()
    end
         
    function OnDraw()
                DrawW()
                DrawE()
                DrawR()
                DrawWCircleInWRange()
                            DrawComboKillerOrHarass()      
    end
     
         
    function menu()
                APTMENU = scriptConfig ("AkuzusApTristana", "TristanaAP")
                APTMENU:addParam("Trista", "!-!-!-! AP Tristana Settings !-!-!-", SCRIPT_PARAM_INFO, "")
                APTMENU:addParam("AutoHarrasE", "Auto Harass E", SCRIPT_PARAM_ONKEYDOWN, false, string.byte("X"))
                            APTMENU:addParam("AutoHarrasEA", "Auto Harass E permanent", SCRIPT_PARAM_ONOFF, false)
                APTMENU:addParam("AutoKSwAndUlti", "KS WITH W AND ULTI", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("AutoKSw", "KS WITH W ONLY", SCRIPT_PARAM_ONOFF, true)
                            APTMENU:addParam("AutoKSr", "KS WITH ULTI ONLY", SCRIPT_PARAM_ONOFF, true)
                            APTMENU:addParam("ComboPussy", "Final Combo", SCRIPT_PARAM_ONKEYDOWN, false, 32)
                APTMENU:addParam("DrawMenu", "!-!-!-! Draw Stuff !-!-!-", SCRIPT_PARAM_INFO, "")
                APTMENU:addParam("DrawStuff", "Drawings ", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("DrawW", "Draw W range if ready ", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("DrawWCircleinW", "Draw W in W", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("DrawE", "Draw E range if ready ", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("DrawR", "Draw R range if ready ", SCRIPT_PARAM_ONOFF, true)
                APTMENU:addParam("MouseMenu", "!-!-!-! Move To Mouse / Orbwalk !-!-!-", SCRIPT_PARAM_INFO, "")
                APTMENU:addParam("ToMouse", "MoveToMouse", SCRIPT_PARAM_ONKEYDOWN, false, 32)
                            APTMENU:addParam("Orby", "Orbwalk", SCRIPT_PARAM_ONOFF, true)
                            ts = TargetSelector(TARGET_LOW_HP, 900,DAMAGE_MAGIC)
                            ts.name = "Tristana"
                            APTMENU:addTS(ts)
    end
         
    function FinalCombo()  
            if Target then
                    for i, killTarget in pairs(GetEnemyHeroes()) do
                        if (GetDistance(killTarget) <= 900) and ValidTarget(killTarget) and (killTarget.health < getDmg("W", killTarget, myHero)) and W then
                                     CastSpell(_W, killTarget.x, killTarget.z)              
                               
                        else
                                            JumpToMouse()
                                            end
                    end
            end
            if APTMENU.ComboPussy and ValidTarget(ts.target) then
                               if ((ts.target).health < (RDAMAGE) and  R)  then
                                        ComboWithoutIgnite(true, false, true)
                                                                            Target = true
                                elseif ((ts.target).health < (EDAMAGE)and E)  then
                                        ComboWithoutIgnite(true, true, false)
                                                                            Target = true
                                                            elseif ((ts.target).health < (WDAMAGE) and W )  then
                                        ComboWithoutIgnite(true, false, false)
                                                                            Target = true
                                elseif ((ts.target).health < (WDAMAGE) and W )  then
                                                                            ComboWithoutIgnite(true, false, false)
                                                                            Target = true
                                                            elseif ((ts.target).health < (RDAMAGE+IgniteDmg) and R and IgniteReady and (GetDistance(ts.target) <= 600))  then
                                                                            ComboWithIgnite(true, false, true)     
                                                                            Target = true
                                                            elseif ((ts.target).health < (EDAMAGE+IgniteDmg) and E and IgniteReady and (GetDistance(ts.target) <= 600))  then
                                                                            ComboWithIgnite(true, true, false)     
                                                                            Target = true
                                elseif ((ts.target).health < (WDAMAGE+IgniteDmg) and W and IgniteReady )  then
                                        ComboWithIgnite(true, false, false)
                                                                            Target = true
                                                            elseif ((ts.target).health < (WDAMAGE + RDAMAGE) and W and  R)  then
                                                                            ComboWithoutIgnite(true, false, true)  
                                                                            Target = true
                                                            elseif ((ts.target).health < (EDAMAGE + RDAMAGE) and R and E)  then
                                                                            ComboWithoutIgnite(true, true, true)   
                                                                            Target = true                                                                  
                                                            elseif ((ts.target).health < (WDAMAGE + EDAMAGE) and E and W )  then
                                        ComboWithoutIgnite(true, true, false)
                                                                            Target = true
                                                            elseif ((ts.target).health < (WDAMAGE + RDAMAGE + IgniteDmg) and W and R and IgniteReady )  then
                                                                            ComboWithIgnite(true, false, true)
                                                                            Target = true
                                                            elseif ((ts.target).health < (EDAMAGE + RDAMAGE+IgniteDmg) and R and E and IgniteReady and (GetDistance(ts.target) <= 600))  then
                                                                            ComboWithIgnite(true, true, true)
                                                                            Target = true
                                                            elseif ((ts.target).health < (WDAMAGE + EDAMAGE+IgniteDmg) and E and W and IgniteReady )  then
                                        ComboWithIgnite(true, true, false)
                                                                            Target = true
                                                            elseif (ts.target).health < (WDAMAGE + RDAMAGE + EDAMAGE) and W and R and E   then
                                        ComboWithoutIgnite(true, true, true)
                                                                            Target = true
                                                            elseif (ts.target).health < (WDAMAGE + RDAMAGE + EDAMAGE+IgniteDmg) and W and R and E and IgniteReady  then
                                        ComboWithIgnite(true, true, true)  
                                                                            Target = true                                                                  
                                                            else
                                        ComboWithoutIgnite(true, true, true)
                                                                            Target = true
                                end
                                                           
                                                                   
                                                           
                                                           
                    end
     
           
    end
     
     
    function JumpToMouse()
            if (Target == true) and W then
                    CastSpell(_W, mousePos.x, mousePos.z)
                    Target = false
            else
                    Target = false
            end
    end  
     
           
    function ComboWithIgnite(a,b,c)
                    local WYesNo = a
                    local EYesNo = b
                    local RYesNo = c
                    local targetDead = (ts.target).dead
                if  GetDistance(ts.target) <= 750 and DeathfireGraspBought ~= nil and GetInventoryItemIsCastable(3128,myHero)  then
                                                   CastSpell(DeathfireGraspBought, ts.target)
                               
                                        if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                                CastSpell(_W, (ts.target).x, (ts.target).z)
                                                                                   
                                        end    
                                       
                                        if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                                CastSpell(_E, (ts.target))
                                        end
                                       
                                        if IgniteReady and GetDistance(ts.target) <= 600  then
                                                CastSpell(IgniteSlot, ts.target)
                                        end
                                       
                                        if R and GetDistance(ts.target) <= 645  and RYesNo then
                                                CastSpell(_R, (ts.target))
                                        end
               
                            elseif GetDistance(ts.target) <= 750 and BlackFireTorch ~= nil and GetInventoryItemIsCastable(3188,myHero) then
                           
                                                            CastSpell(BlackFireTorch, ts.target)
                                   
                                                                            if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                                CastSpell(_W, (ts.target).x, (ts.target).z)
                                                                                   
                                        end    
                                       
                                        if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                                CastSpell(_E, (ts.target))
                                        end
                                       
                                        if IgniteReady and GetDistance(ts.target) <= 600  then
                                                CastSpell(IgniteSlot, ts.target)
                                        end
                                       
                                        if R and GetDistance(ts.target) <= 645  and RYesNo then
                                                CastSpell(_R, (ts.target))
                                        end
     
                       else
                        if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                        CastSpell(_W, (ts.target).x, (ts.target).z)
                                                           
                                end
               
                                if GetDistance(ts.target) <= 750 and DeathfireGraspBought ~= nil and GetInventoryItemIsCastable(3128,myHero)  then
                                        CastSpell(DeathfireGraspBought, ts.target)
                                end
                                if IgniteReady and GetDistance(ts.target) <= 600  then
                                        CastSpell(IgniteSlot, ts.target)
                                end
                                if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                        CastSpell(_E, (ts.target))
                                end
                                if R and GetDistance(ts.target) <= 645  and RYesNo then
                                        CastSpell(_R, (ts.target))
                                end
                end
                           
                           
                           
    end
         
         
    function ComboWithoutIgnite(a,b,c)
                    local WYesNo = a
                    local EYesNo = b
                    local RYesNo = c
                    local targetDead = (ts.target).dead
                if  GetDistance(ts.target) <= 750 and DeathfireGraspBought ~= nil and GetInventoryItemIsCastable(3128,myHero) then
                       
                                        CastSpell(DeathfireGraspBought, ts.target)
                                                                           
                                        if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                                CastSpell(_W, (ts.target).x, (ts.target).z)
                                                                                   
                                        end    
                                       
                                        if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                                CastSpell(_E, (ts.target))
                                        end
                                                               
                                        if R and GetDistance(ts.target) <= 645  and RYesNo then
                                                CastSpell(_R, (ts.target))
                                        end
                            elseif GetDistance(ts.target) <= 750 and BlackFireTorch ~= nil and GetInventoryItemIsCastable(3188,myHero) then
                           
                                    CastSpell(BlackFireTorch, ts.target)
                                   
                                    if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                                CastSpell(_W, (ts.target).x, (ts.target).z)
                                                                                   
                                        end    
                                       
                                        if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                                CastSpell(_E, (ts.target))
                                        end
                                                               
                                        if R and GetDistance(ts.target) <= 645  and RYesNo then
                                                CastSpell(_R, (ts.target))
                                        end
     
                           
                else
               
                        if W  and GetDistance(ts.target) <=900 and WYesNo and not targetDead then
                                                                    CastSpell(_W, (ts.target).x, (ts.target).z)
                                end
               
                                if GetDistance(ts.target) <= 750 and DeathfireGraspBought ~= nil and GetInventoryItemIsCastable(3128,myHero)  then
                                        CastSpell(DeathfireGraspBought, ts.target)
                                end
                               
                                if E and GetDistance(ts.target) <= myHero.range  and EYesNo then
                                        CastSpell(_E, (ts.target))
                                end
                                if R and GetDistance(ts.target) <= 645  and RYesNo then
                                        CastSpell(_R, (ts.target))
                                end
                end
            end
     
     
         
    function KillstealWithWandUlti() -- Auto KillSteal with W and Ulti--
                local WDamage, RDamage = 0 , 0
                for i, killTarget in pairs(GetEnemyHeroes()) do
                        WDamage = getDmg("W", killTarget, myHero)
                        RDamage = getDmg("R", killTarget, myHero)
                        if GetDistance(killTarget) <= 900 and ValidTarget(killTarget) and killTarget.health < (WDamage + RDamage) and APTMENU.AutoKSwAndUlti and W and R then
                                        CastSpell(_W, killTarget.x, killTarget.z)
                                        CastSpell(_R, (ts.target))
         
                        end
                end
    end
     
    function KillstealWithR() -- Auto KillSteal with W only --
        for i, killTarget in pairs(GetEnemyHeroes()) do
            if (GetDistance(killTarget) <= 645) and ValidTarget(killTarget) and (killTarget.health < getDmg("R", killTarget, myHero)) and APTMENU.AutoKSr and R then
                    CastSpell(_R, killTarget)                      
                end
            end
    end
     
    function KillstealWithW() -- Auto KillSteal with W only --
                for i, killTarget in pairs(GetEnemyHeroes()) do
                        if (GetDistance(killTarget) <= 900) and ValidTarget(killTarget) and (killTarget.health < getDmg("W", killTarget, myHero)) and APTMENU.AutoKSw and W then
                                if APTMENU.AutoKSw and W then
                                     CastSpell(_W, killTarget.x, killTarget.z)              
                                end
                        end
                end
    end
         
    -- Orbwalshiat
    function timeToShoot()
        return (GetTickCount() + GetLatency()/2 > lastAttack + lastAttackCD)
    end
         
    function moveToCursor()
         myHero:MoveTo(mousePos.x,mousePos.z)
    end
         
    function heroCanMove()
        return (GetTickCount() + GetLatency()/2 > lastAttack + lastWindUpTime + 20)
    end
         
    function OrbWalk()
        if ValidTarget(ts.target) and GetDistance(ts.target) <= 500 then
            if timeToShoot()  then
                 myHero:Attack(ts.target)
            elseif heroCanMove()  then
                moveToCursor()
            end
            else
                moveToCursor()        
            end
         
    end
     
    function AutoHarrasEToggle() -- Auto E when enemy in range
        if (APTMENU.AutoHarrasE and ValidTarget(ts.target, (myHero.range)) and E) then
            CastSpell(_E, ts.target)
        end    
    end
     
    function AutoHarrasE() -- Auto E when enemy in range
        if (APTMENU.AutoHarrasEA and ValidTarget(ts.target, (myHero.range)) and E) then
            CastSpell(_E, ts.target)
        end    
    end
     
     
     
    --callbacks
    function OnProcessSpell(object,spell)
        if object == myHero then
            if spell.name:lower():find("attack") then
                lastAttack = GetTickCount() - GetLatency()/2
                lastWindUpTime = spell.windUpTime*1000
                lastAttackCD = spell.animationTime*1000
            end
               
        end
    end
         
        -- Check Globals--
           
    function getIgniteSlot()
                IgniteSlot = ((myHero:GetSpellData(SUMMONER_1).name:find("SummonerDot") and SUMMONER_1) or (myHero:GetSpellData(SUMMONER_2).name:find("SummonerDot") and SUMMONER_2) or nil)
    end
     
     
     
    function UpdateDamage()
                if ts.target ~= nil then
                        WDAMAGE = getDmg("W", ts.target, myHero)
                        EDAMAGE = getDmg("E", ts.target, myHero)
                        RDAMAGE = getDmg("R", ts.target, myHero)
                        IgniteDmg = getDmg("IGNITE", ts.target, myHero)
                end
    end
         
             
    function CheckSpells() -- Updates Skills--
                Q = (myHero:CanUseSpell(_Q) == READY)
                W = (myHero:CanUseSpell(_W) == READY)
                E = (myHero:CanUseSpell(_E) == READY)
                R = (myHero:CanUseSpell(_R) == READY)
                IgniteReady = (IgniteSlot ~= nil) and (myHero:CanUseSpell(IgniteSlot) == READY)
        end
         
    function checkDeathFireGrasp() --Check if DFG bought and if Ready--
                DeathfireGraspBought = GetInventorySlotItem(3128)
                DFGREADY = GetInventoryItemIsCastable(3128,myHero)
                            BlackFireTorch = GetInventorySlotItem(3188)
                            BlackFireTorchRDY = GetInventoryItemIsCastable(3188,myHero)
    end
         
         
         
         
         
         
        --DRAWINGS--
         
    function DrawW()
                if APTMENU.DrawStuff and APTMENU.DrawW and W then
                        DrawCircle(myHero.x, myHero.y, myHero.z, 900, 0xCC9999)
                end
    end
         
    function DrawE()
                if APTMENU.DrawStuff and APTMENU.DrawE and E then
                        DrawCircle(myHero.x, myHero.y, myHero.z,(myHero.range), 0x9900FF)
                end
    end
         
    function DrawR()
                if APTMENU.DrawStuff and APTMENU.DrawR and R then
                        DrawCircle(myHero.x, myHero.y, myHero.z, 645, 0xFF3300)
                end
    end
         
        --Draw Circle in W Range--
         
    function DrawWCircleInWRange()
                if APTMENU.DrawWCircleinW and W then
                        local myPosV = Vector(myHero.x, myHero.z)
                        local mousePosV = Vector(mousePos.x, mousePos.z)
                       
                        if GetDistance(myPosV, mousePosV) < 900 - 50 then
                                DrawCircle(mousePos.x, mousePos.y, mousePos.z, 250, 0x9933CC)
                        else
                                local finalV = myPosV+(mousePosV-myPosV):normalized()* (900 - 60)
                                --DrawCircle(mousePos.x, mousePos.y, mousePos.z, 250, 0x999999)
                                DrawCircle(finalV.x, myHero.y, finalV.y, 250, 0x9933CC)
                        end    
                        end
    end
     
     
     --Enemy Champion Drawings--
    function DrawComboKillerOrHarass()     
         for i=1, heroManager.iCount do
                    local enemy = heroManager:GetHero(i)
                            if ValidTarget(enemy) then
                                    local EnemyDrawPos = WorldToScreen(D3DXVECTOR3(enemy.x, enemy.y, enemy.z))
                                    local PosX = EnemyDrawPos.x - 35
                                    local PosY = EnemyDrawPos.y - 50
                                                    local DrawHim = heroManager:GetHero(i)
                                                    local GlobalW = getDmg("W",DrawHim, myHero)
                                                    local GlobalE = getDmg("E",DrawHim, myHero)
                                                    local GlobalR = getDmg("R",DrawHim, myHero)    
                                                    local GlobalIgnite = getDmg("IGNITE", DrawHim, myHero)
                                    if (DrawHim).health < (GlobalW + GlobalR + GlobalE+GlobalIgnite) and W and R and E and IgniteReady then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    elseif (DrawHim).health < (GlobalW + GlobalR + GlobalE) and W and R and E then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    elseif ((DrawHim).health < (GlobalW + GlobalE+GlobalIgnite) and E and W and IgniteReady ) or ((DrawHim).health < (GlobalW + GlobalR + GlobalIgnite) and W and R and IgniteReady) then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    elseif ((DrawHim).health < (GlobalW + GlobalE) and E and W ) or ((DrawHim).health < (GlobalW + GlobalR) and W and  R) then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    elseif ((DrawHim).health < (GlobalW+GlobalIgnite) and W and IgniteReady ) then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    elseif ((DrawHim).health < (GlobalW) and W ) or ((DrawHim).health < (GlobalE)and E) or ((DrawHim).health < (GlobalR) and  R) then
                                            DrawText("COMBOKILL",25,PosX ,PosY ,ARGB(255, 255, 000, 000))
                                    else
                                            DrawText("HARRAS ME",20,PosX ,PosY ,ARGB(255, 128, 128, 128))
                            end
            end
        end
    end


 

 

Annony_sygn_bySFG_01a.jpg

Syga by SofarGone

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...