ID:176640
 
How would i make it so when you logout your pet disapears and when you login it apears where you are?
You would have to save the pet along with the character in a savefile when they log out. Then load both when they log back in.
There is a more interesting work around if you don't expect the world to ever reboot but this method is too bug prone. (It involves putting the pet in null space.)
In response to Exadv1
I don't think it's possible to run a BYOND game 24/7 without having to reboot SOMETIME. The timing vars mess up, apparently.

Savefiles are the only viable option for this, I'm afraid...