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!

Enabling enhance option for all weaps/armour?

AdminA

Sorceror
Hi all

This one has always stumped me, but I can't figure out why or where the check is in place to prevent enhancement of artifacts and the like.

Has anyone been able to do this, if so, can you give me a hint as to how?
 

Attachments

  • Enhance.cs
    13.1 KB · Views: 4

kevin10

Sorceror
This bit here on line 52:

Code:
CraftItem craftItem = craftSystem.CraftItems.SearchFor(item.GetType());

Basically its readonly the items that can only be found on the crafting menu's. So, derived classes will return null.

What you can do, is instead try this:

Code:
CraftItem craftItem = craftSystem.CraftItems.SearchForSubclass(item.GetType());
 
Top