Ejemplo n.º 1
0
            protected override void OnTick()
            {
                pm.MoveToWorld(i_Gate.New_Location, i_Gate.New_Map);

                if (i_Gate.IsSpecial)
                {
                    Point3D point3D = new Point3D(pm.X, pm.Y, pm.Z);

                    if (i_Gate.Hue == 1260) //Fire
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x3709, 30);
                    }
                    if (i_Gate.Hue == 1266) //Ice
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x37CC, 40);
                    }
                    if (i_Gate.Hue == 1272) //Toxic
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x374A, 17);
                    }
                    if (i_Gate.Hue == 1283) //Electric
                    {
                        Effects.SendBoltEffect(pm);
                    }
                    if (i_Gate.Hue == 1288) //Mist
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x3728, 13);
                    }
                    if (i_Gate.Hue == 1174) //Explosion
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x36BD, 10);
                    }
                    if (i_Gate.Hue == 1177) //Stone
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x37C4, 31);
                    }
                    if (i_Gate.Hue == 1287) //Shiny
                    {
                        Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x375A, 30);
                    }
                }
                else
                {
                    BBTravelEnd i_BlackBoxEnd = new BBTravelEnd(i_Gate.Custom_Hue, pm.Name);

                    i_BlackBoxEnd.MoveToWorld(i_Gate.New_Location, i_Gate.New_Map);
                    Effects.SendLocationEffect(i_Gate.New_Location, i_Gate.New_Map, 0x3728, 13);
                }
                i_Gate.StartSound(i_Gate);

                if (i_Gate.IsSpecial)
                {
                    i_Gate.Delete();
                }
                Stop();
            }
Ejemplo n.º 2
0
 protected override void OnTick()
 {
     i_Gate.StartSound(i_Gate);
     i_Gate.Delete();
     Stop();
 }
Ejemplo n.º 3
0
 protected override void OnTick()
 {
     i_Gate.Delete();
     Stop();
 }