ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Does anyone know of a way to dress and arm either an NPC or a player, then create a script that servuo can run to make the exact thing as an NPC? Similar to how the statue makers work, but instead of creating a statue it creates a new NPC.
 
Check out the MirrorImage spell/move, there is a secondary class in the script named Clone which does the basics of what you want; it will create a clone of the given mobile and its equipment, but it only mimics equipment appearance by creating a new Item with the source piece ItemID...
To get around that, you can use something like this instead:
C#:
        private Item CloneItem(Item item)
        {
            return Server.Commands.Dupe.DupeItem(item);
        }
 
Will it output the clone to a script though? I like to put all kinds of add ons on NPCs, and sometimes I want to reproduce those NPCs without having to add back in all the extra items.
 
I don't know if this helps but maybe look at the Changeling.cs in the monsters. They turn into the nearest character like a clone.
 
Back