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,47 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardBag : ScrollBag
{
[Constructable]
public BardBag()
{
Hue = 0x96;
PlaceItemIn( 30, 35, new BardArmysPaeonScroll() );
PlaceItemIn( 50, 35, new BardEnchantingEtudeScroll() );
PlaceItemIn( 70, 35, new BardEnergyCarolScroll() );
PlaceItemIn( 90, 35, new BardEnergyThrenodyScroll() );
PlaceItemIn( 30, 55, new BardFireCarolScroll() );
PlaceItemIn( 50, 55, new BardFireThrenodyScroll() );
PlaceItemIn( 70, 55, new BardFoeRequiemScroll() );
PlaceItemIn( 90, 55, new BardIceCarolScroll() );
PlaceItemIn( 30, 75, new BardIceThrenodyScroll() );
PlaceItemIn( 50, 75, new BardKnightsMinneScroll() );
PlaceItemIn( 70, 75, new BardMagesBalladScroll() );
PlaceItemIn( 90, 75, new BardMagicFinaleScroll() );
PlaceItemIn( 30, 95, new BardPoisonCarolScroll() );
PlaceItemIn( 50, 95, new BardPoisonThrenodyScroll() );
PlaceItemIn( 70, 95, new BardSheepfoeMamboScroll() );
PlaceItemIn( 90, 95, new BardSinewyEtudeScroll() );
}
public BardBag( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using Server;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardInitializer : BaseInitializer
{
public static void Configure()
{
Register( typeof( BardArmysPaeonSpell ), "Army's Paeon", "Regenerates your partys health slowly. [Area Effect]", null, "Mana: 15; Skill: 60", 2243, 3000, School.Bard );
Register( typeof( BardEnchantingEtudeSpell ), "Enchanting Etude", "Raises the intelligence of your party. [Area Effect]", null, "Mana: 12; Skill: 70", 2242, 3000, School.Bard );
Register( typeof( BardEnergyCarolSpell ), "Energy Carol", "Raises the energy resistance of your party. [Area Effect]", null, "Mana: 12; Skill: 30", 2289, 3000, School.Bard );
Register( typeof( BardEnergyThrenodySpell ), "Energy Threnody", "Lowers the energy resistance of your target.", null, "Mana: 7; Skill: 35", 2281, 3000, School.Bard );
Register( typeof( BardFireCarolSpell ), "Fire Carol", "Raises the fire resistance of your party. [Area Effect]", null, "Mana: 12; Skill: 30", 2267, 3000, School.Bard );
Register( typeof( BardFireThrenodySpell ), "Fire Threnody", "Lowers the fire resistance of your target.", null, "Mana: 7; Skill: 35", 2257, 3000, School.Bard );
Register( typeof( BardFoeRequiemSpell ), "Foe Requiem", "Damages your target with a burst of sonic energy.", null, "Mana: 18; Skill: 55", 2270, 3000, School.Bard );
Register( typeof( BardIceCarolSpell ), "Ice Carol", "Raises the cold resistance of your party. [Area Effect]", null, "Mana: 12; Skill: 30", 2286, 3000, School.Bard );
Register( typeof( BardIceThrenodySpell ), "Ice Threnody", "Lowers the ice resistance of your target.", null, "Mana: 7; Skill: 35", 2269, 3000, School.Bard );
Register( typeof( BardKnightsMinneSpell ), "Knight's Minne", "Raises the physical resist of your party. [Area Effect]", null, "Mana: 12; Skill: 45", 2273, 3000, School.Bard );
Register( typeof( BardMagesBalladSpell ), "Mage's Ballad", "Regenerates your party's mana slowly. [Area Effect]", null, "Mana: 15; Skill: 65", 2292, 3000, School.Bard );
Register( typeof( BardMagicFinaleSpell ), "Magic Finale", "Dispels all summoned creatures around you. [Area Effect]", null, "Mana: 15; Skill: 80", 2280, 3000, School.Bard );
Register( typeof( BardPoisonCarolSpell ), "Poison Carol", "Raises the poison resistance of your party. [Area Effect]", null, "Mana: 12; Skill: 30", 2285, 3000, School.Bard );
Register( typeof( BardPoisonThrenodySpell ), "Poison Threnody", "Lowers the poison resistance of your target.", null, "Mana: 7; Skill: 35", 20488, 3000, School.Bard );
Register( typeof( BardSheepfoeMamboSpell ), "Sheepfoe Mambo", "Raises the dexterity of your party. [Area Effect]", null, "Mana: 12; Skill: 70", 2248, 3000, School.Bard );
Register( typeof( BardSinewyEtudeSpell ), "Sinewy Etude", "Raises the strength of your party. [Area Effect]", null, "Mana: 12; Skill: 70", 20741, 3000, School.Bard );
}
}
}

View File

@@ -0,0 +1,97 @@
using System;
using Server;
using Server.Network;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public abstract class BardSpell : CSpell
{
public abstract SpellCircle Circle { get; }
public BardSpell(Mobile caster, Item scroll, SpellInfo info)
: base(caster, scroll, info)
{
}
public override SkillName CastSkill { get { return SkillName.Musicianship; } }
public override SkillName DamageSkill { get { return SkillName.Musicianship; } }
public override bool ClearHandsOnCast { get { return false; } }
public override TimeSpan CastDelayBase { get { return TimeSpan.FromSeconds(3 * CastDelaySecondsPerTick); } }
public override void GetCastSkills(out double min, out double max)
{
min = RequiredSkill;
max = RequiredSkill + 30.0;
}
public override int GetMana()
{
return RequiredMana;
}
public override bool CheckCast()
{
Container pack = Caster.Backpack;
BaseInstrument ints = (BaseInstrument)pack.FindItemByType(typeof(BaseInstrument));
if (ints == null)
{
Caster.SendMessage("Need instrument in pack to play this.");
return false;
}
if (ints.UsesRemaining >= 2)
ints.UsesRemaining -= 1;
if (ints.UsesRemaining == 1)
ints.Delete();
Caster.PlaySound(ints.SuccessSound);
return true;
}
public override TimeSpan GetCastDelay()
{
return TimeSpan.FromSeconds(CastDelay);
}
public virtual bool CheckResisted(Mobile target)
{
double n = GetResistPercent(target);
n /= 100.0;
if (n <= 0.0)
return false;
if (n >= 1.0)
return true;
int maxSkill = (1 + (int)Circle) * 10;
//int maxSkill = 40;
maxSkill += (1 + ((int)Circle / 6)) * 25;
//maxSkill += (1 + (4 / 6)) * 25;
if (target.Skills[SkillName.MagicResist].Value < maxSkill)
target.CheckSkill(SkillName.MagicResist, 0.0, 120.0);
return (n >= Utility.RandomDouble());
}
public virtual double GetResistPercent(Mobile target)
{
return GetResistPercentForCircle(target, Circle);
//return GetResistPercentForCircle(target, SpellCircle.Fourth);
}
public virtual double GetResistPercentForCircle(Mobile target, SpellCircle circle)
{
double firstPercent = target.Skills[SkillName.MagicResist].Value / 5.0;
double secondPercent = target.Skills[SkillName.MagicResist].Value - (((Caster.Skills[CastSkill].Value - 20.0) / 5.0) + (1 + (int)circle) * 5.0);
return (firstPercent > secondPercent ? firstPercent : secondPercent) / 2.0; // Seems should be about half of what stratics says.
}
}
}

View File

@@ -0,0 +1,64 @@
using System;
using Server.Items;
using Server.Spells;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSpellbook : CSpellbook
{
public override School School{ get{ return School.Bard; } }
[Constructable]
public BardSpellbook() : this( (ulong)0, CSSettings.FullSpellbooks )
{
}
[Constructable]
public BardSpellbook( bool full ) : this( (ulong)0, full )
{
}
[Constructable]
public BardSpellbook( ulong content, bool full ) : base( content, 0xEFA, full )
{
Name = "Song Book";
Hue = 0x96;
}
public override void OnDoubleClick( Mobile from )
{
if ( from.AccessLevel == AccessLevel.Player )
{
Container pack = from.Backpack;
if( !(Parent == from || (pack != null && Parent == pack)) )
{
from.SendMessage( "The spellbook must be in your backpack [and not in a container within] to open." );
return;
}
else if( SpellRestrictions.UseRestrictions && !SpellRestrictions.CheckRestrictions( from, this.School ) )
{
return;
}
}
from.CloseGump( typeof( BardSpellbookGump ) );
from.SendGump( new BardSpellbookGump( this ) );
}
public BardSpellbook( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,19 @@
using System;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSpellbookGump : CSpellbookGump
{
public override string TextHue { get{ return "CC3333"; } }
public override int BGImage { get{ return 2203; } }
public override int SpellBtn { get{ return 2362; } }
public override int SpellBtnP{ get{ return 2361; } }
public override string Label1 { get{ return "Bard"; } }
public override string Label2 { get{ return "Songs"; } }
public override Type GumpType { get{ return typeof( BardSpellbookGump ); } }
public BardSpellbookGump( CSpellbook book ) : base( book )
{
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardArmysPaeonScroll : CSpellScroll
{
[Constructable]
public BardArmysPaeonScroll() : this( 1 )
{
}
[Constructable]
public BardArmysPaeonScroll( int amount ) : base( typeof( BardArmysPaeonSpell ), 0x14ED, amount )
{
Name = "Armys Paeon Sheet Music";
Hue = 0x96;
}
public BardArmysPaeonScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnchantingEtudeScroll : CSpellScroll
{
[Constructable]
public BardEnchantingEtudeScroll() : this( 1 )
{
}
[Constructable]
public BardEnchantingEtudeScroll( int amount ) : base( typeof( BardEnchantingEtudeSpell ), 0x14ED, amount )
{
Name = "Enchanting Etude Sheet Music";
Hue = 0x96;
}
public BardEnchantingEtudeScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnergyCarolScroll : CSpellScroll
{
[Constructable]
public BardEnergyCarolScroll() : this( 1 )
{
}
[Constructable]
public BardEnergyCarolScroll( int amount ) : base( typeof( BardEnergyCarolSpell ), 0x14ED, amount )
{
Name = "Energy Carol Sheet Music";
Hue = 0x96;
}
public BardEnergyCarolScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardEnergyThrenodyScroll : CSpellScroll
{
[Constructable]
public BardEnergyThrenodyScroll() : this( 1 )
{
}
[Constructable]
public BardEnergyThrenodyScroll( int amount ) : base( typeof( BardEnergyThrenodySpell ), 0x14ED, amount )
{
Name = "Energy Threnody Sheet Music";
Hue = 0x96;
}
public BardEnergyThrenodyScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFireCarolScroll : CSpellScroll
{
[Constructable]
public BardFireCarolScroll() : this( 1 )
{
}
[Constructable]
public BardFireCarolScroll( int amount ) : base( typeof( BardFireCarolSpell ), 0x14ED, amount )
{
Name = "Fire Carol Sheet Music";
Hue = 0x96;
}
public BardFireCarolScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFireThrenodyScroll : CSpellScroll
{
[Constructable]
public BardFireThrenodyScroll() : this( 1 )
{
}
[Constructable]
public BardFireThrenodyScroll( int amount ) : base( typeof( BardFireThrenodySpell ), 0x14ED, amount )
{
Name = "Fire Threnody Sheet Music";
Hue = 0x96;
}
public BardFireThrenodyScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardFoeRequiemScroll : CSpellScroll
{
[Constructable]
public BardFoeRequiemScroll() : this( 1 )
{
}
[Constructable]
public BardFoeRequiemScroll( int amount ) : base( typeof( BardFoeRequiemSpell ), 0x14ED, amount )
{
Name = "Foe Requiem Sheet Music";
Hue = 0x96;
}
public BardFoeRequiemScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardIceCarolScroll : CSpellScroll
{
[Constructable]
public BardIceCarolScroll() : this( 1 )
{
}
[Constructable]
public BardIceCarolScroll( int amount ) : base( typeof( BardIceCarolSpell ), 0x14ED, amount )
{
Name = "Ice Carol Sheet Music";
Hue = 0x96;
}
public BardIceCarolScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardIceThrenodyScroll : CSpellScroll
{
[Constructable]
public BardIceThrenodyScroll() : this( 1 )
{
}
[Constructable]
public BardIceThrenodyScroll( int amount ) : base( typeof( BardIceThrenodySpell ), 0x14ED, amount )
{
Name = "Ice Threnody Sheet Music";
Hue = 0x96;
}
public BardIceThrenodyScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardKnightsMinneScroll : CSpellScroll
{
[Constructable]
public BardKnightsMinneScroll() : this( 1 )
{
}
[Constructable]
public BardKnightsMinneScroll( int amount ) : base( typeof( BardKnightsMinneSpell ), 0x14ED, amount )
{
Name = "Knights Minne Sheet Music";
Hue = 0x96;
}
public BardKnightsMinneScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardMagesBalladScroll : CSpellScroll
{
[Constructable]
public BardMagesBalladScroll() : this( 1 )
{
}
[Constructable]
public BardMagesBalladScroll( int amount ) : base( typeof( BardMagesBalladSpell ), 0x14ED, amount )
{
Name = "Mages Ballad Sheet Music";
Hue = 0x96;
}
public BardMagesBalladScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardMagicFinaleScroll : CSpellScroll
{
[Constructable]
public BardMagicFinaleScroll() : this( 1 )
{
}
[Constructable]
public BardMagicFinaleScroll( int amount ) : base( typeof( BardMagicFinaleSpell ), 0x14ED, amount )
{
Name = "Magic Finale Sheet Music";
Hue = 0x96;
}
public BardMagicFinaleScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardPoisonCarolScroll : CSpellScroll
{
[Constructable]
public BardPoisonCarolScroll() : this( 1 )
{
}
[Constructable]
public BardPoisonCarolScroll( int amount ) : base( typeof( BardPoisonCarolSpell ), 0x14ED, amount )
{
Name = "Poison Carol Sheet Music";
Hue = 0x96;
}
public BardPoisonCarolScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardPoisonThrenodyScroll : CSpellScroll
{
[Constructable]
public BardPoisonThrenodyScroll() : this( 1 )
{
}
[Constructable]
public BardPoisonThrenodyScroll( int amount ) : base( typeof( BardPoisonThrenodySpell ), 0x14ED, amount )
{
Name = "Poison Threnody Sheet Music";
Hue = 0x96;
}
public BardPoisonThrenodyScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSheepfoeMamboScroll : CSpellScroll
{
[Constructable]
public BardSheepfoeMamboScroll() : this( 1 )
{
}
[Constructable]
public BardSheepfoeMamboScroll( int amount ) : base( typeof( BardSheepfoeMamboSpell ), 0x14ED, amount )
{
Name = "Sheep foe Mambo sheet music";
Hue = 0x96;
}
public BardSheepfoeMamboScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Items;
namespace Server.ACC.CSS.Systems.Bard
{
public class BardSinewyEtudeScroll : CSpellScroll
{
[Constructable]
public BardSinewyEtudeScroll() : this( 1 )
{
}
[Constructable]
public BardSinewyEtudeScroll( int amount ) : base( typeof( BardSinewyEtudeSpell ), 0x14ED, amount )
{
Name = "Sinewy Etude Sheet Music";
Hue = 0x96;
}
public BardSinewyEtudeScroll( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

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();
}
}
}