ID:269476
 
I recently made a pet system. I don't really know how to go about saving the players pet, and I thought the best way may be to simply when the player logs out, to put the PET in the Players PETS list.

Then when the Player logs in, It ermm, Brings the Pet back out.

I did this. What I am having problems is, I tell it to locate at the the player, but it always says the pet is at (0,0).

Any help? ^_^v
Sniper Joe wrote:
I recently made a pet system. I don't really know how to go about saving the players pet, and I thought the best way may be to simply when the player logs out, to put the PET in the Players PETS list.

Then when the Player logs in, It ermm, Brings the Pet back out.

I did this. What I am having problems is, I tell it to locate at the the player, but it always says the pet is at (0,0).

Any help? ^_^v

Hello,

1. Is the pet null or is the location just at 0,0?
2. How are you relocating the pet?

[EDIT]
Reason for question 2 is because,

I think if the player and the dog are bolth density=1 then using Move() does its default and denies access to the location. I think you could just loc = locate(x,y,z) of some sort.

-- Green Lime
In response to Green Lime
It says (0,0) It could be null though..
    for(var/mob/Pets/P in world)
if(P.Owner==src)
P.loc = locate(P.Oldx,P.Oldy,P.Oldz)

That is for relocation

And to save it
        for(var/mob/Pets/P in world)
if(P.Owner==src)
src.Pets.Add(P)