I have scripted a box that is locked and can only be opened by level 99-100 lockpickers. This box is given as a drop reward and is locked with a 35% chance to reward and AoS artifact. However I'm trying to prevent the weight from showing.
I have made this edit to Item.cs to no Avail.
I have made this edit to Item.cs to no Avail.
Code:
public virtual void AddWeightProperty(ObjectPropertyList list)
{
if (ItemData.Name == "An Ancient Box";) //My addition
return; //My addition
if (Weight == 0)
return;
int weight = PileWeight + TotalWeight;
if (weight == 1)
{
list.Add(1072788, weight.ToString()); //Weight: ~1_WEIGHT~ stone
}
else
{
list.Add(1072789, weight.ToString()); //Weight: ~1_WEIGHT~ stones
}
}