Beispiel #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;
 }
Beispiel #2
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;
 }
Beispiel #3
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;
         }
     }
 }