Iomega0318

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Does anyone know how to add custom treasure map rewards, I've tried adding a loot table and directly adding the item to the Fill function for the TreasureMapChest.cs but still don't seem to be getting anything from it.. is it all just luck based or something because I thought this would directly add it to the chest every time?
C#:
            if (level >= 1)
            {
                cont.DropItem(new EverlastingBandage());
            }
 
Well figured this one out as well, I ended up doing some more digging and TreasureMapInfo.cs also has a Fill function so I added this there and it works.. I only had to change it slightly but I have it working now.
C#:
            if (level >= TreasureLevel.Stash)
            {
                chest.DropItem(new EverlastingBandage());
            }
TreasureLevel can be any of the following:
C#:
TreasureLevel.Stash
TreasureLevel.Supply
TreasureLevel.Cache
TreasureLevel.Hoard
TreasureLevel.Trove
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back