Example #1
0
        public static void Create(Point3D location, Map map)
        {
            GreenThornsSHTeleporter tele = new GreenThornsSHTeleporter();

            tele.MoveToWorld(location, map);

            new InternalTimer(tele).Start();
        }
Example #2
0
        protected override TimeSpan Play(int step)
        {
            switch (step)
            {
            case 0:
            {
                Effects.PlaySound(Location, Map, 0x106);
                Effects.SendLocationParticles(EffectItem.Create(Location, Map, EffectItem.DefaultDuration), 0x3735, 1, 182, 0xBE3);

                return(TimeSpan.FromSeconds(4.0));
            }

            case 1:
            {
                Effects.PlaySound(Location, Map, 0x222);

                return(TimeSpan.FromSeconds(4.0));
            }

            case 2:
            {
                Effects.PlaySound(Location, Map, 0x21F);

                return(TimeSpan.FromSeconds(5.0));
            }

            default:
            {
                EffectItem dummy = EffectItem.Create(Location, Map, TimeSpan.FromSeconds(20.0));
                dummy.PublicOverheadMessage(MessageType.Regular, 0x3B2, true, "* The sand collapses, revealing a dark hole. *");

                GreenThornsSHTeleporter.Create(Location, Map);

                return(TimeSpan.Zero);
            }
            }
        }
Example #3
0
 public InternalTimer(GreenThornsSHTeleporter teleporter) : base(TimeSpan.FromMinutes(1.0))
 {
     m_Teleporter = teleporter;
     Priority     = TimerPriority.FiveSeconds;
 }