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); } } } } } } }
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++; } } } } }
private void StartingSound(BBTravel gate) { if (gate != null) { Sound_Timer = new SoundTimer(gate); Sound_Timer.Start(); } }
private void QuickDelete(BBTravel gate) { if (gate != null) { Quick_DeleteTimer = new QuickDeleteTimer(gate); Quick_DeleteTimer.Start(); } }
private void StartDeleteGate(BBTravel gate) { if (gate != null) { Delete_Timer = new DeleteTimer(gate); Delete_Timer.Start(); } }
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(); } }
public DeleteTimer(BBTravel gate) : base(TimeSpan.FromSeconds(deleteDelay)) { i_Gate = gate; }
public QuickDeleteTimer(BBTravel gate) : base(TimeSpan.FromMilliseconds(q_DeleteDelay)) { i_Gate = gate; }
public SoundTimer(BBTravel gate) : base(TimeSpan.FromMilliseconds(soundDelay)) { i_Gate = gate; }
public MoveTimer(PlayerMobile player, BBTravel gate) : base(TimeSpan.FromMilliseconds(moveDelay)) { pm = player; i_Gate = gate; }