Hello guys, I'd like to share with you my action for luring monsters, in past we usually use wait() to make good luring spot, now it may be done better atleast I hope you'll like it so let's start..
That's an cavebot action so put in in waypoints where do you want wait till X mobs come on you then start walking ahead. I'll make video tutorial hopefully this week!
PS. The action is based on this
Tutorial is too big word, but take it as example..
local function isInArray(arr, value)
for _, v in ipairs(arr) do
if (v:lower() == value:lower()) then
return true
end
end
return false
end
local MonstersLure = {"Dwarf Soldier", "Dwarf"} -- hunting monsters, you can add more as many as you want to lure
local timeLimit = 0
local Lure = true
if Lure then -- you may add some extra own coditions here like hunting style or something..
while true do
print(timeLimit)
if (timeLimit >= 10000) or (maround(2, unpack(MonstersLure)) >= 4) then
break
end
local minamount = 0
foreach creature m "mf" do
if (m.dist > 2) and (m.dist <= 7) and m.isreachable and isInArray(MonstersLure, m.name) then
minamount = minamount + 1
end
end
if (minamount > 0) then
local r = math.random(200, 300)
wait(r)
timeLimit = timeLimit + r
else
print("minamount: " .. minamount)
break
end
end
end