This will turn off targeting when there's another player on the screen:
lua code:
local function playersOnScreen()
local count = 0
for name, _ in Creature.iPlayers(7) do
if name ~= Self.Name() then
count = count + 1
end
end
return count
end
Module("Anti-kill steal", function(self)
local playerCount = playersOnScreen()
if Targeting.IsIgnoring() and playerCount == 0 then
Targeting.StopIgnoring()
elseif not Targeting.IsIgnoring() and playerCount > 0 then
Targeting.StartIgnoring()
end
self:Delay(1000)
end)
However, it might not play nicely with more advanced scripts that use the ignore function for other stuff. It might also not work on some OTs.