Bot: XenoBot
Opis skryptu: Bardzo prosty skrypt ale nigdzie nie mogę znaleźć, zakładanie stealth ringów gdy jest więcej niż np. 3 potworki
Dodatkowe informacje: Raczej szansa, że ktoś mi odpowie jest niewielka ale przydał by się jak najszybciej
Znalazłem już a jak by ktoś potrzebował to łapcie
-- Ring Settings
local DefaultRing = 3007 -- ID Crystal ringa
local RingToEquip = 3049 -- ID stealth ringa
local RingActive = 3086 -- Stealth ring kiedy aktywny
-- Creature Settings
local CreatureList = {"Creature name np Cyclops"}
local CreatureCount = 2 -- ilosć potworów
local CreatureRange = 3 -- odleglosc potworów
Module.New('equip special amulet', function(module)
local mob = Self.GetTargets(CreatureRange)
local count = 0
for i =1, #mob do
if table.contains(CreatureList, mob:Name()) then
count = count + 1
end
end
if count >= CreatureCount then
if (Self.Ring().id ~= RingActive) and (Self.ItemCount(RingToEquip) > 0) then
Self.Equip(RingToEquip, "ring")
end
elseif (Self.Ring().id ~= DefaultRing) and (Self.ItemCount(DefaultRing) > 0) then
Self.Equip(DefaultRing, "ring", 100)
end
module:Delay(200)
end)