Example #1
0
 public static void FinalEffect( Mobile target, int duration )
 {
     SanctuaryAddon sanctuary = new SanctuaryAddon();
     sanctuary.Region = new SanctuaryRegion( target, new Rectangle3D( new Point3D( target.X - 4, target.Y - 4, target.Z ), new Point3D( target.X + 6, target.Y + 6, target.Z + 60 ) ) );
     sanctuary.Region.Register();
     sanctuary.MoveToWorld( target.Location );
     sanctuary.Map = target.Map;
     ((IKhaerosMobile)target).Sanctuary = new SanctuaryTimer( target, sanctuary, duration );
     ((IKhaerosMobile)target).Sanctuary.Start();
     target.PlaySound( 502 );
 }
Example #2
0
 public SanctuaryTimer( Mobile from, SanctuaryAddon sanct, int delay )
     : base(TimeSpan.FromSeconds( delay ))
 {
     m = from;
     addon = sanct;
 }