View Full Version : If 4+ monster = TARG ON, and if -4 TARG OFF
Elizabeth
07-05-2016, 10:00 PM
Hey friends, i need one script :)
If on screen 4+ monsters (not specified name = others) my targeting set on, and if -4 targeting set off.
Thanks.
Trykon
07-05-2016, 10:37 PM
while true do
local MonsterAmount = 0
for name, _ in Creature.iMonsters() do
MonsterAmount = MonsterAmount + 1
end
if MonsterAmount >= 4 then
Targeting.Start()
else
Targeting.Stop()
end
wait(100)
end
should do ;)
Nakuu
07-05-2016, 11:26 PM
Should use Targeting.StartIgnoring() instead of Targeting.Stop(). It's safer ;)
Trykon
07-05-2016, 11:32 PM
Should use Targeting.StartIgnoring() instead of Targeting.Stop(). It's safer ;)
thanks mate... I didn't know this function xD
Elizabeth
07-06-2016, 12:06 AM
while true do
local MonsterAmount = 0
for name, _ in Creature.iMonsters() do
MonsterAmount = MonsterAmount + 1
end
if MonsterAmount >= 4 then
Targeting.Start()
else
Targeting.Stop()
end
wait(100)
end
should do ;)
Hey! this script work as i wanted, but U can change, that targ off if -1 monsters not -4?
Trykon
07-06-2016, 12:18 AM
Targeting.Start()
while true do
local MonsterAmount = 0
for name, _ in Creature.iMonsters() do
MonsterAmount = MonsterAmount + 1
end
if MonsterAmount >= 4 then
Targeting.StopIgnoring()
elseif MonsterAmount < 1 then
Targeting.StartIgnoring()
end
wait(100)
end
so this time it is enhanced with the command fron Nakuu ;)
Elizabeth
07-06-2016, 01:00 AM
Targeting.Start()
while true do
local MonsterAmount = 0
for name, _ in Creature.iMonsters() do
MonsterAmount = MonsterAmount + 1
end
if MonsterAmount >= 4 then
Targeting.StopIgnoring()
elseif MonsterAmount < 1 then
Targeting.StartIgnoring()
end
wait(100)
end
so this time it is enhanced with the command fron Nakuu ;)
I'll check tomorrow, because I fall asleep in the chair :D
Trykon
07-06-2016, 01:01 AM
Hah that's okay... I set bots to hunt and also go sleep... enough for today ;)
Jontor
07-06-2016, 11:29 AM
@Elizabeth You could try using the built-in 'Dynamic Lure (http://forums.xenobot.net/showthread.php?38077-Update-XenoBot-Apophis-v14-11-19-982-DYNAMIC-LURE-NO-MORE-FALLING-DOWN-HOLES)' feature
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.