[1.0-2.0] Backpack of Weight Reduction
This has been updated to function for RunUO 2.0. Please see this thread:
http://www.runuo.com/forums/showthread.php?t=71035
I have seen several "weightless" containers before and noticed flaws in all of them. Some of them simply made the items inside weightless, and they remained weightless when they were removed, these containers allowed the maximum limit on weight of the container to be exceeded. I have noticed others that only set the weight of the bag to a negative number, which sometimes works but is risky. Anyways... someone asked me about these yesterday so I whipped it up... which is interesting, because later that evening there was a lot of talk about quivers and weight reduction. Hopefully this will help some of you out.
If you want to have a container that is completely weightless, set ReduxPercent to 100%. A normal container is 0%. You can have values anywhere between these as long as they are integers.
Current Versions:
RunUO 1.0: v1.1
This has been updated to function for RunUO 2.0. Please see this thread:
http://www.runuo.com/forums/showthread.php?t=71035
I have seen several "weightless" containers before and noticed flaws in all of them. Some of them simply made the items inside weightless, and they remained weightless when they were removed, these containers allowed the maximum limit on weight of the container to be exceeded. I have noticed others that only set the weight of the bag to a negative number, which sometimes works but is risky. Anyways... someone asked me about these yesterday so I whipped it up... which is interesting, because later that evening there was a lot of talk about quivers and weight reduction. Hopefully this will help some of you out.
If you want to have a container that is completely weightless, set ReduxPercent to 100%. A normal container is 0%. You can have values anywhere between these as long as they are integers.
Code:
/*
BackpackOfReduction.cs
snicker7
v1.1 [RunUO 1.0]
06/07/06
Description:
The backpack of reduction is a container
that accurately reduces its total weight
by a percentage without actually changing
the weight of the items inside or the
maximum weight that the container can carry.
Properties:
int ReduxPercent - This is a value from 0
to 100 which corresponds to the
percentage amount of weight reduction
desired. 100% would mean the container
would always weigh 0 stones.
Constructors:
BackpackOfReduction()
defaults to 100% reduction
BackpackOfReduction(int redux)
reduction rate as specified by the
redux param
This code is public domain, however, I do
ask that you simply give credit where it
is due if you use it, for the sake of your
own conscience.
*/
Current Versions:
RunUO 1.0: v1.1