PDA

View Full Version : stealth ring eq



Alaro
11-24-2015, 08:26 PM
need script when 2 moster on sceen use stealth ring;p Nakuu

mrozu
12-02-2015, 04:59 PM
local RingID = 3049 --stealth ring
local amount = 3 -- 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)


I was looking it also i found it today so im sharing ;p