Sorry I've gotten a little further but still can't figure out what I need to do next.
By the way I'm working from here .... \Scripts\Items\Consumables\CookableFood.cs
Which starts like...
public abstract class CookableFood : Item, IQuality, ICommodity
The Item class is someing you might take...
I think I start here?
public override void OnDoubleClick(Mobile from)
{
}
I've gotten that to produce things.
But I would like to target something first.
Basically I'm targeting some raw food and want to use it on a fire.
Or maybe I need have my character near a fire?
Given up on adding to...
Well I commented out - ServUO-master\Scripts\VendorInfo\SBGardener.cs
Took their list of items and added it over here
ServUO-master\Scripts\Custom\Cooking Expansion Set\Mobiles\SBinfo\SBGardener.cs
That got rid of the ambiguous or ambiguity errors.
Next up I'm getting naming errors with...
Yea, I found two of these...
1. ServUO-master\Scripts\VendorInfo\SBGardener.cs
2. ServUO-master\Scripts\Custom\Cooking Expansion Set\Mobiles\SBinfo\SBGardener.cs
both have - public InternalBuyInfo()
Is it safe to move 1. which is a short list onto the end of 2. which has a very long list of...
Can anyone help with fixing these errors.
I guess I'll post them as I go.
SBGardener.cs
Errors are with the four that I underlined
Two of them - InternalBuyInfo()
Error: CS0121 - The call is ambiguous between the following methods or properties: 'method1' and 'method2'
Two of them - m_BuyInfo...
It is working.
I just changed the ItemID to the Base number so it looks more like ItemID = 0x1E1F.
Basically I copied one of the cookable food classes and named it RawHumanMeat for now.
And got the LeftArm etc once carved up to do this: new RawHuman().MoveToWorld(Location, Map);
So now I have...
Thanks, used the second method and got it to work.
Just starting out on this coding stuff and way to early to tell everyone else to update their files.
I'm still not sure what the ItemID does yet. Is that the same as the base number?
public override int LabelNumber => 1126041; // raw serpent steak
Is there a way to give an item a string name without assigning it a message number?
Or how to I add/edit Label Numbers? What file are they in?
Sounds great but I got over 70 errors with the new package and like 1000+ with an older one. :)
I'm trying to learn C# but I still think I months away from figuring this stuff out.
Thanks
Got it to work
Took me a few tries
It had two properties to change ,[hue],[drop chance]
Here is what worked.
SetWearable(new FancyShirt(GetRandomHue()), -1, 1.0);