private static void processContainer(PlayerVendor vendor, Container container)
{
foreach (Item i in container.Items) //line 64
{
VendorItem vi = vendor.GetVendorItem(i);
if (vi != null)
{
if (vi.IsForSale)
{
MyVendorItem mvi = new MyVendorItem();
mvi.Name = vi.Item is BaseContainer ? "container" : StringUtils.GetString(vi.Item.Name, Sphere.ComputeName(vi.Item));
mvi.Description = vi.Description;
mvi.Price = vi.Price;
if (vi.Item is CommodityDeed)
{
Item commodity = (vi.Item as CommodityDeed).Commodity;
if (commodity == null) // skip empty deeds
continue;
mvi.Amount = commodity.Amount;
mvi.Name += " - " + Sphere.ComputeName(commodity);
}
else
{
mvi.Amount = vi.Item.Amount;
}
if (mvi.Amount != 0)
{
mvi.PricePer = mvi.Price / mvi.Amount;
}
else
{
mvi.PricePer = mvi.Price;
}
mvi.VendorName = vendor.Name;
mvi.OwnerName = vendor.Owner.Name;
mvi.Location = StringUtils.GetString(vendor.Region.Name, BaseRegion.GetRuneNameFor(vendor.Region)) + " " + vendor.Location.X + "," + vendor.Location.Y;
m_VendorItems.Add(mvi);
}
else if (vi.Item is Container)
{
processContainer(vendor, vi.Item as Container);
}
}
}
}
yes i was thinking of deleting player accounts, then remove mounts from the world (so they disappear from player houses) demolish all houses and i should be good right?Try to remove all accounts from the admin panel. This works well if you don't have a lot of accounts.
You can try the above.Try to remove all accounts from the admin panel. This works well if you don't have a lot of accounts.
I think we have a language barrier here...perhaps with differences between RunUO and ServUO. If you have commands that will add all of the things I listed (such as spawners) why would you have to add them all over again. You run this command and they get re-added automatically.i do, but deleting item folder will delete more than 300 xmlspawners i added manually, so i dont want to add them all over again
We use essential cookies to make this site work, and optional cookies to enhance your experience.