Hello,
I've been putting my treasure chest on xmlspawners but have yet to actually test it and see how it functions? Has anyone used this and know how the respawn of the chest or the treasure inside works? I know the decorations command comes with a ton of containers and chest but they're all empty? Is there another way to do this? Thank you.
 
RunUO or ServUO?

If you use ServUO
\Scripts\Items\Containers\TreasureChestMod.cs

[add xmlspawner TreasureLevel1
[add xmlspawner TreasureLevel1h
[add xmlspawner TreasureLevel2
[add xmlspawner TreasureLevel3
[add xmlspawner TreasureLevel4

Hope to help you.

this is not TreasureMapChest
 
RunUO or ServUO?

If you use ServUO
\Scripts\Items\Containers\TreasureChestMod.cs

[add xmlspawner TreasureLevel1
[add xmlspawner TreasureLevel1h
[add xmlspawner TreasureLevel2
[add xmlspawner TreasureLevel3
[add xmlspawner TreasureLevel4

Hope to help you.

this is not TreasureMapChest
Yes servuo, so I've been adding them in like that, I was wondering how they respawn. Is it when the chest is fully looted or after it's unlocked?
 
after it's unlocked
i guess
C#:
public override void OnDoubleClick(Mobile from)
        {
            if (CheckLocked(from))
                return;

            base.OnDoubleClick(from);
            Name = "a treasure chest";
            StartDeleteTimer();
        }
 
  • Like
Reactions: Cad
Back