From 4e25a9c6126b2661d3e7b85bab5512dcf5809416 Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Mon, 3 Aug 2026 16:46:55 -0400 Subject: [PATCH] #W# Fixed unlootable/unlockable lootchests. --- Scripts/Items/Treasure/LootChest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scripts/Items/Treasure/LootChest.cs b/Scripts/Items/Treasure/LootChest.cs index 662f9cf..73659a3 100644 --- a/Scripts/Items/Treasure/LootChest.cs +++ b/Scripts/Items/Treasure/LootChest.cs @@ -28,6 +28,8 @@ namespace Server.Items [CommandProperty( AccessLevel.GameMaster )] public DateTime ResetTime{ get{ return m_ResetTime; } } + public override bool IsDecoContainer { get { return false; } } + [Constructable] public LootChest() : base( 0xE40 ) { @@ -138,6 +140,9 @@ namespace Server.Items int i_Difficulty = ( m_Level * 18 ) + ( m_Category * 10 ); + if ( i_Difficulty > 100 ) + i_Difficulty = 100; + if ( Utility.RandomMinMax(1,100) < i_Difficulty && !NeverLock() ) { Locked = true;