OP

Xaric

Xaric
Initiate
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:

Code:
Expand Collapse Copy
public static readonly LootPackItem[] HeritageSovereign = new[] {new LootPackItem(typeof(HeritageSovereign), 1)};

Then under AOS Definitions I added:

Code:
Expand Collapse Copy
#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:
Expand Collapse Copy
//LootType = LootType.Blessed;
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?
 
C#:
Expand Collapse Copy
public static readonly LootPackItem[] HeritageSovereignTokens = new[] {new LootPackItem(typeof(HeritageSovereign), 1)};

Code:
Expand Collapse Copy
#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, HeritageSovereignTokens, 100.00, 1),
 new LootPackEntry(false, Instruments, 0.02, 1)
});
 
Still no dice with that, do you need to respawn the world after making changes like this? I've uploaded both my scripts if anyone can see where I may have made a mistake.
It can depends on Expansion what do you use. If this is EJ, try to copy same entries to region SE definitions
if expansion is Pre-AOS, do this for Pre-AOS definitions
 

Donations

Total amount
$80.00
Goal
$500.00

Shards

Back