ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Does anyone happen to have a portable Anvil and Forge they wouldn't mind sharing, I couldn't seem to find one on here.
Well while on this subject I realized I would have to code in a way to read said items by the crafting system.. so running into this error:
C#:
Operator '&&' cannot be applied to operands of type 'Item[]' and 'Item[]'
with the following:
C#:
            if (from.Backpack.FindItemsByType(typeof(PortableAnvil)) && from.Backpack.FindItemsByType(typeof(PortableForge)))
            {
                return 0;
            }
 
Last edited:
You could try.. (FindItemByType instead of FindItemsByType)

Code:
            if (from.Backpack.FindItemByType(typeof(PortableAnvil)) != null && from.Backpack.FindItemByType(typeof(PortableForge)) != null)
            {
                return 0; // if both are found
            }
 
Last edited:
Yep that was it, now I just need to test it and see if it works haha. Works as expected, thank you.
 
Last edited:
Back