RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Increase backpack limit - perfected

Increase backpack limit - perfected

Yes, I posted it before in Core Modifications section... before discovering it was not necessary to make a core modification :)

Anyway, I tweaked my fix a bit.

Code:
Index: Container.cs
===================================================================
--- Container.cs    (revision 313)
+++ Container.cs    (working copy)
@@ -189,7 +189,7 @@
             Layer = Layer.Backpack;
             Weight = 3.0;
         }
-
+        public override int DefaultMaxWeight { get { if (Core.ML) { return 550; } else { return 400; } } }
         public Backpack( Serial serial ) : base( serial )
         {
         }

Now I added the if (Core.ML) that returns 550 if you are using it on a ML-flagged shard, or the old value 400 if your shard is flagged as AOS or None (pre-AOS)

I tested it myself using None, AOS and ML in Scripts/Misc/CurrentExpansion.cs and it works to me. (backpacks can't contain more than 400 stones if in AOS or previous). Need someone to do intensive testing, though :p
 
Top