RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Problem with CannedEvil/ChampionSpawn.CS

Hammerhand

Knight
On Scales.cs, line 276, you didnt add
Code:
  }
public class CopperScales : BaseScales
    {
        [Constructable]
        public CopperScales() : this( 1 )
        {
        }
And on Hides.cs, you seriously need to redo it. You wiped out part of the code. Your EtherealHides now has coding for BarbedHides. On that you can change the Barbed to Ethereal in 4 places. You really should start using Miceosoft Visual Studio Express 2012. It will show you were there are errors. And also, be more careful when merging files.
 

hermi

Sorceror
OK still getting error...going to list the lines i changed? the error and the Hides.cs in next post. the lines that are comming up as erroe are in the Hides.cs that come with RunUO.
122
174
227
271-529
596-628
630-634
667

Code:
RunUO - [www.runuo.com] Version 2.2, Build 4782.3756
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Items/Resources/Tailor/Hides.cs:
    CS1520: Line 617: Class, struct, or interface method must have a return type
 
    CS1002: Line 617: ; expected
    CS1519: Line 617: Invalid token ',' in class, struct, or interface member de
claration
    CS1519: Line 617: Invalid token ')' in class, struct, or interface member de
claration
    CS1520: Line 621: Class, struct, or interface method must have a return type
 
    CS1002: Line 621: ; expected
    CS1519: Line 621: Invalid token ')' in class, struct, or interface member de
claration
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

hermi

Sorceror
Hides.cs

Code:
using System;
using Server.Items;
using Server.Network;
 
namespace Server.Items
{
    public abstract class BaseHides : Item, ICommodity
    {
        private CraftResource m_Resource;
 
        [CommandProperty( AccessLevel.GameMaster )]
        public CraftResource Resource
        {
            get{ return m_Resource; }
            set{ m_Resource = value; InvalidateProperties(); }
        }
       
        int ICommodity.DescriptionNumber { get { return LabelNumber; } }
        bool ICommodity.IsDeedable { get { return true; } }
 
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
 
            writer.Write( (int) 1 ); // version
 
            writer.Write( (int) m_Resource );
        }
 
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
 
            int version = reader.ReadInt();
 
            switch ( version )
            {
                case 1:
                {
                    m_Resource = (CraftResource)reader.ReadInt();
                    break;
                }
                case 0:
                {
                    OreInfo info = new OreInfo( reader.ReadInt(), reader.ReadInt(), reader.ReadString() );
 
                    m_Resource = CraftResources.GetFromOreInfo( info );
                    break;
                }
            }
        }
 
        public BaseHides( CraftResource resource ) : this( resource, 1 )
        {
        }
 
        public BaseHides( CraftResource resource, int amount ) : base( 0x1079 )
        {
            Stackable = true;
            Weight = 5.0;
            Amount = amount;
            Hue = CraftResources.GetHue( resource );
 
            m_Resource = resource;
        }
 
        public BaseHides( Serial serial ) : base( serial )
        {
        }
 
        public override void AddNameProperty( ObjectPropertyList list )
        {
            if ( Amount > 1 )
                list.Add( 1050039, "{0}\t#{1}", Amount, 1024216 ); // ~1_NUMBER~ ~2_ITEMNAME~
            else
                list.Add( 1024216 ); // pile of hides
        }
 
        public override void GetProperties( ObjectPropertyList list )
        {
            base.GetProperties( list );
 
            if ( !CraftResources.IsStandard( m_Resource ) )
            {
                int num = CraftResources.GetLocalizationNumber( m_Resource );
 
                if ( num > 0 )
                    list.Add( num );
                else
                    list.Add( CraftResources.GetName( m_Resource ) );
            }
        }
 
        public override int LabelNumber
        {
            get
            {
                if ( m_Resource >= CraftResource.SpinedLeather && m_Resource <= CraftResource.BarbedLeather )
                    return 1049687 + (int)(m_Resource - CraftResource.SpinedLeather);
 
                return 1047023;
            }
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class Hides : BaseHides, IScissorable
    {
        [Constructable]
        public Hides() : this( 1 )
        {
        }
 
        [Constructable]
        public Hides( int amount ) : base( CraftResource.RegularLeather, amount )
        {
            Name = "Regular Hides"; //daat99 OWLTR - resource names
        }
 
        public Hides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
            base.ScissorHelper( from, new Leather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class SpinedHides : BaseHides, IScissorable
    {
        [Constructable]
        public SpinedHides() : this( 1 )
        {
        }
 
        [Constructable]
        public SpinedHides( int amount ) : base( CraftResource.SpinedLeather, amount )
        {
            Name = "Spined Hides"; //daat99 OWLTR - resource names
        }
 
        public SpinedHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper( from, new SpinedLeather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class HornedHides : BaseHides, IScissorable
    {
        [Constructable]
        public HornedHides() : this( 1 )
        {
        }
 
        [Constructable]
        public HornedHides( int amount ) : base( CraftResource.HornedLeather, amount )
        {
            Name = "Horned Hides"; //daat99 OWLTR - resource names
        }
 
        public HornedHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
           
            base.ScissorHelper( from, new HornedLeather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class BarbedHides : BaseHides, IScissorable
    {
        [Constructable]
        public BarbedHides()
            : this(1)
        {
        }
 
        [Constructable]
        public BarbedHides(int amount)
            : base(CraftResource.BarbedLeather, amount)
        {
            Name = "Barbed Hides"; //daat99 OWLTR - resource names
        }
 
        public BarbedHides(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();
        }
 
 
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new BarbedLeather(), 1);
 
            return true;
        }
    }
    [FlipableAttribute(0x1079, 0x1078)]
    public class PolarHides : BaseHides, IScissorable
    {
        [Constructable]
        public PolarHides()
            : this(1)
        {
        }
 
        [Constructable]
        public PolarHides(int amount)
            : base(CraftResource.PolarLeather, amount)
        {
            Name = "Polar Hides"; //daat99 OWLTR - resource names
        }
 
        public PolarHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new PolarLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class SyntheticHides : BaseHides, IScissorable
    {
        [Constructable]
        public SyntheticHides()
            : this(1)
        {
        }
 
        [Constructable]
        public SyntheticHides(int amount)
            : base(CraftResource.SyntheticLeather, amount)
        {
            Name = "Synthetic Hides"; //daat99 OWLTR - resource names
        }
 
        public SyntheticHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new SyntheticLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class BlazeHides : BaseHides, IScissorable
    {
        [Constructable]
        public BlazeHides()
            : this(1)
        {
        }
 
        [Constructable]
        public BlazeHides(int amount)
            : base(CraftResource.BlazeLeather, amount)
        {
            Name = "Blaze Hides"; //daat99 OWLTR - resource names
        }
 
        public BlazeHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new BlazeLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class DaemonicHides : BaseHides, IScissorable
    {
        [Constructable]
        public DaemonicHides()
            : this(1)
        {
        }
 
        [Constructable]
        public DaemonicHides(int amount)
            : base(CraftResource.DaemonicLeather, amount)
        {
            Name = "Daemonic Hides"; //daat99 OWLTR - resource names
        }
 
        public DaemonicHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new DaemonicLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class ShadowHides : BaseHides, IScissorable
    {
        [Constructable]
        public ShadowHides()
            : this(1)
        {
        }
 
        [Constructable]
        public ShadowHides(int amount)
            : base(CraftResource.ShadowLeather, amount)
        {
            Name = "Shadow Hides"; //daat99 OWLTR - resource names
        }
 
        public ShadowHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new ShadowLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class FrostHides : BaseHides, IScissorable
    {
        [Constructable]
        public FrostHides()
            : this(1)
        {
        }
 
        [Constructable]
        public FrostHides(int amount)
            : base(CraftResource.FrostLeather, amount)
        {
            Name = "Frost Hides"; //
OWLTR - resource names
        }
 
        public FrostHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new FrostLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class EtherealHides : BaseHides, IScissorable
    {
        [Constructable]
        public EtherealHides()
            : this(1)
        {
        }
 
        public BarbedHides( int amount ) : base( CraftResource.BarbedLeather, amount )
        {
        }
 
        public BarbedHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new EtherealLeather(), 1);
 
            return true;
        }
    }
}
 

Hammerhand

Knight
Your error lines, which you would see if you started using Visual Studio are as follows... 570, 617 and 620.
OWLTR - resource names << this is line 570
public BarbedHides( int amount ) : base( CraftResource.BarbedLeather, amount ) << line 617
public BarbedHides( Serial serial ) : base( serial ) << line 620
Lines 617 and 620 are in the Ethereal Hides section..
Very serious question here. Did you read my previous post on these SAME errors? The one at the top of THIS page? Remove line 570, it isnt needed and fix the 2 mis named lines in Ethereal. After you do that, then post any other errors you might have.
 

hermi

Sorceror
also wanted to ask... when you have //daat99 start.... and the some lines down...//daat99 end\

do i merge all line in between? because i have been.
 

Hammerhand

Knight
2010 will show the errors as well... it will show wiggly little red lines. And yes. You need to merge what WinMerge shows as the difference between the 2 files. WinMerge will transfer the entire different hi-lighted section to the other file. But what I'm seeing with your errors looks more like you're using WinMerge to find the differences and then using copy & paste to make the changes. To view any errors in Visual Studio, click on View at the top when you have a script open with it. Then select Error List. Any errors will show up with the lines in error at the bottom of the page. It basically tells you what is wrong.
 

hermi

Sorceror
Code:
RunUO - [www.runuo.com] Version 2.2, Build 4782.3756
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Items/Resources/Tailor/Hides.cs:
    CS1022: Line 654: Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Hammerhand

Knight
Post the script Hermi. I cant tell where the issue is without it. If you corrected the errors in the old one, it wont help with this error because the lines are different.
 

hermi

Sorceror
I see that in the error list you said about above..what dose that mean? i added another } still not help. i take one out and i get a new list of errors. but that one goes away.
 

hermi

Sorceror
Sorry about that thought i added it..

Code:
using System;
using Server.Items;
using Server.Network;
 
namespace Server.Items
{
    public abstract class BaseHides : Item, ICommodity
    {
        private CraftResource m_Resource;
 
        [CommandProperty( AccessLevel.GameMaster )]
        public CraftResource Resource
        {
            get{ return m_Resource; }
            set{ m_Resource = value; InvalidateProperties(); }
        }
       
        int ICommodity.DescriptionNumber { get { return LabelNumber; } }
        bool ICommodity.IsDeedable { get { return true; } }
 
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
 
            writer.Write( (int) 1 ); // version
 
            writer.Write( (int) m_Resource );
        }
 
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
 
            int version = reader.ReadInt();
 
            switch ( version )
            {
                case 1:
                {
                    m_Resource = (CraftResource)reader.ReadInt();
                    break;
                }
                case 0:
                {
                    OreInfo info = new OreInfo( reader.ReadInt(), reader.ReadInt(), reader.ReadString() );
 
                    m_Resource = CraftResources.GetFromOreInfo( info );
                    break;
                }
            }
        }
 
        public BaseHides( CraftResource resource ) : this( resource, 1 )
        {
        }
 
        public BaseHides( CraftResource resource, int amount ) : base( 0x1079 )
        {
            Stackable = true;
            Weight = 5.0;
            Amount = amount;
            Hue = CraftResources.GetHue( resource );
 
            m_Resource = resource;
        }
 
        public BaseHides( Serial serial ) : base( serial )
        {
        }
 
        public override void AddNameProperty( ObjectPropertyList list )
        {
            if ( Amount > 1 )
                list.Add( 1050039, "{0}\t#{1}", Amount, 1024216 ); // ~1_NUMBER~ ~2_ITEMNAME~
            else
                list.Add( 1024216 ); // pile of hides
        }
 
        public override void GetProperties( ObjectPropertyList list )
        {
            base.GetProperties( list );
 
            if ( !CraftResources.IsStandard( m_Resource ) )
            {
                int num = CraftResources.GetLocalizationNumber( m_Resource );
 
                if ( num > 0 )
                    list.Add( num );
                else
                    list.Add( CraftResources.GetName( m_Resource ) );
            }
        }
 
        public override int LabelNumber
        {
            get
            {
                if ( m_Resource >= CraftResource.SpinedLeather && m_Resource <= CraftResource.BarbedLeather )
                    return 1049687 + (int)(m_Resource - CraftResource.SpinedLeather);
 
                return 1047023;
            }
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class Hides : BaseHides, IScissorable
    {
        [Constructable]
        public Hides() : this( 1 )
        {
        }
 
        [Constructable]
        public Hides( int amount ) : base( CraftResource.RegularLeather, amount )
        {
            Name = "Regular Hides"; //daat99 OWLTR - resource names
        }
 
        public Hides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
            base.ScissorHelper( from, new Leather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class SpinedHides : BaseHides, IScissorable
    {
        [Constructable]
        public SpinedHides() : this( 1 )
        {
        }
 
        [Constructable]
        public SpinedHides( int amount ) : base( CraftResource.SpinedLeather, amount )
        {
            Name = "Spined Hides"; //daat99 OWLTR - resource names
        }
 
        public SpinedHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper( from, new SpinedLeather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class HornedHides : BaseHides, IScissorable
    {
        [Constructable]
        public HornedHides() : this( 1 )
        {
        }
 
        [Constructable]
        public HornedHides( int amount ) : base( CraftResource.HornedLeather, amount )
        {
            Name = "Horned Hides"; //daat99 OWLTR - resource names
        }
 
        public HornedHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
           
            base.ScissorHelper( from, new HornedLeather(), 1 );
 
            return true;
        }
    }
 
    [FlipableAttribute( 0x1079, 0x1078 )]
    public class BarbedHides : BaseHides, IScissorable
    {
        [Constructable]
        public BarbedHides()
            : this(1)
        {
        }
 
        [Constructable]
        public BarbedHides(int amount)
            : base(CraftResource.BarbedLeather, amount)
        {
            Name = "Barbed Hides"; //daat99 OWLTR - resource names
        }
 
        public BarbedHides(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();
        }
 
 
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new BarbedLeather(), 1);
 
            return true;
        }
    }
    [FlipableAttribute(0x1079, 0x1078)]
    public class PolarHides : BaseHides, IScissorable
    {
        [Constructable]
        public PolarHides()
            : this(1)
        {
        }
 
        [Constructable]
        public PolarHides(int amount)
            : base(CraftResource.PolarLeather, amount)
        {
            Name = "Polar Hides"; //daat99 OWLTR - resource names
        }
 
        public PolarHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new PolarLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class SyntheticHides : BaseHides, IScissorable
    {
        [Constructable]
        public SyntheticHides()
            : this(1)
        {
        }
 
        [Constructable]
        public SyntheticHides(int amount)
            : base(CraftResource.SyntheticLeather, amount)
        {
            Name = "Synthetic Hides"; //daat99 OWLTR - resource names
        }
 
        public SyntheticHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new SyntheticLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class BlazeHides : BaseHides, IScissorable
    {
        [Constructable]
        public BlazeHides()
            : this(1)
        {
        }
 
        [Constructable]
        public BlazeHides(int amount)
            : base(CraftResource.BlazeLeather, amount)
        {
            Name = "Blaze Hides"; //daat99 OWLTR - resource names
        }
 
        public BlazeHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new BlazeLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class DaemonicHides : BaseHides, IScissorable
    {
        [Constructable]
        public DaemonicHides()
            : this(1)
        {
        }
 
        [Constructable]
        public DaemonicHides(int amount)
            : base(CraftResource.DaemonicLeather, amount)
        {
            Name = "Daemonic Hides"; //daat99 OWLTR - resource names
        }
 
        public DaemonicHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new DaemonicLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class ShadowHides : BaseHides, IScissorable
    {
        [Constructable]
        public ShadowHides()
            : this(1)
        {
        }
 
        [Constructable]
        public ShadowHides(int amount)
            : base(CraftResource.ShadowLeather, amount)
        {
            Name = "Shadow Hides"; //daat99 OWLTR - resource names
        }
 
        public ShadowHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new ShadowLeather(), 1);
 
            return true;
        }
    }
 
    [FlipableAttribute(0x1079, 0x1078)]
    public class FrostHides : BaseHides, IScissorable
    {
        [Constructable]
        public FrostHides()
            : this(1)
        {
        }
 
        [Constructable]
        public FrostHides(int amount)
            : base(CraftResource.FrostLeather, amount)
        {
            Name = "Frost Hides"; //daat99 OWLTR - resource names
        }
 
        public FrostHides(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();
        }
 
        public bool Scissor(Mobile from, Scissors scissors)
        {
            if (Deleted || !from.CanSee(this)) return false;
 
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(502437); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new FrostLeather(), 1);
 
            return true;
        }
    }
}
    [FlipableAttribute(0x1079, 0x1078)]
    public class EtherealHides : BaseHides, IScissorable
    {
        [Constructable]
        public EtherealHides()
            : this(1)
        {
        }
 
        public EtherealHides( int amount ) : base( CraftResource.BarbedLeather, amount )
        {
        }
 
        public EtherealHides( 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();
        }
 
        public bool Scissor( Mobile from, Scissors scissors )
        {
            if ( Deleted || !from.CanSee( this ) ) return false;
 
            if ( Core.AOS && !IsChildOf ( from.Backpack ) )
            {
                from.SendLocalizedMessage ( 502437 ); // Items you wish to cut must be in your backpack
                return false;
            }
 
            base.ScissorHelper(from, new EtherealLeather(), 1);
 
            return true;
        }
    }
}
 

Hammerhand

Knight
Ok, picture time.. Example 1, count the brackets } Example 1.jpg
Example 2, count the brackets } Example 2.jpg
Example 3, look at the resource. Example 3.jpg

Example 1 is correct, Example 2 is not. Example 3 shows 2 different resources, meaning it will not work.
Your Ethereal Hides do not have a craft resource of Barbed leather, or else they would BE Barbed Leather.
 

Hammerhand

Knight
See, when the error list says Line 654: Type or namespace definition, or end-of-file expected that basically means it was expecting the script to end there, because thats where the coding ended. Always check above the listed error lines, because it isnt always THAT line that has the problem. By adding in 1 too many brackets, you ended the script prematurally. If you had scrolled upwards you would have seen this.. ScreenHunter_10 Apr. 12 09.44.jpg You see right next to the yellow line on the left where the line coming down stops and then starts again, but theres still coding? Thats the spot that caused the error for line 654 and THAT line is 606. Thats where you added in 1 too many brackets & ended the script. For each section of script, you might have 4 brackets like this { which means you HAVE to have the same amount going the other way like this }. To many or too few results in errors.
 

daat99

Moderator
Staff member
Im using winmerg to merg file and looking at the script in Visual Studio 2010. should i get 2012?
I prefer VS 2010 over 2012 (they ruined the user interface...) myself.
Either will do just fine for what you want to do.
 

hermi

Sorceror
Ok wanted to let you know now after weeks of work so far everything is working. i can walk in any land...not get stuck, i can mine everything and Chop woods. No will be testing from here on in as i go,if i his anything that might have to do with this...i'll add it to the main forum and go from there, If you feel you can help me Awesome...again just don't want to have you think that you both are my fix all guys. don't want to take advantage of you kinda thing.

Just want to say from the bottom of my heart THANK YOU BOTH for all your help!!!!! thank you for not giving up on me, your help was GREAT!!!!!

Now on to the next thing for me to mess up ;)
 

hermi

Sorceror
you said about changing the loot to "Meager to Average to Rich to FilthyRich were do i do this? been looking cant seam to find it.


On the toolbar... here ya' go.. straight from Neruns latest Distro. Just drop it into your 2.3 & startup the server. Just tested it & it loads fine. As for editing mob loot, that depends on just what loot you mean. If it's the AddLoot( LootPack.***** ); part, then you can change the level of the loot by changing the Meager to Average to Rich to FilthyRich.. but if you're talking about the loot IN the loot pack, then you have to edit the Loot.cs & LootPack.cs & thats more complicated.
 

Hammerhand

Knight
Look in the monster scripts themselves. Each monster will have the AddLoot(LootPack.*****); The **** being Meager, Average, Rich or FilthyRich depending on the monster.
 
Top