Celisuis

Initiate
Hello All,



I am getting a significant amount of errors relating to Server.Effects namespace, almost like the SVN isn't compiling it.



Here's one of the errors, but they are all similar and to do with Server.Effects



Code:
 + Spells/Third/Teleport.cs:

    CS0234: Line 96: The type or namespace name 'SendLocationParticles' does not

exist in the namespace 'Server.Effects' (are you missing an assembly reference?

)

    CS0234: Line 97: The type or namespace name 'SendLocationParticles' does not

exist in the namespace 'Server.Effects' (are you missing an assembly reference?

)
 
I've looked at the stock files, the Effect class exists within the Server namespace. All references are in-tact, it's not a symptom that came with the ServUO package. If you'd like further help, you're going to have to post the code. Otherwise it's people shooting in the dark. It's likely you're just missing the server references for some reason.
 
I attempted adding using Server; and using Server.Effects; to no effect.

Like I say, it comes up in several scripts - whole error log:

Code:
    CS0234: Line 942: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlAttachments/XmlSound.cs:
    CS0234: Line 246: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 260: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 270: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlEngines/XmlMobFactions/MobFactionRegion.cs:
    CS0234: Line 95: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Services/XmlSpawner 2/XmlEngines/XmlPoints/ChallengeGames/CTF.cs:
    CS0234: Line 216: The type or namespace name 'SendTargetParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

    CS0234: Line 605: The type or namespace name 'SendTargetParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

+ Services/XmlSpawner 2/XmlEngines/XmlSiege/BaseSiegeProjectile.cs:
    CS0234: Line 222: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlEngines/XmlSiege/SiegeCannon.cs:
    CS0234: Line 157: The type or namespace name 'SendLocationEffect' does not e
xist in the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 158: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlEngines/XmlSiege/SiegeCatapult.cs:
    CS0234: Line 174: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 309: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 310: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlEngines/XmlSiege/SiegeRam.cs:
    CS0234: Line 200: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 358: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 359: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlItems/SimpleSwitches.cs:
    CS0234: Line 367: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 697: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 1290: The type or namespace name 'PlaySound' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlItems/TimedSwitches.cs:
    CS0234: Line 460: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 809: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 1180: The type or namespace name 'PlaySound' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlMobiles/TalkingBaseCreature.cs:
    CS0234: Line 661: The type or namespace name 'SendPacket' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 682: The type or namespace name 'SendLocationEffect' does not e
xist in the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/XmlMobiles/TalkingBaseVendor.cs:
    CS0234: Line 868: The type or namespace name 'SendLocationEffect' does not e
xist in the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Services/XmlSpawner 2/BaseXmlSpawner.cs:
    CS0234: Line 3121: The type or namespace name 'PlaySound' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 3211: The type or namespace name 'SendLocationEffect' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

    CS0234: Line 3369: The type or namespace name 'SendPacket' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 3375: The type or namespace name 'SendMovingEffect' does not ex
ist in the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 3461: The type or namespace name 'SendLocationEffect' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

    CS0234: Line 8578: The type or namespace name 'SendParticlesTo' does not exi
st in the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 10464: The type or namespace name 'PlaySound' does not exist in
the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 10550: The type or namespace name 'SendPacket' does not exist i
n the namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 10627: The type or namespace name 'SendLocationEffect' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Chivalry/CleanseByFire.cs:
    CS0234: Line 111: The type or namespace name 'SendMovingParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

+ Spells/Chivalry/ConsecrateWeapon.cs:
    CS0234: Line 100: The type or namespace name 'SendMovingParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

    CS0234: Line 140: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Chivalry/DispelEvil.cs:
    CS0234: Line 110: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
    CS0234: Line 111: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Chivalry/HolyLight.cs:
    CS0234: Line 80: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 81: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Chivalry/RemoveCurse.cs:
    CS0234: Line 102: The type or namespace name 'SendMovingParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

+ Spells/Chivalry/SacredJourney.cs:
    CS0234: Line 164: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
+ Spells/Fifth/DispelField.cs:
    CS0234: Line 55: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 56: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Fifth/PoisonField.cs:
    CS0234: Line 73: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 248: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
+ Spells/Fourth/ArchCure.cs:
    CS0234: Line 81: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Fourth/ArchProtection.cs:
    CS0234: Line 81: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Mysticism/SpellDefinitions/HailStormSpell.cs:
    CS0234: Line 133: The type or namespace name 'SendMovingParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?)

+ Spells/Mysticism/SpellDefinitions/NetherCycloneSpell.cs:
    CS0234: Line 64: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 65: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 66: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Necromancy/AnimateDeadSpell.cs:
    CS0234: Line 239: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 240: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
    CS0234: Line 399: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Necromancy/CurseWeapon.cs:
    CS0234: Line 95: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Necromancy/PoisonStrike.cs:
    CS0234: Line 67: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 68: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Necromancy/VampiricEmbrace.cs:
    CS0234: Line 77: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 78: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 79: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Necromancy/Wither.cs:
    CS0234: Line 89: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 90: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 91: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Ninjitsu/AnimalForm.cs:
    CS0234: Line 657: The type or namespace name 'SendMovingEffect' does not exi
st in the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Ninjitsu/MirrorImage.cs:
    CS0234: Line 240: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
+ Spells/Ninjitsu/ShadowJump.cs:
    CS0234: Line 119: The type or namespace name 'SendLocationParticles' does no
t exist in the namespace 'Server.Effects' (are you missing an assembly reference
?)
+ Spells/Second/MagicTrap.cs:
    CS0234: Line 53: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 54: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 55: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 56: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 57: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 59: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Second/RemoveTrap.cs:
    CS0234: Line 49: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 50: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Seventh/EnergyField.cs:
    CS0234: Line 73: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 95: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Seventh/GateTravel.cs:
    CS0234: Line 115: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 120: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Seventh/MassDispel.cs:
    CS0234: Line 76: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 77: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Seventh/MeteorSwarm.cs:
    CS0234: Line 91: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Sixth/Dispel.cs:
    CS0234: Line 66: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 67: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Sixth/Invisibility.cs:
    CS0234: Line 75: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Sixth/Mark.cs:
    CS0234: Line 64: The type or namespace name 'SendLocationEffect' does not ex
ist in the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Sixth/ParalyzeField.cs:
    CS0234: Line 64: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 81: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Spellweaving/Items/TransientItem.cs:
    CS0234: Line 76: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Spellweaving/Wildfire.cs:
    CS0234: Line 73: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 137: The type or namespace name 'PlaySound' does not exist in t
he namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Spellweaving/WordOfDeath.cs:
    CS0234: Line 54: The type or namespace name 'SendMovingParticles' does not e
xist in the namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Third/MagicLock.cs:
    CS0234: Line 52: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 56: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Third/Telekinesis.cs:
    CS0234: Line 68: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 69: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Third/Teleport.cs:
    CS0234: Line 96: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 97: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
+ Spells/Third/Unlock.cs:
    CS0234: Line 53: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
    CS0234: Line 55: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
+ Spells/Third/WallOfStone.cs:
    CS0234: Line 70: The type or namespace name 'PlaySound' does not exist in th
e namespace 'Server.Effects' (are you missing an assembly reference?)
    CS0234: Line 84: The type or namespace name 'SendLocationParticles' does not
exist in the namespace 'Server.Effects' (are you missing an assembly reference?
)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Here's the code from WallOfStone:

Code:
using System;
using Server.Misc;
using Server.Mobiles;
using Server.Targeting;

namespace Server.Spells.Third
{
    public class WallOfStoneSpell : MagerySpell
    {
        private static readonly SpellInfo m_Info = new SpellInfo(
            "Wall of Stone", "In Sanct Ylem",
            227,
            9011,
            false,
            Reagent.Bloodmoss,
            Reagent.Garlic);
        public WallOfStoneSpell(Mobile caster, Item scroll)
            : base(caster, scroll, m_Info)
        {
        }

        public override SpellCircle Circle
        {
            get
            {
                return SpellCircle.Third;
            }
        }
        public override void OnCast()
        {
            this.Caster.Target = new InternalTarget(this);
        }

        public void Target(IPoint3D p)
        {
            if (!this.Caster.CanSee(p))
            {
                this.Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (SpellHelper.CheckTown(p, this.Caster) && this.CheckSequence())
            {
                SpellHelper.Turn(this.Caster, p);

                SpellHelper.GetSurfaceTop(ref p);

                int dx = this.Caster.Location.X - p.X;
                int dy = this.Caster.Location.Y - p.Y;
                int rx = (dx - dy) * 44;
                int ry = (dx + dy) * 44;

                bool eastToWest;

                if (rx >= 0 && ry >= 0)
                {
                    eastToWest = false;
                }
                else if (rx >= 0)
                {
                    eastToWest = true;
                }
                else if (ry >= 0)
                {
                    eastToWest = true;
                }
                else
                {
                    eastToWest = false;
                }

                Effects.PlaySound(p, this.Caster.Map, 0x1F6);

                for (int i = -1; i <= 1; ++i)
                {
                    Point3D loc = new Point3D(eastToWest ? p.X + i : p.X, eastToWest ? p.Y : p.Y + i, p.Z);
                    bool canFit = SpellHelper.AdjustField(ref loc, this.Caster.Map, 22, true);

                    //Effects.SendLocationParticles( EffectItem.Create( loc, Caster.Map, EffectItem.DefaultDuration ), 0x376A, 9, 10, 5025 );

                    if (!canFit)
                        continue;

                    Item item = new InternalItem(loc, this.Caster.Map, this.Caster);

                    Effects.SendLocationParticles(item, 0x376A, 9, 10, 5025);
                    //new InternalItem( loc, Caster.Map, Caster );
                }
            }

            this.FinishSequence();
        }

        [DispellableField]
        private class InternalItem : Item
        {
            private readonly Mobile m_Caster;
            private Timer m_Timer;
            private DateTime m_End;
            public InternalItem(Point3D loc, Map map, Mobile caster)
                : base(0x82)
            {
                this.Visible = false;
                this.Movable = false;

                this.MoveToWorld(loc, map);

                this.m_Caster = caster;

                if (caster.InLOS(this))
                    this.Visible = true;
                else
                    this.Delete();

                if (this.Deleted)
                    return;

                this.m_Timer = new InternalTimer(this, TimeSpan.FromSeconds(10.0));
                this.m_Timer.Start();

                this.m_End = DateTime.UtcNow + TimeSpan.FromSeconds(10.0);
            }

            public InternalItem(Serial serial)
                : base(serial)
            {
            }

            public override bool BlocksFit
            {
                get
                {
                    return true;
                }
            }
            public override void Serialize(GenericWriter writer)
            {
                base.Serialize(writer);

                writer.Write((int)1); // version

                writer.WriteDeltaTime(this.m_End);
            }

            public override void Deserialize(GenericReader reader)
            {
                base.Deserialize(reader);

                int version = reader.ReadInt();

                switch ( version )
                {
                    case 1:
                        {
                            this.m_End = reader.ReadDeltaTime();

                            this.m_Timer = new InternalTimer(this, this.m_End - DateTime.UtcNow);
                            this.m_Timer.Start();

                            break;
                        }
                    case 0:
                        {
                            TimeSpan duration = TimeSpan.FromSeconds(10.0);

                            this.m_Timer = new InternalTimer(this, duration);
                            this.m_Timer.Start();

                            this.m_End = DateTime.UtcNow + duration;

                            break;
                        }
                }
            }

            public override bool OnMoveOver(Mobile m)
            {
                int noto;

                if (m is PlayerMobile)
                {
                    noto = Notoriety.Compute(this.m_Caster, m);
                    if (noto == Notoriety.Enemy || noto == Notoriety.Ally)
                        return false;

                    if (m.Map != null && (m.Map.Rules & MapRules.FreeMovement) == 0)
                        return false;
                }
                return base.OnMoveOver(m);
            }

            public override void OnAfterDelete()
            {
                base.OnAfterDelete();

                if (this.m_Timer != null)
                    this.m_Timer.Stop();
            }

            private class InternalTimer : Timer
            {
                private readonly InternalItem m_Item;
                public InternalTimer(InternalItem item, TimeSpan duration)
                    : base(duration)
                {
                    this.Priority = TimerPriority.OneSecond;
                    this.m_Item = item;
                }

                protected override void OnTick()
                {
                    this.m_Item.Delete();
                }
            }
        }

        private class InternalTarget : Target
        {
            private readonly WallOfStoneSpell m_Owner;
            public InternalTarget(WallOfStoneSpell owner)
                : base(Core.ML ? 10 : 12, true, TargetFlags.None)
            {
                this.m_Owner = owner;
            }

            protected override void OnTarget(Mobile from, object o)
            {
                if (o is IPoint3D)
                    this.m_Owner.Target((IPoint3D)o);
            }

            protected override void OnTargetFinish(Mobile from)
            {
                this.m_Owner.FinishSequence();
            }
        }
    }
}
 
Last edited:
Are you using an IDE? If you are, right click Effects. and select Go To Definition. What comes up?

Also, you shouldn't have to define 'using Server;' - our code looks the same. I'd honestly just suggest getting the newest version of servuo - I just got it last week I've never encountered an issue with that class.
 
Here's the code I added:



AlignmentCore.cs



Code:
#region Header

/*******************

    Sacred Earth: A World In Peril

* Private Copy.

* Not for Distrubution

*/

#endregion





#region References

using System;

using System.Collections.Generic;

#endregion



namespace Server

{

    [Parsable]

    public abstract class Alignment

    {

        public static Alignment DefaultAlignment { get { return m_Alignments[4]; } }



        public static readonly Alignment[] m_Alignments = new Alignment[0x100];



        public static Alignment[] Alignments { get { return m_Alignments; } }



        #region Alignments



        public static Alignment LawfulGood { get { return m_Alignments[0]; } }



        public static Alignment NeutralGood { get { return m_Alignments[1]; } }



        public static Alignment ChaoticGood { get { return m_Alignments[2]; } }



        public static Alignment LawfulNeutral { get { return m_Alignments[3]; } }



        public static Alignment TrueNeutral { get { return m_Alignments[4]; } }



        public static Alignment ChaoticNeutral { get { return m_Alignments[5]; } }



        public static Alignment LawfulEvil { get { return m_Alignments[6]; } }



        public static Alignment NeutralEvil { get { return m_Alignments[7];  } }



        public static Alignment ChaoticEvil { get { return m_Alignments[8]; } }



        #endregion



        private static readonly List<Alignment> m_AllAlignments = new List<Alignment>();



        public static List<Alignment> AllAlignments { get { return m_AllAlignments; } }



        private readonly int m_AlignID, m_AlignIndex;



        private string m_Name, m_Desc;



        private static string[] m_AlignNames;

        private static Alignment[] m_AlignValues;



        public static string[] GetAlignmentNames()

        {

            CheckNamesAndValues();

            return m_AlignNames;

        }



        public static Alignment[] GetAlignmentValues()

        {

            CheckNamesAndValues();

            return m_AlignValues;

        }



        public static Alignment Parse(string value)

        {

            CheckNamesAndValues();



            for(int i = 0; i < m_AlignNames.Length; ++i)

            {

                if(Insensitive.Equals(m_AlignNames[i], value))

                {

                    return m_AlignValues[i];

                }

            }



            int index;

            if (int.TryParse(value, out index))

            {

                if (index >= 0 && index < m_Alignments.Length && m_AllAlignments[index] != null)

                {

                    return m_Alignments[index];

                }

            }



            throw new ArgumentException("Invalid Alignment");

        }



        private static void CheckNamesAndValues()

        {

            if(m_AlignNames != null && m_AlignNames.Length == m_AllAlignments.Count)

            {

                return;

            }



            m_AlignNames = new string[m_AllAlignments.Count];

            m_AlignValues = new Alignment[m_AllAlignments.Count];



            for (int i = 0; i < m_AllAlignments.Count; ++i)

            {

                Alignment align = m_AllAlignments[i];



                m_AlignNames[i] = align.Name;

                m_AlignValues[i] = align;

            }

        }



        public override string ToString()

        {

            return m_Name;

        }



        private readonly bool m_IsOrder;

        private readonly bool m_IsNeutral;

        private readonly bool m_IsChaos;

        private readonly bool m_IsAtWar;



        public bool IsOrder { get { return m_IsOrder; } }



        public bool IsNeutral { get { return m_IsNeutral; } }



        public bool IsChaos { get { return m_IsChaos;  } }



        public bool IsAtWar { get { return m_IsAtWar; } }



        public int AlignID { get { return m_AlignID; } }



        public int AlignIndex { get { return m_AlignIndex; } }



        public string Name { get { return m_Name; } set { m_Name = value; } }



        public string Description { get { return m_Desc; } set { m_Desc = value; } }



        protected Alignment( int alignID, int alignIndex, string name, string desc, bool isOrder, bool isNeutral, bool isChaos, bool isAtWar)

        {

            m_AlignID = alignID;

            m_AlignIndex = alignIndex;

            m_Name = name;

            m_Desc = desc;

            m_IsOrder = isOrder;

            m_IsNeutral = isNeutral;

            m_IsChaos = isChaos;

            m_IsAtWar = isAtWar;

        }

    }

}
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back