Massapequa submitted a new resource:

Bounty Hunter Boards and Hunter's Challenge Boards - Custom bounty system for all levels of monsters!

Bounty Boards and Hunter's Boards:
Two types of public community boards that can be customized to create options of challenging monsters for your players to kill and gain rewards from.
Once the admins set up the boards and create a custom of monsters to slay, players can simply go to the respective boards, select their bounty and get to the killing.
Once completed, players can bring the contract back and turn it in by dropping the item onto the board itself.

Setting it up:...

Read more about this resource...
 
Errors:
+ KUSTOM/Bounty-Board-and-Hunter-s-Board---1.0-main/Bounty Board and Hunters Board/Bounty Hunter Board/B
ountySpawner.cs:
CS0246: Line 58: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or a
n assembly reference?)
CS0246: Line 218: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 234: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 601: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 614: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 699: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 823: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 844: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 916: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 945: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 1189: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 1210: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)

hello im using runuo 2.2 not sure if you offer support for it, i fixed few other errors, but still getting those, thank for your contribution
 
Errors:
+ KUSTOM/Bounty-Board-and-Hunter-s-Board---1.0-main/Bounty Board and Hunters Board/Bounty Hunter Board/B
ountySpawner.cs:
CS0246: Line 58: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or a
n assembly reference?)
CS0246: Line 218: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 234: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 601: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 614: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 699: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 823: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 844: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 916: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 945: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 1189: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)
CS0246: Line 1210: The type or namespace name 'SpawnObject' could not be found (are you missing a using directive or
an assembly reference?)

hello im using runuo 2.2 not sure if you offer support for it, i fixed few other errors, but still getting those, thank for your contribution

Could you send me the code of your Spawner.cs? Your version of RunUO must spawn creatures very differently from recent ServUO versions.

Before you send me your code, try adding this file to your directory.
if it doesn't work, send me your Spawner.cs code:
Code:
using System;
using System.Collections.Generic;

namespace Server.Mobiles
{
    public class SpawnObject
    {
        public string SpawnName { get; set; }
        public int MaxCount { get; set; }

        public int CurrentCount { get { return SpawnedObjects.Count; } }

        public List<ISpawnable> SpawnedObjects { get; set; }

        public SpawnObject(string name)
            : this(name, 1)
        {
        }

        public SpawnObject(string name, int count)
        {
            SpawnName = name;
            MaxCount = count;

            SpawnedObjects = new List<ISpawnable>();
        }

        public SpawnObject(GenericReader reader)
        {
            int version = reader.ReadInt();

            SpawnedObjects = new List<ISpawnable>();

            int count = reader.ReadInt();
            for (int i = 0; i < count; i++)
            {
                ISpawnable e = World.FindEntity(reader.ReadInt()) as ISpawnable;

                if (e != null)
                    SpawnedObjects.Add(e);
            }

            SpawnName = reader.ReadString();
            MaxCount = reader.ReadInt();
        }

        public void Serialize(GenericWriter writer)
        {
            writer.Write(0);

            writer.Write(SpawnedObjects.Count);
            foreach (var sp in SpawnedObjects)
            {
                if (sp is Item)
                    writer.Write((Item)sp);
                else if (sp is Mobile)
                    writer.Write((Mobile)sp);
                else
                    writer.Write(Serial.MinusOne);
            }

            writer.Write(SpawnName);
            writer.Write(MaxCount);
        }
    }
}
 
Errors:
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS0115: Line 27: 'Server.Gumps.BountyBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 84: 'Server.Gumps.BountyBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
nd to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS0115: Line 21: 'Server.Mobiles.BountySpawnerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 174: 'Server.Mobiles.BountySpawnerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS0115: Line 49: 'Server.Mobiles.BSpawnerTimerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 176: 'Server.Mobiles.BSpawnerTimerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS0115: Line 119: 'Server.Items.HuntersBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 215: 'Server.Items.HuntersBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to ov
erride
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS0115: Line 30: 'Server.Gumps.HuntersBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 222: 'Server.Gumps.HuntersBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS0115: Line 31: 'Server.Items.HuntersBoardEntryEditGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 138: 'Server.Items.HuntersBoardEntryEditGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
und to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo

thats what i get now, heres my spawner.cs
thanks for your time
 

Attachments

  • Spawner.cs
    24 KB · Views: 1
Errors:
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS0115: Line 27: 'Server.Gumps.BountyBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 84: 'Server.Gumps.BountyBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
nd to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS0115: Line 21: 'Server.Mobiles.BountySpawnerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 174: 'Server.Mobiles.BountySpawnerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS0115: Line 49: 'Server.Mobiles.BSpawnerTimerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 176: 'Server.Mobiles.BSpawnerTimerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS0115: Line 119: 'Server.Items.HuntersBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 215: 'Server.Items.HuntersBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to ov
erride
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS0115: Line 30: 'Server.Gumps.HuntersBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 222: 'Server.Gumps.HuntersBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS0115: Line 31: 'Server.Items.HuntersBoardEntryEditGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 138: 'Server.Items.HuntersBoardEntryEditGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
und to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo

thats what i get now, heres my spawner.cs
thanks for your time
Well at least it looks like SpawnObject got rid of all the errors regarding that... These new errors are because you don't have BaseGump.cs, which comes with newer viserions of ServUO.
Adding this should clear up those errors:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

using Server;
using Server.Network;
using Server.Mobiles;

namespace Server.Gumps
{
    public abstract class BaseGump : Gump, IDisposable
    {
        public static int CenterLoc = 1154645;     // <center>~1_val~</center>
        public static int AlignRightLoc = 1114514; // <DIV ALIGN=RIGHT>~1_TOKEN~</DIV>

        private Gump _Parent;

        public PlayerMobile User { get; private set; }
        public bool Open { get; set; }

        public virtual bool CloseOnMapChange { get { return false; } }

        public Gump Parent
        {
            get { return _Parent; }
            set
            {
                _Parent = value;

                if (_Parent != null)
                {
                    if(_Parent is BaseGump && !((BaseGump)_Parent).Children.Contains(this))
                        ((BaseGump)_Parent).Children.Add(this);
                }
                else if (_Parent is BaseGump && ((BaseGump)_Parent).Children.Contains(this))
                {
                    ((BaseGump)_Parent).Children.Remove(this);
                }
            }
        }

        public List<BaseGump> Children { get; set; }

        public BaseGump(PlayerMobile user, int x = 50, int y = 50, BaseGump parent = null)
            : base(x, y)
        {
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
            Parent = parent;
        }

        ~BaseGump()
        {
            Dispose();
        }

        public static BaseGump SendGump(BaseGump gump)
        {
            if(gump == null)
                return null;

            BaseGump g = gump.User.FindGump(gump.GetType()) as BaseGump;

            if (g == gump)
                gump.Refresh();
            else
                gump.SendGump();

            return gump;
        }

        public virtual void SendGump()
        {
            AddGumpLayout();
            Open = true;
            User.SendGump(this, false);
        }

        public void Dispose()
        {
            ColUtility.ForEach(Children.AsEnumerable(), child => Children.Remove(child));
            Children = null;

            Children = null;
            Parent = null;

            foreach (var kvp in _TextTooltips)
            {
                kvp.Value.Free();
            }

            foreach (var kvp in _ClilocTooltips)
            {
                kvp.Value.Free();
            }

            _ClilocTooltips.Clear();
            _TextTooltips.Clear();

            OnDispose();
        }

        public virtual void OnDispose()
        {
        }

        public abstract void AddGumpLayout();

        public virtual void Refresh(bool recompile = true, bool close = true)
        {
            OnBeforeRefresh();

            if (User == null || User.NetState == null)
                return;

            if (close)
            {
                User.NetState.Send(new CloseGump(TypeID, 0));
                User.NetState.RemoveGump(this);
            }
            else
            {
                User.NetState.RemoveGump(this);
            }

            if (recompile)
            {
                Entries.Clear();
                AddGumpLayout();
            }

            /*Children.ForEach(child =>
                {
                    if(child.Open)
                        child.Refresh(recompile, close);
                });*/

            User.SendGump(this);
            OnAfterRefresh();
        }

        public void RefreshParent(bool resend = false)
        {
            if (Parent is BaseGump)
                ((BaseGump)Parent).Refresh();

            if (resend)
                Refresh();
        }

        public virtual void OnBeforeRefresh()
        {
        }

        public virtual void OnAfterRefresh()
        {
        }

        public virtual void OnClosed()
        {
            Children.ForEach(child => child.Close());
            Children.Clear();

            Open = false;

            if (Parent != null)
            {
                if(Parent is BaseGump)
                    ((BaseGump)Parent).OnChildClosed(this);

                Parent = null;
            }
        }

        public virtual void OnChildClosed(BaseGump gump)
        {
        }

        public override sealed void OnResponse(NetState state, RelayInfo info)
        {
            OnResponse(info);

            if (info.ButtonID == 0)
                OnClosed();
        }

        public virtual void OnResponse(RelayInfo info)
        {
        }

        public virtual void OnServerClosed(NetState state)
        {
            OnClosed();
        }

        public virtual void Close()
        {
            if (User == null || User.NetState == null)
                return;

            OnServerClose(User.NetState);

            User.Send(new CloseGump(TypeID, 0));
            User.NetState.RemoveGump(this);
        }
       
        public static T GetGump<T>(PlayerMobile pm, Func<T, bool> predicate) where T : Gump
        {
            return EnumerateGumps<T>(pm).FirstOrDefault(x => predicate == null || predicate(x));
        }

        public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate = null) where T : Gump
        {
            var ns = pm.NetState;

            if (ns == null)
                yield break;

            foreach (BaseGump gump in ns.Gumps.OfType<BaseGump>().Where(g => g.GetType() == typeof(T) &&
                (predicate == null || predicate(g as T))))
            {
                yield return gump as T;
            }
        }

        public static List<T> GetGumps<T>(PlayerMobile pm) where T : Gump
        {
            var ns = pm.NetState;
            List<T> list = new List<T>();

            if (ns == null)
                return list;

            foreach (BaseGump gump in ns.Gumps.OfType<BaseGump>().Where(g => g.GetType() == typeof(T)))
            {
                list.Add(gump as T);
            }

            return list;
        }

        public static List<BaseGump> GetGumps(PlayerMobile pm, bool checkOpen = false)
        {
            var ns = pm.NetState;
            List<BaseGump> list = new List<BaseGump>();

            if (ns == null)
                return list;

            foreach (BaseGump gump in ns.Gumps.OfType<BaseGump>().Where(g => (!checkOpen || g.Open)))
            {
                list.Add(gump);
            }

            return list;
        }

        public static void CheckCloseGumps(PlayerMobile pm, bool checkOpen = false)
        {
            var ns = pm.NetState;

            if (ns != null)
            {
                var gumps = GetGumps(pm, checkOpen);

                foreach (BaseGump gump in gumps.Where(g => g.CloseOnMapChange))
                {
                    pm.CloseGump(gump.GetType());
                }

                ColUtility.Free(gumps);
            }
        }

        public new void AddItemProperty(Item item)
        {
            item.SendPropertiesTo(User);

            base.AddItemProperty(item);
        }

        public void AddMobileProperty(Mobile mob)
        {
            mob.SendPropertiesTo(User);

            base.AddItemProperty(mob.Serial.Value);
        }

        public void AddProperties(Spoof spoof)
        {
            User.Send(spoof.PropertyList);

            base.AddItemProperty(spoof.Serial.Value);
        }

        #region Formatting
        public static int C16232(int c16)
        {
            c16 &= 0x7FFF;

            int r = (((c16 >> 10) & 0x1F) << 3);
            int g = (((c16 >> 05) & 0x1F) << 3);
            int b = (((c16 >> 00) & 0x1F) << 3);

            return (r << 16) | (g << 8) | (b << 0);
        }

        public static int C16216(int c16)
        {
            return c16 & 0x7FFF;
        }

        public static int C32216(int c32)
        {
            c32 &= 0xFFFFFF;

            int r = (((c32 >> 16) & 0xFF) >> 3);
            int g = (((c32 >> 08) & 0xFF) >> 3);
            int b = (((c32 >> 00) & 0xFF) >> 3);

            return (r << 10) | (g << 5) | (b << 0);
        }

        protected string Color(string color, string str)
        {
            return String.Format("<basefont color={0}>{1}", color, str);
        }

        protected string ColorAndCenter(string color, string str)
        {
            return String.Format("<center><basefont color={0}>{1}</center>", color, str);
        }

        protected string ColorAndSize(string color, int size, string str)
        {
            return String.Format("<basefont color={0} size={1}>{2}", color, size.ToString(), str);
        }

        protected string ColorAndCenterAndSize(string color, int size, string str)
        {
            return String.Format("<basefont color={0} size={1}><center>{2}</center>", color, size.ToString(), str);
        }

        protected string Color(int color, string str)
        {
            return String.Format("<basefont color=#{0:X6}>{1}", color, str);
        }

        protected string ColorAndCenter(int color, string str)
        {
            return String.Format("<basefont color=#{0:X6}><center>{1}</center>", color, str);
        }

        protected string Center(string str)
        {
            return String.Format("<CENTER>{0}</CENTER>", str);
        }

        protected string ColorAndAlignRight(int color, string str)
        {
            return String.Format("<DIV ALIGN=RIGHT><basefont color=#{0:X6}>{1}</DIV>", color, str);
        }

        protected string ColorAndAlignRight(string color, string str)
        {
            return String.Format("<DIV ALIGN=RIGHT><basefont color={0}>{1}</DIV>", color, str);
        }

        protected string AlignRight(string str)
        {
            return String.Format("<DIV ALIGN=RIGHT>{0}</DIV>", str);
        }

        public void AddHtmlLocalizedCentered(int x, int y, int length, int height, int localization, bool background, bool scrollbar)
        {
            AddHtmlLocalized(x, y, length, height, 1113302, String.Format("#{0}", localization), 0, background, scrollbar);
        }

        public void AddHtmlLocalizedCentered(int x, int y, int length, int height, int localization, int hue, bool background, bool scrollbar)
        {
            AddHtmlLocalized(x, y, length, height, 1113302, String.Format("#{0}", localization), hue, background, scrollbar);
        }

        public void AddHtmlLocalizedAlignRight(int x, int y, int length, int height, int localization, bool background, bool scrollbar)
        {
            AddHtmlLocalized(x, y, length, height, 1114514, String.Format("#{0}", localization), 0, background, scrollbar);
        }

        public void AddHtmlLocalizedAlignRight(int x, int y, int length, int height, int localization, int hue, bool background, bool scrollbar)
        {
            AddHtmlLocalized(x, y, length, height, 1114514, String.Format("#{0}", localization), hue, background, scrollbar);
        }
        #endregion

        #region Tooltips
        private Dictionary<string, Spoof> _TextTooltips = new Dictionary<string, Spoof>();
        private Dictionary<Dictionary<int, string>, Spoof> _ClilocTooltips = new Dictionary<Dictionary<int, string>, Spoof>();

        public void AddTooltip(string text)
        {
            AddTooltip(text, System.Drawing.Color.Empty);
        }

        public void AddTooltip(string text, System.Drawing.Color color)
        {
            AddTooltip(String.Empty, text, System.Drawing.Color.Empty, color);
        }

        public void AddTooltip(string title, string text)
        {
            AddTooltip(title, text, System.Drawing.Color.Empty, System.Drawing.Color.Empty);
        }

        public void AddTooltip(int cliloc, string args)
        {
            AddTooltip(new int[] { cliloc }, new string[] { args ?? String.Empty });
        }

        public void AddTooltip(int cliloc, string format, params string[] args)
        {
            AddTooltip(cliloc, String.Format(format, args));
        }

        public void AddTooltip(int[] clilocs)
        {
            AddTooltip(clilocs, new string[clilocs.Length]);
        }

        public void AddTooltip(string[] args)
        {
            var clilocs = new int[Math.Min(Spoof.EmptyClilocs.Length, args.Length)];

            for (int i = 0; i < args.Length; i++)
            {
                if (i >= Spoof.EmptyClilocs.Length)
                    break;

                clilocs[i] = Spoof.EmptyClilocs[i];
            }

            AddTooltip(clilocs, args);
        }

        public void AddTooltip(int[] clilocs, string[] args)
        {
            var dictionary = new Dictionary<int, string>();
            int emptyIndex = 0;

            for(int i = 0; i < clilocs.Length; i++)
            {
                var str = String.Empty;

                if (i < args.Length)
                {
                    str = args[i] ?? String.Empty;
                }

                var cliloc = clilocs[i];

                if (cliloc <= 0)
                {
                    if (emptyIndex <= Spoof.EmptyClilocs.Length)
                    {
                        cliloc = Spoof.EmptyClilocs[emptyIndex];
                        emptyIndex++;
                    }
                }

                if (cliloc > 0)
                {
                    dictionary[cliloc] = str;
                }
            }

            Spoof spoof;

            if (!_ClilocTooltips.TryGetValue(dictionary, out spoof) || spoof == null || spoof.Deleted)
            {
                spoof = Spoof.Acquire();
            }

            spoof.ClilocTable = dictionary;

            _ClilocTooltips[dictionary] = spoof;
            AddProperties(spoof);
        }

        public void AddTooltip(string title, string text, System.Drawing.Color titleColor, System.Drawing.Color textColor)
        {
            title = title ?? String.Empty;
            text = text ?? String.Empty;

            if (titleColor.IsEmpty || titleColor == System.Drawing.Color.Transparent)
            {
                titleColor = System.Drawing.Color.White;
            }

            if (textColor.IsEmpty || textColor == System.Drawing.Color.Transparent)
            {
                textColor = System.Drawing.Color.White;
            }

            Spoof spoof;

            if (!_TextTooltips.TryGetValue(text, out spoof) || spoof == null || spoof.Deleted)
            {
                spoof = Spoof.Acquire();
            }

            if (!String.IsNullOrWhiteSpace(title))
            {
                spoof.Text = String.Concat(String.Format("<basefont color=#{0:X}>{1}", titleColor.ToArgb(), title),
                            '\n',
                            String.Format("<basefont color=#{0:X}>{1}", textColor.ToArgb(), text));
            }
            else
            {
                spoof.Text = String.Format("<basefont color=#{0:X}>{1}", textColor.ToArgb(), text); //  text.WrapUOHtmlColor(textColor, false);
            }

            _TextTooltips[text] = spoof;
            AddProperties(spoof);
        }

        public sealed class Spoof : Entity
        {
            private static readonly char[] _Split = { '\n' };
            private static int _UID = -1;

            private static int NewUID
            {
                get
                {
                    if (_UID == Int32.MinValue)
                    {
                        _UID = -1;
                    }

                    return --_UID;
                }
            }

            public static int[] EmptyClilocs =
            {
                1042971, 1070722, // ~1_NOTHING~
                1114057, 1114778, 1114779, // ~1_val~
                1150541, // ~1_TOKEN~
                1153153, // ~1_year~
            };

            private static readonly List<Spoof> _SpoofPool = new List<Spoof>();

            public static Spoof Acquire()
            {
                if (_SpoofPool.Count == 0)
                {
                    return new Spoof();
                }
                else
                {
                    var spoof = _SpoofPool[0];
                    _SpoofPool.Remove(spoof);

                    return spoof;
                }
            }

            public void Free()
            {
                Packet.Release(ref _PropertyList);

                _Text = String.Empty;
                _ClilocTable = null;

                _SpoofPool.Add(this);
            }

            public int UID { get { return Serial.Value; } private set { } }

            private ObjectPropertyList _PropertyList;

            public ObjectPropertyList PropertyList
            {
                get
                {
                    if (_PropertyList == null)
                    {
                        _PropertyList = new ObjectPropertyList(this);

                        if (!String.IsNullOrEmpty(Text))
                        {
                            var text = StripHtmlBreaks(Text, true);

                            if (text.IndexOf('\n') >= 0)
                            {
                                var lines = text.Split(_Split);

                                foreach (var str in lines)
                                {
                                    _PropertyList.Add(str);
                                }
                            }
                            else
                            {
                                _PropertyList.Add(text);
                            }
                        }
                        else if (_ClilocTable != null)
                        {
                            foreach (var kvp in _ClilocTable)
                            {
                                var cliloc = kvp.Key;
                                var args = kvp.Value;

                                if (cliloc <= 0 && !String.IsNullOrEmpty(args))
                                {
                                    _PropertyList.Add(args);
                                }
                                else if (String.IsNullOrEmpty(args))
                                {
                                    _PropertyList.Add(cliloc);
                                }
                                else
                                {
                                    _PropertyList.Add(cliloc, args);
                                }
                            }
                        }

                        _PropertyList.Terminate();
                        _PropertyList.SetStatic();
                    }

                    return _PropertyList;
                }
            }

            private string _Text = String.Empty;
            public string Text
            {
                get { return _Text ?? String.Empty; }
                set
                {
                    if (_Text != value)
                    {
                        _Text = value;

                        Packet.Release(ref _PropertyList);
                    }
                }
            }

            private Dictionary<int, string> _ClilocTable;
            public Dictionary<int, string> ClilocTable
            {
                get { return _ClilocTable; }
                set
                {
                    if (_ClilocTable != value)
                    {
                        _ClilocTable = value;

                        Packet.Release(ref _PropertyList);
                    }
                }
            }

            public Spoof()
                : base(NewUID, Point3D.Zero, Map.Internal)
            { }
        }

        public static string StripHtmlBreaks(string str, bool preserve)
        {
            return Regex.Replace(str, @"<br[^>]?>", preserve ? "\n" : " ", RegexOptions.IgnoreCase);
        }
        #endregion
    }
}

I can't imagine this would interfere with anything you have currently.
Let me know if you get more errors; you could be missing more files.
If it's just a matter of sending you extra files, we could get this working for you quickly
 
public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate = null) where T : Gump //line 224

CS0241: Line 224: Default parameter specifiers are not permitted
 
public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate = null) where T : Gump //line 224

CS0241: Line 224: Default parameter specifiers are not permitted
Which file is this in? And what version of .NET Framework are you using?
 
im using runuo 2.2 its 3.5 netframework i guess, i had to edit few methods,
Which file is this in? And what version of .NET Framework are you using?
thats the file you posted, basegump.cs
it doesnt admit lines like the next one
C#:
 public virtual void Refresh(bool recompile = true, bool close = true)

has to be :

C#:
 public virtual void Refresh()
bool recompile = true
 bool close = true
 
im using runuo 2.2 its 3.5 netframework i guess, i had to edit few methods,

thats the file you posted, basegump.cs
it doesnt admit lines like the next one
C#:
 public virtual void Refresh(bool recompile = true, bool close = true)

has to be :

C#:
 public virtual void Refresh()
bool recompile = true
 bool close = true

Yes, The file I posted is BaseGump.cs. All those errors you got seemed like they were because your version of RunUO doesn't have it. If there's there's issues that you can't solve with it, we can make those regular Gumps with a few tweaks, Otherwise that should fix them.
Did editing those methods and implementing that file fix your issues, or are you still getting errors? Let me know and we can keep working at it.
 
public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate = null) where T : Gump //line 224


Hello massapequa

Thats the line thst we dont know how to fix, one we got it fixed we will try compile again and report the errors if theres any
 
public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate = null) where T : Gump //line 224


Hello massapequa

Thats the line thst we dont know how to fix, one we got it fixed we will try compile again and report the errors if theres any
Oh, my mistake, I thought you and nipa were having separate issues.
try this:
Code:
public static IEnumerable<T> EnumerateGumps<T>(PlayerMobile pm, Func<T, bool> predicate)
{
    if (pm?.NetState is not { } ns)
        yield break;

    foreach (BaseGump gump in ns.Gumps.Where(g => g is T && (predicate == null || predicate(g as T))))
    {
        yield return (T)gump;
    }
}
 
Last edited:
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS0115: Line 27: 'Server.Gumps.BountyBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 84: 'Server.Gumps.BountyBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
d to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS0115: Line 21: 'Server.Mobiles.BountySpawnerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 174: 'Server.Mobiles.BountySpawnerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS0115: Line 49: 'Server.Mobiles.BSpawnerTimerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 176: 'Server.Mobiles.BSpawnerTimerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS0115: Line 119: 'Server.Items.HuntersBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 215: 'Server.Items.HuntersBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to ov
rride
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS0115: Line 30: 'Server.Gumps.HuntersBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 222: 'Server.Gumps.HuntersBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS0115: Line 31: 'Server.Items.HuntersBoardEntryEditGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 138: 'Server.Items.HuntersBoardEntryEditGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
nd to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
nd to override

damn! hehe thats what we are getting, my brother runs servuo and show me the bounty system i was like wow i want that on my runuo server, so we both are trying to implement it, but we need your help! thanks for taking your time, i know im using a very old emulator
 
Last edited:
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS0115: Line 27: 'Server.Gumps.BountyBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 84: 'Server.Gumps.BountyBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
d to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS0115: Line 21: 'Server.Mobiles.BountySpawnerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 174: 'Server.Mobiles.BountySpawnerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS0115: Line 49: 'Server.Mobiles.BSpawnerTimerGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 176: 'Server.Mobiles.BSpawnerTimerGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to
override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS0115: Line 119: 'Server.Items.HuntersBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 215: 'Server.Items.HuntersBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found to ov
rride
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS0115: Line 30: 'Server.Gumps.HuntersBoardAdminGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 222: 'Server.Gumps.HuntersBoardAdminGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
o override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS0115: Line 31: 'Server.Items.HuntersBoardEntryEditGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 138: 'Server.Items.HuntersBoardEntryEditGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
nd to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
nd to override

damn! hehe thats what we are getting, my brother runs servuo and show me the bounty system i was like wow i want that on my runuo server, so we both are trying to implement it, but we need your help! thanks for taking your time, i know im using a very old emulator

Lol all good! I'm confident we can figure this out.
Are these errors with BaseGump.cs, or are you not using it?
Can you show me your Gump.cs file?
 
those errores are from basegump.cs yes

this is my gump.cs

Are these files (HuntersBoardEntryEditGump.cs, BountyContract.cs:, BountyBoardAdminGump.cs, BSpawnerTimerGump.cs, HuntersBoard.cs, etc) still extending from BaseGump, or did you modify them to use Gump?
There would be a line that looks like this in each of them:
Code:
    public class BountySpawnerGump : BaseGump
    {

Could you have changed them in earlier attempts to get everything working?
Each file would have a line that looks like:
Code:
public class ClassName : ParentClass

Otherwise, if the classes are trying to extend from Gump and not BaseGump , there would be no AddGumpLayout() method to override, etc.
That seems to be where your problem is coming from.

If those lines are in order, and they say "public class ClassName : BaseGump" and you're still getting those errors, we can try another approach.
 
changed them to Gump, public class BountyBoardAdminGump : Gump

should i change them back to BaseGump?
changed them to Gump, public class BountyBoardAdminGump : Gump

should i change them back to BaseGump?
Could you have changed them in earlier attempts to get everything working?

Yes i did :(
 
changed them to Gump, public class BountyBoardAdminGump : Gump

should i change them back to BaseGump?

Could you have changed them in earlier attempts to get everything working?

Yes i did :(

Yeah, that'll get rid of those errors. If you get more after you fix those, we can work through them too.
 
got rid of those errors some gumps used Gump and few others BaseGump, now got new errors :

CS1002: Line 49: ; expected
CS0103: Line 90: The name 'ColUtility' does not exist in the current context
CS1002: Line 120: ; expected
CS1002: Line 121: ; expected
CS1002: Line 155: ; expected
CS1525: Line 222: Invalid expression term '.'
CS1003: Line 222: Syntax error, ':' expected
CS1002: Line 222: ; expected
CS1002: Line 222: ; expected
CS1525: Line 222: Invalid expression term ')'
CS1002: Line 222: ; expected
CS1501: Line 235: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 256: ; expected
CS1002: Line 273: ; expected
CS1502: Line 293: The best overloaded method match for 'Server.Gumps.Gump.AddItemProperty(int)' has some invalid arg
ments
CS1503: Line 293: Argument '1': cannot convert from 'Server.Item' to 'int'
CS1061: Line 491: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
ive or an assembly reference?)
CS1061: Line 519: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
ive or an assembly reference?)
CS0117: Line 524: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
ting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
CS1061: Line 235: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
ing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
e' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
eference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
od 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ng directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1061: Line 32: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
od 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ng directive or an assembly reference?)
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS0103: Line 56: The name 'SetWearable' does not exist in the current context
CS0103: Line 57: The name 'SetWearable' does not exist in the current context
CS0103: Line 58: The name 'SetWearable' does not exist in the current context
CS0103: Line 59: The name 'SetWearable' does not exist in the current context
CS0103: Line 60: The name 'SetWearable' does not exist in the current context
CS0103: Line 64: The name 'SetWearable' does not exist in the current context
CS0103: Line 68: The name 'SetWearable' does not exist in the current context
CS0103: Line 72: The name 'SetWearable' does not exist in the current context
CS0103: Line 75: The name 'SetWearable' does not exist in the current context
CS0103: Line 77: The name 'SetWearable' does not exist in the current context
CS0103: Line 84: The name 'SetWearable' does not exist in the current context
CS0103: Line 85: The name 'SetWearable' does not exist in the current context
CS0103: Line 86: The name 'SetWearable' does not exist in the current context
CS0103: Line 87: The name 'SetWearable' does not exist in the current context
CS0103: Line 88: The name 'SetWearable' does not exist in the current context
CS0103: Line 89: The name 'SetWearable' does not exist in the current context
CS0246: Line 90: The type or namespace name 'MagesHood' could not be found (are you missing a using directive or an
ssembly reference?)
CS0246: Line 90: The type or namespace name 'MagesHood' could not be found (are you missing a using directive or an
ssembly reference?)
CS0103: Line 93: The name 'SetWearable' does not exist in the current context
CS0103: Line 96: The name 'SetWearable' does not exist in the current context
CS0103: Line 98: The name 'SetWearable' does not exist in the current context
CS0103: Line 105: The name 'SetWearable' does not exist in the current context
CS0103: Line 106: The name 'SetWearable' does not exist in the current context
CS0103: Line 107: The name 'SetWearable' does not exist in the current context
CS0103: Line 108: The name 'SetWearable' does not exist in the current context
CS0103: Line 109: The name 'SetWearable' does not exist in the current context
CS0103: Line 110: The name 'SetWearable' does not exist in the current context
CS0103: Line 113: The name 'SetWearable' does not exist in the current context
CS0103: Line 115: The name 'SetWearable' does not exist in the current context
CS0103: Line 125: The name 'SetWearable' does not exist in the current context
CS0103: Line 126: The name 'SetWearable' does not exist in the current context
CS0103: Line 127: The name 'SetWearable' does not exist in the current context
CS0103: Line 128: The name 'SetWearable' does not exist in the current context
CS0103: Line 129: The name 'SetWearable' does not exist in the current context
CS0103: Line 130: The name 'SetWearable' does not exist in the current context
CS0103: Line 131: The name 'SetWearable' does not exist in the current context
CS0246: Line 131: The type or namespace name 'AssassinsCowl' could not be found (are you missing a using directive o
an assembly reference?)
CS0103: Line 133: The name 'SetWearable' does not exist in the current context
CS0246: Line 171: The type or namespace name 'SeveredHumanEars' could not be found (are you missing a using directiv
or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1002: Line 113: ; expected
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
ing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
ting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
 
got rid of those errors some gumps used Gump and few others BaseGump, now got new errors :

CS1002: Line 49: ; expected
CS0103: Line 90: The name 'ColUtility' does not exist in the current context
CS1002: Line 120: ; expected
CS1002: Line 121: ; expected
CS1002: Line 155: ; expected
CS1525: Line 222: Invalid expression term '.'
CS1003: Line 222: Syntax error, ':' expected
CS1002: Line 222: ; expected
CS1002: Line 222: ; expected
CS1525: Line 222: Invalid expression term ')'
CS1002: Line 222: ; expected
CS1501: Line 235: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 256: ; expected
CS1002: Line 273: ; expected
CS1502: Line 293: The best overloaded method match for 'Server.Gumps.Gump.AddItemProperty(int)' has some invalid arg
ments
CS1503: Line 293: Argument '1': cannot convert from 'Server.Item' to 'int'
CS1061: Line 491: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
ive or an assembly reference?)
CS1061: Line 519: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
ive or an assembly reference?)
CS0117: Line 524: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
ting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
CS1061: Line 235: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
ing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
e' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
eference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
od 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ng directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1061: Line 32: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
od 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ng directive or an assembly reference?)
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS0103: Line 56: The name 'SetWearable' does not exist in the current context
CS0103: Line 57: The name 'SetWearable' does not exist in the current context
CS0103: Line 58: The name 'SetWearable' does not exist in the current context
CS0103: Line 59: The name 'SetWearable' does not exist in the current context
CS0103: Line 60: The name 'SetWearable' does not exist in the current context
CS0103: Line 64: The name 'SetWearable' does not exist in the current context
CS0103: Line 68: The name 'SetWearable' does not exist in the current context
CS0103: Line 72: The name 'SetWearable' does not exist in the current context
CS0103: Line 75: The name 'SetWearable' does not exist in the current context
CS0103: Line 77: The name 'SetWearable' does not exist in the current context
CS0103: Line 84: The name 'SetWearable' does not exist in the current context
CS0103: Line 85: The name 'SetWearable' does not exist in the current context
CS0103: Line 86: The name 'SetWearable' does not exist in the current context
CS0103: Line 87: The name 'SetWearable' does not exist in the current context
CS0103: Line 88: The name 'SetWearable' does not exist in the current context
CS0103: Line 89: The name 'SetWearable' does not exist in the current context
CS0246: Line 90: The type or namespace name 'MagesHood' could not be found (are you missing a using directive or an
ssembly reference?)
CS0246: Line 90: The type or namespace name 'MagesHood' could not be found (are you missing a using directive or an
ssembly reference?)
CS0103: Line 93: The name 'SetWearable' does not exist in the current context
CS0103: Line 96: The name 'SetWearable' does not exist in the current context
CS0103: Line 98: The name 'SetWearable' does not exist in the current context
CS0103: Line 105: The name 'SetWearable' does not exist in the current context
CS0103: Line 106: The name 'SetWearable' does not exist in the current context
CS0103: Line 107: The name 'SetWearable' does not exist in the current context
CS0103: Line 108: The name 'SetWearable' does not exist in the current context
CS0103: Line 109: The name 'SetWearable' does not exist in the current context
CS0103: Line 110: The name 'SetWearable' does not exist in the current context
CS0103: Line 113: The name 'SetWearable' does not exist in the current context
CS0103: Line 115: The name 'SetWearable' does not exist in the current context
CS0103: Line 125: The name 'SetWearable' does not exist in the current context
CS0103: Line 126: The name 'SetWearable' does not exist in the current context
CS0103: Line 127: The name 'SetWearable' does not exist in the current context
CS0103: Line 128: The name 'SetWearable' does not exist in the current context
CS0103: Line 129: The name 'SetWearable' does not exist in the current context
CS0103: Line 130: The name 'SetWearable' does not exist in the current context
CS0103: Line 131: The name 'SetWearable' does not exist in the current context
CS0246: Line 131: The type or namespace name 'AssassinsCowl' could not be found (are you missing a using directive o
an assembly reference?)
CS0103: Line 133: The name 'SetWearable' does not exist in the current context
CS0246: Line 171: The type or namespace name 'SeveredHumanEars' could not be found (are you missing a using directiv
or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1002: Line 113: ; expected
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
ing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
ting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments

While most of the Gumps used are BaseGump, BountyGump is just Gump:
Code:
    public class BountyGump: Gump
The rest are BaseGump.

As for the issues with SetWearable:
Go to Outlaw.cs, find all the clothes are it wears, and change all the items like:
Code:
                SetWearable(new LeatherChest(), 1837);
to:
Code:
           AddItem( new LeatherChest(1837));
etc. for all items
(sorry, there are a lot of items lol)

That will fix a lot of the errors, but not all.
We might have to make mess with BaseGump some more if your doesn't allow some functionality (like ColUlity).
Anyway, let me know what errors clear up and which ones still need to be fixed after the changes
 
oh, got rid of lots of errors yes, still some remaining, ive never seen 'like ColUlity'' method before lol


+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
nd to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyGump.cs:
CS0239: Line 134: 'Server.Gumps.BountyGump.OnResponse(Server.Network.NetState, Server.Gumps.RelayInfo)': cannot over
ride inherited member 'Server.Gumps.BaseGump.OnResponse(Server.Network.NetState, Server.Gumps.RelayInfo)' because it is
sealed
CS0534: Line 16: 'Server.Gumps.BountyGump' does not implement inherited abstract member 'Server.Gumps.BaseGump.AddGu
mpLayout()'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
und to override
 
oh, got rid of lots of errors yes, still some remaining, ive never seen 'like ColUlity'' method before lol


+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS0115: Line 321: 'Server.Items.BountyContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 337: 'Server.Items.BountyContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fou
nd to override
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyGump.cs:
CS0239: Line 134: 'Server.Gumps.BountyGump.OnResponse(Server.Network.NetState, Server.Gumps.RelayInfo)': cannot over
ride inherited member 'Server.Gumps.BaseGump.OnResponse(Server.Network.NetState, Server.Gumps.RelayInfo)' because it is
sealed
CS0534: Line 16: 'Server.Gumps.BountyGump' does not implement inherited abstract member 'Server.Gumps.BaseGump.AddGu
mpLayout()'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS0115: Line 188: 'Server.Items.BountyHunterBoardGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 304: 'Server.Items.BountyHunterBoardGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS0115: Line 166: 'Server.Items.HuntersBoardEntryGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 243: 'Server.Items.HuntersBoardEntryGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method found
to override
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS0115: Line 360: 'Server.Items.HuntersContractDeleteGump.AddGumpLayout()': no suitable method found to override
CS0115: Line 376: 'Server.Items.HuntersContractDeleteGump.OnResponse(Server.Gumps.RelayInfo)': no suitable method fo
und to override


BountyContract.cs:
Go to line 321, make sure it looks like this
Code:
    public class BountyContractDeleteGump : BaseGump
If you changed it to Gump earlier, you may have forgotten to change it back to BaseGump

BountyGump.cs:
Go to line 16, make sure it looks like this:
Code:
       public class BountyGump: Gump
If you changed that one to BaseGump, the OnResponse method that takes 2 args is sealed, so attempting to override won't work.

BountyHunterBoard.cs
Go to line 172, it should look like this:
Code:
    public class BountyHunterBoardGump : BaseGump
The AddGumpLayout and OnResponse( 1 arg) methods are in the BaseGump class. If it's still using Gump, it can't find them.

BountyContract.cs:
Go to line 309, make sure it looks like this
Code:
    public class HuntersContractDeleteGump : BaseGump
Same issue with BountyContract

There's a lot of gumps hidden in files of the files of the items that bring them up, so they're easy to miss.
If you're still getting errors related to ColUtility and things, I'll try and send a version of BaseGump without some of that stuff. Send me your errors once you get this stuff fixed.
 
sorry, i had 2 copies of your system opened and got confused, did those changes, still many errors :D



+ Bounty Board and Hunters Board/Basegump.cs:
CS1002: Line 49: ; expected
CS0103: Line 90: The name 'ColUtility' does not exist in the current context
CS1002: Line 120: ; expected
CS1002: Line 121: ; expected
CS1002: Line 155: ; expected
CS1525: Line 222: Invalid expression term '.'
CS1003: Line 222: Syntax error, ':' expected
CS1002: Line 222: ; expected
CS1002: Line 222: ; expected
CS1525: Line 222: Invalid expression term ')'
CS1002: Line 222: ; expected
CS1501: Line 235: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 256: ; expected
CS1002: Line 273: ; expected
CS1502: Line 293: The best overloaded method match for 'Server.Gumps.Gump.AddItemProperty(int)' has some invalid arg
uments
CS1503: Line 293: Argument '1': cannot convert from 'Server.Item' to 'int'
CS1061: Line 491: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
'Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
tive or an assembly reference?)
CS1061: Line 519: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
'Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
tive or an assembly reference?)
CS0117: Line 524: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
CS1061: Line 235: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
ne' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
reference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1061: Line 32: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS1501: Line 54: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 55: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 56: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 57: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 58: No overload for method 'AddItem' takes '2' arguments
CS0246: Line 108: The type or namespace name 'SeveredHumanEars' could not be found (are you missing a using directiv
e or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1002: Line 113: ; expected
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
 
sorry, i had 2 copies of your system opened and got confused, did those changes, still many errors :D



+ Bounty Board and Hunters Board/Basegump.cs:
CS1002: Line 49: ; expected
CS0103: Line 90: The name 'ColUtility' does not exist in the current context
CS1002: Line 120: ; expected
CS1002: Line 121: ; expected
CS1002: Line 155: ; expected
CS1525: Line 222: Invalid expression term '.'
CS1003: Line 222: Syntax error, ':' expected
CS1002: Line 222: ; expected
CS1002: Line 222: ; expected
CS1525: Line 222: Invalid expression term ')'
CS1002: Line 222: ; expected
CS1501: Line 235: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 256: ; expected
CS1002: Line 273: ; expected
CS1502: Line 293: The best overloaded method match for 'Server.Gumps.Gump.AddItemProperty(int)' has some invalid arg
uments
CS1503: Line 293: Argument '1': cannot convert from 'Server.Item' to 'int'
CS1061: Line 491: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
'Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
tive or an assembly reference?)
CS1061: Line 519: 'Server.Gumps.BaseGump.Spoof' does not contain a definition for 'Deleted' and no extension method
'Deleted' accepting a first argument of type 'Server.Gumps.BaseGump.Spoof' could be found (are you missing a using direc
tive or an assembly reference?)
CS0117: Line 524: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
CS1061: Line 235: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
ne' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
reference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1061: Line 32: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS1501: Line 54: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 55: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 56: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 57: No overload for method 'AddItem' takes '2' arguments
CS1501: Line 58: No overload for method 'AddItem' takes '2' arguments
CS0246: Line 108: The type or namespace name 'SeveredHumanEars' could not be found (are you missing a using directiv
e or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1002: Line 113: ; expected
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments

Okay, I attached a new BaseGump.cs and this should get rid of some of the errors. Make sure to move the file you're using now outside of the directory.

To back to Outlaw.cs, all of the lines where it says AddItem, and change them:
(sorry, your version doesn't allow adding hue that way I guess) It should look like this:
Code:
LeatherChest chest = new LeatherChest();
chest.Hue = 1837;
AddItem(chest);
Do this for all of the items.

find the lines of code that look like this in Outlaw:
Code:
            if (Utility.RandomDouble() < 0.75)
                c.DropItem(new SeveredHumanEars());
Just delete them, they're not important.

In HuntersBoard and BountyHuntersBoard:
Find the lines that look like this:
Code:
                if (User.NetState != null && User.NetState.IsEnhancedClient )
                {
            AddHtml(0, y, 400, 16, FormatNames(mob.TypeName, "#7F4F24"), false, false);
                }
        else if (User.NetState != null)
change it to :
Code:
        if (User.NetState != null)
You're getting rid of all the "if you're using the enhanced client" stuff. It's not supported

In HuntersBoard, line 113 looks like:
Code:
        Index = index;
make sure you have that ; is in there?
Could be an error related to something else though.

Go to BSpawnerTimerGump.cs
Change Line 32 to look like:
Code:
        public int LabelHue { get { return 0x384; } }
It's just getting rid of the "Is enhanced client?" stuff
 

Attachments

  • NewBaseGump.cs
    8 KB · Views: 3
Errors:
+ Bounty Board and Hunters Board/NewBaseGump.cs:
CS0103: Line 47: The name 'x' does not exist in the current context
CS0103: Line 47: The name 'y' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0117: Line 394: 'Server.Gumps.BaseGump' does not contain a definition for 'GetGump'
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
ne' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
reference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS1501: Line 54: No overload for method 'AddItem' takes '2' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1729: Line 111: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments

damn! hehe

+ Bounty Board and Hunters Board/NewBaseGump.cs:
CS0103: Line 47: The name 'x' does not exist in the current context
CS0103: Line 47: The name 'y' does not exist in the current context
C#:
  public BaseGump(PlayerMobile user)
            : base(x, y)
        {
            BaseGump parent = null;
            int x = 50;
            int y = 50;
 
Errors:
+ Bounty Board and Hunters Board/NewBaseGump.cs:
CS0103: Line 47: The name 'x' does not exist in the current context
CS0103: Line 47: The name 'y' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyBoardAdminGump.cs:
CS1729: Line 20: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyContract.cs:
CS1061: Line 168: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 315: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountyHunterBoard.cs:
CS1002: Line 182: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0117: Line 394: 'Server.Gumps.BaseGump' does not contain a definition for 'GetGump'
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS1061: Line 752: 'Server.Mobile' does not contain a definition for 'GuardImmune' and no extension method 'GuardImmu
ne' accepting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly
reference?)
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1061: Line 13: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension met
hod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a us
ing directive or an assembly reference?)
CS1729: Line 16: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1525: Line 229: Invalid expression term 'int'
CS1002: Line 229: ; expected
CS1002: Line 229: ; expected
CS1525: Line 229: Invalid expression term ':'
CS1002: Line 229: ; expected
+ Bounty Board and Hunters Board/Bounty Hunter Board/BSpawnerTimerGump.cs:
CS1729: Line 35: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Bounty Hunter Board/Outlaw.cs:
CS1501: Line 54: No overload for method 'AddItem' takes '2' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoard.cs:
CS1729: Line 111: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
CS1061: Line 167: 'Server.Network.NetState' does not contain a definition for 'IsEnhancedClient' and no extension me
thod 'IsEnhancedClient' accepting a first argument of type 'Server.Network.NetState' could be found (are you missing a u
sing directive or an assembly reference?)
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardAdminGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntry.cs:
CS1729: Line 156: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersBoardEntryEditGump.cs:
CS1729: Line 23: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments
+ Bounty Board and Hunters Board/Hunters Board/HuntersContract.cs:
CS1061: Line 201: 'Server.Mobile' does not contain a definition for 'IsStaff' and no extension method 'IsStaff' acce
pting a first argument of type 'Server.Mobile' could be found (are you missing a using directive or an assembly referenc
e?)
CS1729: Line 354: 'Server.Gumps.BaseGump' does not contain a constructor that takes '3' arguments

damn! hehe

+ Bounty Board and Hunters Board/NewBaseGump.cs:
CS0103: Line 47: The name 'x' does not exist in the current context
NewBaseGump:
Lines 46- 56should look like:
Code:
public BaseGump(PlayerMobile user, int x, int y, BaseGump parent)
    : base(x, y)
{
x = 50;
y = 50;
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
            Parent = parent;
}

.Net Framework 3.5 doesn't allow values to be called in a constructor.

Right under that in BaseGump Add this:
Code:
        public BaseGump(PlayerMobile user, int x, int y)
            : base(x, y)
        {
             x = 50;
             y = 50;
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
            Parent = null;
        }
This is the constructor that takes 3 arguments, and it'll fix all of those " '3' arguments" errors

-Looks like you missed one of the "AddItem" changes from earlier
The BountySpawnerGump at line 13 is the from the BSpawnerTimerGump: change
Code:
     public int LabelHue { get { return User != null && User.NetState != null && User.NetState.IsEnhancedClient ? 0x386 : 0x384; } }
to
Code:
     public int LabelHue { get { return 0x384; } }

I think the HuntersBoard error is the same as in the previous post. Make sure to change that. It's in the last post and extactly the same as in BountyHunterBoard


Go to HuntersContract, line 201
Change
Code:
if( from.Player && !from.IsStaff())
to
Code:
if( from.Player && from.AccessLevel == AccessLevel.Player)

I'm gonna have to work on the ColUtility issue in BountySpawner though. I have to find a way to keep the same functionality without using that specifically.
 
+ Bounty Board and Hunters Board/basegump.cs:
CS0103: Line 84: The name 'ColUtility' does not exist in the current context
CS1002: Line 149: ; expected
CS1525: Line 216: Invalid expression term '.'
CS1003: Line 216: Syntax error, ':' expected
CS1002: Line 216: ; expected
CS1002: Line 216: ; expected
CS1525: Line 216: Invalid expression term ')'
CS1002: Line 216: ; expected
CS1501: Line 229: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 250: ; expected
CS1002: Line 267: ; expected
CS0117: Line 518: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1525: Line 230: Invalid expression term 'int'
CS1002: Line 230: ; expected
CS1002: Line 230: ; expected
CS1525: Line 230: Invalid expression term ':'
CS1002: Line 230: ; expected
i got confused and had to edit the scripts again because i deleted the ones we had previously fixed
 
+ Bounty Board and Hunters Board/basegump.cs:
CS0103: Line 84: The name 'ColUtility' does not exist in the current context
CS1002: Line 149: ; expected
CS1525: Line 216: Invalid expression term '.'
CS1003: Line 216: Syntax error, ':' expected
CS1002: Line 216: ; expected
CS1002: Line 216: ; expected
CS1525: Line 216: Invalid expression term ')'
CS1002: Line 216: ; expected
CS1501: Line 229: No overload for method 'EnumerateGumps' takes '1' arguments
CS1002: Line 250: ; expected
CS1002: Line 267: ; expected
CS0117: Line 518: 'string' does not contain a definition for 'IsNullOrWhiteSpace'
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawner.cs:
CS0103: Line 577: The name 'ColUtility' does not exist in the current context
CS0103: Line 972: The name 'ColUtility' does not exist in the current context
CS0103: Line 1002: The name 'ColUtility' does not exist in the current context
+ Bounty Board and Hunters Board/Bounty Hunter Board/BountySpawnerGump.cs:
CS1525: Line 230: Invalid expression term 'int'
CS1002: Line 230: ; expected
CS1002: Line 230: ; expected
CS1525: Line 230: Invalid expression term ':'
CS1002: Line 230: ; expected
i got confused and had to edit the scripts again because i deleted the ones we had previously fixed
It looks like you're using the old BaseGump.cs file I sent you.
I'm attaching a 3rd version. This one has the GetGump() that was missing from the last one. This should be better.

BountySpawner:
find any line where it says
Code:
ColUtility.Free(toRemove);
(There are 2 lines in the file that says this)

Change it to say:
Code:
toRemove = null;

Find the line that says:
Code:
ColUtility.Free(DeleteList);
Change it to:
Code:
DeleteList = null;

Did you modify BountySpawnGump a lot and is your version having problems with the term 'when'?
like in the line:
Code:
case int c when c >= 2000 && c < 2500:
 

Attachments

  • NewBaseGump.cs
    9.1 KB · Views: 1
It looks like you're using the old BaseGump.cs file I sent you.
I'm attaching a 3rd version. This one has the GetGump() that was missing from the last one. This should be better.

BountySpawner:
find any line where it says
Code:
ColUtility.Free(toRemove);
(There are 2 lines in the file that says this)

Change it to say:
Code:
toRemove = null;

Find the line that says:
Code:
ColUtility.Free(DeleteList);
Change it to:
Code:
DeleteList = null;

Did you modify BountySpawnGump a lot and is your version having problems with the term 'when'?
like in the line:
Code:
case int c when c >= 2000 && c < 2500:
hello again, no i didnt modified BountySpawnGump.

I get again the same errors as before with the last new basegump.cs you attached

CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 83: Default parameter specifiers are not permitted
CS0241: Line 83: Default parameter specifiers are not permitted
CS0241: Line 116: Default parameter specifiers are not permitted

Edit;
it compiled finally, but the bountyboard doesnt open i bet i messed something up, what if i send you the scripts and you take a look into it? if you want ofc
 
Last edited:
hello again, no i didnt modified BountySpawnGump.

I get again the same errors as before with the last new basegump.cs you attached

CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 46: Default parameter specifiers are not permitted
CS0241: Line 83: Default parameter specifiers are not permitted
CS0241: Line 83: Default parameter specifiers are not permitted
CS0241: Line 116: Default parameter specifiers are not permitted

Edit;
it compiled finally, but the bountyboard doesnt open i bet i messed something up, what if i send you the scripts and you take a look into it? if you want ofc

Oops, I forgot about that issue.
Go to line 46 in BaseGump and you'll see the constructor.
Change it to this:
Code:
        public BaseGump(PlayerMobile user, int x, int y, BaseGump parent)
            : base(x, y)
        {
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
            Parent = parent;
        }

        public BaseGump(PlayerMobile user, int x, int y)
            : base(x, y)
        {
      
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
        }

        public BaseGump(PlayerMobile user)
            : base(50, 50)
        {
      
            if (user == null)
                return;

            Children = new List<BaseGump>();

            User = user;
        }

(you're adding 3 constructors instead of the 1 with the variable options. Your version of c# doesn't read that)

The fact that the gump doesn't show could be because of that issue I just posted or it could be something else.
If it doesn't compile, or the gump still isn't showing, send me the scripts and I'll check it out

Edit:
one last thing you can try if you make those changes and it compiles but the gump still isn't showing:
go to BountyHunterGump.cs, line 184ish and add AddGumpLayout() in the constructor.
it will look like this:
Code:
        public BountyHunterBoardGump(Mobile from, BountyHunterBoard board)
            : base(from as PlayerMobile, 20, 20)
        {
            Index = 0;
        m_BountyBoard = board;
        m_From = from;
        AddGumpLayout();
        }

this shouldn't be necessary with BaseGump.cs, but we're using a shrunken version of the file, so it's possible.
 
Last edited:
Back