wServer.realm.entities.Player.GivePet C# (CSharp) Method

GivePet() public method

public GivePet ( short petId ) : void
petId short
return void
        public void GivePet(short petId)
        {
            if (Pet != null)
            {
                Owner.LeaveWorld(Pet);
            }
            Pet = Entity.Resolve(petId);
            Pet.PlayerOwner = this;
            Pet.Move(X, Y);
            Pet.isPet = true;
            Owner.EnterWorld(Pet);
        }