Ejemplo n.º 1
0
        private void StartSound(BBTravel BBT)
        {
            foreach (Mobile player in World.Mobiles.Values)
            {
                PlayerMobile pm = player as PlayerMobile;

                if (pm != null && BBT != null)
                {
                    if (pm.Map == BBT.Map)
                    {
                        if (pm.X > (BBT.X - 20) && pm.X < (BBT.X + 20))
                        {
                            if (pm.Y > (BBT.Y - 20) && pm.Y < (BBT.Y + 20))
                            {
                                if (BBT.IsSpecial)
                                {
                                    if (Hue == 1260) //Fire
                                    {
                                        pm.PlaySound(855);
                                    }
                                    if (Hue == 1266) //Ice
                                    {
                                        pm.PlaySound(20);
                                    }
                                    if (Hue == 1272) //Toxic
                                    {
                                        pm.PlaySound(1140);
                                    }
                                    if (Hue == 1283) //Electric
                                    {
                                        pm.PlaySound(41);
                                        Effects.SendBoltEffect(pm);
                                    }
                                    if (Hue == 1288) //Mist
                                    {
                                        pm.PlaySound(252);
                                    }
                                    if (Hue == 1174) //Explosion
                                    {
                                        pm.PlaySound(519);
                                    }
                                    if (Hue == 1177) //Stone
                                    {
                                        pm.PlaySound(515);
                                    }
                                    if (Hue == 1287) //Shiny
                                    {
                                        pm.PlaySound(492);
                                    }
                                }
                                else
                                {
                                    pm.PlaySound(0x20F);
                                }
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void OnLogout(LogoutEventArgs e)
        {
            int cnt = 0;

            foreach (Item item in World.Items.Values)
            {
                if (item.Name != null)
                {
                    if (item.Name.Contains("Black Box Portal") || item.Name.Contains("Black Box SoulStone"))
                    {
                        BBTravel BBT = item as BBTravel;

                        if (BBT.Owner == e.Mobile.Name)
                        {
                            item.Delete();

                            cnt++;
                        }
                    }

                    if (item.Name.Contains("Black Box Portal Exit"))
                    {
                        BBTravelEnd BBT = item as BBTravelEnd;

                        if (BBT.Owner == e.Mobile.Name)
                        {
                            item.Delete();

                            cnt++;
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
 private void StartingSound(BBTravel gate)
 {
     if (gate != null)
     {
         Sound_Timer = new SoundTimer(gate);
         Sound_Timer.Start();
     }
 }
Ejemplo n.º 4
0
 private void QuickDelete(BBTravel gate)
 {
     if (gate != null)
     {
         Quick_DeleteTimer = new QuickDeleteTimer(gate);
         Quick_DeleteTimer.Start();
     }
 }
Ejemplo n.º 5
0
 private void StartDeleteGate(BBTravel gate)
 {
     if (gate != null)
     {
         Delete_Timer = new DeleteTimer(gate);
         Delete_Timer.Start();
     }
 }
Ejemplo n.º 6
0
        private void StartTravel(PlayerMobile pm, BBTravel BBT)
        {
            if (New_Map == null || New_Map == Map.Internal)
            {
                return;
            }

            if (pm != null && BBT != null)
            {
                Move_Timer = new MoveTimer(pm, BBT);
                Move_Timer.Start();
            }
        }
Ejemplo n.º 7
0
 public DeleteTimer(BBTravel gate) : base(TimeSpan.FromSeconds(deleteDelay))
 {
     i_Gate = gate;
 }
Ejemplo n.º 8
0
 public QuickDeleteTimer(BBTravel gate) : base(TimeSpan.FromMilliseconds(q_DeleteDelay))
 {
     i_Gate = gate;
 }
Ejemplo n.º 9
0
 public SoundTimer(BBTravel gate) : base(TimeSpan.FromMilliseconds(soundDelay))
 {
     i_Gate = gate;
 }
Ejemplo n.º 10
0
 public MoveTimer(PlayerMobile player, BBTravel gate) : base(TimeSpan.FromMilliseconds(moveDelay))
 {
     pm     = player;
     i_Gate = gate;
 }