public virtual void ApplyEffect(Mobile m, BMbombplacer bp)
		{
			if (m == null || bp == null)
				return;

			Effects.PlaySound(this.Location, this.Map, 1317);
		}
		public override void ApplyEffect(Mobile from, BMbombplacer bp)
		{
			if (from == null || bp == null)
				return;

			base.ApplyEffect(from, bp);

			bp.DetonationRange++;
			from.SendMessage(38, "Your bomb detonation range increased!");
			Effects.PlaySound(this.Location, this.Map, 1317);
			this.Delete();
		}
Esempio n. 3
0
		public BMPlacedBomb(PlayerMobile owner, BMbombplacer bp): base (2541) //base(5162)
		{
			if (owner == null || owner.Deleted || bp == null || bp.Deleted)
				return;

			Name = "a ticking bomb";
			Movable = false;
			m_Owner = owner;
			m_BombPlacer = bp;
			Hue = 1175;
			InExplosionProcess = false;

			ticks = 0;
			Timer.DelayCall(TimeSpan.FromSeconds(0.5), new TimerCallback(TickCallback));
		}
		public void PreparePlayers()
		{
			for (int cnt = 0; cnt <= m_Participants.Count - 1; cnt++)
			{
				PlayerMobile pm = m_Participants[cnt] as PlayerMobile;
				if (pm != null && m_StartLocations[cnt] is Point3D && pm.Region == m_RegionControl.MyRegion)
				{
					pm.MoveToWorld((Point3D)m_StartLocations[cnt], m_RegionControl.MyRegion.Map);
					if (pm.Backpack != null)
					{
						pm.CloseAllGumps();
						BMbombplacer bomb = new BMbombplacer(this, pm);
						pm.AddToBackpack(bomb);
						bomb.Hue = 6 + (cnt * 10);
						pm.HueMod = bomb.Hue;
						pm.BodyMod = 17;
						pm.Frozen = false;
					}
					else
					{
						RemoveParticipant(pm);
					}
				}

			}
		}
		public override void ApplyEffect(Mobile from, BMbombplacer bp)
		{
			if (from == null || bp == null)
				return;

			base.ApplyEffect(from, bp);

			from.Hits = from.HitsMax;
			from.SendMessage(38, "You were healed.");
			Effects.PlaySound(this.Location, this.Map, 1317);
			this.Delete();
		}
		public override void ApplyEffect(Mobile from, BMbombplacer bp)
		{
			if (from == null || bp == null)
				return;

			base.ApplyEffect(from, bp);

			from.SendMessage(38, "You got an extra bomb!");
			bp.MaxNumberOfBombs++;
			Effects.PlaySound(this.Location, this.Map, 1317);
			this.Delete();
		}