Question about dropping items from the carve method.

Ingromar

Well-Known Member
Apr 8, 2019
48
8
Is it possible to have a creature be carved and have it drop more than one type of Hide, Scale,Leather Type, or Meat Type?

Example if a creature like a chimera from D&D was part Lion/Goat/Dragon.....
Or a Dragon like Tiamat multiple dragon types IE multiple scale types .
anyway is this possible ? and if so how would you implement it?
 

Lokai

Moderator
ServUO Developer
Dec 4, 2014
1,198
189
Western New York State
Shard Name
Test Center
Donate
Donate money to this user
Something like this I think. In your custom creature add this:

C#:
        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            base.OnCarve(from, corpse, with);
            corpse.AddCarvedItem(new ItemThatIWantToAdd());
        }
The "base.OnCarve" part makes sure it gets the normal stuff.
 

Ingromar

Well-Known Member
Apr 8, 2019
48
8
Something like this I think. In your custom creature add this:

C#:
        public override void OnCarve(Mobile from, Corpse corpse, Item with)
        {
            base.OnCarve(from, corpse, with);
            corpse.AddCarvedItem(new ItemThatIWantToAdd());
        }
The "base.OnCarve" part makes sure it gets the normal stuff.
Thanks Lokai Appreciate it Ill try it out tomorrow