- ServUO Version
- Publish 58
- Ultima Expansion
- Time Of Legends
I am trying to add a property to items that are randomly generated as loot for an event.
I have tried adding this to the loot generation
This doesn't give any error on compile but does not apply the property.
This is the code I am using to generate the item for loot. This is only one part of the whole loot generation.
I have tried adding this to the loot generation
C#:
private static void ApplyMarker(Item item)
{
item.InvalidateProperties();
}
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
list.Add(1359, "Blah Blah");
}
This doesn't give any error on compile but does not apply the property.
This is the code I am using to generate the item for loot. This is only one part of the whole loot generation.
C#:
else if (item is BaseArmor armor)
{
int attributeCount, min, max;
GetRandomAOSStats(out attributeCount, out min, out max);
BaseRunicTool.ApplyAttributesTo(armor, attributeCount, min, max);
ApplyMarker(item);
item.Hue = 1359;
cont.DropItem(item);
}