Pet position

I want to know if there is a way to know the pet position (trader pet). I need it to do somethings on an specific server, thanks @Ryan