There may be a better way to do this but it works. This is pieced together from google searches but I did not keep a record so I am in no way claiming this to be all my work. I really have no idea what I am doing.
This is what I added to BaseArmor:
else if (tool is BaseTool)
{...
The carpentry gump does not count the other than normal wood types. The types are not displayed on mouse over. It is just "board: 10" or "log: 10". I am using pub.54.
Thank you Lokai
This is what I ended up with at the end of the day
if (!Core.AOS)
{
double loss = 1; // 5 to 15% loss
switch (Utility.Random (3))
{
case 1:
if(from.RawStr * loss > 80)...
I want to set a skill and stat loss on resurrection. I changed this from resurrectiongump.cs
if (!Core.AOS)
{
double loss = (100.0 - (4.0 + (from.ShortTermMurders / 5.0))) / 100.0; // 5 to 15% loss
if (loss < 0.85)...
I am trying to re-create some tools but so far the durability will not go down when used.
using System;
using Server;
using Server.Items;
using Server.Items.Crops;
using Server.Targeting;
using Server.Engines.Craft;
namespace Server.Items
{
public class ParingKnife : BaseTool
{...
I am a long time uo player and wanted to try my hand at running a server. I am posting here to verify that I am a real person and not a bot or alien life form.