I have a quest that uses a spawned item to teleport the player to a dungeon. A ring appears, and when you double click the ring you are teleported and the ring self deletes. That part works... but... pets are not teleported with you. On a standard teleport pad, I believe there is an option for pets. Is there a way to code it into the ring? :cool:


Here is the relevant code snippet, and I attached the script.


public override void OnDoubleClick(Mobile from)
{
base.OnDoubleClick(from);

if (from != null)
{
from.MoveToWorld(new Point3D(5256, 1839, 0), Map.Trammel);
this.Delete();
}
}
 

Attachments

  • SitasRing.cs
    1.5 KB · Views: 5
I think all you would need to add is:

BaseCreature.TeleportPets( from, new Point3D(5256, 1839, 0), Map.Trammel );
 
Back