Fixed typo in action, added video example
Printable View
Fixed typo in action, added video example
should look like this if im going east??Code: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.posx < $posx) 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