[2.0]Winecrafting
Winecrafting System
Current Version: 2.0.1
********************
Original Post
This is my winecrafting system updated to work with RunUO 2.0 Rc1. This crafting system is based on other scripts that I have found here, including Sigma's grapevines and Demented's/Kesia's Brewing craft system.
This is a fully working script system, but I consider it a beta release to the RunUO community until I can get feedback/bug reports
Here are the features...
To install, download the attached file and unrar it to your customs directory. Restart your server and you are ready to setup. You have different options to setup.
I have changed the names of most items, etc to avoid conflicts. I did not however change the name of Sigma's vines. If you already have Sigma's grapevines, you will need to replace them with the new vines included here. The grapevines are named...
East
GrapeVinePoleEast, GrapeVinePoleEast2, GrapeVinePoleEast3, GrapeVineBranchEast, GrapeVineBranchEast2
North
GrapeVinePoleNorth, GrapeVinePoleNorth2, GrapeVinePoleNorth3, GrapeVineBranchNorth, GrapeVineBranchNorth2
I will follow this post with a post of further images.
Credit:
Sigma - For his grapevines. I used these as the basis for my grapevines. Most of his code is intact, with exception of the addition of varieties, and I reduced the number of files by using BaseGrapeVine.
Demented/Kesia - For the Brewing Craft scripts, which I based my winecrafting scripts on.
XSTG - For the Sweeties Pack, where I got the idea for my WinecrafterSugar from.
A-Li-N - For the Yard and Garden System, which I based alot of the player placeable vinyards on.
Masternightmage – for the keg storage rack and bottle rack addon scripts.
Feel free to post any bugs or critical feedback
Thanks and hope you enjoy!
Winecrafting System
Current Version: 2.0.1
********************
Original Post
This is my winecrafting system updated to work with RunUO 2.0 Rc1. This crafting system is based on other scripts that I have found here, including Sigma's grapevines and Demented's/Kesia's Brewing craft system.
This is a fully working script system, but I consider it a beta release to the RunUO community until I can get feedback/bug reports
Here are the features...
Wine crafting - using Alchemy skill. Alchemy of 80 required. Exceptionally crafted wines can bear vinyard name (maker's mark) and are made as "Special Reserve" wines.
Too add to realism, players craft kegs instead of bottles. Kegs must ferment for 7 real world days, before they can be bottled. Kegs are equiv of 15.5 gallon kegs and can bottle 75 wine bottles. If you prefer players to craft bottles, simply open defWinecrafting.cs and uncomment line 94 and comment out line 96.
Enhanced Sigma Grapevines - Includes gump to place, move, delete vines as well as set which variety of grape vine will hold.
Grape Picking - Multiple varieties of grapes can be picked from the vine and used in crafted wines. These varieties are...
Vintner NPC - Sells/Buys Bottles of wine
Tools
Too add to realism, players craft kegs instead of bottles. Kegs must ferment for 7 real world days, before they can be bottled. Kegs are equiv of 15.5 gallon kegs and can bottle 75 wine bottles. If you prefer players to craft bottles, simply open defWinecrafting.cs and uncomment line 94 and comment out line 96.
Enhanced Sigma Grapevines - Includes gump to place, move, delete vines as well as set which variety of grape vine will hold.
Grape Picking - Multiple varieties of grapes can be picked from the vine and used in crafted wines. These varieties are...
Cabernet Sauvignon, Chardonnay, Chenin Blanc, Merlot, Pinot Noir, Riesling, Sangiovese, Sauvignon Blanc, Shiraz, Viognier, and Zinfandel
Winecrafter NPC - Sells/Buys grape varieties. Sells winecrafting supplies (sugar, yeast, empty wine bottles, and winecrafter kit). Sells the grapevine placement tool and the vinyard ground addon deed.Vintner NPC - Sells/Buys Bottles of wine
Tools
*Grapevine placement tool. This tool will open the same gump that admins use, but it is locked down when used by players to validate that they are placing/moving/deleting vines in their own house and only on dirt/ground tiles.
You can set the rules for placing grapevines by editing the following parameters in VinePlacement.cs…
AllowPlayerYards - (default = false) - Option if your shard allows players to build outside their house foundation. Currently set to allow players to place within 5 tiles of house
AllowAllHouseTiles - (default = false) - Option to allow players to place on all house tiles or only on dirt or vinyard ground addon.
AllowAllYardTiles - (default = false) - Option to work when AllowPlayerYards is true. To allow players to place on any type of tile or only on ground and dirt tiles.
m_VinePrice - (default = 250) - the price that each vine will cost the player and the price they will be refunded.
* Vinyard ground addon. This is only needed by players that don't have custom houseing. It is an addon that will add dirt tiles into their house.
NEW: Added two new addons that were created by masternightmage. These are the Keg Storage Rack and Bottle Rack.
* Vinyard Label Tool. This tool can be purchased from the Winecrafter NPC and can be used by players to name their own vinyard. To use, players need to double click label tool, then click on one of the following (depending on what they want to do...
Addons two new addons that were created by masternightmage. These are the Keg Storage Rack and Bottle Rack. These are currently not sold by NPC’s. You can add in whatever manner you want.You can set the rules for placing grapevines by editing the following parameters in VinePlacement.cs…
AllowPlayerYards - (default = false) - Option if your shard allows players to build outside their house foundation. Currently set to allow players to place within 5 tiles of house
AllowAllHouseTiles - (default = false) - Option to allow players to place on all house tiles or only on dirt or vinyard ground addon.
AllowAllYardTiles - (default = false) - Option to work when AllowPlayerYards is true. To allow players to place on any type of tile or only on ground and dirt tiles.
m_VinePrice - (default = 250) - the price that each vine will cost the player and the price they will be refunded.
* Vinyard ground addon. This is only needed by players that don't have custom houseing. It is an addon that will add dirt tiles into their house.
NEW: Added two new addons that were created by masternightmage. These are the Keg Storage Rack and Bottle Rack.
* Vinyard Label Tool. This tool can be purchased from the Winecrafter NPC and can be used by players to name their own vinyard. To use, players need to double click label tool, then click on one of the following (depending on what they want to do...
Crafted Bottle of wine (crafted by them and exceptional only) - this will only label that specific bottle.
Crafted Keg of Wine (crafted by them and exceptional only) - this will label all bottles poured from that keg.
The Vinyard label Tool itself - If they name the tool, all future kegs, etc they craft will hold that name. Tool must be in backpack at time of crafting kegs!
Crafted Keg of Wine (crafted by them and exceptional only) - this will label all bottles poured from that keg.
The Vinyard label Tool itself - If they name the tool, all future kegs, etc they craft will hold that name. Tool must be in backpack at time of crafting kegs!
To install, download the attached file and unrar it to your customs directory. Restart your server and you are ready to setup. You have different options to setup.
1. Using Vendors (required). You will want to add the Vintner(optional) and Winecrafter vendors to the world. Use spawner or [add to add them. I recommend adding Vintner to towns and Winecrafter in the farmlands somewhere. If you use the grapevines, I would add this vendor somewhere near the vines.
2. Using Grapevines (optional). Use the command [addgv to place vines into farmland (or wherever) of you world. This will bring up the Grapevine add gump to add vines. Vines can only be added to land tiles. You can set the variety of grape the vine will hold in the gump.
3. Modify GenericSell.cs for higher exceptional prices - If you would like "Reserve" wines to sell to vintner for higher price, look for the following...
and add...
4. Tell your players
2. Using Grapevines (optional). Use the command [addgv to place vines into farmland (or wherever) of you world. This will bring up the Grapevine add gump to add vines. Vines can only be added to land tiles. You can set the variety of grape the vine will hold in the gump.
3. Modify GenericSell.cs for higher exceptional prices - If you would like "Reserve" wines to sell to vintner for higher price, look for the following...
Code:
else if ( item is BaseBeverage )
{
int price1 = price, price2 = price;
if ( item is Pitcher )
{ price1 = 3; price2 = 5; }
else if ( item is BeverageBottle )
{ price1 = 3; price2 = 3; }
else if ( item is Jug )
{ price1 = 6; price2 = 6; }
BaseBeverage bev = (BaseBeverage)item;
if ( bev.IsEmpty || bev.Content == BeverageType.Milk )
price = price1;
else
price = price2;
}
Code:
else if ( item is BaseCraftWine )
{
BaseCraftWine wine = (BaseCraftWine)item;
if ( item is BottleOfWine )
{
if ( wine.Quality == WineQuality.Low )
price = (int)( price * 0.60 );
else if ( wine.Quality == WineQuality.Exceptional )
price = (int)( price * 1.25 );
}
if ( price < 1 )
price = 1;
}
I have changed the names of most items, etc to avoid conflicts. I did not however change the name of Sigma's vines. If you already have Sigma's grapevines, you will need to replace them with the new vines included here. The grapevines are named...
East
GrapeVinePoleEast, GrapeVinePoleEast2, GrapeVinePoleEast3, GrapeVineBranchEast, GrapeVineBranchEast2
North
GrapeVinePoleNorth, GrapeVinePoleNorth2, GrapeVinePoleNorth3, GrapeVineBranchNorth, GrapeVineBranchNorth2
I will follow this post with a post of further images.
Credit:
Sigma - For his grapevines. I used these as the basis for my grapevines. Most of his code is intact, with exception of the addition of varieties, and I reduced the number of files by using BaseGrapeVine.
Demented/Kesia - For the Brewing Craft scripts, which I based my winecrafting scripts on.
XSTG - For the Sweeties Pack, where I got the idea for my WinecrafterSugar from.
A-Li-N - For the Yard and Garden System, which I based alot of the player placeable vinyards on.
Masternightmage – for the keg storage rack and bottle rack addon scripts.
Feel free to post any bugs or critical feedback
Thanks and hope you enjoy!