ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Seems there is no way to add lootpacks to chests? My Paragon chests are being quite stingy and I want to boost them up some. Anyone got any insight on this?

Thanks!!
 
Container has 4 AddLoot method variations

for example in a container

public override void AddLoot(LootPack.SuperBoss);

public override void AddLoot(LootPack.SuperBoss, 8);

my bad, you add it to the constructor of the container


C#:
[Flipable(0xA0DB, 0xA0DC)]
    public class LootPackBasket : BaseContainer
    {
        //public override int LabelNumber => 1158333;  // enchanted picnic basket

        public override int DefaultGumpID => 0x108;

        [Constructable]
        public LootPackBasket()
            : base(0xA0DB)
        {
            Name = "Loot Pack Basket";
            AddLoot(LootPack.SuperBoss);
        }

        public LootPackBasket(Serial serial)
            : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
 
Last edited:
Back