View Full Version : Targeting on if more than 2 monsters
szymonki
04-08-2020, 08:14 AM
Hello.
I need script to set "targeting on" if character see 2 or more monsters.
If he see less than 2 monsters then targeting is off and character stop attack single monster.
Thank you for help.
szymonki
04-14-2020, 02:20 PM
Bump.
Still need this script!
garenja
06-03-2020, 06:32 AM
Msg me on Discord Storm#3657
nick4share
08-05-2020, 07:11 AM
szymonki and garenja,
can you share with your script?
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.