Server.Effects.SendMovingParticles C# (CSharp) Méthode

SendMovingParticles() public static méthode

public static SendMovingParticles ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int effect, int explodeEffect, int explodeSound ) : void
from IEntity
to IEntity
itemID int
speed int
duration int
fixedDirection bool
explodes bool
effect int
explodeEffect int
explodeSound int
Résultat void
		public static void SendMovingParticles( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int effect, int explodeEffect, int explodeSound )
		{
			SendMovingParticles( from, to, itemID, speed, duration, fixedDirection, explodes, 0, 0, effect, explodeEffect, explodeSound, 0 );
		}

Same methods

Effects::SendMovingParticles ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int effect, int explodeEffect, int explodeSound, int unknown ) : void
Effects::SendMovingParticles ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int hue, int renderMode, int effect, int explodeEffect, int explodeSound, EffectLayer layer, int unknown ) : void
Effects::SendMovingParticles ( IEntity from, IEntity to, int itemID, int speed, int duration, bool fixedDirection, bool explodes, int hue, int renderMode, int effect, int explodeEffect, int explodeSound, int unknown ) : void

Usage Example

            protected override void OnTick()
            {
                if (this.m_From == null || this.m_From.Deleted)
                {
                    this.Stop();
                    return;
                }

                if (this.m_Count == 0)
                {
                    for (int i = -2; i < 3; i++)
                    {
                        for (int j = -2; j < 5; j++)
                        {
                            if ((i == -2 || i == 2) || (j == -2 || j == 2))
                            {
                                Effects.SendMovingParticles(
                                    new Entity(Serial.Zero, new Point3D(this.m_From.X + i, this.m_From.Y + j, this.m_From.Z + 14), this.m_From.Map),
                                    this.m_Target, 0x46E9, 2, 0, false, false, 0, 0, 9502, 1, 0, (EffectLayer)255, 0x100);
                            }
                            else
                            {
                                continue;
                            }
                        }
                    }
                }
                else
                { // It looked like it delt 67 damage, presuming 70% fire res thats about 223 damage delt before resistance.
                    AOS.Damage(this.m_Target, this.m_From, Utility.RandomMinMax(210, 230), 0, 100, 0, 0, 0);

                    this.Stop();
                }

                this.m_Count++;

                Effects.PlaySound(this.Point, this.m_From.Map, 0x160);
            }
All Usage Examples Of Server.Effects::SendMovingParticles