- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
Afternoon,
so I had an Idea to add Sovereign drops based on lootpacks. It's my understanding that when a mob dies it checks which lootpack it should spawn based on creature strength. I've added the HeritageSoveregns script to custom, I can spawn them in game and I've added the following to lootpack.cs:
Then under AOS Definitions I added:
Ive also commented out the
part in the HeritageSovereign script
Everything compiles with 0 errors but nothing actually drops. Is my understanding of how lootpacks.cs wrong, or am I just adding the sovereign drop to the wrong location?
so I had an Idea to add Sovereign drops based on lootpacks. It's my understanding that when a mob dies it checks which lootpack it should spawn based on creature strength. I've added the HeritageSoveregns script to custom, I can spawn them in game and I've added the following to lootpack.cs:
Code:
public static readonly LootPackItem[] HeritageSovereign = new[] {new LootPackItem(typeof(HeritageSovereign), 1)};
Then under AOS Definitions I added:
Code:
#region AOS definitions
public static readonly LootPack AosPoor =
new LootPack(
new[]
{
new LootPackEntry(true, Gold, 100.00, "1d10+10"), new LootPackEntry(false, AosMagicItemsPoor, 0.02, 1, 5, 0, 90),
new LootPackEntry(false, HeritageSovereign, 100.00, 1),
new LootPackEntry(false, Instruments, 0.02, 1)
});
Ive also commented out the
Code:
//LootType = LootType.Blessed;
Everything compiles with 0 errors but nothing actually drops. Is my understanding of how lootpacks.cs wrong, or am I just adding the sovereign drop to the wrong location?