Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,238 @@
using System;
namespace Server.Factions
{
public class FactionDefinition
{
private readonly int m_Sort;
private readonly int m_HuePrimary;
private readonly int m_HueSecondary;
private readonly int m_HueJoin;
private readonly int m_HueBroadcast;
private readonly int m_WarHorseBody;
private readonly int m_WarHorseItem;
private readonly string m_FriendlyName;
private readonly string m_Keyword;
private readonly string m_Abbreviation;
private readonly TextDefinition m_Name;
private readonly TextDefinition m_PropName;
private readonly TextDefinition m_Header;
private readonly TextDefinition m_About;
private readonly TextDefinition m_CityControl;
private readonly TextDefinition m_SigilControl;
private readonly TextDefinition m_SignupName;
private readonly TextDefinition m_FactionStoneName;
private readonly TextDefinition m_OwnerLabel;
private readonly TextDefinition m_GuardIgnore;
private readonly TextDefinition m_GuardWarn;
private readonly TextDefinition m_GuardAttack;
private readonly StrongholdDefinition m_Stronghold;
private readonly RankDefinition[] m_Ranks;
private readonly GuardDefinition[] m_Guards;
public FactionDefinition(int sort, int huePrimary, int hueSecondary, int hueJoin, int hueBroadcast, int warHorseBody, int warHorseItem, string friendlyName, string keyword, string abbreviation, TextDefinition name, TextDefinition propName, TextDefinition header, TextDefinition about, TextDefinition cityControl, TextDefinition sigilControl, TextDefinition signupName, TextDefinition factionStoneName, TextDefinition ownerLabel, TextDefinition guardIgnore, TextDefinition guardWarn, TextDefinition guardAttack, StrongholdDefinition stronghold, RankDefinition[] ranks, GuardDefinition[] guards)
{
m_Sort = sort;
m_HuePrimary = huePrimary;
m_HueSecondary = hueSecondary;
m_HueJoin = hueJoin;
m_HueBroadcast = hueBroadcast;
m_WarHorseBody = warHorseBody;
m_WarHorseItem = warHorseItem;
m_FriendlyName = friendlyName;
m_Keyword = keyword;
m_Abbreviation = abbreviation;
m_Name = name;
m_PropName = propName;
m_Header = header;
m_About = about;
m_CityControl = cityControl;
m_SigilControl = sigilControl;
m_SignupName = signupName;
m_FactionStoneName = factionStoneName;
m_OwnerLabel = ownerLabel;
m_GuardIgnore = guardIgnore;
m_GuardWarn = guardWarn;
m_GuardAttack = guardAttack;
m_Stronghold = stronghold;
m_Ranks = ranks;
m_Guards = guards;
}
public int Sort
{
get
{
return m_Sort;
}
}
public int HuePrimary
{
get
{
return m_HuePrimary;
}
}
public int HueSecondary
{
get
{
return m_HueSecondary;
}
}
public int HueJoin
{
get
{
return m_HueJoin;
}
}
public int HueBroadcast
{
get
{
return m_HueBroadcast;
}
}
public int WarHorseBody
{
get
{
return m_WarHorseBody;
}
}
public int WarHorseItem
{
get
{
return m_WarHorseItem;
}
}
public string FriendlyName
{
get
{
return m_FriendlyName;
}
}
public string Keyword
{
get
{
return m_Keyword;
}
}
public string Abbreviation
{
get
{
return m_Abbreviation;
}
}
public TextDefinition Name
{
get
{
return m_Name;
}
}
public TextDefinition PropName
{
get
{
return m_PropName;
}
}
public TextDefinition Header
{
get
{
return m_Header;
}
}
public TextDefinition About
{
get
{
return m_About;
}
}
public TextDefinition CityControl
{
get
{
return m_CityControl;
}
}
public TextDefinition SigilControl
{
get
{
return m_SigilControl;
}
}
public TextDefinition SignupName
{
get
{
return m_SignupName;
}
}
public TextDefinition FactionStoneName
{
get
{
return m_FactionStoneName;
}
}
public TextDefinition OwnerLabel
{
get
{
return m_OwnerLabel;
}
}
public TextDefinition GuardIgnore
{
get
{
return m_GuardIgnore;
}
}
public TextDefinition GuardWarn
{
get
{
return m_GuardWarn;
}
}
public TextDefinition GuardAttack
{
get
{
return m_GuardAttack;
}
}
public StrongholdDefinition Stronghold
{
get
{
return m_Stronghold;
}
}
public RankDefinition[] Ranks
{
get
{
return m_Ranks;
}
}
public GuardDefinition[] Guards
{
get
{
return m_Guards;
}
}
}
}

View File

@@ -0,0 +1,59 @@
using System;
using Server.Items;
using Server.Mobiles;
namespace Server.Factions
{
public class FactionItemDefinition
{
private static readonly FactionItemDefinition m_MetalArmor = new FactionItemDefinition(1000, typeof(Blacksmith));
private static readonly FactionItemDefinition m_Weapon = new FactionItemDefinition(1000, typeof(Blacksmith));
private static readonly FactionItemDefinition m_RangedWeapon = new FactionItemDefinition(1000, typeof(Bowyer));
private static readonly FactionItemDefinition m_LeatherArmor = new FactionItemDefinition(750, typeof(Tailor));
private static readonly FactionItemDefinition m_Clothing = new FactionItemDefinition(200, typeof(Tailor));
private static readonly FactionItemDefinition m_Scroll = new FactionItemDefinition(500, typeof(Mage));
private readonly int m_SilverCost;
private readonly Type m_VendorType;
public FactionItemDefinition(int silverCost, Type vendorType)
{
this.m_SilverCost = silverCost;
this.m_VendorType = vendorType;
}
public int SilverCost
{
get
{
return this.m_SilverCost;
}
}
public Type VendorType
{
get
{
return this.m_VendorType;
}
}
public static FactionItemDefinition Identify(Item item)
{
if (item is BaseArmor)
{
if (CraftResources.GetType(((BaseArmor)item).Resource) == CraftResourceType.Leather)
return m_LeatherArmor;
return m_MetalArmor;
}
if (item is BaseRanged)
return m_RangedWeapon;
else if (item is BaseWeapon)
return m_Weapon;
else if (item is BaseClothing)
return m_Clothing;
else if (item is SpellScroll)
return m_Scroll;
return null;
}
}
}

View File

@@ -0,0 +1,77 @@
using System;
namespace Server.Factions
{
public class GuardDefinition
{
private readonly Type m_Type;
private readonly int m_Price;
private readonly int m_Upkeep;
private readonly int m_Maximum;
private readonly int m_ItemID;
private readonly TextDefinition m_Header;
private readonly TextDefinition m_Label;
public GuardDefinition(Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label)
{
this.m_Type = type;
this.m_Price = price;
this.m_Upkeep = upkeep;
this.m_Maximum = maximum;
this.m_ItemID = itemID;
this.m_Header = header;
this.m_Label = label;
}
public Type Type
{
get
{
return this.m_Type;
}
}
public int Price
{
get
{
return this.m_Price;
}
}
public int Upkeep
{
get
{
return this.m_Upkeep;
}
}
public int Maximum
{
get
{
return this.m_Maximum;
}
}
public int ItemID
{
get
{
return this.m_ItemID;
}
}
public TextDefinition Header
{
get
{
return this.m_Header;
}
}
public TextDefinition Label
{
get
{
return this.m_Label;
}
}
}
}

View File

@@ -0,0 +1,49 @@
using System;
namespace Server.Factions
{
public class RankDefinition
{
private readonly int m_Rank;
private readonly int m_Required;
private readonly int m_MaxWearables;
private readonly TextDefinition m_Title;
public RankDefinition(int rank, int required, int maxWearables, TextDefinition title)
{
m_Rank = rank;
m_Required = required;
m_Title = title;
m_MaxWearables = maxWearables;
}
public int Rank
{
get
{
return m_Rank;
}
}
public int Required
{
get
{
return m_Required;
}
}
public int MaxWearables
{
get
{
return m_MaxWearables;
}
}
public TextDefinition Title
{
get
{
return m_Title;
}
}
}
}

View File

@@ -0,0 +1,59 @@
using System;
namespace Server.Factions
{
public class StrongholdDefinition
{
private readonly Rectangle2D[] m_Area;
private readonly Point3D m_JoinStone;
private readonly Point3D m_FactionStone;
private readonly Point3D[] m_Monoliths;
private readonly Point3D m_CollectionBox;
public StrongholdDefinition(Rectangle2D[] area, Point3D joinStone, Point3D factionStone, Point3D[] monoliths, Point3D collectionBox)
{
m_Area = area;
m_JoinStone = joinStone;
m_FactionStone = factionStone;
m_Monoliths = monoliths;
m_CollectionBox = collectionBox;
}
public Rectangle2D[] Area
{
get
{
return m_Area;
}
}
public Point3D JoinStone
{
get
{
return m_JoinStone;
}
}
public Point3D FactionStone
{
get
{
return m_FactionStone;
}
}
public Point3D[] Monoliths
{
get
{
return m_Monoliths;
}
}
public Point3D CollectionBox
{
get
{
return m_CollectionBox;
}
}
}
}

View File

@@ -0,0 +1,129 @@
using System;
namespace Server.Factions
{
public class TownDefinition
{
private readonly int m_Sort;
private readonly int m_SigilID;
private readonly string m_Region;
private readonly string m_FriendlyName;
private readonly TextDefinition m_TownName;
private readonly TextDefinition m_TownStoneHeader;
private readonly TextDefinition m_StrongholdMonolithName;
private readonly TextDefinition m_TownMonolithName;
private readonly TextDefinition m_TownStoneName;
private readonly TextDefinition m_SigilName;
private readonly TextDefinition m_CorruptedSigilName;
private readonly Point3D m_Monolith;
private readonly Point3D m_TownStone;
public TownDefinition(int sort, int sigilID, string region, string friendlyName, TextDefinition townName, TextDefinition townStoneHeader, TextDefinition strongholdMonolithName, TextDefinition townMonolithName, TextDefinition townStoneName, TextDefinition sigilName, TextDefinition corruptedSigilName, Point3D monolith, Point3D townStone)
{
this.m_Sort = sort;
this.m_SigilID = sigilID;
this.m_Region = region;
this.m_FriendlyName = friendlyName;
this.m_TownName = townName;
this.m_TownStoneHeader = townStoneHeader;
this.m_StrongholdMonolithName = strongholdMonolithName;
this.m_TownMonolithName = townMonolithName;
this.m_TownStoneName = townStoneName;
this.m_SigilName = sigilName;
this.m_CorruptedSigilName = corruptedSigilName;
this.m_Monolith = monolith;
this.m_TownStone = townStone;
}
public int Sort
{
get
{
return this.m_Sort;
}
}
public int SigilID
{
get
{
return this.m_SigilID;
}
}
public string Region
{
get
{
return this.m_Region;
}
}
public string FriendlyName
{
get
{
return this.m_FriendlyName;
}
}
public TextDefinition TownName
{
get
{
return this.m_TownName;
}
}
public TextDefinition TownStoneHeader
{
get
{
return this.m_TownStoneHeader;
}
}
public TextDefinition StrongholdMonolithName
{
get
{
return this.m_StrongholdMonolithName;
}
}
public TextDefinition TownMonolithName
{
get
{
return this.m_TownMonolithName;
}
}
public TextDefinition TownStoneName
{
get
{
return this.m_TownStoneName;
}
}
public TextDefinition SigilName
{
get
{
return this.m_SigilName;
}
}
public TextDefinition CorruptedSigilName
{
get
{
return this.m_CorruptedSigilName;
}
}
public Point3D Monolith
{
get
{
return this.m_Monolith;
}
}
public Point3D TownStone
{
get
{
return this.m_TownStone;
}
}
}
}

View File

@@ -0,0 +1,117 @@
using System;
namespace Server.Factions
{
public class VendorDefinition
{
private static readonly VendorDefinition[] m_Definitions = new VendorDefinition[]
{
new VendorDefinition(typeof(FactionBottleVendor), 0xF0E,
5000,
1000,
10,
new TextDefinition(1011549, "POTION BOTTLE VENDOR"),
new TextDefinition(1011544, "Buy Potion Bottle Vendor")),
new VendorDefinition(typeof(FactionBoardVendor), 0x1BD7,
3000,
500,
10,
new TextDefinition(1011552, "WOOD VENDOR"),
new TextDefinition(1011545, "Buy Wooden Board Vendor")),
new VendorDefinition(typeof(FactionOreVendor), 0x19B8,
3000,
500,
10,
new TextDefinition(1011553, "IRON ORE VENDOR"),
new TextDefinition(1011546, "Buy Iron Ore Vendor")),
new VendorDefinition(typeof(FactionReagentVendor), 0xF86,
5000,
1000,
10,
new TextDefinition(1011554, "REAGENT VENDOR"),
new TextDefinition(1011547, "Buy Reagent Vendor")),
new VendorDefinition(typeof(FactionHorseVendor), 0x20DD,
5000,
1000,
1,
new TextDefinition(1011556, "HORSE BREEDER"),
new TextDefinition(1011555, "Buy Horse Breeder"))
};
private readonly Type m_Type;
private readonly int m_Price;
private readonly int m_Upkeep;
private readonly int m_Maximum;
private readonly int m_ItemID;
private readonly TextDefinition m_Header;
private readonly TextDefinition m_Label;
public VendorDefinition(Type type, int itemID, int price, int upkeep, int maximum, TextDefinition header, TextDefinition label)
{
this.m_Type = type;
this.m_Price = price;
this.m_Upkeep = upkeep;
this.m_Maximum = maximum;
this.m_ItemID = itemID;
this.m_Header = header;
this.m_Label = label;
}
public static VendorDefinition[] Definitions
{
get
{
return m_Definitions;
}
}
public Type Type
{
get
{
return this.m_Type;
}
}
public int Price
{
get
{
return this.m_Price;
}
}
public int Upkeep
{
get
{
return this.m_Upkeep;
}
}
public int Maximum
{
get
{
return this.m_Maximum;
}
}
public int ItemID
{
get
{
return this.m_ItemID;
}
}
public TextDefinition Header
{
get
{
return this.m_Header;
}
}
public TextDefinition Label
{
get
{
return this.m_Label;
}
}
}
}