uh if you're grouped up, the exp is split evenly regardless of who does what in the group.
this is why players who pet solo often invite someone to sit afk in group, its more xp on a 2 person split, than solo with a pet eating xp.
https://wiki.project1999.com/Experience
https://wiki.project1999.com/Pet_Gui...and_Experience