nick4share
08-05-2020, 07:09 AM
Hello.
Need script which will be enable targeting only when on screen will be 3 mobs and more.
local MonsterList = {"Dragon"}
local MonsterCount = 2
local MonsterRange = 8
Module.New("TargetingOnOFF", function(module)
local mob = Self.GetTargets(MonsterRange)
local mobCount = 0
for i = 1, #mob do
if table.contains(MonsterList, mob[i]:Name()) then
mobCount = mobCount + 1
end
end
if (mobCount >= MonsterCount) then
Targeting.StopIgnoring() else
Targeting.StartIgnoring()
end
module:Delay(2000, 3000)
end)
I use now this one but it's doesn't work perfect because when I have one mob on yellow HP, bot ignore him and run away.
Any ideas? Thanks in advance.
Need script which will be enable targeting only when on screen will be 3 mobs and more.
local MonsterList = {"Dragon"}
local MonsterCount = 2
local MonsterRange = 8
Module.New("TargetingOnOFF", function(module)
local mob = Self.GetTargets(MonsterRange)
local mobCount = 0
for i = 1, #mob do
if table.contains(MonsterList, mob[i]:Name()) then
mobCount = mobCount + 1
end
end
if (mobCount >= MonsterCount) then
Targeting.StopIgnoring() else
Targeting.StartIgnoring()
end
module:Delay(2000, 3000)
end)
I use now this one but it's doesn't work perfect because when I have one mob on yellow HP, bot ignore him and run away.
Any ideas? Thanks in advance.