Tempus
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- Time Of Legends
If I add a Bow (or any weapon or armor) using [add Bow, its a regular bow (or whatever I added). Looking in TreasureChestMod.cs, I see the filling of the chest using the Loot.RandomArmorOrShieldOrWeapon() method. If however I create a class and in that class create an item as shown here
and drop that item on the ground, its always just a plain item. Just what am I missing here. I'm generating the item the same way the code does to fill a treasure chest but getting different results. I can only imagine I'm missing some super simple flag someplace but I just cant figure it out.
Any suggestions?
C#:
Item newItem = Loot.RandomArmorOrShieldOrWeapon();
and drop that item on the ground, its always just a plain item. Just what am I missing here. I'm generating the item the same way the code does to fill a treasure chest but getting different results. I can only imagine I'm missing some super simple flag someplace but I just cant figure it out.
Any suggestions?