Esempio n. 1
0
        public void Target(HouseTrap item)
        {
            if (!Caster.CanSee(item))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, item);

                Point3D loc = item.GetWorldLocation();

                Blood shards = new Blood();
                shards.ItemID   = 0xC2D;
                shards.Map      = item.Map;
                shards.Location = loc;
                Effects.PlaySound(loc, item.Map, 0x305);
                if (item.Placer != null)
                {
                    item.Placer.SendMessage("A trap you placed has been destroyed!");
                }


                item.Delete();
                Caster.SendMessage("You destroy the trap!");
            }

            FinishSequence();
        }
Esempio n. 2
0
        public void Target(HouseTrap item)
        {
            if (!Caster.CanSee(item))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (CheckSequence())
            {
                SpellHelper.Turn(Caster, item);

                Point3D loc = item.GetWorldLocation();

                Blood shards = new Blood();
                shards.ItemID = 0xC2D;
                shards.Map = item.Map;
                shards.Location = loc;
                Effects.PlaySound(loc, item.Map, 0x305);
                if (item.Placer != null)
                    item.Placer.SendMessage("A trap you placed has been destroyed!");

                item.Delete();
                Caster.SendMessage("You destroy the trap!");
            }

            FinishSequence();
        }