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

szukam minimap timerów (te z bola odpadaja)


Rekomendowane odpowiedzi

Opublikowano

jak w temacie, szukam  jakiegos skryptu z timerami jungli, generalnie mógłby być ten z bola... gdybym nie bawił sie na enforce. ma ktos coś śmigającego?

Opublikowano

mk jogo

to gówno, będzie mi spadki fpsów robić ;) w sumie juz coś znalazłem... jakby ktoś potrzebował bo linka juz nie znajde a pare wersji trego sprawdzałem zanim znalazłem działającą to rzucam w code skrypt

 

 

--[[

Script: minimapTimers v0.3  (3.14 LoL patch)

 

Author: SurfaceS

Updated by TEAM DEKLAND

]]

do

    --[[      GLOBAL      ]]

    monsters = {

        summonerRift = {

            {   -- baron

                name = "baron",

                spawn = 900,

                respawn = 420,

                advise = true,

                camps = {

                    {

                        pos = { x = 4600, y = 60, z = 10250 },

                        name = "monsterCamp_12",

                        creeps = { { { name = "Worm12.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

            {   -- dragon

                name = "dragon",

                spawn = 150,

                respawn = 360,

                advise = true,

                camps = {

                    {

                        pos = { x = 9459, y = 60, z = 4193 },

                        name = "monsterCamp_6",

                        creeps = { { { name = "Dragon6.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

            {   -- blue

                name = "blue",

                spawn = 115,

                respawn = 300,

                advise = true,

                camps = {

                    {

                        pos = { x = 3632, y = 60, z = 7600 },

                        name = "monsterCamp_1",

                        creeps = { { { name = "AncientGolem1.1.1" }, { name = "YoungLizard1.1.2" }, { name = "YoungLizard1.1.3" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 10386, y = 60, z = 6811 },

                        name = "monsterCamp_7",

                        creeps = { { { name = "AncientGolem7.1.1" }, { name = "YoungLizard7.1.2" }, { name = "YoungLizard7.1.3" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- red

                name = "red",

                spawn = 115,

                respawn = 300,

                advise = true,

                camps = {

                    {

                        pos = { x = 7455, y = 60, z = 3890 },

                        name = "monsterCamp_4",

                        creeps = { { { name = "LizardElder4.1.1" }, { name = "YoungLizard4.1.2" }, { name = "YoungLizard4.1.3" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 6504, y = 60, z = 10584 },

                        name = "monsterCamp_10",

                        creeps = { { { name = "LizardElder10.1.1" }, { name = "YoungLizard10.1.2" }, { name = "YoungLizard10.1.3" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- wolves

                name = "wolves",

                spawn = 125,

                respawn = 50,

                advise = false,

                camps = {

                    {

                        pos = { x = 3370, y = 60, z = 6220 },

                                                name = "monsterCamp_2",

                        creeps = { { { name = "GiantWolf2.1.3" }, { name = "wolf2.1.1" }, { name = "wolf2.1.2" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 10650, y = 60, z = 8120 },

                                                name = "monsterCamp_8",

                        creeps = { { { name = "GiantWolf8.1.3" }, { name = "wolf8.1.1" }, { name = "wolf8.1.2" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- wraiths

                name = "wraiths",

                spawn = 125,

                respawn = 50,

                advise = false,

                camps = {

                    {

                        pos = { x = 6450, y = 60, z = 5220 },

                                                name = "monsterCamp_3",

                        creeps = { { { name = "Wraith3.1.3" }, { name = "LesserWraith3.1.1" }, { name = "LesserWraith3.1.2" }, { name = "LesserWraith3.1.4" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 7600, y = 60, z = 9250 },

                                                name = "monsterCamp_9",

                        creeps = { { { name = "Wraith9.1.3" }, { name = "LesserWraith9.1.1" }, { name = "LesserWraith9.1.2" }, { name = "LesserWraith9.1.4" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- GreatWraiths

                name = "GreatWraiths",

                spawn = 125,

                respawn = 50,

                advise = false,

                camps = {

                    {

                        pos = { x = 1655, y = 60, z = 8200 },

                                                name = "monsterCamp_13",

                        creeps = { { { name = "GreatWraith13.1.1" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 12330, y = 60, z = 6300 },

                                                name = "monsterCamp_14",

                        creeps = { { { name = "GreatWraith14.1.1" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- Golems

                name = "Golems",

                spawn = 125,

                respawn = 50,

                advise = false,

                camps = {

                    {

                        pos = { x = 8100, y = 60, z = 2550 },

                                                name = "monsterCamp_5",

                        creeps = { { { name = "Golem5.1.2" }, { name = "SmallGolem5.1.1" }, }, },

                        team = TEAM_BLUE,

                    },

                    {

                        pos = { x = 6110, y = 60, z = 11970 },

                                                name = "monsterCamp_11",

                        creeps = { { { name = "Golem11.1.2" }, { name = "SmallGolem11.1.1" }, }, },

                        team = TEAM_RED,

                    },

                },

            },

        },

        twistedTreeline = {

            {   -- Wraith

                name = "Wraith",

                spawn = 100,

                respawn = 50,

                advise = false,

                camps = {

                    {

                        --pos = { x = 4414, y = 60, z = 5774 },

                        name = "monsterCamp_1",

                        creeps = {

                            { { name = "TT_NWraith1.1.1" }, { name = "TT_NWraith21.1.2" }, { name = "TT_NWraith21.1.3" }, },

                        },

                        team = TEAM_BLUE,

                    },

                    {

                        --pos = { x = 11008, y = 60, z = 5775 },

                        name = "monsterCamp_4",

                        creeps = {

                            { { name = "TT_NWraith4.1.1" }, { name = "TT_NWraith24.1.2" }, { name = "TT_NWraith24.1.3" }, },

                        },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- Golems

                name = "Golems",

                respawn = 50,

                spawn = 100,

                advise = false,

                camps = {

                    {

                        --pos = { x = 5088, y = 60, z = 8065 },

                        name = "monsterCamp_2",

                        creeps = {

                            { { name = "TT_NGolem2.1.1" }, { name = "TT_NGolem22.1.2" } },

                        },

                        team = TEAM_BLUE,

                    },

                    {

                        --pos = { x = 10341, y = 60, z = 8084 },

                        name = "monsterCamp_5",

                        creeps = {

                            { { name = "TT_NGolem5.1.1" }, { name = "TT_NGolem25.1.2" } },

                        },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- Wolves

                name = "Wolves",

                respawn = 50,

                spawn = 100,

                advise = false,

                camps = {

                    {

                        --pos = { x = 6148, y = 60, z = 5993 },

                        name = "monsterCamp_3",

                        creeps = { { { name = "TT_NWolf3.1.1" }, { name = "TT_NWolf23.1.2" }, { name = "TT_NWolf23.1.3" } }, },

                        team = TEAM_BLUE,

                    },

                    {

                        --pos = { x = 9239, y = 60, z = 6022 },

                        name = "monsterCamp_6",

                        creeps = { { { name = "TT_NWolf6.1.1" }, { name = "TT_NWolf26.1.2" }, { name = "TT_NWolf26.1.3" } }, },

                        team = TEAM_RED,

                    },

                },

            },

            {   -- Heal

                name = "Heal",

                spawn = 115,

                respawn = 90,

                advise = true,

                camps = {

                    {

                        pos = { x = 7711, y = 60, z = 6722 },

                        name = "monsterCamp_7",

                        creeps = { { { name = "TT_Relic7.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

            {   -- Vilemaw

                name = "Vilemaw",

                spawn = 600,

                respawn = 300,

                advise = true,

                camps = {

                    {

                        pos = { x = 7711, y = 60, z = 10080 },

                        name = "monsterCamp_8",

                        creeps = { { { name = "TT_Spiderboss8.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

        },

        crystalScar = {},

        provingGrounds = {

            {   -- Heal

                name = "Heal",

                spawn = 190,

                respawn = 40,

                advise = false,

                camps = {

                    {

                        pos = { x = 8922, y = 60, z = 7868 },

                        name = "monsterCamp_1",

                        creeps = { { { name = "OdinShieldRelic1.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 7473, y = 60, z = 6617 },

                        name = "monsterCamp_2",

                        creeps = { { { name = "OdinShieldRelic2.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 5929, y = 60, z = 5190 },

                        name = "monsterCamp_3",

                        creeps = { { { name = "OdinShieldRelic3.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 4751, y = 60, z = 3901 },

                        name = "monsterCamp_4",

                        creeps = { { { name = "OdinShieldRelic4.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

        },

        howlingAbyss = {

            {   -- Heal

                name = "Heal",

                spawn = 190,

                respawn = 40,

                advise = false,

                camps = {

                    {

                        pos = { x = 8922, y = 60, z = 7868 },

                        name = "monsterCamp_1",

                        creeps = { { { name = "HA_AP_HealthRelic1.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 7473, y = 60, z = 6617 },

                        name = "monsterCamp_2",

                        creeps = { { { name = "HA_AP_HealthRelic2.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 5929, y = 60, z = 5190 },

                        name = "monsterCamp_3",

                        creeps = { { { name = "HA_AP_HealthRelic3.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                    {

                        pos = { x = 4751, y = 60, z = 3901 },

                        name = "monsterCamp_4",

                        creeps = { { { name = "HA_AP_HealthRelic4.1.1" }, }, },

                        team = TEAM_NEUTRAL,

                    },

                },

            },

        },

    }

 

    altars = {

        summonerRift = {},

        twistedTreeline = {

            {

                name = "Left Altar",

                spawn = 180,

                respawn = 85,

                advise = true,

                objectName = "TT_Buffplat_L",

                locked = false,

                lockNames = {"TT_Lock_Blue_L.troy", "TT_Lock_Purple_L.troy", "TT_Lock_Neutral_L.troy", },

                unlockNames = {"TT_Unlock_Blue_L.troy", "TT_Unlock_purple_L.troy", "TT_Unlock_Neutral_L.troy", },

            },

            {

                name = "Right Altar",

                spawn = 180,

                respawn = 85,

                advise = true,

                objectName = "TT_Buffplat_R",

                locked = false,

                lockNames = {"TT_Lock_Blue_R.troy", "TT_Lock_Purple_R.troy", "TT_Lock_Neutral_R.troy", },

                unlockNames = {"TT_Unlock_Blue_R.troy", "TT_Unlock_purple_R.troy", "TT_Unlock_Neutral_R.troy", },

            },

        },

        crystalScar = {},

        provingGrounds = {},

        howlingAbyss = {},

    }

 

    relics = {

        summonerRift = {},

        twistedTreeline = {},

        crystalScar = {

            {

                pos = { x = 5500, y = 60, z = 6500 },

                name = "Relic",

                team = TEAM_BLUE,

                spawn = 180,

                respawn = 180,

                advise = true,

                locked = false,

                precenceObject = (player.team == TEAM_BLUE and "Odin_Prism_Green.troy" or "Odin_Prism_Red.troy"),

            },

            {

                pos = { x = 7550, y = 60, z = 6500 },

                name = "Relic",

                team = TEAM_RED,

                spawn = 180,

                respawn = 180,

                advise = true,

                locked = false,

                precenceObject = (player.team == TEAM_RED and "Odin_Prism_Green.troy" or "Odin_Prism_Red.troy"),

            },

        },

        provingGrounds = {},

        howlingAbyss = {},

    }

 

    heals = {

        summonerRift = {},

        twistedTreeline = {},

        provingGrounds = {},

        crystalScar = {

            {

                name = "Heal",

                objectName = "OdinShieldRelic",

                respawn = 30,

                objects = {},

            },

        },

        howlingAbyss = {},

    }

 

    inhibitors = {}

 

    function addCampCreepAltar(object)

        if object ~= nil and object.name ~= nil then

            if object.name == "Order_Inhibit_Gem.troy" or object.name == "Chaos_Inhibit_Gem.troy" then

                table.insert(inhibitors, { object = object, destroyed = false, lefttime = 0, x = object.x, y = object.y, z = object.z, minimap = GetMinimap(object), textTick = 0 })

                return

            elseif object.name == "Order_Inhibit_Crystal_Shatter.troy" or object.name == "Chaos_Inhibit_Crystal_Shatter.troy" then

                for i,inhibitor in pairs(inhibitors) do

                    if GetDistance(inhibitor, object) < 200 then

                        local tick = GetTickCount()

                        inhibitor.dtime = tick

                        inhibitor.rtime = tick + 240000

                        inhibitor.ltime = 240000

                        inhibitor.destroyed = true

                    end

                end

                return

            end

            for i,monster in pairs(monsters[mapName]) do

                for j,camp in pairs(monster.camps) do

                    if camp.name == object.name then

                        camp.object = object

                        return

                    end

                    if object.type == "obj_AI_Minion" then

                        for k,creepPack in ipairs(camp.creeps) do

                            for l,creep in ipairs(creepPack) do

                                if object.name == creep.name then

                                    creep.object = object

                                    return

                                end

                            end

                        end

                    end

                end

            end

            for i,altar in pairs(altars[mapName]) do

                if altar.objectName == object.name then

                    altar.object = object

                    altar.textTick = 0

                    altar.minimap = GetMinimap(object)

                end

                if altar.locked then

                    for j,lockName in pairs(altar.unlockNames) do

                        if lockName == object.name then

                            altar.locked = false

                            return

                        end

                    end

                else

                    for j,lockName in pairs(altar.lockNames) do

                        if lockName == object.name then

                            altar.drawColor = 0

                            altar.drawText = ""

                            altar.locked = true

                            altar.advised = false

                            altar.advisedBefore = false

                            return

                        end

                    end

                end

            end

            for i,relic in pairs(relics[mapName]) do

                if relic.precenceObject == object.name then

                    relic.object = object

                    relic.textTick = 0

                    relic.locked = false

                    return

                end

            end

            for i,heal in pairs(heals[mapName]) do

                if heal.objectName == object.name then

                    for j,healObject in pairs(heal.objects) do

                        if (GetDistance(healObject, object) < 50) then

                            healObject.object = object

                            healObject.found = true

                            healObject.locked = false

                            return

                        end

                    end

                    local k = #heal.objects + 1

                    heals[mapName].objects[k] = {found = true, locked = false, object = object, x = object.x, y = object.y, z = object.z, minimap = GetMinimap(object), textTick = 0,}

                    return

                end

            end

        end

    end

 

    function removeCreep(object)

        if object ~= nil and object.type == "obj_AI_Minion" and object.name ~= nil then

            for i,monster in pairs(monsters[mapName]) do

                for j,camp in pairs(monster.camps) do

                    for k,creepPack in ipairs(camp.creeps) do

                        for l,creep in ipairs(creepPack) do

                            if object.name == creep.name then

                                creep.object = nil

                                return

                            end

                        end

                    end

                end

            end

        end

    end

 

    function OnLoad()

        mapName = GetGame().map.shortName

        if monsters[mapName] == nil then

            mapName = nil

            monsters = nil

            addCampCreepAltar = nil

            removeCreep = nil

            addAltarObject = nil

            return

        else

            startTick = GetGame().tick

            -- CONFIG

            MMTConfig = scriptConfig("Timers 0.2", "minimapTimers")

            MMTConfig:addParam("pingOnRespawn", "Ping on respawn", SCRIPT_PARAM_ONOFF, true) -- ping location on respawn

            MMTConfig:addParam("pingOnRespawnBefore", "Ping before respawn", SCRIPT_PARAM_ONOFF, true) -- ping location before respawn

            MMTConfig:addParam("textOnRespawn", "Chat on respawn", SCRIPT_PARAM_ONOFF, true) -- print chat text on respawn

            MMTConfig:addParam("textOnRespawnBefore", "Chat before respawn", SCRIPT_PARAM_ONOFF, true) -- print chat text before respawn

            MMTConfig:addParam("adviceEnemyMonsters", "Advice enemy monster", SCRIPT_PARAM_ONOFF, true) -- advice enemy monster, or just our monsters

            MMTConfig:addParam("adviceBefore", "Advice Time", SCRIPT_PARAM_SLICE, 20, 1, 40, 0) -- time in second to advice before monster respawn

            MMTConfig:addParam("textOnMap", "Text on map", SCRIPT_PARAM_ONOFF, true) -- time in second on map

            for i,monster in pairs(monsters[mapName]) do

                monster.isSeen = false

                for j,camp in pairs(monster.camps) do

                    camp.enemyTeam = (camp.team == TEAM_ENEMY)

                    camp.textTick = 0

                    camp.status = 0

                    camp.drawText = ""

                    camp.drawColor = 0xFF00FF00

                end

            end

            for i = 1, objManager.maxObjects do

                local object = objManager:getObject(i)

                if object ~= nil then

                    addCampCreepAltar(object)

                end

            end

            AddCreateObjCallback(addCampCreepAltar)

            AddDeleteObjCallback(removeCreep)

        end

    end

    function OnTick()

        if GetGame().isOver then return end

        local GameTime = (GetTickCount()-startTick) / 1000

        local monsterCount = 0

        for i,monster in pairs(monsters[mapName]) do

            for j,camp in pairs(monster.camps) do

                local campStatus = 0

                for k,creepPack in ipairs(camp.creeps) do

                    for l,creep in ipairs(creepPack) do

                        if creep.object ~= nil and creep.object.valid and creep.object.dead == false then

                            if l == 1 then

                                campStatus = 1

                            elseif campStatus ~= 1 then

                                campStatus = 2

                            end

                        end

                    end

                end

                --[[  Not used until camp.showOnMinimap work

                if (camp.object and camp.object.showOnMinimap == 1) then

                -- camp is here

                if campStatus == 0 then campStatus = 3 end

                elseif camp.status == 3 then                        -- empty not seen when killed

                campStatus = 5

                elseif campStatus == 0 and (camp.status == 1 or camp.status == 2) then

                campStatus = 4

                camp.deathTick = tick

                end

                ]]

                -- temp fix until camp.showOnMinimap work

                -- not so good

                if camp.object ~= nil and camp.object.valid then

                    camp.minimap = GetMinimap(camp.object)

                    if campStatus == 0 then

                        if (camp.status == 1 or camp.status == 2) then

                            campStatus = 4

                            camp.advisedBefore = false

                            camp.advised = false

                            camp.respawnTime = math.ceil(GameTime) + monster.respawn

                            camp.respawnText = (camp.enemyTeam and "Enemy " or "")..monster.name.." respawn at "..TimerText(camp.respawnTime)

                        elseif (camp.status == 4) then

                            campStatus = 4

                        else

                            campStatus = 3

                        end

                    end

                elseif camp.pos ~= nil then

                    camp.minimap = GetMinimap(camp.pos)

                    if (GameTime < monster.spawn) then

                        campStatus = 4

                        camp.advisedBefore = true

                        camp.advised = true

                        camp.respawnTime = monster.spawn

                        camp.respawnText = (camp.enemyTeam and "Enemy " or "")..monster.name.." spawn at "..TimerText(camp.respawnTime)

                    end

                end

                if camp.status ~= campStatus or campStatus == 4 then

                    if campStatus ~= 0 then

                        if monster.isSeen == false then monster.isSeen = true end

                        camp.status = campStatus

                    end

                    if camp.status == 1 then                -- ready

                        camp.drawText = "ready"

                        camp.drawColor = 0xFF00FF00

                    elseif camp.status == 2 then            -- ready, master creeps dead

                        camp.drawText = "stolen"

                        camp.drawColor = 0xFFFF0000

                    elseif camp.status == 3 then            -- ready, not creeps shown

                        camp.drawText = "   ?"

                        camp.drawColor = 0xFF00FF00

                    elseif camp.status == 4 then            -- empty from creeps kill

                        local secondLeft = math.ceil(math.max(0, camp.respawnTime - GameTime))

                        if monster.advise == true and (MMTConfig.adviceEnemyMonsters == true or camp.enemyTeam == false) then

                            if secondLeft == 0 and camp.advised == false then

                                camp.advised = true

                                if MMTConfig.textOnRespawn then PrintChat("<font color='#00FFCC'>"..(camp.enemyTeam and "Enemy " or "")..monster.name.."</font><font color='#FFAA00'> has respawned</font>") end

                                if MMTConfig.pingOnRespawn then PingSignal(PING_FALLBACK,camp.object.x,camp.object.y,camp.object.z,2) end

                            elseif secondLeft <= MMTConfig.adviceBefore and camp.advisedBefore == false then

                                camp.advisedBefore = true

                                if MMTConfig.textOnRespawnBefore then PrintChat("<font color='#00FFCC'>"..(camp.enemyTeam and "Enemy " or "")..monster.name.."</font><font color='#FFAA00'> will respawn in </font><font color='#00FFCC'>"..secondLeft.." sec</font>") end

                                if MMTConfig.pingOnRespawnBefore then PingSignal(PING_FALLBACK,camp.object.x,camp.object.y,camp.object.z,2) end

                            end

                        end

                        -- temp fix until camp.showOnMinimap work

                        if secondLeft == 0 then

                            camp.status = 0

                        end

                        camp.drawText = " "..TimerText(secondLeft)

                        camp.drawColor = 0xFFFFFF00

                    elseif camp.status == 5 then            -- camp found empty (not using yet)

                        camp.drawText = "   -"

                        camp.drawColor = 0xFFFF0000

                    end

                end

                -- shift click

                if IsKeyDown(16) and camp.status == 4 then

                    camp.drawText = " "..(camp.respawnTime ~= nil and TimerText(camp.respawnTime) or "")

                    camp.textUnder = (CursorIsUnder(camp.minimap.x - 9, camp.minimap.y - 5, 20, 8))

                else

                    camp.textUnder = false

                end

                if MMTConfig.textOnMap and camp.status == 4 and camp.object and camp.object.valid and camp.textTick < GetTickCount() and camp.floatText ~= camp.drawText then

                    camp.floatText = camp.drawText

                    camp.textTick = GetTickCount() + 1000

                    PrintFloatText(camp.object,6,camp.floatText)

                end

            end

        end

 

        -- altars

        for i,altar in pairs(altars[mapName]) do

            if altar.object and altar.object.valid then

                if altar.locked then

                    if GameTime < altar.spawn then

                        altar.secondLeft = math.ceil(math.max(0, altar.spawn - GameTime))

                    else

                        local tmpTime = ((altar.object.mana > 39600) and (altar.object.mana - 39900) / 20100 or (39600 - altar.object.mana) / 20100)

                        altar.secondLeft = math.ceil(math.max(0, tmpTime * altar.respawn))

                    end

                    altar.unlockTime = math.ceil(GameTime + altar.secondLeft)

                    altar.unlockText = altar.name.." unlock at "..TimerText(altar.unlockTime)

                    altar.drawColor = 0xFFFFFF00

                    if altar.advise == true then

                        if altar.secondLeft == 0 and altar.advised == false then

                            altar.advised = true

                            if MMTConfig.textOnRespawn then PrintChat("<font color='#00FFCC'>"..altar.name.."</font><font color='#FFAA00'> is unlocked</font>") end

                            if MMTConfig.pingOnRespawn then PingSignal(PING_FALLBACK,altar.object.x,altar.object.y,altar.object.z,2) end

                        elseif altar.secondLeft <= MMTConfig.adviceBefore and altar.advisedBefore == false then

                            altar.advisedBefore = true

                            if MMTConfig.textOnRespawnBefore then PrintChat("<font color='#00FFCC'>"..altar.name.."</font><font color='#FFAA00'> will unlock in </font><font color='#00FFCC'>"..altar.secondLeft.." sec</font>") end

                            if MMTConfig.pingOnRespawnBefore then PingSignal(PING_FALLBACK,altar.object.x,altar.object.y,altar.object.z,2) end

                        end

                    end

                    -- shift click

                    if IsKeyDown(16) then

                        altar.drawText = " "..(altar.unlockTime ~= nil and TimerText(altar.unlockTime) or "")

                        altar.textUnder = (CursorIsUnder(altar.minimap.x - 9, altar.minimap.y - 5, 20, 8))

                    else

                        altar.drawText = " "..(altar.secondLeft ~= nil and TimerText(altar.secondLeft) or "")

                        altar.textUnder = false

                    end

                    if MMTConfig.textOnMap and altar.object and altar.object.valid and altar.textTick < GetTickCount() and altar.floatText ~= altar.drawText then

                        altar.floatText = altar.drawText

                        altar.textTick = GetTickCount() + 1000

                        PrintFloatText(altar.object,6,altar.floatText)

                    end

                end

            end

        end

 

        -- relics

        for i,relic in pairs(relics[mapName]) do

            if (not relic.locked and (not relic.object or not relic.object.valid or relic.dead)) then

                if GameTime < relic.spawn then

                    relic.unlockTime = relic.spawn - GameTime

                else

                    relic.unlockTime = math.ceil(GameTime + relic.respawn)

                end

                relic.advised = false

                relic.advisedBefore = false

                relic.drawText = ""

                relic.unlockText = relic.name.." respawn at "..TimerText(relic.unlockTime)

                relic.drawColor = 4288610048

                --FF9EFF00

                relic.minimap = GetMinimap(relic.pos)

                relic.locked = true

            end

            if relic.locked then

                relic.secondLeft = math.ceil(math.max(0, relic.unlockTime - GameTime))

                if relic.advise == true then

                    if relic.secondLeft == 0 and relic.advised == false then

                        relic.advised = true

                        if MMTConfig.textOnRespawn then PrintChat("<font color='#00FFCC'>"..relic.name.."</font><font color='#FFAA00'> has respawned</font>") end

                        if MMTConfig.pingOnRespawn then PingSignal(PING_FALLBACK,relic.pos.x,relic.pos.y,relic.pos.z,2) end

                    elseif relic.secondLeft <= MMTConfig.adviceBefore and relic.advisedBefore == false then

                        relic.advisedBefore = true

                        if MMTConfig.textOnRespawnBefore then PrintChat("<font color='#00FFCC'>"..relic.name.."</font><font color='#FFAA00'> will respawn in </font><font color='#00FFCC'>"..relic.secondLeft.." sec</font>") end

                        if MMTConfig.pingOnRespawnBefore then PingSignal(PING_FALLBACK,relic.pos.x,relic.pos.y,relic.pos.z,2) end

                    end

                end

                -- shift click

                if IsKeyDown(16) then

                    relic.drawText = " "..(relic.unlockTime ~= nil and TimerText(relic.unlockTime) or "")

                    relic.textUnder = (CursorIsUnder(relic.minimap.x - 9, relic.minimap.y - 5, 20, 8))

                else

                    relic.drawText = " "..(relic.secondLeft ~= nil and TimerText(relic.secondLeft) or "")

                    relic.textUnder = false

                end

            end

        end

 

        for i,heal in pairs(heals[mapName]) do

            for j,healObject in pairs(heal.objects) do

                if (not healObject.locked and healObject.found and (not healObject.object or not healObject.object.valid or healObject.object.dead)) then

                    healObject.drawColor = 0xFF00FF04

                    healObject.unlockTime = math.ceil(GameTime + heal.respawn)

                    healObject.drawText = ""

                    healObject.found = false

                    healObject.locked = true

                end

                if healObject.locked then

                    -- shift click

                    local secondLeft = math.ceil(math.max(0, healObject.unlockTime - GameTime))

                    if IsKeyDown(16) then

                        healObject.drawText = " "..(healObject.unlockTime ~= nil and TimerText(healObject.unlockTime) or "")

                        healObject.textUnder = (CursorIsUnder(healObject.minimap.x - 9, healObject.minimap.y - 5, 20, 8))

                    else

                        healObject.drawText = " "..(secondLeft ~= nil and TimerText(secondLeft) or "")

                        healObject.textUnder = false

                    end

                    if secondLeft == 0 then healObject.locked = false end

                end

            end

        end

        -- inhib

        for i,inhibitor in pairs(inhibitors) do

            if inhibitor.destroyed then

                local tick = GetTickCount()

                if inhibitor.rtime < tick then

                    inhibitor.destroyed = false

                else

                    inhibitor.ltime = (inhibitor.rtime - GetTickCount()) / 1000;

                    inhibitor.drawText = TimerText(inhibitor.ltime)

                    --inhibitor.drawText = (IsKeyDown(16) and TimerText(inhibitor.rtime) or TimerText(inhibitor.rtime))

                    if MMTConfig.textOnMap and inhibitor.textTick < tick then

                        inhibitor.textTick = tick + 1000

                        PrintFloatText(inhibitor.object,6,inhibitor.drawText)

                    end

                end

            end

        end

    end

 

    function OnDraw()

        if GetGame().isOver then return end

        for i,monster in pairs(monsters[mapName]) do

            if monster.isSeen == true then

                for j,camp in pairs(monster.camps) do

                    if camp.status == 2 then

                        DrawText("X",16,camp.minimap.x - 4, camp.minimap.y - 5, camp.drawColor)

                    elseif camp.status == 4 then

                        DrawText(camp.drawText,16,camp.minimap.x - 9, camp.minimap.y - 5, camp.drawColor)

                    end

                end

            end

        end

        for i,altar in pairs(altars[mapName]) do

            if altar.locked then

                DrawText(altar.drawText,16,altar.minimap.x - 9, altar.minimap.y - 5, altar.drawColor)

            end

        end

        for i,relic in pairs(relics[mapName]) do

            if relic.locked then

                DrawText(relic.drawText,16,relic.minimap.x - 9, relic.minimap.y - 5, relic.drawColor)

            end

        end

        for i,heal in pairs(heals[mapName]) do

            for j,healObject in pairs(heal.objects) do

                if healObject.locked then

                    DrawText(healObject.drawText,16,healObject.minimap.x - 9, healObject.minimap.y - 5, healObject.drawColor)

                end

            end

        end

        for i,inhibitor in pairs(inhibitors) do

            if inhibitor.destroyed == true then

                DrawText(inhibitor.drawText,16,inhibitor.minimap.x - 9, inhibitor.minimap.y - 5, 0xFFFFFF00)

            end

        end

    end

 

    function OnWndMsg(msg,key)

        if msg == WM_LBUTTONDOWN and IsKeyDown(16) then

            for i,monster in pairs(monsters[mapName]) do

                if monster.isSeen == true then

                    if monster.iconUnder then

                        monster.advise = not monster.advise

                        break

                    else

                        for j,camp in pairs(monster.camps) do

                            if camp.textUnder then

                                if camp.respawnText ~= nil then SendChat(""..camp.respawnText) end

                                break

                            end

                        end

                    end

                end

            end

            for i,altar in pairs(altars[mapName]) do

                if altar.locked and altar.textUnder then

                    if altar.unlockText ~= nil then SendChat(""..altar.unlockText) end

                    break

                end

            end

        end

    end

end

 

 

Opublikowano

to gówno, będzie mi spadki fpsów robić ;) w sumie juz coś znalazłem... jakby ktoś potrzebował bo linka juz nie znajde a pare wersji trego sprawdzałem zanim znalazłem działającą to rzucam w code skrypt

 

 

 

MK jogo tworzy spadki fps? A bol niby nie ? Na max detalach na mk jogo mam 300 fps, na bolu ma średnich ~80 

,,Nawet jeśli nie masz już siły, możesz nadal walczyć i osiągnąć swój cel." <3 

 

29.png

Opublikowano

W Telefonie. 

 

Standalone ( Czyli samo bez zadnych dodatkow, skryptow ) Bedzie niedlugo, jak Rito wprowadzi nowa mape to pod TAB bedzie mozna bylo zobaczyc Timery kazdego buffa.

Albicoolvod->Katatuki

 

d64cee27e8dd47f0bbd3738cee5a7cce.png

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...