ServUO Version
Publish Unknown
Ultima Expansion
None
Hello everyone!

I'm encountering a strange bug with regular gems on my server. If I add them manually as a Game Master (GM), I can stack them without any issues. However, when they drop from a monster, those gems seem to be bugged and can't be stacked. I've tried with different types of gems, but the result is always the same.

Has anyone experienced a similar issue or knows what could be causing this? Any suggestions or solutions would be greatly appreciated. Thanks!
 
This is the lootpack code im using under runuo 2.2:

C#:
public static readonly LootPack OldFilthyRich = new LootPack(new BaseLootPackEntry[]
        {
            new LootPackEntry(false, Gold, 100.00, "6d100+800"), //806-1400
            new LootPackEntry(false, GemItems, 55.00, 4),
            new NewLootPackEntry(WeaponAndArmor, 12.00,
            new WeapMod(new Damage(100, new Attribute(2, 50), new Attribute(3, 40), new Attribute(4,10)),
            new Accuracy(33, new Attribute(1, 40), new Attribute(2, 25), new Attribute(3, 24), new Attribute(4, 10), new Attribute(5, 1))),
            new ArMod(new Protection(100, new Attribute(2, 50), new Attribute(3, 40), new Attribute(4,10)))),
            new LootPackEntry(false, SilverWeaponCrystal, 10.00, 1, 0, 0, 0),
            //new LootPackEntry(false, EasterEggs, 7.5, 1, 0, 0, 0)
        });
I didnt change any type,are the same item if drop,or if i add as gm,the dropped one is just unstackable,the added one is.
 
RunUO was good for its time but has long since been left behind, not going to find much support with this, I advise using ServUO!
 
Check the LookPackEntry method and how it works when you pass GemItems, also check what GemItems is, etc...

RunUO/ServUO won't change much in these kind of bug.
 
in the monster im trying:

C#:
public static readonly LootPack OldFilthyRich = new LootPack(new BaseLootPackEntry[]
        {
            new LootPackEntry(false, Gold, 100.00, "6d100+800"), //806-1400
            new LootPackEntry(false, GemItems, 55.00, 4),
            new NewLootPackEntry(WeaponAndArmor, 12.00,
            new WeapMod(new Damage(100, new Attribute(2, 50), new Attribute(3, 40), new Attribute(4,10)),
            new Accuracy(33, new Attribute(1, 40), new Attribute(2, 25), new Attribute(3, 24), new Attribute(4, 10), new Attribute(5, 1))),
            new ArMod(new Protection(100, new Attribute(2, 50), new Attribute(3, 40), new Attribute(4,10)))),
            new LootPackEntry(false, SilverWeaponCrystal, 10.00, 1, 0, 0, 0),
            //new LootPackEntry(false, EasterEggs, 7.5, 1, 0, 0, 0)
        });

And gemitems is:

C#:
public static readonly LootPackItem[] GemItems = new[]
                                                             {
                                                                 new LootPackItem(typeof (Amber), 1)
                                                             };
But is dropping more types,so im not sure this gemitems is what i want.
Located the problem,if i drop a gem or scroll,props it and says Amount = 0

Solved,i read to get gold nerfed i need to locate this:

C#:
public int Roll()
        {
            int v = m_Bonus;

            for (int i = 0; i < m_Count; ++i)
                v += Utility.Random(1, m_Sides);

            return v / 4;
        }
And add the " / 4" (for example,but its working on all items,so individual items getting bugged.Now fixed,thank you so much.
 

Attachments

  • Sin título.png
    Sin título.png
    244.8 KB · Views: 4
Last edited:
Back