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

XenoBot life ring


Kacapek

Rekomendowane odpowiedzi

Opublikowano

Witam, potrzebuję skryptu do xeno żeby zakładał life ring jeżeli nie jest założony stealth. Ewentualnie dodanie do tego skryptu zakładanie life ring mp<90%.

 

 

 

local RingID = 3049 --stealth ring

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

local range = 4 -- 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(400)

end)

 

 

reklama

Opublikowano

local RingID = 3049 --stealth ring
local RingID = 3052 - id life ringa             

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

local range = 4 -- 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.Equip(RingID2, "ring")

    end

    ring:Delay(400)

end)

Jeżeli ma założony stealth ring i go zdejmie to założy life ringa.

1X0FApz.gif

 

Opublikowano

Ajaj, przy dodawaniu komentarza usunąłem jeden myślnik podczas kopiowania (2 linijka, sorry ;d).

local RingID = 3049 --stealth ring
local RingID2 = 3052

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

local range = 4 -- 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.Equip(RingID2, "ring")

    end

    ring:Delay(400)

end)

 

Opublikowano

naszła mnie jeszcze taka myśl żeby dodać

ManaToUp = 70                                  -- If mana is lower than 70%

if (Self.ManaPercent() <= ManaToUp)

Możliwe?

 

Wydaje mi się że można by przerobić skrypt na softy.

 

 

 

local Softboots = true --- Do you want use softboots?

local ManaToEquip = 70 -- Mana Percent to equip soft boots.

local NormalBoots = 'Draken Boots' --- Your normal boots.





local SoftBoots = 6529

local ActiveSoftBoots = 3549

local WornSoftBoots = 6530



Module.New('Equip Softs', function(Softs)

	if (Softboots) then

		if (ManaPercent() <= ManaToEquip) and (Self.Feet().id ~= ActiveSoftBoots) and (Self.ItemCount(SoftBoots) > 0) then

			Self.Equip(SoftBoots, 'feet')

			Softs:Delay(1000)

		elseif (ManaPercent() >= ManaToEquip) or (Self.Feet().id == WornSoftBoots) then

			Self.Equip(NormalBoots, 'feet')

			Softs:Delay(1000)

		end

	end

end

 

 

reklama

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...