Trace and buff/ atack at the same time

Hello I saw manny ppls with party tracing 1 char and buffing in the same time. I’m using x control works perfect …I was thinking for buffing/atacking should be xtarget but it seems to not buff . Anyone any ideas? It will be really usefull in dungeon and changing spots . Thanks:)