Resource icon

Portable Anvil, Forge and Soul Forge 1.0

No permission to download
As this one is relatively simple I decided to release this here rather than point back to my site for download.

This is a portable anvil, forge and soul forge. All three items are copies of the distro versions of the item just set to movable true and renamed.

The files are drag and drop but there are 2 distro edits required for this to function, one for the forge and anvil and one for the soul forge.

For the forge and anvil in DefBlacksmithy.cs find:
C#:
            if (anvil && forge)
            {
                return 0;
            }
add this below that:
C#:
            if (from.Backpack.FindItemByType(typeof(PortableAnvil)) != null && from.Backpack.FindItemByType(typeof(PortableForge)) != null)
            {
                return 0;
            }

For the soul forge in BaseRunicTool.cs find:
C#:
            foreach (Item item in eable)
            {
                if ((item.ItemID >= 0x4263 && item.ItemID <= 0x4272) || (item.ItemID >= 0x4277 && item.ItemID <= 0x4286) || (item.ItemID >= 17607 && item.ItemID <= 17610))
                {
                    if (!hasSkill)
                    {
                        from.SendLocalizedMessage(1152333); // You do not have enough Imbuing skill to re-forge items. Using standard Runic Crafting instead.
                        break;
                    }

                    from.Target = new RunicReforgingTarget(this);
                    from.SendLocalizedMessage(1152112); // Target the item to reforge.
                    eable.Free();
                    return;
                }
            }
add this below that:
C#:
            if (from.Backpack.FindItemByType(typeof(PortableSoulForge)) != null)
            {
                if (!hasSkill)
                {
                    from.SendLocalizedMessage(1152333); // You do not have enough Imbuing skill to re-forge items. Using standard Runic Crafting instead.
                }
                else
                {
                    from.Target = new RunicReforgingTarget(this);
                    from.SendLocalizedMessage(1152112); // Target the item to reforge.
                    return;
                }
            }

This seems to work okay.
Let me know if you have any issues, thank you.
Author
Iomega0318
Downloads
41
Views
1,227
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Iomega0318

Back