Exemplo n.º 1
0
        public override void OnAdded(object parent)
        {
            if (parent is Mobile)
            {
                Mobile m = (Mobile)parent as Mobile;

                if (SpiderWebbing.IsTrapped(m))
                {
                    SpiderWebbing.RemoveEffects(m);
                }

                m.SendLocalizedMessage(1151094, GetNameInfo(ItemID)); // You manage to equip the stone ~1_token~ and find you can no longer move!
            }
        }
Exemplo n.º 2
0
        private void BurnWeb_Callback(Mobile from, object targeted)
        {
            SpiderWebbing web = targeted as SpiderWebbing;

            if (web != null)
            {
                from.SendLocalizedMessage(1113240); // The acid popper bursts and burns away the webbing.

                Effects.SendPacket(from.Location, from.Map, new TargetParticleEffect(this, 0x374A, 1, 10, 0x557, 0, 0x139D, 3, 0));

                from.PlaySound(0x3E);
                from.PlaySound(0x22F);

                web.Delete();
                Consume();
            }
        }