Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,96 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardArmysPaeonSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Army's Paeon", "Paeonus",
//SpellCircle.First,
212,
9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 60.0; } }
public override int RequiredMana{ get{ return 15; } }
public BardArmysPaeonSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int rounds = (int)( Caster.Skills[SkillName.Musicianship].Value * .16 );
new ExpireTimer( m, 0, rounds, TimeSpan.FromSeconds( 2 ) ).Start();
m.FixedParticles( 0x376A, 9, 32, 5030, 0x21, 3, EffectLayer.Waist );
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private int m_Round;
private int m_Totalrounds;
public ExpireTimer( Mobile m, int round, int totalrounds, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Round = round;
m_Totalrounds = totalrounds;
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.Hits += 2;
if ( m_Round >= m_Totalrounds )
{
m_Mobile.SendMessage( "The effect of Army's Paeon wears off." );
}
else
{
m_Round += 1;
new ExpireTimer( m_Mobile, m_Round, m_Totalrounds, TimeSpan.FromSeconds( 2 ) ).Start();
}
}
}
}
}
}

View File

@@ -0,0 +1,68 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnchantingEtudeSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Enchanting Etude", "Enchantendre",
//SpellCircle.First,
212,
9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 70.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardEnchantingEtudeSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.1 );
string intt = "int";
double duration = ( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
StatMod mod = new StatMod( StatType.Int, intt, + amount, TimeSpan.FromSeconds( duration ) );
m.AddStatMod( mod );
m.FixedParticles( 0x375A, 10, 15, 5017, 0x1F8, 3, EffectLayer.Waist );
}
}
FinishSequence();
}
}
}

View File

@@ -0,0 +1,95 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnergyCarolSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Energy Carol", "Energious",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 30.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardEnergyCarolSpell( Mobile caster, Item scroll ) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Value * .125 );
m.SendMessage( "Your energy resistance has increased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Energy, + amount );
m.FixedParticles( 0x373A, 10, 15, 5012, 0x14, 3, EffectLayer.Waist );
m.AddResistanceMod( mod1 );
new ExpireTimer( m, mod1, duration ).Start();
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Energy Carol wears off." );
DoExpire();
}
}
}
}
}

View File

@@ -0,0 +1,117 @@
using System;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnergyThrenodySpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Energy Threnody", "Enerdeficient",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 2; } }
public override double RequiredSkill{ get{ return 35.0; } }
public override int RequiredMana{ get{ return 7; } }
public BardEnergyThrenodySpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
Caster.Target = new InternalTarget( this );
}
public void Target( Mobile m )
{
if ( !Caster.CanSee( m ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( CheckHSequence( m ) )
{
Mobile source = Caster;
SpellHelper.Turn( Caster, m );
SpellHelper.CheckReflect( (int)this.Circle, ref source, ref m );
m.FixedParticles( 0x374A, 10, 30, 5013, 0x14, 2, EffectLayer.Waist );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.17 );
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
m.SendMessage( "Your energy resistance has decreased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Energy, - amount );
m.AddResistanceMod( mod1 );
ExpireTimer timer1 = new ExpireTimer( m, mod1, duration );
timer1.Start();
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Energy Threnody wears off." );
DoExpire();
}
}
}
private class InternalTarget : Target
{
private BardEnergyThrenodySpell m_Owner;
public InternalTarget( BardEnergyThrenodySpell owner ) : base( 12, false, TargetFlags.Harmful )
{
m_Owner = owner;
}
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
m_Owner.Target( (Mobile)o );
}
protected override void OnTargetFinish( Mobile from )
{
m_Owner.FinishSequence();
}
}
}
}

View File

@@ -0,0 +1,94 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFireCarolSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Fire Carol", "Inflammabus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 30.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardFireCarolSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Value * .125 );
m.SendMessage( "Your fire resistance has increased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Fire, + amount );
m.AddResistanceMod( mod1 );
m.FixedParticles( 0x373A, 10, 15, 5012, 0x21, 3, EffectLayer.Waist );
new ExpireTimer( m, mod1, duration ).Start();
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Fire Carol wears off." );
DoExpire();
}
}
}
}
}

View File

@@ -0,0 +1,116 @@
using System;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFireThrenodySpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Fire Threnody", "Flammabus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public BardFireThrenodySpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override double CastDelay{ get{ return 2; } }
public override double RequiredSkill{ get{ return 35.0; } }
public override int RequiredMana{ get{ return 7; } }
public override void OnCast()
{
Caster.Target = new InternalTarget( this );
}
public void Target( Mobile m )
{
if ( !Caster.CanSee( m ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( CheckHSequence( m ) )
{
Mobile source = Caster;
SpellHelper.Turn( source, m );
SpellHelper.CheckReflect( (int)this.Circle, ref source, ref m );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.17 );
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
m.SendMessage( "Your Fire resistance has decreased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Fire, - amount );
m.FixedParticles( 0x374A, 10, 30, 5013, 0x489, 2, EffectLayer.Waist );
m.AddResistanceMod( mod1 );
ExpireTimer timer1 = new ExpireTimer( m, mod1, duration );
timer1.Start();
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Fire Threnody wears off." );
DoExpire();
}
}
}
private class InternalTarget : Target
{
private BardFireThrenodySpell m_Owner;
public InternalTarget( BardFireThrenodySpell owner ) : base( 12, false, TargetFlags.Harmful )
{
m_Owner = owner;
}
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
m_Owner.Target( (Mobile)o );
}
protected override void OnTargetFinish( Mobile from )
{
m_Owner.FinishSequence();
}
}
}
}

View File

@@ -0,0 +1,88 @@
using System;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFoeRequiemSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Foe Requiem", "Sonicus",
//SpellCircle.Sixth,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.Sixth; }
}
public BardFoeRequiemSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 55.0; } }
public override int RequiredMana{ get{ return 18; } }
public override void OnCast()
{
Caster.Target = new InternalTarget( this );
}
public void Target( Mobile m )
{
if ( !Caster.CanSee( m ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( CheckHSequence( m ) )
{
Mobile source = Caster;
SpellHelper.Turn( Caster, m );
double damage = ( Utility.Random( 28, 23 ) + Utility.Random( 5, 1 ) );
if ( CheckResisted( m ) )
{
m.SendLocalizedMessage( 501783 ); // You feel yourself resisting magical energy.
damage *= .4;
}
//sound damage, all resistances
SpellHelper.Damage( this, m, damage, 20, 20, 20, 20, 20 );
m.FixedParticles( 0x374A, 10, 15, 5028, EffectLayer.Head );
source.MovingParticles( m, 0x379F, 7, 0, false, true, 3043, 4043, 0x211 );
m.PlaySound( 0x1EA );
}
FinishSequence();
}
private class InternalTarget : Target
{
private BardFoeRequiemSpell m_Owner;
public InternalTarget( BardFoeRequiemSpell owner ) : base( 12, false, TargetFlags.Harmful )
{
m_Owner = owner;
}
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
m_Owner.Target( (Mobile)o );
}
protected override void OnTargetFinish( Mobile from )
{
m_Owner.FinishSequence();
}
}
}
}

View File

@@ -0,0 +1,93 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardIceCarolSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Ice Carol", "Insulatus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 30.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardIceCarolSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Value * .125 );
m.SendMessage( "Your Ice resistance has increased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Cold, + amount );
m.AddResistanceMod( mod1 );
m.FixedParticles( 0x373A, 10, 15, 5012, 0x480, 3, EffectLayer.Waist );
new ExpireTimer( m, mod1, duration ).Start();
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Ice Carol wears off." );
DoExpire();
}
}
}
}
}

View File

@@ -0,0 +1,116 @@
using System;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardIceThrenodySpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Ice Threnody", "Chillinum",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public BardIceThrenodySpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override double CastDelay{ get{ return 2; } }
public override double RequiredSkill{ get{ return 35.0; } }
public override int RequiredMana{ get{ return 7; } }
public override void OnCast()
{
Caster.Target = new InternalTarget( this );
}
public void Target( Mobile m )
{
if ( !Caster.CanSee( m ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( CheckHSequence( m ) )
{
Mobile source = Caster;
SpellHelper.Turn( source, m );
SpellHelper.CheckReflect( (int)this.Circle, ref source, ref m );
m.FixedParticles( 0x374A, 10, 30, 5013, 0x480, 2, EffectLayer.Waist );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.17 );
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
m.SendMessage( "Your ice resistance has decreased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Cold, - amount );
m.AddResistanceMod( mod1 );
ExpireTimer timer1 = new ExpireTimer( m, mod1, duration );
timer1.Start();
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Ice Threnody wears off." );
DoExpire();
}
}
}
private class InternalTarget : Target
{
private BardIceThrenodySpell m_Owner;
public InternalTarget( BardIceThrenodySpell owner ) : base( 12, false, TargetFlags.Harmful )
{
m_Owner = owner;
}
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
m_Owner.Target( (Mobile)o );
}
protected override void OnTargetFinish( Mobile from )
{
m_Owner.FinishSequence();
}
}
}
}

View File

@@ -0,0 +1,93 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardKnightsMinneSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Knight's Minne", "Resistus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 45.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardKnightsMinneSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Value * .18 );
m.SendMessage( "Your Physical resistance has increased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Physical, + amount );
m.AddResistanceMod( mod1 );
m.FixedParticles( 0x373A, 10, 15, 5012, 0x450, 3, EffectLayer.Waist );
new ExpireTimer( m, mod1, duration ).Start();
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Knight's Minne wears off." );
DoExpire();
}
}
}
}
}

View File

@@ -0,0 +1,94 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardMagesBalladSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Mage's Ballad", "Mentus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 65; } }
public override int RequiredMana{ get{ return 15; } }
public BardMagesBalladSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int rounds = (int)( Caster.Skills[SkillName.Musicianship].Value * .16 );
new ExpireTimer( m, 0, rounds, TimeSpan.FromSeconds( 2 ) ).Start();
m.FixedParticles( 0x376A, 9, 32, 5030, 0x256, 3, EffectLayer.Waist );
m.PlaySound( 0x1F2 );
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private int m_Round;
private int m_Totalrounds;
public ExpireTimer( Mobile m, int round, int totalrounds, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Round = round;
m_Totalrounds = totalrounds;
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.Mana += 10;
if ( m_Round >= m_Totalrounds )
{
m_Mobile.SendMessage( "The effect of Mage's Ballad wears off." );
}
else
{
m_Round += 1;
new ExpireTimer( m_Mobile, m_Round, m_Totalrounds, TimeSpan.FromSeconds( 2 ) ).Start();
}
}
}
}
}
}

View File

@@ -0,0 +1,60 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardMagicFinaleSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Magic Finale", "Dispersus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 80.0; } }
public override int RequiredMana{ get{ return 15; } }
public BardMagicFinaleSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 4 ) )
{
if ( m is BaseCreature && ((BaseCreature)m).Summoned )
targets.Add( m );
}
Caster.FixedParticles( 0x3709, 1, 30, 9965, 5, 7, EffectLayer.Waist );
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
Effects.SendLocationParticles( EffectItem.Create( m.Location, m.Map, EffectItem.DefaultDuration ), 0x3728, 8, 20, 5042 );
m.Delete();
}
}
FinishSequence();
}
}
}

View File

@@ -0,0 +1,93 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardPoisonCarolSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Poison Carol", "Antidotus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 30.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardPoisonCarolSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Value * 0.2 );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Value * .125 );
m.SendMessage( "Your Poison resistance has increased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Poison, + amount );
m.AddResistanceMod( mod1 );
m.FixedParticles( 0x373A, 10, 15, 5012, 0x238, 3, EffectLayer.Waist );
new ExpireTimer( m, mod1, duration ).Start();
}
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Poison Carol wears off." );
DoExpire();
}
}
}
}
}

View File

@@ -0,0 +1,115 @@
using System;
using Server.Targeting;
using Server.Network;
using Server.Mobiles;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardPoisonThrenodySpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Poison Threnody", "Infectus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public BardPoisonThrenodySpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override double CastDelay{ get{ return 2; } }
public override double RequiredSkill{ get{ return 35.0; } }
public override int RequiredMana{ get{ return 7; } }
public override void OnCast()
{
Caster.Target = new InternalTarget( this );
}
public void Target( Mobile m )
{
if ( !Caster.CanSee( m ) )
{
Caster.SendLocalizedMessage( 500237 ); // Target can not be seen.
}
else if ( CheckHSequence( m ) )
{
Mobile source = Caster;
SpellHelper.Turn( source, m );
SpellHelper.CheckReflect( (int)this.Circle, ref source, ref m );
m.FixedParticles( 0x374A, 10, 30, 5013, 0x238, 2, EffectLayer.Waist );
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.17 );
TimeSpan duration = TimeSpan.FromSeconds( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
m.SendMessage( "Your poison resistance has decreased." );
ResistanceMod mod1 = new ResistanceMod( ResistanceType.Cold, - amount );
m.AddResistanceMod( mod1 );
ExpireTimer timer1 = new ExpireTimer( m, mod1, duration );
timer1.Start();
}
FinishSequence();
}
private class ExpireTimer : Timer
{
private Mobile m_Mobile;
private ResistanceMod m_Mods;
public ExpireTimer( Mobile m, ResistanceMod mod, TimeSpan delay ) : base( delay )
{
m_Mobile = m;
m_Mods = mod;
}
public void DoExpire()
{
m_Mobile.RemoveResistanceMod( m_Mods );
Stop();
}
protected override void OnTick()
{
if ( m_Mobile != null )
{
m_Mobile.SendMessage( "The effect of Poison Threnody wears off." );
DoExpire();
}
}
}
private class InternalTarget : Target
{
private BardPoisonThrenodySpell m_Owner;
public InternalTarget( BardPoisonThrenodySpell owner ) : base( 12, false, TargetFlags.Harmful )
{
m_Owner = owner;
}
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
m_Owner.Target( (Mobile)o );
}
protected override void OnTargetFinish( Mobile from )
{
m_Owner.FinishSequence();
}
}
}
}

View File

@@ -0,0 +1,65 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSheepfoeMamboSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Sheepfoe Mambo", "Facilitus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 70.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardSheepfoeMamboSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.1 );
string dex = "dex";
double duration = ( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
StatMod mod = new StatMod( StatType.Dex, dex, + amount, TimeSpan.FromSeconds( duration ) );
m.AddStatMod( mod );
m.FixedParticles( 0x375A, 10, 15, 5017, 0x224, 3, EffectLayer.Waist );
}
}
FinishSequence();
}
}
}

View File

@@ -0,0 +1,64 @@
using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSinewyEtudeSpell : BardSpell
{
private static SpellInfo m_Info = new SpellInfo(
"Sinewy Etude", "Fortitus",
//SpellCircle.First,
212,9041
);
public override SpellCircle Circle
{
get { return SpellCircle.First; }
}
public override double CastDelay{ get{ return 3; } }
public override double RequiredSkill{ get{ return 70.0; } }
public override int RequiredMana{ get{ return 12; } }
public BardSinewyEtudeSpell( Mobile caster, Item scroll) : base( caster, scroll, m_Info )
{
}
public override void OnCast()
{
if( CheckSequence() )
{
ArrayList targets = new ArrayList();
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) )
{
if ( Caster.CanBeBeneficial( m, false, true ) && !(m is Golem) )
targets.Add( m );
}
for ( int i = 0; i < targets.Count; ++i )
{
Mobile m = (Mobile)targets[i];
int amount = (int)( Caster.Skills[SkillName.Musicianship].Base * 0.1 );
string str = "str";
double duration = ( Caster.Skills[SkillName.Musicianship].Base * 0.15 );
StatMod mod = new StatMod( StatType.Str, str, + amount, TimeSpan.FromSeconds( duration ) );
m.AddStatMod( mod );
m.FixedParticles( 0x375A, 10, 15, 5017, 0x224, 3, EffectLayer.Waist );
}
}
FinishSequence();
}
}
}