RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

FixedParticles in an Item?

CB0T

Sorceror
Hi!

I need make some Smoke on over this item, OnDoubleClic:

Fixed Particles and Playsound is´t Item method.

Code:
public class Dest : Item
    {
        [Constructable]
        public Dest() : this( 1 )
        {
        }

        [Constructable]
        public Dest( int amount ) : base( 0x3DBA )
        {
            Weight = 600.0;
            Movable=false;
        }

       public override void OnDoubleClick (Mobile from )
       {
        this.FixedParticles( 0x3709, 1, 30, 9904, 1108, 6, EffectLayer.RightFoot );
        this.PlaySound( 0x22F );
        }

        public Dest( Serial serial ) : base( serial ) { }

        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int) 1 );
        }

        public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt();}

        public int Quantity
        {
            get{ return 500; }
            set{}
        }
    }

Thanks.
 

Scriptiz

Sorceror
Do it this way :

Code:
using Server.Effects;

// ...

// change params to your needs
Effects.SendLocationParticles( EffectItem.Create( this.Location, this.Map, EffectItem.DefaultDuration ), 0x3728, 10, 10, 2023 );
 
Top