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!

page of errors after xmlspawner2

jezika

Traveler
namespace issues x43 only popped after i installed the new XMLSpawner2 which I have been anxiously awaiting for for quite some time. I did follow each instruction exactly. The files that were indicated to alter, I did so. None of the filesthat were indicated to alter are on the list of 43 errors. Before I added the spawner, no errors were thrown. here is the list of namespace errors...I do apologize for this newb question/issue and i know this is an easy fix, I just am not sure exactly what to place up top on each script.
Code:
RunUO - [https://github.com/runuo/] Version 2.5.0.24991
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 3 64-bit processors
Core: Server garbage collection mode enabled
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (43 errors, 0 warnings)
Errors:
+ Items/Containers/TrapableContainer.cs:
    CS0246: Line 14: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Customs/GlobalDonationBox.cs:
    CS0246: Line 325: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 400: The type or namespace name 'Backpack' could not be found (
are you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/AndricSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/AsandosSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/CraftmansSatchel.cs:
    CS0246: Line 10: The type or namespace name 'Backpack' could not be found (a
re you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/GervisSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/GiftForArielle.cs:
    CS0246: Line 6: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/HargroveSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/LowelSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/MuggSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/NibbetSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/RewardBags.cs:
    CS0246: Line 57: The type or namespace name 'Bag' could not be found (are yo
u missing a using directive or an assembly reference?)
    CS0246: Line 85: The type or namespace name 'Bag' could not be found (are yo
u missing a using directive or an assembly reference?)
    CS0246: Line 113: The type or namespace name 'Bag' could not be found (are y
ou missing a using directive or an assembly reference?)
    CS0246: Line 141: The type or namespace name 'Bag' could not be found (are y
ou missing a using directive or an assembly reference?)
    CS0246: Line 169: The type or namespace name 'WoodenBox' could not be found
(are you missing a using directive or an assembly reference?)
+ Engines/MLQuests/Items/SadrahSatchel.cs:
    CS0246: Line 6: The type or namespace name 'Backpack' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/Quests/Dark Tides/Items/KronusScrollBox.cs:
    CS0246: Line 8: The type or namespace name 'MetalBox' could not be found (ar
e you missing a using directive or an assembly reference?)
+ Engines/Quests/Emino's Undertaking/Items/EminosKatanaChest.cs:
    CS0246: Line 9: The type or namespace name 'WoodenChest' could not be found
(are you missing a using directive or an assembly reference?)
+ Engines/Quests/Haochi's Trials/Items/HaochisTreasureChest.cs:
    CS0246: Line 9: The type or namespace name 'WoodenFootLocker' could not be f
ound (are you missing a using directive or an assembly reference?)
+ Engines/Quests/Uzeraan Turmoil/Items/DaemonBloodChest.cs:
    CS0246: Line 9: The type or namespace name 'MetalChest' could not be found (
are you missing a using directive or an assembly reference?)
+ Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs:
    CS0246: Line 149: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
+ Holiday Stuff/Valentine/2012/Items/HeartShapedBox.cs:
    CS0246: Line 7: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
+ Items/Addons/BaseAddonContainer.cs:
    CS0246: Line 10: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/Aquarium/FishBowl.cs:
    CS0246: Line 10: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/Containers/FurnitureContainer.cs:
    CS0246: Line 11: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 38: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 66: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 93: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 120: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 147: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 174: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 201: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 231: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 258: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 285: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 320: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
+ Items/Containers/SalvageBag.cs:
    CS0246: Line 11: The type or namespace name 'Bag' could not be found (are yo
u missing a using directive or an assembly reference?)
+ Items/Containers/Strongbox.cs:
    CS0246: Line 10: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/Decoration Artifacts/BaseDecorationArtifact.cs:
    CS0246: Line 43: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/New Haven Quest Rewards/BagOfNecromancerReagents.cs:
    CS0246: Line 6: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ Items/New Haven Quest Rewards/BagOfSmokeBombs.cs:
    CS0246: Line 6: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ Items/Resources/Reagents/BagOfAllReagents.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ Items/Resources/Reagents/BagOfNecroReagents.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ Items/Resources/Reagents/BagOfReagents.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ Items/Special/Valentines/2007/RedVelvetGiftBox.cs:
    CS0246: Line 11: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/Special/Holiday/GiftBox.cs:
    CS0246: Line 9: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
+ Items/Special/Holiday/HolidayGiftBoxes.cs:
    CS0246: Line 47: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 76: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
    CS0246: Line 105: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 134: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 163: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
    CS0246: Line 193: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
+ Items/Special/Holiday/Stockings.cs:
    CS0246: Line 8: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
    CS0246: Line 37: The type or namespace name 'BaseContainer' could not be fou
nd (are you missing a using directive or an assembly reference?)
+ Items/Special/Mutation Core/PlagueBeastBackpack.cs:
    CS0246: Line 7: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
+ Items/Special/Veteran Rewards/CommodityDeedBox.cs:
    CS0246: Line 8: The type or namespace name 'BaseContainer' could not be foun
d (are you missing a using directive or an assembly reference?)
+ Mobiles/Vendors/PlayerVendor.cs:
    CS0246: Line 90: The type or namespace name 'Backpack' could not be found (a
re you missing a using directive or an assembly reference?)
+ Multis/MovingCrate.cs:
    CS0246: Line 277: The type or namespace name 'BaseContainer' could not be fo
und (are you missing a using directive or an assembly reference?)
+ SpecialSystems/Items/SupplyBags/AlchemyBag.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ SpecialSystems/Items/SupplyBags/BagOfIngots.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ SpecialSystems/Items/SupplyBags/ScribeBag.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ SpecialSystems/Items/SupplyBags/SmithBag.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or an assembly reference?)
+ SpecialSystems/Items/SupplyBags/TailorBag.cs:
    CS0246: Line 7: The type or namespace name 'Bag' could not be found (are you
missing a using directive or 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.
 

jezika

Traveler
Realized after stepping away from my computer screen that they all have 1 thing in common...they are all containers....the basecontainer.cs file was altered with xmlspawner2. it was stated to replace BaseContainer.CS with the one provided, which i did, but the one provided in the file package isnt a .cs it reads basecontainer.cs.4.2 which was giving me a bunch of issues. so i kept the new and my original in the file...errors resolved...Like i said complete total newbie issue that I was staring at for about 2 hours....Need coffee. Again, sorry for the mistake. Although, after i fixed that, new errors popped up
Code:
RunUO - [https://github.com/runuo/] Version 2.5.0.24991
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 3 64-bit processors
Core: Server garbage collection mode enabled
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Customs/XmlSpawner Core/XmlAttach/XmlAttach.cs:
    CS0019: Line 2375: Operator '>=' cannot be applied to operands of type 'Syst
em.DateTime' and 'long'
+ Customs/XmlSpawner Core/XmlPropsGumps/XmlSetGump.cs:
    CS1502: Line 271: The best overloaded method match for 'Server.Gumps.SetBody
Gump.SetBodyGump(System.Reflection.PropertyInfo, Server.Mobile, object, System.C
ollections.Generic.Stack<Server.Gumps.StackEntry>, int, System.Collections.Array
List)' has some invalid arguments
    CS1503: Line 271: Argument 4: cannot convert from 'System.Collections.Stack'
to 'System.Collections.Generic.Stack<Server.Gumps.StackEntry>'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

jezika

Traveler
Would probably help if i added the proper scripts to the issue at hand.....
This one is the XmlFollow.cs

Code:
#define ServUO
#if(ServUO)
using System;
using Server.Mobiles;
namespace Server.Engines.XmlSpawner2
{
  public class XmlFollow : XmlAttachment
  {
      private int m_DataValue; // a serial constructor is REQUIRED
      public XmlFollow(ASerial serial) : base(serial)
    {
    }
[Attachable] public XmlFollow(int distance)
    {
    this.Distance = distance;
      }
[Attachable] public XmlFollow(int distance, double expiresin)
    {
    this.Distance = distance;
          this.Expiration = TimeSpan.FromMinutes(expiresin);
      }
[CommandProperty(AccessLevel.GameMaster)]
      public int Distance
      }
        get
    {
  return this.m_DataValue;
      }
    set
      {
this.m_DataValue = value;
              if (this.AttachedTo is BaseCreature)
            {
  ((BaseCreature)this.AttachedTo).FollowRange = this.m_DataValue;
                }
            }
        }
        // These are the various ways in which the message attachment can be constructed. ?
        // These can be called via the [addatt interface, via scripts, via the spawner ATTACH keyword.
        // Other overloads could be defined to handle other types of arguments
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
 
            writer.Write((int)0);
            // version 0
            writer.Write(this.m_DataValue);
        }
 
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
 
            int version = reader.ReadInt();
            // version 0
            this.m_DataValue = reader.ReadInt();
        }
 
        public override void OnDelete()
        {
            base.OnDelete();
 
            // remove the mod
            if (this.AttachedTo is BaseCreature)
 
      {
         
 
((BaseCreature)this.AttachedTo).FollowRange = -1;
     
 
}
 
 
 
  }
 

jezika

Traveler
This one is the XmlSpawner Core/XmlPropsGumps/XmlSetGump.cs

Code:
using System;
 
using System.Reflection;
 
using System.Collections;
 
using System.Collections.Generic;
 
using Server;
 
using Server.Network;
 
using Server.HuePickers;
 
using Server.Commands;
 
using Server.Commands.Generic;
 
namespace Server.Gumps
 
{
 
public class XmlSetGump : Gump
 
{
 
private PropertyInfo m_Property;
 
private Mobile m_Mobile;
 
private object m_Object;
 
#if (NEWTIMERS)
 
private Stack<StackEntry> m_Stack;
 
#else
 
private Stack m_Stack;
 
#endif
 
private int m_Page;
 
private ArrayList m_List;
 
public static readonly bool OldStyle = PropsConfig.OldStyle;
 
public static readonly int GumpOffsetX = PropsConfig.GumpOffsetX;
 
public static readonly int GumpOffsetY = PropsConfig.GumpOffsetY;
 
public static readonly int TextHue = PropsConfig.TextHue;
 
public static readonly int TextOffsetX = PropsConfig.TextOffsetX;
 
public static readonly int OffsetGumpID = PropsConfig.OffsetGumpID;
 
public static readonly int HeaderGumpID = PropsConfig.HeaderGumpID;
 
public static readonly int EntryGumpID = PropsConfig.EntryGumpID;
 
public static readonly int BackGumpID = PropsConfig.BackGumpID;
 
public static readonly int SetGumpID = PropsConfig.SetGumpID;
 
public static readonly int SetWidth = PropsConfig.SetWidth;
 
public static readonly int SetOffsetX = PropsConfig.SetOffsetX, SetOffsetY = PropsConfig.SetOffsetY;
 
public static readonly int SetButtonID1 = PropsConfig.SetButtonID1;
 
public static readonly int SetButtonID2 = PropsConfig.SetButtonID2;
 
public static readonly int PrevWidth = PropsConfig.PrevWidth;
 
public static readonly int PrevOffsetX = PropsConfig.PrevOffsetX, PrevOffsetY = PropsConfig.PrevOffsetY;
 
public static readonly int PrevButtonID1 = PropsConfig.PrevButtonID1;
 
public static readonly int PrevButtonID2 = PropsConfig.PrevButtonID2;
 
public static readonly int NextWidth = PropsConfig.NextWidth;
 
public static readonly int NextOffsetX = PropsConfig.NextOffsetX, NextOffsetY = PropsConfig.NextOffsetY;
 
public static readonly int NextButtonID1 = PropsConfig.NextButtonID1;
 
public static readonly int NextButtonID2 = PropsConfig.NextButtonID2;
 
public static readonly int OffsetSize = PropsConfig.OffsetSize;
 
public static readonly int EntryHeight = PropsConfig.EntryHeight;
 
public static readonly int BorderSize = PropsConfig.BorderSize;
 
private static readonly int EntryWidth = 212;
 
private static readonly int TotalWidth = OffsetSize + EntryWidth + OffsetSize + SetWidth + OffsetSize;
 
private static readonly int TotalHeight = OffsetSize + (2 * (EntryHeight + OffsetSize));
 
private static readonly int BackWidth = BorderSize + TotalWidth + BorderSize;
 
private static readonly int BackHeight = BorderSize + TotalHeight + BorderSize;
 
#if (NEWTIMERS)
 
public XmlSetGump( PropertyInfo prop, Mobile mobile, object o, Stack<StackEntry> stack, int page, ArrayList list ) : base( GumpOffsetX, GumpOffsetY )
 
#else
 
public XmlSetGump( PropertyInfo prop, Mobile mobile, object o, Stack stack, int page, ArrayList list ) : base( GumpOffsetX, GumpOffsetY )
 
#endif
 
{
 
m_Property = prop;
 
m_Mobile = mobile;
 
m_Object = o;
 
m_Stack = stack;
 
m_Page = page;
 
m_List = list;
 
bool canNull = !prop.PropertyType.IsValueType;
 
bool canDye = prop.IsDefined( typeof( HueAttribute ), false );
 
bool isBody = prop.IsDefined( typeof( BodyAttribute ), false );
 
int xextend = 0;
 
if(prop.PropertyType == typeof(string))
 
{
 
xextend = 300;
 
}
 
object val = prop.GetValue( m_Object, null );
 
string initialText;
 
if ( val == null )
 
initialText = "";
 
else
 
initialText = val.ToString();
 
AddPage( 0 );
 
AddBackground( 0, 0, BackWidth+xextend, BackHeight + (canNull ? (EntryHeight + OffsetSize) : 0) + (canDye ? (EntryHeight + OffsetSize) : 0) + (isBody ? (EntryHeight + OffsetSize) : 0), BackGumpID );
 
AddImageTiled( BorderSize, BorderSize, TotalWidth+xextend - (OldStyle ? SetWidth + OffsetSize : 0), TotalHeight + (canNull ? (EntryHeight + OffsetSize) : 0) + (canDye ? (EntryHeight + OffsetSize) : 0) + (isBody ? (EntryHeight + OffsetSize) : 0), OffsetGumpID );
 
int x = BorderSize + OffsetSize;
 
int y = BorderSize + OffsetSize;
 
AddImageTiled( x, y, EntryWidth+xextend, EntryHeight, EntryGumpID );
 
AddLabelCropped( x + TextOffsetX, y, EntryWidth+xextend - TextOffsetX, EntryHeight, TextHue, prop.Name );
 
x += EntryWidth+xextend + OffsetSize;
 
if ( SetGumpID != 0 )
 
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );
 
x = BorderSize + OffsetSize;
 
y += EntryHeight + OffsetSize;
 
AddImageTiled( x, y, EntryWidth+xextend, EntryHeight, EntryGumpID );
 
AddTextEntry( x + TextOffsetX, y, EntryWidth+xextend - TextOffsetX, EntryHeight, TextHue, 0, initialText );
 
x += EntryWidth+xextend + OffsetSize;
 
if ( SetGumpID != 0 )
 
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );
 
AddButton( x + SetOffsetX, y + SetOffsetY, SetButtonID1, SetButtonID2, 1, GumpButtonType.Reply, 0 );
 
if ( canNull )
 
{
 
x = BorderSize + OffsetSize;
 
y += EntryHeight + OffsetSize;
 
AddImageTiled( x, y, EntryWidth+xextend, EntryHeight, EntryGumpID );
 
AddLabelCropped( x + TextOffsetX, y, EntryWidth+xextend - TextOffsetX, EntryHeight, TextHue, "Null" );
 
x += EntryWidth+xextend + OffsetSize;
 
if ( SetGumpID != 0 )
 
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );
 
AddButton( x + SetOffsetX, y + SetOffsetY, SetButtonID1, SetButtonID2, 2, GumpButtonType.Reply, 0 );
 
}
 
if ( canDye )
 
{
 
x = BorderSize + OffsetSize;
 
y += EntryHeight + OffsetSize;
 
AddImageTiled( x, y, EntryWidth+xextend, EntryHeight, EntryGumpID );
 
AddLabelCropped( x + TextOffsetX, y, EntryWidth+xextend - TextOffsetX, EntryHeight, TextHue, "Hue Picker" );
 
x += EntryWidth+xextend + OffsetSize;
 
if ( SetGumpID != 0 )
 
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );
 
AddButton( x + SetOffsetX, y + SetOffsetY, SetButtonID1, SetButtonID2, 3, GumpButtonType.Reply, 0 );
 
}
 
if ( isBody )
 
{
 
x = BorderSize + OffsetSize;
 
y += EntryHeight + OffsetSize;
 
AddImageTiled( x, y, EntryWidth+xextend, EntryHeight, EntryGumpID );
 
AddLabelCropped( x + TextOffsetX, y, EntryWidth+xextend - TextOffsetX, EntryHeight, TextHue, "Body Picker" );
 
x += EntryWidth+xextend + OffsetSize;
 
if ( SetGumpID != 0 )
 
AddImageTiled( x, y, SetWidth, EntryHeight, SetGumpID );
 
AddButton( x + SetOffsetX, y + SetOffsetY, SetButtonID1, SetButtonID2, 4, GumpButtonType.Reply, 0 );
 
}
 
}
 
private class InternalPicker : HuePicker
 
{
 
private PropertyInfo m_Property;
 
private Mobile m_Mobile;
 
private object m_Object;
 
#if (NEWTIMERS)
 
private Stack<StackEntry> m_Stack;
 
#else
 
private Stack m_Stack;
 
#endif
 
private int m_Page;
 
private ArrayList m_List;
 
#if (NEWTIMERS)
 
public InternalPicker( PropertyInfo prop, Mobile mobile, object o, Stack<StackEntry> stack, int page, ArrayList list ) : base( ((IHued)o).HuedItemID )
 
#else
 
public InternalPicker( PropertyInfo prop, Mobile mobile, object o, Stack stack, int page, ArrayList list ) : base( ((IHued)o).HuedItemID )
 
#endif
 
{
 
m_Property = prop;
 
m_Mobile = mobile;
 
m_Object = o;
 
m_Stack = stack;
 
m_Page = page;
 
m_List = list;
 
}
 
public override void OnResponse( int hue )
 
{
 
try
 
{
 
CommandLogging.LogChangeProperty( m_Mobile, m_Object, m_Property.Name, hue.ToString() );
 
m_Property.SetValue( m_Object, hue, null );
 
}
 
catch
 
{
 
m_Mobile.SendMessage( "An exception was caught. The property may not have changed." );
 
}
 
m_Mobile.SendGump( new XmlPropertiesGump( m_Mobile, m_Object, m_Stack, m_List, m_Page ) );
 
}
 
}
 
public override void OnResponse( NetState sender, RelayInfo info )
 
{
 
object toSet;
 
bool shouldSet, shouldSend = true;
 
switch ( info.ButtonID )
 
{
 
case 1:
 
{
 
TextRelay text = info.GetTextEntry( 0 );
 
if ( text != null )
 
{
 
try
 
{
 
toSet = XmlPropertiesGump.GetObjectFromString( m_Property.PropertyType, text.Text );
 
shouldSet = true;
 
}
 
catch
 
{
 
toSet = null;
 
shouldSet = false;
 
m_Mobile.SendMessage( "Bad format" );
 
}
 
}
 
else
 
{
 
toSet = null;
 
shouldSet = false;
 
}
 
break;
 
}
 
case 2: // Null
 
{
 
toSet = null;
 
shouldSet = true;
 
break;
 
}
 
case 3: // Hue Picker
 
{
 
toSet = null;
 
shouldSet = false;
 
shouldSend = false;
 
m_Mobile.SendHuePicker( new InternalPicker( m_Property, m_Mobile, m_Object, m_Stack, m_Page, m_List ) );
 
break;
 
}
 
case 4: // Body Picker
 
{
 
toSet = null;
 
shouldSet = false;
 
shouldSend = false;
 
m_Mobile.SendGump( new SetBodyGump( m_Property, m_Mobile, m_Object, m_Stack, m_Page, m_List ) );
 
break;
 
}
 
default:
 
{
 
toSet = null;
 
shouldSet = false;
 
break;
 
}
 
}
 
if ( shouldSet )
 
{
 
try
 
{
 
CommandLogging.LogChangeProperty( m_Mobile, m_Object, m_Property.Name, toSet==null?"(null)":toSet.ToString() );
 
m_Property.SetValue( m_Object, toSet, null );
 
}
 
catch
 
{
 
m_Mobile.SendMessage( "An exception was caught. The property may not have changed." );
 
}
 
}
 
if ( shouldSend )
 
m_Mobile.SendGump( new XmlPropertiesGump( m_Mobile, m_Object, m_Stack, m_List, m_Page ) );
 
}
 
}
 
}
 

jezika

Traveler
Would probably help if i added the proper scripts to the issue at hand.....
This one is the XmlFollow.cs

Code:
#define ServUO
#if(ServUO)
using System;
using Server.Mobiles;
namespace Server.Engines.XmlSpawner2
{
  public class XmlFollow : XmlAttachment
  {
      private int m_DataValue; // a serial constructor is REQUIRED
      public XmlFollow(ASerial serial) : base(serial)
    {
    }
[Attachable] public XmlFollow(int distance)
    {
    this.Distance = distance;
      }
[Attachable] public XmlFollow(int distance, double expiresin)
    {
    this.Distance = distance;
          this.Expiration = TimeSpan.FromMinutes(expiresin);
      }
[CommandProperty(AccessLevel.GameMaster)]
      public int Distance
      }
        get
    {
  return this.m_DataValue;
      }
    set
      {
this.m_DataValue = value;
              if (this.AttachedTo is BaseCreature)
            {
  ((BaseCreature)this.AttachedTo).FollowRange = this.m_DataValue;
                }
            }
        }
        // These are the various ways in which the message attachment can be constructed. ?
        // These can be called via the [addatt interface, via scripts, via the spawner ATTACH keyword.
        // Other overloads could be defined to handle other types of arguments
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
 
            writer.Write((int)0);
            // version 0
            writer.Write(this.m_DataValue);
        }
 
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
 
            int version = reader.ReadInt();
            // version 0
            this.m_DataValue = reader.ReadInt();
        }
 
        public override void OnDelete()
        {
            base.OnDelete();
 
            // remove the mod
            if (this.AttachedTo is BaseCreature)
 
      {
       
 
((BaseCreature)this.AttachedTo).FollowRange = -1;
   
 
}
 
 
 
  }


one error Fixed....im not using ServUO but rather RunUO so the top line has been recommented. Still getting errors though. Yes, I have read the post and discussion from XmlSpawner2 completely. I have double checked the filed that were redistributed but they are identical to the ones I have currently. Checked with winmerge. at a loss :(
 
Top