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!

Old school bone containers [svn908 (should work runuo2.2)]

Simon Omega

Traveler
I always loved these things from some reason.
I didn't see any in stock RunUO so I made these.

This is bare enough to work with svn908 (should be fine with 2.2, no time to test right now).

Notes:
  1. Graphic is Randomly Chosen.
  2. Overridden AddName and GetProperties so that the property lists will always display the old format.
  3. Regular Container Type
    1. Constructor supports
      1. No Arguments
      2. Can Dye, Can Move
      3. Can Dye, Can Move, LiftOverride
    2. Flag for Dyable.
  4. Fillable Container Type
    1. Constructor supports
      1. No Arguments
      2. Can Dye
    2. Flag for Dyable.
    3. Set IsLockable False.
    4. Set IsTrapable False.
      1. But I include notes on what you can do in FillableContainers.cs to get Traps Working.
      2. In svn908 - FillableContainers - Respawn() is not overridable.
      3. In Respawn() traps are randomly created based on IsTrapable being true.
      4. Easy fix: Redefine Respawn() so it can be overloaded. Create a private Boolean on the FillableBoneConatiner. Override Respawn and do something like:
      5. Code:
        base.Respawn();
          if ( THE_NEW_BOOLEAN )
          {
            TrapType = TrapType.None;
            TrapPower = 0;
            TrapLevel = 0;
          }
    5. If no FillableContent is set on the FillableBoneContainer it will default to FighterGuild (Random Fighter/Warrior Loot).

Hope this is useful to someone. :)
 

Attachments

  • BoneContainers.cs
    4.5 KB · Views: 42
  • BoneContainers.png
    BoneContainers.png
    716.9 KB · Views: 136
Top