Exemplo n.º 1
0
 public CastTrainerSpell(Mobile f, Mobile castr, int cast, float _area, int every, int n, SingleTargetSpellEffect _effectHandler) :  base(every)
 {
     from          = f;
     caster        = castr;
     toCast        = cast;
     area          = _area;
     nTime         = n;
     effectHandler = _effectHandler;
 }
Exemplo n.º 2
0
 public CastTrainerSpell( Mobile f, Mobile castr, int cast, float _area, int every, int n, SingleTargetSpellEffect _effectHandler )
     : base(every)
 {
     from = f;
     caster = castr;
     toCast = cast;
     area = _area;
     nTime = n;
     effectHandler = _effectHandler;
 }
Exemplo n.º 3
0
 public AreaAura( Mobile _from, float _x, float _y, float _z, float _area, int _everyXMs, int _nTime, SingleTargetSpellEffect _effectHandler )
 {
     from = _from;
     x = _x;
     y = _y;
     z = _z;
     everyXMs = _everyXMs;
     nTime = _nTime;
     area = _area * _area;
     effectHandler = _effectHandler;
     BaseCreature bc = World.Add( "Imp", x, y, z, _from.MapId );
     bc.Freeze = true;
     bc.AIEngine = null;
     bc.Visible = InvisibilityLevel.GM;
 }
Exemplo n.º 4
0
        public AreaAura(Mobile _from, float _x, float _y, float _z, float _area, int _everyXMs, int _nTime, SingleTargetSpellEffect _effectHandler)
        {
            from          = _from;
            x             = _x;
            y             = _y;
            z             = _z;
            everyXMs      = _everyXMs;
            nTime         = _nTime;
            area          = _area * _area;
            effectHandler = _effectHandler;
            BaseCreature bc = World.Add("Imp", x, y, z, _from.MapId);

            bc.Freeze   = true;
            bc.AIEngine = null;
            bc.Visible  = InvisibilityLevel.GM;
        }
Exemplo n.º 5
0
 public static void SetSpellEffects( int []ids, SingleTargetSpellEffect st )
 {
     foreach( int i in ids )
     {
         if ( SpellEffects[ i ] != null )
             Console.WriteLine( "Spell id {0} already defined !!!", i );
         else
         {
             SpellEffects[ i ] = st;
         }
     }
 }