Winecrafting
Winecrafting System
Current Version: 1.0.4
UPDATE June 25, 2006
********************
FIXED: VinyardGroundAddon.cs- Replace item names GroundItemPart and GroundPosition due to conflicts with Variable Carpet Addon custom script.
UPDATE April 21, 2006
********************
FIXED: defWinecrafting.cs - Replace message in gump when player does not have enough skill to use a particular variety of grape. Thanks emeraldleg34 for brining this to my attention!!
Please download new attached zip and replace the older version.
URGENT UPDATE Dec. 8, 2005
********************
FIXED: AddGrapevineGump.cs - Grapevines were being left on internal map. Please download the attached zip and reinstall or go to
http://www.runuo.com/forums/showpost.php?p=462131&postcount=70
for manual instructions on fixing this issue. Thanks!
UPDATE Dec. 8, 2005
********************
This is just a maintenance release to fix a few bugs on Pre-AOS servers
FIXED: Winegrapes.cs - Wine grapes will now show the variety and amount on single click (for Pre-AOS), instead of "grape bunch : ##".
FIXED: BaseCraftWine.cs - Bottles of wine will now show the vinyard and variety on single click (for Pre-AOS), instead of "bottle of wine".
FIXED: BaseGrapeVine.cs - Grapevines will now show the variety on single click (ALL).
Please download new attached rar and replace the older version.
********************
UPDATE Nov. 9, 2005
********************
NEW: Added two new tools to give players the ability to place grapevines in their houses. The first is the 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. The second tool is a 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.
UPDATED: AddGrapevineGump to work for players using the grapevine placement tool. It will use the new script VinePlacement.cs for the rules of where players can place vines. There are certain aspects that you can change to suit your shard. These are...
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.
UPDATED: Winecrafter NPC to sell the grapevine placement tool and the vinyard ground addon deed. I did not add the Keg Storage or Bottle Rack addons. I will leave that up to you to decide if you want them on the vendor or on an addon stone/token stone, etc.
FIXED: The OnSingleClick event in WineKeg.cs to show the wine variety and crafter details correctly.
Please download new attached rar and replace the older version.
********************
UPDATE Nov. 3, 2005
********************
NEW: Too add to realism, players will now 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 to leave it the old way (crafting bottles), simply open defWinecrafting.cs and uncomment line 94 and comment out line 96.
NEW: 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...
UPDATED: Added Kegs and Label Tool to Winecrafter NPC. Also moved tools and resources to the top of the items for sale list.
UPDATED: Removed the addgv command from AddGrapevineGump.cs and placed into Commands\AddGrapevine.cs. This is for future functionality.
FIXED: Crafted wine will now increase BAC when a player drinks a bottle.
Please download new attached rar and replace the older version.
********************
Original Post
This is a winecrafting system I have developed. Some 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.
Also, special thanks to Orpheus and masternightmage for their suggestions that were implemented in version 1.0.1.
Feel free to post any bugs or critical feedback
Thanks and hope you enjoy!
Winecrafting System
Current Version: 1.0.4
UPDATE June 25, 2006
********************
FIXED: VinyardGroundAddon.cs- Replace item names GroundItemPart and GroundPosition due to conflicts with Variable Carpet Addon custom script.
UPDATE April 21, 2006
********************
FIXED: defWinecrafting.cs - Replace message in gump when player does not have enough skill to use a particular variety of grape. Thanks emeraldleg34 for brining this to my attention!!
Please download new attached zip and replace the older version.
URGENT UPDATE Dec. 8, 2005
********************
FIXED: AddGrapevineGump.cs - Grapevines were being left on internal map. Please download the attached zip and reinstall or go to
http://www.runuo.com/forums/showpost.php?p=462131&postcount=70
for manual instructions on fixing this issue. Thanks!
UPDATE Dec. 8, 2005
********************
This is just a maintenance release to fix a few bugs on Pre-AOS servers
FIXED: Winegrapes.cs - Wine grapes will now show the variety and amount on single click (for Pre-AOS), instead of "grape bunch : ##".
FIXED: BaseCraftWine.cs - Bottles of wine will now show the vinyard and variety on single click (for Pre-AOS), instead of "bottle of wine".
FIXED: BaseGrapeVine.cs - Grapevines will now show the variety on single click (ALL).
Please download new attached rar and replace the older version.
********************
UPDATE Nov. 9, 2005
********************
NEW: Added two new tools to give players the ability to place grapevines in their houses. The first is the 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. The second tool is a 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.
UPDATED: AddGrapevineGump to work for players using the grapevine placement tool. It will use the new script VinePlacement.cs for the rules of where players can place vines. There are certain aspects that you can change to suit your shard. These are...
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.
FIXED: The OnSingleClick event in WineKeg.cs to show the wine variety and crafter details correctly.
Please download new attached rar and replace the older version.
********************
UPDATE Nov. 3, 2005
********************
NEW: Too add to realism, players will now 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 to leave it the old way (crafting bottles), simply open defWinecrafting.cs and uncomment line 94 and comment out line 96.
NEW: 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!
UPDATED: Winecrafter Tools is now using the bottle with spout itemid (bong).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!
UPDATED: Added Kegs and Label Tool to Winecrafter NPC. Also moved tools and resources to the top of the items for sale list.
UPDATED: Removed the addgv command from AddGrapevineGump.cs and placed into Commands\AddGrapevine.cs. This is for future functionality.
FIXED: Crafted wine will now increase BAC when a player drinks a bottle.
Please download new attached rar and replace the older version.
********************
Original Post
This is a winecrafting system I have developed. Some 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. Can currently only craft bottles of wine. Exceptionally crafted wines can bear vinyard name (maker's mark) and are made as "Special Reserve" wines.
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.
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)Vintner NPC - Sells/Buys Bottles of wine.
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. 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...
2. Using Grapevines (optional). Use the command [addgv to place vines. 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.
Also, special thanks to Orpheus and masternightmage for their suggestions that were implemented in version 1.0.1.
Feel free to post any bugs or critical feedback
Thanks and hope you enjoy!