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

Problem ze skryptem


synskurwysyn

Rekomendowane odpowiedzi

Opublikowano

Siema mam sprypt na stealth ringa i straswznie wolno reaguje na zakladanie gdy widzi potworka pomoze ktos ? jakos to przyspieszyc.

 

 

 

local RingID = 3049 --stealth ring
local amount = 1 -- monster amount to put ring on
local range = 10 -- range to consider when looking for monster on screen
local monsterList = 
{
    'Corym Charlatan',
    'Corym Skirmisher',
    'Corym Vanguard',
    'Rorc'
}
   
function getMonsterCount()
    local count = 0
    for k, v in ipairs(Self.GetTargets(range)) do
        if table.find(monsterList, v:Name()) then
            count = count + 1
        end
    end
    return count
end
 
RingID = Item.GetItemIDFromDualInput(RingID)
local activeID = Item.GetRingActiveID(RingID)
Module('Ring Changer', function(ring)
    local count = getMonsterCount()
    if count >= amount and Self.Ring().id ~= activeID and Self.ItemCount(RingID) >= 1 then
        Self.Equip(RingID, "ring")
    elseif count < amount and Self.Ring().id == activeID then
        Self.Dequip("ring")
    end
    ring:Delay(450)
end)
Opublikowano


 

local RingID = 3049 --stealth ring

local amount = 1 -- monster amount to put ring on

local range = 10 -- range to consider when looking for monster on screen

local monsterList =

{

'Corym Charlatan',

'Corym Skirmisher',

'Corym Vanguard',

'Rorc'

}

 

function getMonsterCount()

local count = 0

for k, v in ipairs(Self.GetTargets(range)) do

if table.find(monsterList, v:Name()) then

count = count + 1

end

end

return count

end

 

RingID = Item.GetItemIDFromDualInput(RingID)

local activeID = Item.GetRingActiveID(RingID)

Module('Ring Changer', function(ring)

local count = getMonsterCount()

if count >= amount and Self.Ring().id ~= activeID and Self.ItemCount(RingID) >= 1 then

Self.Equip(RingID, "ring")

elseif count < amount and Self.Ring().id == activeID then

Self.Dequip("ring")

end

ring:Delay(200)

end)

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...