I made this donation vendor, it compiles fines, and works fine, but on restart it asks to delete. I do not see anything wrong in the serialize or deserialize. Any help would be appreciated!
Code:
#region Header
// Voxpire _,-'/-'/ DonationVendor.cs
// . __,-; ,'( '/
// \. `-.__`-._`:_,-._ _ , . ``
// `:-._,------' ` _,`--` -: `_ , ` ,' :
// `---..__,,--' (C) 2016 ` -'. -'
// # Vita-Nex [http://core.vita-nex.com] #
// {o)xxx|===============- # -===============|xxx(o}
// # The MIT License (MIT) #
#endregion
#region References
using Server;
using Server.Mobiles;
using Server.Engines.VeteranRewards;
using Server.Engines.Auction;
using Server.Engines.Plants;
using VitaNex.Items;
using VitaNex.Mobiles;
#endregion
namespace Server.Items
{
public class DonationVendor : AdvancedVendor
{
public override bool HasHonestyDiscount { get { return false; } }
[Constructable]
public DonationVendor()
: base("the sovereign merchant", typeof(DonationScroll), "Sovereign Notes", "SN")
{ }
public DonationVendor(Serial serial)
: base(serial)
{ }
protected override void InitBuyInfo()
{
// 125K - 5K
AddStock<ResurrectToken>(10);
AddStock<HeritageToken>(25);
AddStock<HoodedShroudOfShadows>(50);
AddStock<BannerDeed>(50);
AddStock<SpecialDyeTub>(50);
AddStock<FlamingHeadDeed>(50);
// 1MIL - 4.9MIL
AddStock<EtherealHorse>(100);
AddStock<PottedCactusDeed>(100);
AddStock<SoulstoneToken>(200);
AddStock<EtherealLlama>(200);
AddStock<EtherealOstard>(200);
AddStock<StatuetteDyeTub>(300);
AddStock<PottedPlantDeed>(300);
AddStock<HoodedShroudOfShadows1>(400);
// 5MIL - 9.9MIL
AddStock<ForgedMetalOfArtifacts1>(500);
AddStock<WallBannerDeed>(500);
AddStock<EtherealBeetle>(500);
AddStock<DecorativeShieldDeed>(500);
AddStock<CommodityDeedBox>(500);
AddStock<LuckyNecklace1>(500);
AddStock<HangingSkeletonDeed>(600);
AddStock<RunebookDyeTub>(600);
AddStock<CannonDeed>(800);
AddStock<EtherealSwampDragon>(800);
AddStock<FurnitureDyeTub>(900);
// 10MIL - 19.9MIL
AddStock<EtherealRetouchingTool>(1000);
AddStock<BloodyPentagramDeed>(1000);
AddStock<EtherealCuSidhe>(1000);
AddStock<ShadowCloakOfRejuvenation>(1000);
AddStock<EarringsOfProtection>(1000);
AddStock<AuctionSafeDeed>(1000);
AddStock<LeatherDyeTub>(1000);
AddStock<RewardBrazierDeed>(1500);
AddStock<HeritageSpellbook>(1500);
// 20MIL - 50MIL
AddStock<WhiteLeatherDyeTub>(2000);
AddStock<HeritageTrinket>(2000);
AddStock<RangersCloakOfAugmentation>(2000);
AddStock<SeedBox>(2000);
AddStock<DaviesLockerAddonDeed>(2500);
AddStock<EtherealReptalon>(2500);
AddStock<RoseRugEastAddonDeed>(3000);
AddStock<RoseRugSouthAddonDeed>(3000);
AddStock<DolphinRugEastAddonDeed>(3000);
AddStock<DolphinRugSouthAddonDeed>(3000);
AddStock<SkullRugEastAddonDeed>(3000);
AddStock<SkullRugSouthAddonDeed>(3000);
AddStock<EtherealHiryu>(3500);
AddStock<AnkhOfSacrificeDeed>(4000);
AddStock<LighthouseAddonDeed>(5000);
AddStock<RewardBlackDyeTub>(5000);
AddStock<EtherealBoura>(5000);
AddStock<RaisedGardenSmallAddonDeed>(5000);
// HIGHEST TIER
AddStock<RaisedGardenEastAddonDeed>(6500);
AddStock<RaisedGardenSouthAddonDeed>(6500);
AddStock<RaisedGardenLargeAddonDeed>(7500);
AddStock<BronzeStatueMaker>(10000);
AddStock<JadeStatueMaker>(10000);
AddStock<MarbleStatueMaker>(10000);
AddStock<WeaponEngravingTool>(10000);
AddStock<ChargerOfTheFallen>(12500);
AddStock<AnniversaryRobe1>(15000);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
var version = writer.SetVersion(0);
switch (version)
{
case 0:
break;
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
var version = reader.GetVersion();
switch (version)
{
case 0:
break;
}
}
}
}