if (user.DistTo(Char2) < radius_max)
and not (char2.ismember)
and not (char2.dead)
and not (user.clanid = char2.clanid)
and not ((char2.ClassID = 27) or (char2.ClassID = 103)) // Changed from User to char2
and (char2.pvp) then
begin
// Your code to target char2
end;