require( "scripts/style.lua" );

function QueueDisplayDialog(t)
	f = function() DisplayDialog(t) end;
	QueueFunction(f);
end

-- Current Row:  3 
italy_waiting_tutorial = 
{
	condition = function ()
		SetCondition("");
		 
	end,
	accept = function ()
	end,
	update = function ()
		if(HasItem("start_tutorial_quests")) then
		     RemoveItem("start_tutorial_quests");
		     return true;
		else
		     return false;
		end;
	end,
	complete = function ()
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_waiting_tutorial_pending"));
	end,
}

-- Current Row:  4 
tutorial_setup = 
{
	condition = function ()
	end,
	accept = function ()
	end,
	update = function ()
		if(HasThisLot("cabernet_sauvignon", 0, 5)) then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		RemoveItem("went_to_winery");
		GiveItem("start_tutorial_quests")
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_setup_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("tutorial_setup_step_1")
		    end,
		
		    hint=function()
		        return GetString("tutorial_setup_step_1")
		    end,
		
		    condition = function()
		        if(GetLocal() == "winery") then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("tutorial_setup_step_2")
		    end,
		
		    hint=function()
		        return GetString("tutorial_setup_step_2")
		    end,
		
		    condition = function()
		        if(HasItem("learnt_make_wine")) then
		            RemoveItem("learnt_make_wine");
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("tutorial_setup_step_3")
		    end,
		
		    hint=function()
		        return GetString("tutorial_setup_step_3")
		    end,
		
		    condition = function()
		        if(HasThisLot("cabernet_sauvignon",0,5)) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
	},
}

-- Current Row:  5 
italy_tutorial_a = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,5)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		UnlockQuest("italy", "italy_tutorial_b");
		GiveItem("quest_completed");
		GiveBlend("merlot");
		QueueDisplayDialog({"scripts/newblend.lua"})
		RemoveWine("cabernet_sauvignon", 0,5);
		GiveMoney(85);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_a_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("italy_tutorial_a_step_1")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_a_step_1")
		    end,
		
		    condition = function()
		        if(HasThisLot("cabernet_sauvignon", 0, 5)) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("italy_tutorial_a_step_2")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_a_step_2")
		    end,
		
		    condition = function()
		        if(HasItem("quest_completed")) then
		            RemoveItem("quest_completed");
		            return true;
		        else
		            return false;
		        end
		    end,
		},
	},
}

-- Current Row:  6 
italy_tutorial_b = 
{
	condition = function ()
		if(HasThisLot("merlot",0,1) == true) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
		GiveItem("quest_accepted");
	end,
	update = function ()
	end,
	complete = function ()
		UnlockQuest("italy","italy_tutorial_c");
		RemoveWine("merlot", 0,1);
		GiveMoney(25);
		RemoveItem("quest_accepted");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_b_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("italy_tutorial_b_step_1")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_b_step_1")
		    end,
		
		    condition = function()
		        if(GetProducedBlendType("italy") == 2) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("italy_tutorial_b_step_2")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_b_step_2")
		    end,
		
		    condition = function()
		        if(HasThisLot("merlot", 0, 1)) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		{
		    text=function()
		        return GetString("italy_tutorial_b_step_3")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_b_step_3")
		    end,
		
		    condition = function()
		        if(HasItem("quest_completed") )then
		            RemoveItem("quest_completed");
		            return true;
		        else
		            return false;
		        end
		    end,
		},
	},
}

-- Current Row:  7 
italy_tutorial_c = 
{
	condition = function ()
		if(not HasThisLot("cabernet_sauvignon",0,1) and not HasThisLot("merlot", 0, 1)) then
		     SetCondition("guild_talk");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
		GiveItem("cellar_quest_accepted");
	end,
	update = function ()
		if(GetLocal() == "cellar" and not HasItem("found_cellar")) then
		     GiveItem("found_cellar");
		end;
	end,
	complete = function ()
		UnlockQuest("italy","italy_tutorial_d");
		RemoveItem("found_cellar");
		GiveItem("quest_completed");
		RemoveItem("cellar_quest_accepted");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_c_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("italy_tutorial_c_step_1")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_c_step_1")
		    end,
		
		    condition = function()
		        if(HasItem("found_cellar")) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		{
		    text=function()
		        return GetString("italy_tutorial_c_step_2")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_c_step_2")
		    end,
		
		    condition = function()
		        if(not HasThisLot("cabernet_sauvignon", 0, 1) and not HasThisLot("merlot", 0, 1))then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("italy_tutorial_c_step_3")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_c_step_3")
		    end,
		
		    condition = function()
		        if(HasItem("quest_completed")) then
		            RemoveItem("quest_completed");
		            return true;
		        else
		            return false;
		        end
		    end,
		},
	},
}

-- Current Row:  8 
tutorial_stockup_1 = 
{
	condition = function ()
	end,
	accept = function ()
	end,
	update = function ()
		if(HasThisSeed("cabernet_sauvignon",100) and HasThisSeed("generic_grape",200) and HasThisSupply("bottle_straight_sided",100)) then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_stockup_1_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("tutorial_stockup_1_step_1");
		    end,
		    hint=function()
		     return GetString("tutorial_stockup_1_step_1");
		    end,
		    condition = function()
		      if(GetLocal() == "supplier") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSeed("cabernet_sauvignon",100) == true) then
		      return GetString("tutorial_stockup_1_step_2");
		     else
		      return GetString("tutorial_stockup_1_step_2") .. " (" .. 100 - GetSeedQnt("cabernet_sauvignon") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("cabernet_sauvignon",100) == true) then
		      return GetString("tutorial_stockup_1_step_2");
		     else
		      return GetString("tutorial_stockup_1_step_2") .. " (" .. 100 - GetSeedQnt("cabernet_sauvignon") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("cabernet_sauvignon",100) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSeed("generic_grape",200) == true) then
		      return GetString("tutorial_stockup_1_step_3");
		     else
		      return GetString("tutorial_stockup_1_step_3") .. " (" .. 200 - GetSeedQnt("generic_grape") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("cabernet_sauvignon",200) == true) then
		      return GetString("tutorial_stockup_1_step_3");
		     else
		      return GetString("tutorial_stockup_1_step_3") .. " (" .. 200 - GetSeedQnt("generic_grape") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("generic_grape",200) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSupply("bottle_straight_sided",100) == true) then
		      return GetString("tutorial_stockup_1_step_4");
		     else
		      return GetString("tutorial_stockup_1_step_4") .. " (" .. 100 - GetSupplyQnt("bottle_straight_sided") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSupply("bottle_straight_sided",100) == true) then
		      return GetString("tutorial_stockup_1_step_4");
		     else
		      return GetString("tutorial_stockup_1_step_4") .. " (" .. 100 - GetSupplyQnt("bottle_straight_sided") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSupply("bottle_straight_sided",100) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  9 
tutorial_productivity = 
{
	condition = function ()
	end,
	accept = function ()
	end,
	update = function ()
		if(GetWineryProductionQuantity("italy")>5) then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		RemoveItem("production_changed");
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_productivity_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("tutorial_productivity_step_1");
		         end,
		    hint=function()
		     return GetString("tutorial_productivity_step_1");
		         end,
		    condition = function()
		      if(GetLocal() == "winery") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(GetState()=="viewing_winery") then
		      return GetString("tutorial_productivity_step_2")..GetString("tutorial_productivity_step_3");
		     else
		      return GetString("tutorial_productivity_step_2");
		     end
		         end,
		    hint=function()
		     if(GetState()=="viewing_winery") then
		      return GetString("tutorial_productivity_step_2")..GetString("tutorial_productivity_step_3");
		     else
		      return GetString("tutorial_productivity_step_2");
		     end
		         end,
		    condition = function()
		      if(GetWineryProductionQuantity("italy")>5) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  10 
italy_tutorial_d = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,10)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
		GiveItem("quest_accepted");
	end,
	update = function ()
	end,
	complete = function ()
		RemoveItem("lock_travel");
		UnlockQuest("austria","austria_tutorial_a");
		QueuePopUp("scripts/newlocations.lua");
		RemoveWine("cabernet_sauvignon",0,10);
		GiveMoney(170);
		RemoveItem("quest_accepted");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_d_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("italy_tutorial_d_step_1")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_d_step_1")
		    end,
		
		    condition = function()
		        if(GetProducedBlendType("italy") == 1) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        if(HasThisLot("cabernet_sauvignon", 0, 10))then
		             return GetString("italy_tutorial_d_step_2");
		        else
		             return GetString("italy_tutorial_d_step_2") .. " (" .. 10 - GetWineQnt("cabernet_sauvignon",0) ..GetString("to_go_txt");
		        end;
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_d_step_2")
		    end,
		
		    condition = function()
		        if(HasThisLot("cabernet_sauvignon", 0, 10)) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		{
		    text=function()
		        return GetString("italy_tutorial_d_step_3")
		    end,
		
		    hint=function()
		        return GetString("italy_tutorial_d_step_3")
		    end,
		
		    condition = function()
		        if(HasItem("quest_completed") )then
		            RemoveItem("quest_completed");
		            return true;
		        else
		            return false;
		        end
		    end,
		},
	},
}

-- Current Row:  11 
austria_tutorial_a = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,2)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		UnlockAcceptedQuest("greece", "greece_tutorial_a");
		QueuePopUp("scripts/newlocations.lua");
		RemoveWine("cabernet_sauvignon", 0, 2);
		GiveMoney(34);
		GiveItem("delivered_franz_wine");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("austria_tutorial_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("austria_tutorial_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("austria_tutorial_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("austria_tutorial_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("austria_tutorial_a_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("austria_tutorial_a_step_1")
		    end,
		
		    hint=function()
		        return GetString("austria_tutorial_a_step_1")
		    end,
		
		    condition = function()
		            return false;
		    end,
		},
	},
}

-- Current Row:  12 
greece_tutorial_a = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,5)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		UnlockQuest("greece", "greece_tutorial_b");
		RemoveWine("cabernet_sauvignon", 0, 5);
		GiveMoney(85);
		GiveItem("delivered_nicodemus_wine");
		SetComplete(true);
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_tutorial_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_tutorial_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_tutorial_a_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("greece_tutorial_a_step_1")
		    end,
		
		    hint=function()
		        return GetString("greece_tutorial_a_step_1")
		    end,
		
		    condition = function()
		         return false;
		    end,
		},
	},
}

-- Current Row:  13 
greece_tutorial_b = 
{
	condition = function ()
		if(HasThisLot("merlot",0,10)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
		if(not HasItem("enough_supplies") and verifySupplies("merlot", 20, "generic_grape", 10, "bottle_high_shoulder", 10)) then
		     GiveItem("enough_supplies");
		end
	end,
	complete = function ()
		UnlockQuest("greece", "greece_tutorial_c");
		RemoveWine("merlot", 0, 10);
		GiveMoney(240);
		RemoveItem("enough_supplies");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_tutorial_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_tutorial_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_tutorial_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_tutorial_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_tutorial_b_reminder"));
	end,
	steps = 
	{
		{
		    text=function()
		        return GetString("greece_tutorial_b_step_1")
		    end,
		
		    hint=function()
		        return GetString("greece_tutorial_b_step_1")
		    end,
		
		    condition = function()
		        if(HasItem("enough_supplies")) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("greece_tutorial_b_step_2")
		    end,
		
		    hint=function()
		        return GetString("greece_tutorial_b_step_2")
		    end,
		
		    condition = function()
		        if(GetProducedBlendType("italy") == 2) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		{
		    text=function()
		        return GetString("greece_tutorial_b_step_3")
		    end,
		
		    hint=function()
		        return GetString("greece_tutorial_b_step_3")
		    end,
		
		    condition = function()
		        if(HasThisLot("merlot", 0,10)) then
		            return true;
		        else
		            return false;
		        end
		    end,
		},
		
		{
		    text=function()
		        return GetString("greece_tutorial_b_step_4")
		    end,
		
		    hint=function()
		        return GetString("greece_tutorial_b_step_4")
		    end,
		
		    condition = function()
		        return false;
		    end,
		},
		
	},
}

-- Current Row:  14 
greece_tutorial_c = 
{
	condition = function ()
		if(HasThisLot("gewurztraminer",0,5)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
		UnlockQuest("germany","germany_tutorial_a");
		QueuePopUp("scripts/newlocations.lua");
	end,
	update = function ()
		if(not HasItem("enough_gewurztraminer_supplies") and verifySupplies("gewurztraminer", 10, "generic_grape", 10, "bottle_straight_sided", 5)) then
		     GiveItem("enough_gewurztraminer_supplies");
		end
	end,
	complete = function ()
		RemoveWine("gewurztraminer", 0, 5);
		GiveMoney(210);
		RemoveItem("enough_gewurztraminer_supplies");
		UnlockAcceptedQuest("_global", "first_businesses");
		UnlockQuest("italy", "italy_tutorial_business");
		UnlockQuest("austria", "austria_tutorial_business");
		UnlockQuest("germany", "germany_tutorial_business");
		UnlockQuest("greece", "greece_tutorial_business");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_tutorial_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_tutorial_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_tutorial_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_tutorial_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_tutorial_c_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return OwnsThisBlend("gewurztraminer");
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_c_step_1");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_c_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasItem("enough_gewurztraminer_supplies");
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_c_step_2");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_c_step_2");
		  end,
		},
		{
		  condition = function ()
		    return GetProducedBlendType("italy") == 7;
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_c_step_3");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_c_step_3");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("gewurztraminer", 0, 5);
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_c_step_4");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_c_step_4");
		  end,
		},
		{
		  condition = function ()
		    return false;
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_c_step_5");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_c_step_5");
		  end,
		},
	},
}

-- Current Row:  15 
germany_tutorial_a = 
{
	condition = function ()
		if(HasThisLot("merlot",0,1) and HasThisLot("cabernet_sauvignon", 0,1)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot", 0, 1);
		RemoveWine("cabernet_sauvignon", 0,1);
		GiveBlend("gewurztraminer");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_tutorial_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_tutorial_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_tutorial_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_tutorial_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_tutorial_a_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    local generic_grapes = 0;
		    local cabernet_grapes = 0;
		    local merlot_grapes = 0;
		    local bottle_high = 0;
		    local bottle_straight = 0;
		    
		    if(not HasThisLot("merlot", 0, 1)) then
		        generic_grapes = 1 - GetSeedQnt("generic_grape");
		        merlot = 2 - GetSeedQnt("generic_grape");
		        bottle_high = 1 - GetSupplyQnt("bottle_high_shoulder");
		    end;
		    
		    if(not HasThisLot("cabernet_sauvignon", 0,1)) then
		        generic_grapes = 2 + generic_grapes;
		        cabernet_grapes = 1 - GetSeedQnt("cabernet_sauvignon");
		        bottle_straight = 1 - GetSupplyQnt("bottle_straight_sided");
		    end;
		
		    if(generic_grapes > 0 or cabernet_grapes > 0 or merlot_grapes > 0 or bottle_straight > 0 or bottle_high > 0) then
		        return false;
		    else
		        return true;
		    end;
		    
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_a_step_1");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_a_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("cabernet_sauvignon", 0,1);
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_a_step_2");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_a_step_2");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("merlot", 0,1);
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_a_step_3");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_a_step_3");
		  end,
		},
		{
		  condition = function ()
		    return false
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_a_step_4");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_a_step_4");
		  end,
		}
		
	},
}

-- Current Row:  16 
first_businesses = 
{
	condition = function ()
	end,
	accept = function ()
	end,
	update = function ()
		if(HasItem("greece_tutorial_business_ok") and HasItem("italy_tutorial_business_ok") and HasItem("germany_tutorial_business_ok") and HasItem("austria_tutorial_business_ok")) then
		     return true;
		else
		     return false;
		end;
	end,
	complete = function ()
		SetComplete(true);
		UnlockQuest("greece", "greece_pre_sorting");
		RemoveItem("greece_tutorial_business_ok");
		RemoveItem("italy_tutorial_business_ok");
		RemoveItem("germany_tutorial_business_ok");
		RemoveItem("austria_tutorial_business_ok");
	end,
}

-- Current Row:  17 
greece_tutorial_business = 
{
	condition = function ()
		if(HasThisLot("merlot",0,20) and HasThisLot("gewurztraminer", 0,20)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot", 0, 20);
		RemoveWine("gewurztraminer", 0,20);
		GiveMoney(1180);
		GiveItem("greece_tutorial_business_ok");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_tutorial_business_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_tutorial_business_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_tutorial_business_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_tutorial_business_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_tutorial_business_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return HasThisLot("merlot", 0, 20);    
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_business_step_1");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_business_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("gewurztraminer", 0,20);
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_business_step_2");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_business_step_2");
		  end,
		},
		
		{
		  condition = function ()
		    return false
		  end,
		  hint = function ()
		    return GetString("greece_tutorial_business_step_3");
		  end,
		  text = function ()
		    return GetString("greece_tutorial_business_step_3");
		  end,
		}
	},
}

-- Current Row:  18 
italy_tutorial_business = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,30) and HasThisLot("gewurztraminer", 0,10)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon", 0, 30);
		RemoveWine("gewurztraminer", 0,10);
		GiveMoney(860);
		GiveItem("italy_tutorial_business_ok");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_business_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_business_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_business_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_business_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_business_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return HasThisLot("cabernet_sauvignon", 0, 30);    
		  end,
		  hint = function ()
		    return GetString("italy_tutorial_business_step_1");
		  end,
		  text = function ()
		    return GetString("italy_tutorial_business_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("gewurztraminer", 0,10);
		  end,
		  hint = function ()
		    return GetString("italy_tutorial_business_step_2");
		  end,
		  text = function ()
		    return GetString("italy_tutorial_business_step_2");
		  end,
		},
		
		{
		  condition = function ()
		    return false
		  end,
		  hint = function ()
		    return GetString("italy_tutorial_business_step_3");
		  end,
		  text = function ()
		    return GetString("italy_tutorial_business_step_3");
		  end,
		}
	},
}

-- Current Row:  19 
austria_tutorial_business = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,20) and HasThisLot("merlot", 0,15)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon", 0, 20);
		RemoveWine("merlot", 0,15);
		GiveMoney(700);
		GiveItem("austria_tutorial_business_ok");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("austria_tutorial_business_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("austria_tutorial_business_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("austria_tutorial_business_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("austria_tutorial_business_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("austria_tutorial_business_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return HasThisLot("cabernet_sauvignon", 0, 20);    
		  end,
		  hint = function ()
		    return GetString("austria_tutorial_business_step_1");
		  end,
		  text = function ()
		    return GetString("austria_tutorial_business_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("merlot", 0,15);
		  end,
		  hint = function ()
		    return GetString("austria_tutorial_business_step_2");
		  end,
		  text = function ()
		    return GetString("austria_tutorial_business_step_2");
		  end,
		},
		
		{
		  condition = function ()
		    return false
		  end,
		  hint = function ()
		    return GetString("austria_tutorial_business_step_3");
		  end,
		  text = function ()
		    return GetString("austria_tutorial_business_step_3");
		  end,
		}
	},
}

-- Current Row:  20 
germany_tutorial_business = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",0,15) and HasThisLot("merlot", 0,15) and HasThisLot("gewurztraminer", 0,5)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon", 0, 15);
		RemoveWine("merlot", 0,15);
		RemoveWine("gewurztraminer", 0,5);
		GiveMoney(790);
		GiveItem("germany_tutorial_business_ok");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_tutorial_business_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_tutorial_business_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_tutorial_business_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_tutorial_business_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_tutorial_business_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return HasThisLot("cabernet_sauvignon", 0, 15);    
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_business_step_1");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_business_step_1");
		  end,
		},
		{
		  condition = function ()
		    return HasThisLot("merlot", 0,15);
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_business_step_2");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_business_step_2");
		  end,
		},
		
		{
		  condition = function ()
		    return HasThisLot("gewurztraminer", 0,5);
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_business_step_3");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_business_step_3");
		  end,
		},
		{
		  condition = function ()
		    return false
		  end,
		  hint = function ()
		    return GetString("germany_tutorial_business_step_4");
		  end,
		  text = function ()
		    return GetString("germany_tutorial_business_step_4");
		  end,
		}
	},
}

-- Current Row:  21 
greece_pre_sorting = 
{
	condition = function ()
		if(HasThisLot("merlot", 0, 50)) then
		     SetCondition("guild_deliver");
		else
		     SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot", 0, 50);
		GiveMoney(1200);
		UnlockQuest("greece", "greece_sorting");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_pre_sorting_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_pre_sorting_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_pre_sorting_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_pre_sorting_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_pre_sorting_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return HasThisLot("merlot", 0, 50);    
		  end,
		  hint = function ()
		    return GetString("greece_pre_sorting_step_1");
		  end,
		  text = function ()
		    return GetString("greece_pre_sorting_step_1");
		  end,
		},
		{
		  condition = function ()
		    return false;
		  end,
		  hint = function ()
		    return GetString("greece_pre_sorting_step_2");
		  end,
		  text = function ()
		    return GetString("greece_pre_sorting_step_2");
		  end,
		},
	},
}

-- Current Row:  22 
greece_sorting = 
{
	condition = function ()
		if(HasThisLot("merlot",3,5)) then
		      SetCondition("guild_deliver");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		GiveItem("sort_quest_accepted");
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot", 3, 5); 
		UnlockQuest("germany", "germany_winery");
		UnlockAcceptedQuest("_global", "tutorial_expand");
		SetComplete(true);
		GiveItem("sorting_quest_completed");
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_sorting_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_sorting_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_sorting_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_sorting_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_sorting_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return GetProducedBlendType("italy") == 2;    
		  end,
		  hint = function ()
		    return GetString("greece_sorting_step_1");
		  end,
		  text = function ()
		    return GetString("greece_sorting_step_1");
		  end,
		},
		{
		  condition = function ()
		    return GetProducedQuality("italy") > 2;
		  end,
		  hint = function ()
		    return GetString("greece_sorting_step_2");
		  end,
		  text = function ()
		    return GetString("greece_sorting_step_2");
		  end,
		},
		
		{
		  condition = function ()
		    return HasThisLot("merlot", 3, 5);
		  end,
		  hint = function ()
		    return GetString("greece_sorting_step_3");
		  end,
		  text = function ()
		    return GetString("greece_sorting_step_3");
		  end,
		},
		
		{
		  condition = function ()
		    return false;
		  end,
		  hint = function ()
		    return GetString("greece_sorting_step_4");
		  end,
		  text = function ()
		    return GetString("greece_sorting_step_4");
		  end,
		}
		
	},
}

-- Current Row:  23 
tutorial_expand = 
{
	condition = function ()
	end,
	accept = function ()
	end,
	update = function ()
		if(GetScene()=="germany" and GetState()=="viewing_guild") then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_expand_reminder"));
	end,
	steps = 
	{
		{
		  condition = function ()
		    return GetScene() == "germany";    
		  end,
		  hint = function ()
		    return GetString("tutorial_expand_step_1");
		  end,
		  text = function ()
		    return GetString("tutorial_expand_step_1");
		  end,
		},
		{
		  condition = function ()
		    return false;
		  end,
		  hint = function ()
		    return GetString("tutorial_expand_step_2");
		  end,
		  text = function ()
		    return GetString("tutorial_expand_step_2");
		  end,
		},
	},
}

-- Current Row:  24 
germany_winery = 
{
	condition = function ()
		if(HasThisLot("barolo", 4, 20)) then
		      SetCondition("guild_deliver");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		UnlockQuest("italy", "italy_tutorial_barolo");
		GiveItem("winery_quest_accepted");
		
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("barolo", 4, 20);
		UnlockWinery("germany");
		UnlockQuest("germany", "germany_tutorial_b");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_winery_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_winery_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_winery_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_winery_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_winery_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("germany_winery_step_1");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_1");
		    end,
		    condition = function()
		      if(OwnsThisBlend("barolo")) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_winery_step_2");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_2");
		    end,
		    condition = function()
		      if(GetProducedBlendType("italy")==15) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_winery_step_3");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_3");
		    end,
		    condition = function()
		      if(GetProducedBlendType("italy")==15 and GetProducedQuality("italy")>3) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_winery_step_4");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_4");
		    end,
		    condition = function()
		      if(GetProducedBlendType("italy")==15 and GetWineryProductionQuantity("italy")>5) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_winery_step_5");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_5");
		    end,
		    condition = function()
		      if(HasThisLot("barolo", 4, 20)) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_winery_step_6");
		    end,
		    hint=function()
		     return GetString("germany_winery_step_6");
		    end,
		    condition = function()
		      return false;
		       end,
		  },
	},
}

-- Current Row:  25 
tutorial_barolo = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(GetScene()=="italy" and GetState()=="viewing_guild") then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_barolo_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("tutorial_barolo_step_1");
		    end,
		    hint=function()
		     return GetString("tutorial_barolo_step_1");
		    end,
		    condition = function()
		      if(GetScene()=="italy") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("tutorial_barolo_step_2");
		    end,
		    hint=function()
		     return GetString("tutorial_barolo_step_2");
		    end,
		    condition = function()
		      if(GetScene()=="italy" and GetState()=="viewing_guild") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  26 
italy_tutorial_barolo = 
{
	condition = function ()
		if(IsWineryProducingGrapes("italy")) then
		      SetCondition("guild_deliver");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		GiveItem("barolo_quest_accepted");
	end,
	update = function ()
	end,
	complete = function ()
		RemoveSeed("nebbiolo", 1);    GiveBlend("barolo");    QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_barolo_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_barolo_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_tutorial_barolo_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_barolo_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_tutorial_barolo_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("italy_tutorial_barolo_step_1");
		    end,
		    hint=function()
		     return GetString("italy_tutorial_barolo_step_1");
		    end,
		    condition = function()
		      if(GetScene()=="italy" and GetState()=="viewing_winery" or IsWineryProducingGrapes("italy")) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("italy_tutorial_barolo_step_2");
		    end,
		    hint=function()
		     return GetString("italy_tutorial_barolo_step_2");
		    end,
		    condition = function()
		      if(IsWineryProducingGrapes("italy")) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		
		  { 
		    text=function()
		     return GetString("italy_tutorial_barolo_step_3");
		    end,
		    hint=function()
		     return GetString("italy_tutorial_barolo_step_3");
		    end,
		    condition = function()
		       return false;
		       end,
		  },
	},
}

-- Current Row:  27 
germany_tutorial_b = 
{
	condition = function ()
		if(HasThisLot("riesling", 0, 1)) then
		      SetCondition("guild_deliver");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		GiveBlend("riesling");
		QueueDisplayDialog({"scripts/newblend.lua"});
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling", 0, 1);
		GiveItem("finished_riesling_quest");
		SetComplete(true);
		UnlockAcceptedQuest("_global", "tutorial_talk_francesca");
		UnlockQuest("italy","italy_tutorial_e");
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_tutorial_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_tutorial_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_tutorial_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_tutorial_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_tutorial_b_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("germany_tutorial_b_step_1");
		    end,
		    hint=function()
		     return GetString("germany_tutorial_b_step_1");
		    end,
		    condition = function()
		      if(HasThisLot("riesling", 0, 1)) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("germany_tutorial_b_step_2");
		    end,
		    hint=function()
		     return GetString("germany_tutorial_b_step_2");
		    end,
		    condition = function()
		         return false;
		      end
		  },
	},
}

-- Current Row:  28 
tutorial_talk_francesca = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(GetScene()=="italy" and GetState()=="viewing_guild") then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_talk_francesca_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("tutorial_talk_francesca_step_1");
		    end,
		    hint=function()
		     return GetString("tutorial_talk_francesca_step_1");
		    end,
		    condition = function()
		      if(GetScene()=="italy") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("tutorial_talk_francesca_step_2");
		    end,
		    hint=function()
		     return GetString("tutorial_talk_francesca_step_2");
		    end,
		    condition = function()
		         return false;  
		    end,
		  },
	},
}

-- Current Row:  29 
italy_tutorial_e = 
{
	condition = function ()
		SetCondition("guild_talk");
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		UnlockQuest("austria", "austria_a");
		UnlockQuest("greece", "greece_a");
		UnlockAcceptedQuest("_global", "tutorial_end_austria");
		UnlockAcceptedQuest("_global2", "tutorial_end_greece");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_tutorial_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_tutorial_e_confirmation"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_tutorial_e_fulfilled"));
	end,
}

-- Current Row:  30 
tutorial_end_austria = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(GetState()=="viewing_guild" and GetScene()=="austria") then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_end_austria_reminder"));
	end,
	steps = 
	{
		{
		   text=function()
		     return GetString("tutorial_end_austria_step_1");
		      end,
		   hint=function()
		     return GetString("tutorial_end_austria_step_1");
		      end,
		   condition = function()
		      if(GetScene()=="austria") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  {
		   text=function()
		     return GetString("tutorial_end_austria_step_2");
		      end,
		   hint=function()
		     return GetString("tutorial_end_austria_step_2");
		      end,
		   condition = function()
		      if(GetScene()=="austria" and GetState()=="viewing_guild") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  31 
tutorial_end_greece = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(GetState()=="viewing_guild" and GetScene()=="greece") then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_end_greece_reminder"));
	end,
	steps = 
	{
		{
		   text=function()
		     return GetString("tutorial_end_greece_step_1");
		      end,
		   hint=function()
		     return GetString("tutorial_end_greece_step_1");
		      end,
		   condition = function()
		      if(GetScene()=="greece") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  {
		   text=function()
		     return GetString("tutorial_end_greece_step_2");
		      end,
		   hint=function()
		     return GetString("tutorial_end_greece_step_2");
		      end,
		   condition = function()
		      if(GetScene()=="greece" and GetState()=="viewing_guild") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  32 
tutorial_stockup_6 = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(HasThisSeed("riesling",30) and HasThisSeed("chardonnay",10) and HasThisSupply("bottle_straight_sided",10)) then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_stockup_6_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     if(HasThisSeed("riesling",30) == true) then
		      return GetString("tutorial_stockup_6_step_1");
		     else
		      return GetString("tutorial_stockup_6_step_1") .. " (" .. 30 - GetSeedQnt("riesling") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("riesling",30) == true) then
		      return GetString("tutorial_stockup_6_step_1");
		     else
		      return GetString("tutorial_stockup_6_step_1") .. " (" .. 30 - GetSeedQnt("riesling") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("riesling",30) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSeed("chardonnay",10) == true) then
		      return GetString("tutorial_stockup_6_step_2");
		     else
		      return GetString("tutorial_stockup_6_step_2") .. " (" .. 10 - GetSeedQnt("chardonnay") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("chardonnay",10) == true) then
		      return GetString("tutorial_stockup_6_step_2");
		     else
		      return GetString("tutorial_stockup_6_step_2") .. " (" .. 10 - GetSeedQnt("chardonnay") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("chardonnay",10) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSupply("bottle_straight_sided",10) == true) then
		      return GetString("tutorial_stockup_6_step_3");
		     else
		      return GetString("tutorial_stockup_6_step_3") .. " (" .. 10 - GetSupplyQnt("bottle_straight_sided") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSupply("bottle_straight_sided",10) == true) then
		      return GetString("tutorial_stockup_6_step_3");
		     else
		      return GetString("tutorial_stockup_6_step_3") .. " (" .. 10 - GetSupplyQnt("bottle_straight_sided") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSupply("bottle_straight_sided",10) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  33 
tutorial_stockup_7 = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
	end,
	update = function ()
		if(HasThisSeed("merlot",200) and HasThisSeed("generic_grape",100) and HasThisSupply("bottle_high_shoulder",100)) then
		     return true;
		    else
		     return false;
		    end
	end,
	complete = function ()
		SetComplete(true);
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("tutorial_stockup_7_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("tutorial_stockup_7_step_1");
		    end,
		    hint=function()
		     return GetString("tutorial_stockup_7_step_1");
		    end,
		    condition = function()
		      if(GetState()=="viewing_supplier") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSeed("merlot",200) == true) then
		      return GetString("tutorial_stockup_7_step_2");
		     else
		      return GetString("tutorial_stockup_7_step_2") .. " (" .. 200 - GetSeedQnt("merlot") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("merlot",200) == true) then
		      return GetString("tutorial_stockup_7_step_2");
		     else
		      return GetString("tutorial_stockup_7_step_2") .. " (" .. 200 - GetSeedQnt("merlot") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("merlot",200) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSeed("generic_grape",100) == true) then
		      return GetString("tutorial_stockup_7_step_3");
		     else
		      return GetString("tutorial_stockup_7_step_3") .. " (" .. 100 - GetSeedQnt("generic_grape") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSeed("generic_grape",100) == true) then
		      return GetString("tutorial_stockup_7_step_3");
		     else
		      return GetString("tutorial_stockup_7_step_3") .. " (" .. 100 - GetSeedQnt("generic_grape") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSeed("generic_grape",100) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     if(HasThisSupply("bottle_high_shoulder",100) == true) then
		      return GetString("tutorial_stockup_7_step_4");
		     else
		      return GetString("tutorial_stockup_7_step_4") .. " (" .. 100 - GetSupplyQnt("bottle_high_shoulder") ..GetString("to_go_txt");
		     end
		      end,
		    hint=function()
		     if(HasThisSupply("bottle_high_shoulder",100) == true) then
		      return GetString("tutorial_stockup_7_step_4");
		     else
		      return GetString("tutorial_stockup_7_step_4") .. " (" .. 100 - GetSupplyQnt("bottle_high_shoulder") ..GetString("to_go_txt");
		     end
		      end,
		    condition = function()
		      if(HasThisSupply("bottle_high_shoulder",100) == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  34 
austria_a = 
{
	condition = function ()
		if(HasThisSeed("semillon",5)) then
		     SetCondition("guild_deliver");
		    else
		     SetCondition("");
		    end
	end,
	accept = function ()
		UnlockQuest("spain","spain_semillon_grapes");    QueuePopUp("scripts/newlocations.lua");
	end,
	update = function ()
		if(GetScene()=="spain" and HasItem("went_to_spain")==false) then
		     GiveItem("went_to_spain");
		    end
	end,
	complete = function ()
		RemoveSeed("semillon",5);
		RemoveItem("went_to_spain");
		SetComplete(true);
		
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("austria_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("austria_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("austria_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("austria_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("austria_a_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("austria_a_step_1");
		    end,
		    hint=function()
		     return GetString("austria_a_step_1");
		    end,
		    condition = function()
		      if(HasItem("went_to_spain")) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("austria_a_step_2");
		    end,
		    hint=function()
		     return GetString("austria_a_step_2");
		    end,
		    condition = function()
		      if(HasThisSeed("semillon",5)) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("austria_a_step_3");
		    end,
		    hint=function()
		     return GetString("austria_a_step_3");
		    end,
		    condition = function()
		       return false;
		       end,
		  },
	},
}

-- Current Row:  35 
spain_semillon_grapes = 
{
	condition = function ()
		if(HasThisSeed("semillon",5)==false) then
		      SetCondition("guild_talk");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		GiveSeed("semillon",5);
	end,
	update = function ()
	end,
	complete = function ()
		UnlockQuest("spain", "spain_a");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_semillon_grapes_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("spain_semillon_grapes_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_semillon_grapes_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_semillon_grapes_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("spain_semillon_grapes_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("spain_semillon_grapes_step_1");
		      end,
		    hint=function()
		     return GetString("spain_semillon_grapes_step_1");
		      end,
		    condition = function()
		      if(HasThisSeed("semillon",5)==false) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("spain_semillon_grapes_step_2");
		      end,
		    hint=function()
		     return GetString("spain_semillon_grapes_step_2");
		      end,
		    condition = function()
		      if(GetScene()=="spain") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("spain_semillon_grapes_step_3");
		      end,
		    hint=function()
		     return GetString("spain_semillon_grapes_step_3");
		      end,
		    condition = function()
		      return false;
		       end,
		  },
	},
}

-- Current Row:  36 
greece_a = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
		GiveSeed("sauvignon_blanc", 3);     UnlockAcceptedQuest("canada", "canada_grapes_from_greece");     QueuePopUp("scripts/newlocations.lua");
	end,
	update = function ()
		return true;
	end,
	complete = function ()
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_a_confirmation"));
	end,
}

-- Current Row:  37 
canada_grapes_from_greece = 
{
	condition = function ()
		if(HasThisSeed("sauvignon_blanc",3)) then
		      SetCondition("guild_deliver");
		     else
		      SetCondition("");
		     end
	end,
	accept = function ()
		RemoveSeed("sauvignon_blanc", 3);
	end,
	update = function ()
	end,
	complete = function ()
		RemoveSeed("sauvignon_blanc", 3);
		UnlockQuest("canada", "canada_a");
		SetComplete(true);
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_grapes_from_greece_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_grapes_from_greece_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_grapes_from_greece_reminder"));
	end,
	steps = 
	{
		{ 
		    text=function()
		     return GetString("canada_grapes_from_greece_step_1");
		    end,
		    hint==function()
		     return GetString("canada_grapes_from_greece_step_1");
		    end,
		    condition = function()
		      if(GetScene()=="canada") then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
		  
		  { 
		    text=function()
		     return GetString("canada_grapes_from_greece_step_2");
		    end,
		    hint==function()
		     return GetString("canada_grapes_from_greece_step_2");
		    end,
		    condition = function()
		      if(false == true) then
		       return true;
		      else
		       return false;
		      end
		       end,
		  },
	},
}

-- Current Row:  38 
italy_b = 
{
	condition = function ()
		if(GetInventoryValue() > 0) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		SellAllWines(7);
		UnlockQuest("south_africa", "south_africa_a");
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_b_available"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_b_fulfilled"));
	end,
}

-- Current Row:  39 
canada_a = 
{
	condition = function ()
		if(HasThisLot("barolo",3,10) and HasThisLot("riesling",3,10)) then  
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling",3,10);
		RemoveWine("barolo",3,10);
		GiveBlend("syrah");
		GiveMoney(1000);
		QueueDisplayDialog({"scripts/newblend.lua"});
		if(HasItem("key_canada_b")) then
		RemoveItem("key_canada_b");
		UnlockQuest("canada", "canada_b");
		else
		GiveItem("key_canada_b")
		end
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("barolo",3,10)) then
		   return GetString("canada_a_step_1");
		  else
		   return GetString("canada_a_step_1") .. " (" .. 10 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("barolo",3,10)) then
		   return GetString("canada_a_step_1");
		  else
		   return GetString("canada_a_step_1") .. " (" .. 10 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",3,10)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("riesling",3,10)) then
		   return GetString("canada_a_step_2");
		  else
		   return GetString("canada_a_step_2") .. " (" .. 10 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("riesling",3,10)) then
		   return GetString("canada_a_step_2");
		  else
		   return GetString("canada_a_step_2") .. " (" .. 10 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",3,10)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_a_step_3");
		   end,
		 hint=function()
		   return GetString("canada_a_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  40 
south_africa_a = 
{
	condition = function ()
		if(HasThisLot("gewurztraminer",2,15)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gewurztraminer",2,15);
		GiveMoney(1000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",2,15)) then
		   return GetString("south_africa_a_step_1");
		  else
		   return GetString("south_africa_a_step_1") .. " (" .. 15 - GetWineQnt("gewurztraminer",2) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("gewurztraminer",2,15)) then
		   return GetString("south_africa_a_step_1");
		  else
		   return GetString("south_africa_a_step_1") .. " (" .. 15 - GetWineQnt("gewurztraminer",2) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",2,15)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_a_step_2");
		   end,
		 hint=function()
		   return GetString("south_africa_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  41 
spain_a = 
{
	condition = function ()
		if(HasThisSeed("nebbiolo", 50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveSeed("nebbiolo",50)
		GiveMoney(2000);
		UnlockQuest("hungary", "hungary_a");
		if(HasItem("key_canada_b")) then
		RemoveItem("key_canada_b");
		UnlockQuest("canada", "canada_b");
		else
		GiveItem("key_canada_b")
		end
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("spain_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("spain_a_reminder"));
	end,
}

-- Current Row:  42 
canada_b = 
{
	condition = function ()
		if(HasThisLot("syrah",3,15) and HasThisLot("riesling",3,15)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling",3,15);
		RemoveWine("syrah",3,15);
		GiveBlend("chianti");
		GiveMoney(1000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		UnlockQuest("germany", "germany_a");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("syrah",3,15)) then
		   return GetString("canada_b_step_1");
		  else
		   return GetString("canada_b_step_1") .. " (" .. 15 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("syrah",3,15)) then
		   return GetString("canada_b_step_1");
		  else
		   return GetString("canada_b_step_1") .. " (" .. 15 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("syrah",3,15)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("riesling",3,15)) then
		   return GetString("canada_b_step_2");
		  else
		   return GetString("canada_b_step_2") .. " (" .. 15 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("riesling",3,15)) then
		   return GetString("canada_b_step_2");
		  else
		   return GetString("canada_b_step_2") .. " (" .. 15 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",3,15)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_b_step_3");
		   end,
		 hint=function()
		   return GetString("canada_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  43 
hungary_a = 
{
	condition = function ()
		if(HasThisLot("chianti",3,15)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("chianti",3,15);
		GiveMoney(2000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("hungary_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("hungary_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("hungary_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("hungary_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("hungary_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chianti",3,15)) then
		   return GetString("hungary_a_step_1");
		  else
		   return GetString("hungary_a_step_1") .. " (" .. 15 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("chianti",3,15)) then
		   return GetString("hungary_a_step_1");
		  else
		   return GetString("hungary_a_step_1") .. " (" .. 15 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",3,15)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("hungary_a_step_2");
		   end,
		 hint=function()
		   return GetString("hungary_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  44 
germany_a = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",2,20) and HasThisLot("barolo",2,30)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon",2,20);
		RemoveWine("barolo",2,30);
		GiveBlend("sauvignon_blanc");
		GiveMoney(2000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		UnlockQuest("south_africa", "south_africa_b");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("cabernet_sauvignon",2,20)) then
		   return GetString("germany_a_step_1");
		  else
		   return GetString("germany_a_step_1") .. " (" .. 20 - GetWineQnt("cabernet_sauvignon",2) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("cabernet_sauvignon",2,20)) then
		   return GetString("germany_a_step_1");
		  else
		   return GetString("germany_a_step_1") .. " (" .. 20 - GetWineQnt("cabernet_sauvignon",2) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("cabernet_sauvignon",2,20)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("barolo",2,30)) then
		   return GetString("germany_a_step_2");
		  else
		   return GetString("germany_a_step_2") .. " (" .. 30 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("barolo",2,30)) then
		   return GetString("germany_a_step_2");
		  else
		   return GetString("germany_a_step_2") .. " (" .. 30 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",2,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("germany_a_step_3");
		   end,
		 hint=function()
		   return GetString("germany_a_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  45 
south_africa_b = 
{
	condition = function ()
		if(HasThisLot("sauvignon_blanc",4,50) and HasThisLot("syrah",4,50) and HasThisLot("riesling",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("sauvignon_blanc",4,50);
		RemoveWine("syrah",4,50);
		RemoveWine("riesling",4,50);
		GiveMoney(2000);
		UnlockWinery("south_africa");
		UnlockQuest("spain","spain_b");
		UnlockQuest("greece","greece_b");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",4,50)) then
		   return GetString("south_africa_b_step_1");
		  else
		   return GetString("south_africa_b_step_1") .. " (" .. 50 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("sauvignon_blanc",4,50)) then
		   return GetString("south_africa_b_step_1");
		  else
		   return GetString("south_africa_b_step_1") .. " (" .. 50 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("syrah",4,50)) then
		   return GetString("south_africa_b_step_2");
		  else
		   return GetString("south_africa_b_step_2") .. " (" .. 50 - GetWineQnt("syrah",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("syrah",4,50)) then
		   return GetString("south_africa_b_step_2");
		  else
		   return GetString("south_africa_b_step_2") .. " (" .. 50 - GetWineQnt("syrah",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("syrah",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("riesling",4,50)) then
		   return GetString("south_africa_b_step_3");
		  else
		   return GetString("south_africa_b_step_3") .. " (" .. 50 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("riesling",4,50)) then
		   return GetString("south_africa_b_step_3");
		  else
		   return GetString("south_africa_b_step_3") .. " (" .. 50 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_b_step_4");
		   end,
		 hint=function()
		   return GetString("south_africa_b_step_4");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  46 
spain_b = 
{
	condition = function ()
		if(GetInventoryValue() > 0) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		SellAllWines(10);
		UnlockQuest("portugal", "portugal_a");
		QueuePopUp("scripts/newlocations.lua");
		GiveBlend("tempranillo");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_b_available"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_b_fulfilled"));
	end,
}

-- Current Row:  47 
greece_b = 
{
	condition = function ()
		if(HasThisLot("merlot",3,20) and HasThisLot("sauvignon_blanc",3,20)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("sauvignon_blanc",3,20);
		RemoveWine("merlot",3,20);
		GiveMoney(1500);
		UnlockQuest("georgia", "georgia_a");
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("merlot",3,20)) then
		   return GetString("greece_b_step_1");
		  else
		   return GetString("greece_b_step_1") .. " (" .. 20 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("merlot",3,20)) then
		    return GetString("greece_b_step_1");
		  else
		   return GetString("greece_b_step_1") .. " (" .. 20 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("merlot",3,20)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",3,20)) then
		   return GetString("greece_b_step_2");
		  else
		   return GetString("greece_b_step_2") .. " (" .. 20 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("sauvignon_blanc",3,20)) then
		   return GetString("greece_b_step_2");
		  else
		   return GetString("greece_b_step_2") .. " (" .. 20 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",3,20)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("greece_b_step_3");
		   end,
		 hint=function()
		   return GetString("greece_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  48 
portugal_a = 
{
	condition = function ()
		if(HasThisLot("chianti",3,20)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("chianti",3,20);
		GiveMoney(2000);
		UnlockQuest("austria","austria_b")
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("portugal_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("portugal_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("portugal_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("portugal_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("portugal_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chianti",3,20)) then
		   return GetString("portugal_a_step_1");
		  else
		   return GetString("portugal_a_step_1") .. " (" .. 20 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("chianti",3,20)) then
		   return GetString("portugal_a_step_1");
		  else
		   return GetString("portugal_a_step_1") .. " (" .. 20 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",3,20)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("portugal_a_step_2");
		   end,
		 hint=function()
		   return GetString("portugal_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  49 
georgia_a = 
{
	condition = function ()
		if(HasThisLot("tempranillo",4,30)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("tempranillo",4,30);
		GiveMoney(1500);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("georgia_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("georgia_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("georgia_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("tempranillo",4,30)) then
		   return GetString("georgia_a_step_1");
		  else
		   return GetString("georgia_a_step_1") .. " (" .. 30 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("tempranillo",4,30)) then
		   return GetString("georgia_a_step_1");
		  else
		   return GetString("georgia_a_step_1") .. " (" .. 30 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("tempranillo",4,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("georgia_a_step_2");
		   end,
		 hint=function()
		   return GetString("georgia_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  50 
austria_b = 
{
	condition = function ()
		if(HasThisLot("cabernet_sauvignon",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
		
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon",4,50);
		GiveMoney(3000);
		UnlockQuest("portugal","portugal_b");
		UnlockQuest("canada","canada_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("austria_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("austria_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("austria_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("austria_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("austria_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("cabernet_sauvignon",4,50)) then
		   return GetString("austria_b_step_1");
		  else
		   return GetString("austria_b_step_1") .. " (" .. 50 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("cabernet_sauvignon",4,50)) then
		   return GetString("austria_b_step_1");
		  else
		   return GetString("austria_b_step_1") .. " (" .. 50 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("cabernet_sauvignon",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("austria_b_step_2");
		   end,
		 hint=function()
		   return GetString("austria_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  51 
canada_c = 
{
	condition = function ()
		if(HasThisLot("riesling",3,30) and HasThisLot("sauvignon_blanc",3,30)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling",3,30);
		RemoveWine("sauvignon_blanc",3,30);
		GiveMoney(2500);
		GiveBlend("spumanti");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("riesling",3,30)) then
		   return GetString("canada_c_step_1");
		  else
		   return GetString("canada_c_step_1") .. " (" .. 30 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("riesling",3,30)) then
		   return GetString("canada_c_step_1");
		  else
		   return GetString("canada_c_step_1") .. " (" .. 30 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",3,30)) then
		   return GetString("canada_c_step_2");
		  else
		   return GetString("canada_c_step_2") .. " (" .. 30 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("sauvignon_blanc",3,30)) then
		   return GetString("canada_c_step_2");
		  else
		   return GetString("canada_c_step_2") .. " (" .. 30 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_c_step_3");
		   end,
		 hint=function()
		   return GetString("canada_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  52 
portugal_b = 
{
	condition = function ()
		if(HasThisLot("spumanti",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
		
	end,
	accept = function ()
		UnlockQuest("georgia","georgia_b")
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("spumanti",4,50);
		GiveMoney(3000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("portugal_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("portugal_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("portugal_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("portugal_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("portugal_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("spumanti",4,50)) then
		   return GetString("portugal_b_step_1");
		  else
		   return GetString("portugal_b_step_1") .. " (" .. 50 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("spumanti",4,50)) then
		   return GetString("portugal_b_step_1");
		  else
		   return GetString("portugal_b_step_1") .. " (" .. 50 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("portugal_b_step_2");
		   end,
		 hint=function()
		   return GetString("portugal_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  53 
georgia_b = 
{
	condition = function ()
		if(HasThisLot("spumanti",4,100)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
		
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("spumanti",4,100);
		GiveMoney(5000);
		UnlockQuest("south_africa","south_africa_c");
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		GiveBlend("chardonnay");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("georgia_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("georgia_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("georgia_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("spumanti",4,100)) then
		   return GetString("georgia_b_step_1");
		  else
		   return GetString("georgia_b_step_1") .. " (" .. 100 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("spumanti",4,100)) then
		   return GetString("georgia_b_step_1");
		  else
		   return GetString("georgia_b_step_1") .. " (" .. 100 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("georgia_b_step_2");
		   end,
		 hint=function()
		   return GetString("georgia_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  54 
south_africa_c = 
{
	condition = function ()
		if(HasThisLot("merlot",4,30)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot",4,30);
		GiveMoney(2000);
		UnlockQuest("georgia","georgia_c");
		UnlockQuest("portugal","portugal_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("merlot",4,30)) then
		   return GetString("south_africa_c_step_1");
		  else
		   return GetString("south_africa_c_step_1") .. " (" .. 30 - GetWineQnt("merlot",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("merlot",4,30)) then
		   return GetString("south_africa_c_step_1");
		  else
		   return GetString("south_africa_c_step_1") .. " (" .. 30 - GetWineQnt("merlot",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("merlot",4,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_c_step_2");
		   end,
		 hint=function()
		   return GetString("south_africa_c_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  55 
portugal_c = 
{
	condition = function ()
		if(HasThisLot("gewurztraminer",4,100) and HasThisLot("cabernet_sauvignon",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon",4,50);
		RemoveWine("gewurztraminer",4,100);
		GiveMoney(5000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("portugal_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("portugal_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("portugal_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("portugal_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("portugal_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",4,100)) then
		   return GetString("portugal_c_step_1");
		  else
		   return GetString("portugal_c_step_1") .. " (" .. 100 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("gewurztraminer",4,100)) then
		   return GetString("portugal_c_step_1");
		  else
		   return GetString("portugal_c_step_1") .. " (" .. 100 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("cabernet_sauvignon",4,50)) then
		   return GetString("portugal_c_step_2");
		  else
		   return GetString("portugal_c_step_2") .. " (" .. 50 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("cabernet_sauvignon",4,50)) then
		   return GetString("portugal_c_step_2");
		  else
		   return GetString("portugal_c_step_2") .. " (" .. 50 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("cabernet_sauvignon",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("portugal_c_step_3");
		   end,
		 hint=function()
		   return GetString("portugal_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  56 
georgia_c = 
{
	condition = function ()
		if(HasThisLot("gewurztraminer",4,50) and HasThisLot("cabernet_sauvignon",4,100)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("cabernet_sauvignon",4,100);
		RemoveWine("gewurztraminer",4,50);
		GiveMoney(5000);
		UnlockQuest("portugal","portugal_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("georgia_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("georgia_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("georgia_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("cabernet_sauvignon",4,100)) then
		   return GetString("georgia_c_step_1");
		  else
		   return GetString("georgia_c_step_1") .. " (" .. 100 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("cabernet_sauvignon",4,100)) then
		   return GetString("georgia_c_step_1");
		  else
		   return GetString("georgia_c_step_1") .. " (" .. 100 - GetWineQnt("cabernet_sauvignon",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("cabernet_sauvignon",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",4,50)) then
		   return GetString("georgia_c_step_2");
		  else
		   return GetString("georgia_c_step_2") .. " (" .. 50 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("gewurztraminer",4,50)) then
		   return GetString("georgia_c_step_2");
		  else
		   return GetString("georgia_c_step_2") .. " (" .. 50 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("georgia_c_step_3");
		   end,
		 hint=function()
		   return GetString("georgia_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  57 
portugal_d = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
		UnlockAcceptedQuest("georgia","georgia_d")
	end,
	update = function ()
		if(HasItem("georgia_d_completed")) then
		RemoveItem("georgia_d_completed")
		return true;
		else
		return false;
		end;
	end,
	complete = function ()
		UnlockWinery("portugal");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("portugal_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("portugal_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("portugal_d_pending"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("portugal_d_reminder"));
	end,
}

-- Current Row:  58 
georgia_d = 
{
	condition = function ()
		SetCondition("guild_talk");
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		GiveMoney(2000);
		GiveItem("georgia_d_completed");
		UnlockQuest("australia","australia_a");
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_d_fulfilled"));
	end,
}

-- Current Row:  59 
australia_a = 
{
	condition = function ()
		if(GetInventoryValue() > 0) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		SellAllWines(15);
		UnlockQuest("france","france_a");
		UnlockQuest("brazil","brazil_a");
		UnlockQuest("portugal","portugal_e");
		UnlockQuest("spain","spain_c");
		UnlockQuest("germany","germany_b");
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("australia_a_available"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("australia_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("australia_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("australia_a_reminder"));
	end,
}

-- Current Row:  60 
france_a = 
{
	condition = function ()
		if(HasThisLot("vinho_verde",4,30)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("vinho_verde",4,30);
		GiveMoney(3000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",4,30)) then
		   return GetString("france_a_step_1");
		  else
		   return GetString("france_a_step_1") .. " (" .. 30 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("vinho_verde",4,30)) then
		   return GetString("france_a_step_1");
		  else
		   return GetString("france_a_step_1") .. " (" .. 30 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",4,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_a_step_2");
		   end,
		 hint=function()
		   return GetString("france_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  61 
brazil_a = 
{
	condition = function ()
		if(HasThisLot("merlot",3,30) and HasThisLot("vinho_verde",3,30)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot",3,30);
		RemoveWine("vinho_verde",3,30);
		GiveMoney(4000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("brazil_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("brazil_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("brazil_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("brazil_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("brazil_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("merlot",3,30)) then
		   return GetString("brazil_a_step_1");
		  else
		   return GetString("brazil_a_step_1") .. " (" .. 30 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("merlot",3,30)) then
		   return GetString("brazil_a_step_1");
		  else
		   return GetString("brazil_a_step_1") .. " (" .. 30 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("merlot",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",3,30)) then
		   return GetString("brazil_a_step_2");
		  else
		   return GetString("brazil_a_step_2") .. " (" .. 30 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("vinho_verde",3,30)) then
		   return GetString("brazil_a_step_2");
		  else
		   return GetString("brazil_a_step_2") .. " (" .. 30 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("brazil_a_step_3");
		   end,
		 hint=function()
		   return GetString("brazil_a_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  62 
portugal_e = 
{
	condition = function ()
		if(HasThisLot("spumanti",4,50) and HasThisLot("tempranillo",4,50) and HasThisLot("chianti",4,50)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("spumanti",4,50);
		RemoveWine("tempranillo",4,50);
		RemoveWine("chianti",4,50);
		GiveMoney(6000);
		GiveBlend("vinho_verde");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("portugal_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("portugal_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("portugal_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("portugal_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("portugal_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("spumanti",4,50)) then
		   return GetString("portugal_e_step_1");
		  else
		   return GetString("portugal_e_step_1") .. " (" .. 50 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("spumanti",4,50)) then
		   return GetString("portugal_e_step_1");
		  else
		   return GetString("portugal_e_step_1") .. " (" .. 50 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("tempranillo",4,50)) then
		   return GetString("portugal_e_step_2");
		  else
		   return GetString("portugal_e_step_2") .. " (" .. 50 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("tempranillo",4,50)) then
		   return GetString("portugal_e_step_2");
		  else
		   return GetString("portugal_e_step_2") .. " (" .. 50 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("tempranillo",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("chianti",4,50)) then
		   return GetString("portugal_e_step_3");
		  else
		   return GetString("portugal_e_step_3") .. " (" .. 50 - GetWineQnt("chianti",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chianti",4,50)) then
		   return GetString("portugal_e_step_3");
		  else
		   return GetString("portugal_e_step_3") .. " (" .. 50 - GetWineQnt("chianti",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("portugal_e_step_4");
		   end,
		 hint=function()
		   return GetString("portugal_e_step_4");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  63 
spain_c = 
{
	condition = function ()
		if(HasThisLot("sauvignon_blanc",3,30)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("sauvignon_blanc",3,30);
		GiveMoney(1500);
		UnlockQuest("austria","austria_c")
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("spain_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("spain_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",3,30)) then
		   return GetString("spain_c_step_1");
		  else
		   return GetString("spain_c_step_1") .. " (" .. 30 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("sauvignon_blanc",3,30)) then
		   return GetString("spain_c_step_1");
		  else
		   return GetString("spain_c_step_1") .. " (" .. 30 - GetWineQnt("sauvignon_blanc",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("spain_c_step_2");
		   end,
		 hint=function()
		   return GetString("spain_c_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  64 
germany_b = 
{
	condition = function ()
		if( HasThisLot("gewurztraminer",3,50) and HasThisLot("barolo",3,50)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gewurztraminer",3,50);
		RemoveWine("barolo",3,50);
		GiveMoney(3000);
		UnlockQuest("hungary","hungary_b");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",3,50)) then
		   return GetString("germany_b_step_1");
		  else
		   return GetString("germany_b_step_1") .. " (" .. 50 - GetWineQnt("gewurztraminer",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gewurztraminer",3,50)) then
		   return GetString("germany_b_step_1");
		  else
		   return GetString("germany_b_step_1") .. " (" .. 50 - GetWineQnt("gewurztraminer",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",3,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("barolo",3,50)) then
		   return GetString("germany_b_step_2");
		  else
		   return GetString("germany_b_step_2") .. " (" .. 50 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("barolo",3,50)) then
		   return GetString("germany_b_step_2");
		  else
		   return GetString("germany_b_step_2") .. " (" .. 50 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",3,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("germany_b_step_3");
		   end,
		 hint=function()
		   return GetString("germany_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  65 
hungary_b = 
{
	condition = function ()
		if(HasThisLot("syrah",3,50) and HasThisLot("barolo",3,50)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("syrah",3,50);
		RemoveWine("barolo",3,50);
		GiveMoney(3000);
		UnlockQuest("greece","greece_c");
		GiveBlend("rose");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("hungary_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("hungary_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("hungary_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("hungary_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("hungary_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("syrah",3,50)) then
		   return GetString("hungary_b_step_1");
		  else
		   return GetString("hungary_b_step_1") .. " (" .. 50 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("syrah",3,50)) then
		   return GetString("hungary_b_step_1");
		  else
		   return GetString("hungary_b_step_1") .. " (" .. 50 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("syrah",3,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("barolo",3,50)) then
		   return GetString("hungary_b_step_2");
		  else
		   return GetString("hungary_b_step_2") .. " (" .. 50 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("barolo",3,50)) then
		   return GetString("hungary_b_step_2");
		  else
		   return GetString("hungary_b_step_2") .. " (" .. 50 - GetWineQnt("barolo",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",3,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("hungary_b_step_3");
		   end,
		 hint=function()
		   return GetString("hungary_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  66 
austria_c = 
{
	condition = function ()
		if( HasThisLot("rose",4,50) and HasThisLot("barolo",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("rose",4,50);
		RemoveWine("barolo",4,50);
		GiveMoney(3000);
		UnlockQuest("italy","italy_c");
		UnlockQuest("france","france_b");
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("austria_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("austria_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("austria_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("austria_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("austria_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("rose",4,50)) then
		   return GetString("austria_c_step_1");
		  else
		   return GetString("austria_c_step_1") .. " (" .. 50 - GetWineQnt("rose",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("rose",4,50)) then
		   return GetString("austria_c_step_1");
		  else
		   return GetString("austria_c_step_1") .. " (" .. 50 - GetWineQnt("rose",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("rose",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("barolo",4,50)) then
		   return GetString("austria_c_step_2");
		  else
		   return GetString("austria_c_step_2") .. " (" .. 50 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("barolo",4,50)) then
		   return GetString("austria_c_step_2");
		  else
		   return GetString("austria_c_step_2") .. " (" .. 50 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("austria_c_step_3");
		   end,
		 hint=function()
		   return GetString("austria_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  67 
greece_c = 
{
	condition = function ()
		if(HasThisLot("malbec",4,50) and
		HasThisLot("chardonnay",4,50)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
		GiveBlend("malbec");
		QueueDisplayDialog({"scripts/newblend.lua"});
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("malbec",4,50);
		RemoveWine("chardonnay",4,50);
		GiveMoney(3000);
		UnlockQuest("brazil","brazil_b");
		UnlockQuest("canada","canada_d");
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("malbec",4,50)) then
		   return GetString("greece_c_step_1");
		  else
		   return GetString("greece_c_step_1") .. " (" .. 50 - GetWineQnt("malbec",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("malbec",4,50)) then
		   return GetString("greece_c_step_1");
		  else
		   return GetString("greece_c_step_1") .. " (" .. 50 - GetWineQnt("malbec",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("malbec",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("chardonnay",4,50)) then
		   return GetString("greece_c_step_2");
		  else
		   return GetString("greece_c_step_2") .. " (" .. 50 - GetWineQnt("chardonnay",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chardonnay",4,50)) then
		   return GetString("greece_c_step_2");
		  else
		   return GetString("greece_c_step_2") .. " (" .. 50 - GetWineQnt("chardonnay",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chardonnay",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("greece_c_step_3");
		   end,
		 hint=function()
		   return GetString("greece_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  68 
italy_c = 
{
	condition = function ()
		if ( HasThisLot("vinho_verde",3,100) ) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("vinho_verde",3,100);
		GiveMoney(5000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",3,100)) then
		   return GetString("italy_c_step_1");
		  else
		   return GetString("italy_c_step_1") .. " (" .. 100 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("vinho_verde",3,100)) then
		   return GetString("italy_c_step_1");
		  else
		   return GetString("italy_c_step_1") .. " (" .. 100 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("italy_c_step_2");
		   end,
		 hint=function()
		   return GetString("italy_c_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  69 
france_b = 
{
	condition = function ()
		if (HasThisLot("riesling",4,50) and
		HasThisLot("sauvignon_blanc",4,50))
		then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling",4,50);
		RemoveWine("sauvignon_blanc",4,50);
		GiveMoney(5000);
		UnlockQuest("germany","germany_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("riesling",4,50)) then
		   return GetString("france_b_step_1");
		  else
		   return GetString("france_b_step_1") .. " (" .. 50 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("riesling",4,50)) then
		   return GetString("france_b_step_1");
		  else
		   return GetString("france_b_step_1") .. " (" .. 50 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",4,50)) then
		   return GetString("france_b_step_2");
		  else
		   return GetString("france_b_step_2") .. " (" .. 50 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("sauvignon_blanc",4,50)) then
		   return GetString("france_b_step_2");
		  else
		   return GetString("france_b_step_2") .. " (" .. 50 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",4,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_b_step_3");
		   end,
		 hint=function()
		   return GetString("france_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  70 
brazil_b = 
{
	condition = function ()
		if (HasThisLot("gewurztraminer",3,70))
		then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gewurztraminer",3,70);
		GiveMoney(3000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("brazil_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("brazil_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("brazil_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("brazil_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("brazil_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",3,70)) then
		   return GetString("brazil_b_step_1");
		  else
		   return GetString("brazil_b_step_1") .. " (" .. 70 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gewurztraminer",3,70)) then
		   return GetString("brazil_b_step_1");
		  else
		   return GetString("brazil_b_step_1") .. " (" .. 70 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",3,70)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("brazil_b_step_2");
		   end,
		 hint=function()
		   return GetString("brazil_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  71 
canada_d = 
{
	condition = function ()
		if(HasThisLot("rose",3,30) and
		HasThisLot("chianti",3,30))
		then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("rose",3,30);
		RemoveWine("chianti",3,30);
		GiveMoney(5000);
		UnlockQuest("south_africa","south_africa_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("rose",3,30)) then
		   return GetString("canada_d_step_1");
		  else
		   return GetString("canada_d_step_1") .. " (" .. 30 - GetWineQnt("rose",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("rose",3,30)) then
		   return GetString("canada_d_step_1");
		  else
		   return GetString("canada_d_step_1") .. " (" .. 30 - GetWineQnt("rose",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("rose",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("chianti",3,30)) then
		   return GetString("canada_d_step_2");
		  else
		   return GetString("canada_d_step_2") .. " (" .. 30 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chianti",3,30)) then
		   return GetString("canada_d_step_2");
		  else
		   return GetString("canada_d_step_2") .. " (" .. 30 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",3,30)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_d_step_3");
		   end,
		 hint=function()
		   return GetString("canada_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  72 
germany_c = 
{
	condition = function ()
		if(HasThisLot("rose",4,100)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("rose",4,100);
		GiveMoney(4000);
		UnlockQuest("france","france_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("rose",4,100)) then
		   return GetString("germany_c_step_1");
		  else
		   return GetString("germany_c_step_1") .. " (" .. 100 - GetWineQnt("rose",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("rose",4,100)) then
		   return GetString("germany_c_step_1");
		  else
		   return GetString("germany_c_step_1") .. " (" .. 100 - GetWineQnt("rose",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("rose",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("germany_c_step_2");
		   end,
		 hint=function()
		   return GetString("germany_c_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  73 
south_africa_d = 
{
	condition = function ()
		if(HasThisLot("barolo",4,100)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("barolo",4,100);
		GiveMoney(3000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("barolo",4,100)) then
		   return GetString("south_africa_d_step_1");
		  else
		   return GetString("south_africa_d_step_1") .. " (" .. 100 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("barolo",4,100)) then
		   return GetString("south_africa_d_step_1");
		  else
		   return GetString("south_africa_d_step_1") .. " (" .. 100 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_d_step_2");
		   end,
		 hint=function()
		   return GetString("south_africa_d_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  74 
france_c = 
{
	condition = function ()
		if (HasThisLot("vinho_verde",4,150) and
		HasThisLot("tempranillo",4,150) and
		HasThisLot("spumanti",4,150))then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("vinho_verde",4,150);
		RemoveWine("tempranillo",4,150);
		RemoveWine("spumanti",4,150);
		GiveMoney(8500);
		UnlockQuest("italy","italy_d");
		UnlockQuest("brazil","brazil_d");
		SetComplete(true);
		UnlockWinery("france");
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",4,150)) then
		   return GetString("france_c_step_1");
		  else
		   return GetString("france_c_step_1") .. " (" .. 150 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("vinho_verde",4,150)) then
		   return GetString("france_c_step_1");
		  else
		   return GetString("france_c_step_1") .. " (" .. 150 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("tempranillo",4,150)) then
		   return GetString("france_c_step_2");
		  else
		   return GetString("france_c_step_2") .. " (" .. 150 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("tempranillo",4,150)) then
		   return GetString("france_c_step_2");
		  else
		   return GetString("france_c_step_2") .. " (" .. 150 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("tempranillo",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("spumanti",4,150)) then
		   return GetString("france_c_step_3");
		  else
		   return GetString("france_c_step_3") .. " (" .. 150 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("spumanti",4,150)) then
		   return GetString("france_c_step_3");
		  else
		   return GetString("france_c_step_3") .. " (" .. 150 - GetWineQnt("spumanti",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_c_step_4");
		   end,
		 hint=function()
		   return GetString("france_c_step_4");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  75 
italy_d = 
{
	condition = function ()
		if(HasThisLot("syrah",3,70) and
		HasThisLot("spumanti",3,70)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("syrah",3,70);
		RemoveWine("spumanti",3,70);
		GiveMoney(3000);
		UnlockQuest("france","france_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("syrah",3,70)) then
		   return GetString("italy_d_step_1");
		  else
		   return GetString("italy_d_step_1") .. " (" .. 70 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("syrah",3,70)) then
		   return GetString("italy_d_step_1");
		  else
		   return GetString("italy_d_step_1") .. " (" .. 70 - GetWineQnt("syrah",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("syrah",3,70)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("spumanti",3,70)) then
		   return GetString("italy_d_step_2");
		  else
		   return GetString("italy_d_step_2") .. " (" .. 70 - GetWineQnt("spumanti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("spumanti",3,70)) then
		   return GetString("italy_d_step_2");
		  else
		   return GetString("italy_d_step_2") .. " (" .. 70 - GetWineQnt("spumanti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",3,70)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("italy_d_step_3");
		   end,
		 hint=function()
		   return GetString("italy_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  76 
brazil_d = 
{
	condition = function ()
		SetCondition("");
	end,
	accept = function ()
		UnlockQuest("argentina","argentina_a");
		QueuePopUp("scripts/newlocations.lua");
	end,
	update = function ()
		if(HasItem("talked_to_argentina"))then
		RemoveItem("talked_to_argentina");
		return true;
		else
		return false;
		end
	end,
	complete = function ()
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("brazil_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("brazil_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("brazil_d_pending"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("brazil_d_reminder"));
	end,
}

-- Current Row:  77 
argentina_a = 
{
	condition = function ()
		if(HasThisLot("malbec",3,80)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
		GiveItem("talked_to_argentina");
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("malbec",3,80);
		GiveMoney(3000);
		GiveBlend("petite_sirah");
		--UnlockQuest("france","france_d");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("argentina_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("argentina_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("argentina_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("argentina_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("argentina_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("malbec",3,80)) then
		   return GetString("argentina_a_step_1");
		  else
		   return GetString("argentina_a_step_1") .. " (" .. 80 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("malbec",3,80)) then
		   return GetString("argentina_a_step_1");
		  else
		   return GetString("argentina_a_step_1") .. " (" .. 80 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("malbec",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("argentina_a_step_2");
		   end,
		 hint=function()
		   return GetString("argentina_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  78 
france_d = 
{
	condition = function ()
		if(HasThisLot("petite_sirah",3,80)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
		
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("petite_sirah",3,80);
		GiveMoney(3000);
		GiveBlend("champagne");
		UnlockQuest("australia","australia_b");
		UnlockQuest("hungary","hungary_c");
		UnlockQuest("spain","spain_d");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("petite_sirah",3,80)) then
		   return GetString("france_d_step_1");
		  else
		   return GetString("france_d_step_1") .. " (" .. 80 - GetWineQnt("petite_sirah",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("petite_sirah",3,80)) then
		   return GetString("france_d_step_1");
		  else
		   return GetString("france_d_step_1") .. " (" .. 80 - GetWineQnt("petite_sirah",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("petite_sirah",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_d_step_2");
		   end,
		 hint=function()
		   return GetString("france_d_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  79 
hungary_c = 
{
	condition = function ()
		if(HasThisLot("champagne",3,80) and HasThisLot("chardonnay",3,80)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("champagne",3,80);
		RemoveWine("chardonnay",3,80);
		GiveMoney(3000);
		GiveBlend("gamay");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
		
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("hungary_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("hungary_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("hungary_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("hungary_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("hungary_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chardonnay",3,80)) then
		   return GetString("hungary_c_step_1");
		  else
		   return GetString("hungary_c_step_1") .. " (" .. 80 - GetWineQnt("chardonnay",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chardonnay",3,80)) then
		   return GetString("hungary_c_step_1");
		  else
		   return GetString("hungary_c_step_1") .. " (" .. 80 - GetWineQnt("chardonnay",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chardonnay",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("champagne",3,80)) then
		   return GetString("hungary_c_step_2");
		  else
		   return GetString("hungary_c_step_2") .. " (" .. 80 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("champagne",3,80)) then
		   return GetString("hungary_c_step_2");
		  else
		   return GetString("hungary_c_step_2") .. " (" .. 80 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("hungary_c_step_3");
		   end,
		 hint=function()
		   return GetString("hungary_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  80 
spain_d = 
{
	condition = function ()
		if(HasThisLot("vinho_verde",4,100) and
		HasThisLot("malbec",4,100)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("malbec",4,100);
		RemoveWine("vinho_verde",4,100);
		GiveMoney(6000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("spain_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("spain_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("malbec",4,100)) then
		   return GetString("spain_d_step_1");
		  else
		   return GetString("spain_d_step_1") .. " (" .. 100 - GetWineQnt("malbec",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("malbec",4,100)) then
		   return GetString("spain_d_step_1");
		  else
		   return GetString("spain_d_step_1") .. " (" .. 100 - GetWineQnt("malbec",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("malbec",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",4,100)) then
		   return GetString("spain_d_step_2");
		  else
		   return GetString("spain_d_step_2") .. " (" .. 100 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("vinho_verde",4,100)) then
		   return GetString("spain_d_step_2");
		  else
		   return GetString("spain_d_step_2") .. " (" .. 100 - GetWineQnt("vinho_verde",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("spain_d_step_3");
		   end,
		 hint=function()
		   return GetString("spain_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  81 
australia_b = 
{
	condition = function ()
		if(HasThisLot("champagne",3,100)) then 
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("champagne",3,100);
		GiveMoney(5000);
		UnlockQuest("usa","usa_a");
		UnlockQuest("argentina","argentina_b");
		UnlockQuest("georgia","georgia_e");
		QueuePopUp("scripts/newlocations.lua");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("australia_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("australia_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("australia_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("australia_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("australia_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("champagne",3,100)) then
		   return GetString("australia_b_step_1");
		  else
		   return GetString("australia_b_step_1") .. " (" .. 100 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("champagne",3,100)) then
		   return GetString("australia_b_step_1");
		  else
		   return GetString("australia_b_step_1") .. " (" .. 100 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("australia_b_step_2");
		   end,
		 hint=function()
		   return GetString("australia_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  82 
usa_a = 
{
	condition = function ()
		if(HasThisLot("gamay",3,50)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gamay",3,50);
		GiveMoney(2000);
		UnlockQuest("hungary","hungary_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("usa_a_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("usa_a_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("usa_a_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("usa_a_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("usa_a_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gamay",3,50)) then
		   return GetString("usa_a_step_1");
		  else
		   return GetString("usa_a_step_1") .. " (" .. 50 - GetWineQnt("gamay",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gamay",3,50)) then
		   return GetString("usa_a_step_1");
		  else
		   return GetString("usa_a_step_1") .. " (" .. 50 - GetWineQnt("gamay",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gamay",3,50)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("usa_a_step_2");
		   end,
		 hint=function()
		   return GetString("usa_a_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  83 
argentina_b = 
{
	condition = function ()
		if(HasThisLot("semillon",4,80)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("semillon",4,80);
		GiveMoney(2000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("argentina_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("argentina_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("argentina_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("argentina_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("argentina_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("semillon",4,80)) then
		   return GetString("argentina_b_step_1");
		  else
		   return GetString("argentina_b_step_1") .. " (" .. 80 - GetWineQnt("semillon",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("semillon",4,80)) then
		   return GetString("argentina_b_step_1");
		  else
		   return GetString("argentina_b_step_1") .. " (" .. 80 - GetWineQnt("semillon",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("semillon",4,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("argentina_b_step_2");
		   end,
		 hint=function()
		   return GetString("argentina_b_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  84 
georgia_e = 
{
	condition = function ()
		if(HasThisLot("petite_sirah",3,80) and HasThisLot("gamay",3,80)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("petite_sirah",3,80);
		RemoveWine("gamay",3,80);
		GiveMoney(5000);
		GiveBlend("semillon");
		UnlockQuest("usa","usa_b");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("georgia_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("georgia_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("georgia_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gamay",3,80)) then
		   return GetString("georgia_e_step_1");
		  else
		   return GetString("georgia_e_step_1") .. " (" .. 80 - GetWineQnt("gamay",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gamay",3,80)) then
		   return GetString("georgia_e_step_1");
		  else
		   return GetString("georgia_e_step_1") .. " (" .. 80 - GetWineQnt("gamay",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gamay",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("petite_sirah",3,80)) then
		   return GetString("georgia_e_step_2");
		  else
		   return GetString("georgia_e_step_2") .. " (" .. 80 - GetWineQnt("petite_sirah",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("petite_sirah",3,80)) then
		   return GetString("georgia_e_step_2");
		  else
		   return GetString("georgia_e_step_2") .. " (" .. 80 - GetWineQnt("petite_sirah",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("petite_sirah",3,80)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("georgia_e_step_3");
		   end,
		 hint=function()
		   return GetString("georgia_e_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  85 
hungary_d = 
{
	condition = function ()
		if(HasThisLot("gamay",4,100)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gamay",4,100);
		GiveMoney(5000);
		--UnlockQuest("usa","usa_b");
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		UnlockQuest("canada","canada_e");
		UnlockQuest("greece","greece_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("hungary_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("hungary_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("hungary_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("hungary_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("hungary_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gamay",4,100)) then
		   return GetString("hungary_d_step_1");
		  else
		   return GetString("hungary_d_step_1") .. " (" .. 100 - GetWineQnt("gamay",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gamay",4,100)) then
		   return GetString("hungary_d_step_1");
		  else
		   return GetString("hungary_d_step_1") .. " (" .. 100 - GetWineQnt("gamay",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gamay",4,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		
		{ 
		 text=function()
		   return GetString("hungary_d_step_2");
		   end,
		 hint=function()
		   return GetString("hungary_d_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  86 
usa_b = 
{
	condition = function ()
		if(HasThisLot("semillon",3,100) and HasThisLot("tempranillo",3,100)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("semillon",3,100);
		RemoveWine("tempranillo",3,100);
		GiveMoney(7000);
		UnlockQuest("south_africa","south_africa_e");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("usa_b_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("usa_b_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("usa_b_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("usa_b_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("usa_b_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("semillon",3,100)) then
		   return GetString("usa_b_step_1");
		  else
		   return GetString("usa_b_step_1") .. " (" .. 100 - GetWineQnt("semillon",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("semillon",3,100)) then
		   return GetString("usa_b_step_1");
		  else
		   return GetString("usa_b_step_1") .. " (" .. 100 - GetWineQnt("semillon",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("semillon",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("tempranillo",3,100)) then
		   return GetString("usa_b_step_2");
		  else
		   return GetString("usa_b_step_2") .. " (" .. 100 - GetWineQnt("tempranillo",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("tempranillo",3,100)) then
		   return GetString("usa_b_step_2");
		  else
		   return GetString("usa_b_step_2") .. " (" .. 100 - GetWineQnt("tempranillo",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("tempranillo",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("usa_b_step_3");
		   end,
		 hint=function()
		   return GetString("usa_b_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  87 
canada_e = 
{
	condition = function ()
		if(HasThisLot("riesling",3,100) and HasThisLot("vinho_verde",3,100)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("riesling",3,100);
		RemoveWine("vinho_verde",3,100);
		GiveMoney(7000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("riesling",3,100)) then
		   return GetString("canada_e_step_1");
		  else
		   return GetString("canada_e_step_1") .. " (" .. 100 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("riesling",3,100)) then
		   return GetString("canada_e_step_1");
		  else
		   return GetString("canada_e_step_1") .. " (" .. 100 - GetWineQnt("riesling",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",3,100)) then
		   return GetString("canada_e_step_2");
		  else
		   return GetString("canada_e_step_2") .. " (" .. 100 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("vinho_verde",3,100)) then
		   return GetString("canada_e_step_2");
		  else
		   return GetString("canada_e_step_2") .. " (" .. 100 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_e_step_3");
		   end,
		 hint=function()
		   return GetString("canada_e_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  88 
greece_d = 
{
	condition = function ()
		if(HasThisLot("chianti",3,100) and HasThisLot("cabernet_sauvignon",3,100)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("chianti",3,100);
		RemoveWine("cabernet_sauvignon",3,100);
		GiveMoney(7000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("greece_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("greece_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("greece_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("greece_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("greece_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chianti",3,100)) then
		   return GetString("greece_d_step_1");
		  else
		   return GetString("greece_d_step_1") .. " (" .. 100 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chianti",3,100)) then
		   return GetString("greece_d_step_1");
		  else
		   return GetString("greece_d_step_1") .. " (" .. 100 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("cabernet_sauvignon",3,100)) then
		   return GetString("greece_d_step_2");
		  else
		   return GetString("greece_d_step_2") .. " (" .. 100 - GetWineQnt("cabernet_sauvignon",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("cabernet_sauvignon",3,100)) then
		   return GetString("greece_d_step_2");
		  else
		   return GetString("greece_d_step_2") .. " (" .. 100 - GetWineQnt("cabernet_sauvignon",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("cabernet_sauvignon",3,100)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("greece_d_step_3");
		   end,
		 hint=function()
		   return GetString("greece_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  89 
south_africa_e = 
{
	condition = function ()
		if(HasThisLot("malbec",3,150) and HasThisLot("champagne",3,150)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("malbec",3,150);
		RemoveWine("champagne",3,150);
		GiveMoney(10000);
		UnlockQuest("usa","usa_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("malbec",3,150)) then
		   return GetString("south_africa_e_step_1");
		  else
		   return GetString("south_africa_e_step_1") .. " (" .. 150 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("malbec",3,150)) then
		   return GetString("south_africa_e_step_1");
		  else
		   return GetString("south_africa_e_step_1") .. " (" .. 150 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("malbec",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("champagne",3,150)) then
		   return GetString("south_africa_e_step_2");
		  else
		   return GetString("south_africa_e_step_2") .. " (" .. 150 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("champagne",3,150)) then
		   return GetString("south_africa_e_step_2");
		  else
		   return GetString("south_africa_e_step_2") .. " (" .. 150 - GetWineQnt("champagne",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_e_step_3");
		   end,
		 hint=function()
		   return GetString("south_africa_e_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  90 
usa_c = 
{
	condition = function ()
		if(HasThisLot("merlot",4,150) and HasThisLot("petite_sirah",4,150) and HasThisLot("champagne",4,150)) then
		SetCondition("guild_deliver")
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("merlot",4,150);
		RemoveWine("petite_sirah",4,150);
		RemoveWine("champagne",4,150);
		GiveMoney(15000);
		UnlockWinery("usa");
		SetComplete(true);
		UnlockQuest("italy", "italy_e");
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("usa_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("usa_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("usa_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("usa_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("usa_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("merlot",4,150)) then
		   return GetString("usa_c_step_1");
		  else
		   return GetString("usa_c_step_1") .. " (" .. 150 - GetWineQnt("merlot",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("merlot",4,150)) then
		   return GetString("usa_c_step_1");
		  else
		   return GetString("usa_c_step_1") .. " (" .. 150 - GetWineQnt("merlot",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("merlot",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("petite_sirah",4,150)) then
		   return GetString("usa_c_step_2");
		  else
		   return GetString("usa_c_step_2") .. " (" .. 150 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("petite_sirah",4,150)) then
		   return GetString("usa_c_step_2");
		  else
		   return GetString("usa_c_step_2") .. " (" .. 150 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("petite_sirah",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("champagne",4,150)) then
		   return GetString("usa_c_step_3");
		  else
		   return GetString("usa_c_step_3") .. " (" .. 150 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("champagne",4,150)) then
		   return GetString("usa_c_step_3");
		  else
		   return GetString("usa_c_step_3") .. " (" .. 150 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("usa_c_step_4");
		   end,
		 hint=function()
		   return GetString("usa_c_step_4");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  91 
italy_e = 
{
	condition = function ()
		if(GetInventoryValue() > 0) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		SellAllWines(10);
		UnlockQuest("australia","australia_c");
		UnlockQuest("spain","spain_e");
		UnlockQuest("france","france_e");
		UnlockQuest("south_africa","south_africa_f");
		UnlockQuest("australia" ,"australia_d");
		UnlockQuest("brazil","brazil_e");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_e_available"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_e_reminder"));
	end,
}

-- Current Row:  92 
australia_c = 
{
	condition = function ()
		if(HasThisLot("vinho_verde",3,150)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("vinho_verde",3,150);
		GiveBlend("pinot_noir");
		GiveMoney(1000);
		UnlockQuest("canada","canada_f");
		QueueDisplayDialog({"scripts/newblend.lua"});
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("australia_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("australia_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("australia_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("australia_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("australia_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("vinho_verde",3,150)) then
		   return GetString("australia_c_step_1");
		  else
		   return GetString("australia_c_step_1") .. " (" .. 150 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("vinho_verde",3,150)) then
		   return GetString("australia_c_step_1");
		  else
		   return GetString("australia_c_step_1") .. " (" .. 150 - GetWineQnt("vinho_verde",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vinho_verde",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("australia_c_step_2");
		   end,
		 hint=function()
		   return GetString("australia_c_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  93 
france_e = 
{
	condition = function ()
		if(HasThisLot("pinot_noir",3,150))then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("pinot_noir",3,150);
		GiveMoney(8000);
		UnlockQuest("georgia","georgia_f");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("pinot_noir",3,150)) then
		   return GetString("france_e_step_1");
		  else
		   return GetString("france_e_step_1") .. " (" .. 150 - GetWineQnt("pinot_noir",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("pinot_noir",3,150)) then
		   return GetString("france_e_step_1");
		  else
		   return GetString("france_e_step_1") .. " (" .. 150 - GetWineQnt("pinot_noir",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("pinot_noir",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_e_step_2");
		   end,
		 hint=function()
		   return GetString("france_e_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  94 
south_africa_f = 
{
	condition = function ()
		if(HasThisLot("malbec",3,150) and
		HasThisLot("spumanti",3,150)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("malbec",3,150);
		RemoveWine("spumanti",3,150);
		GiveMoney(8000);
		UnlockQuest("argentina","argentina_c");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("south_africa_f_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("south_africa_f_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("south_africa_f_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("south_africa_f_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("south_africa_f_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("malbec",3,150)) then
		   return GetString("south_africa_f_step_1");
		  else
		   return GetString("south_africa_f_step_1") .. " (" .. 150 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("malbec",3,150)) then
		   return GetString("south_africa_f_step_1");
		  else
		   return GetString("south_africa_f_step_1") .. " (" .. 150 - GetWineQnt("malbec",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("malbec",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("spumanti",3,150)) then
		   return GetString("south_africa_f_step_2");
		  else
		   return GetString("south_africa_f_step_2") .. " (" .. 150 - GetWineQnt("spumanti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("spumanti",3,150)) then
		   return GetString("south_africa_f_step_2");
		  else
		   return GetString("south_africa_f_step_2") .. " (" .. 150 - GetWineQnt("spumanti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("spumanti",3,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("south_africa_f_step_3");
		   end,
		 hint=function()
		   return GetString("south_africa_f_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  95 
brazil_e = 
{
	condition = function ()
		if(HasThisLot("petite_sirah",4,150) and
		HasThisLot("sauvignon_blanc",4,150))
		then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("petite_sirah",4,150);
		RemoveWine("sauvignon_blanc",4,150);
		GiveMoney(8000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("brazil_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("brazil_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("brazil_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("brazil_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("brazil_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("petite_sirah",4,150)) then
		   return GetString("brazil_e_step_1");
		  else
		   return GetString("brazil_e_step_1") .. " (" .. 150 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("petite_sirah",4,150)) then
		   return GetString("brazil_e_step_1");
		  else
		   return GetString("brazil_e_step_1") .. " (" .. 150 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("petite_sirah",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("sauvignon_blanc",4,150)) then
		   return GetString("brazil_e_step_2");
		  else
		   return GetString("brazil_e_step_2") .. " (" .. 150 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("sauvignon_blanc",4,150)) then
		   return GetString("brazil_e_step_2");
		  else
		   return GetString("brazil_e_step_2") .. " (" .. 150 - GetWineQnt("sauvignon_blanc",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("sauvignon_blanc",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("brazil_e_step_3");
		   end,
		 hint=function()
		   return GetString("brazil_e_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  96 
spain_e = 
{
	condition = function ()
		if(HasThisLot("champagne",4,150) and
		HasThisLot("gewurztraminer",4,150))
		then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("champagne",4,150);
		RemoveWine("gewurztraminer",4,150);
		GiveMoney(9000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("spain_e_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("spain_e_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("spain_e_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("spain_e_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("spain_e_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("champagne",4,150)) then
		   return GetString("spain_e_step_1");
		  else
		   return GetString("brazil_e_step_1") .. " (" .. 150 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("champagne",4,150)) then
		   return GetString("spain_e_step_1");
		  else
		   return GetString("spain_e_step_1") .. " (" .. 150 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("gewurztraminer",4,150)) then
		   return GetString("spain_e_step_2");
		  else
		   return GetString("spain_e_step_2") .. " (" .. 150 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gewurztraminer",4,150)) then
		   return GetString("spain_e_step_2");
		  else
		   return GetString("spain_e_step_2") .. " (" .. 150 - GetWineQnt("gewurztraminer",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gewurztraminer",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("spain_e_step_3");
		   end,
		 hint=function()
		   return GetString("spain_e_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  97 
australia_d = 
{
	condition = function ()
		if(HasThisLot("pinot_noir",3,200) and
		HasThisLot("merlot",3,200)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("pinot_noir",3,200);
		RemoveWine("merlot",3,200);
		GiveMoney(12000);
		GiveVinoUltimaePiece();
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("australia_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("australia_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("australia_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("australia_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("australia_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("pinot_noir",3,200)) then
		   return GetString("australia_d_step_1");
		  else
		   return GetString("australia_d_step_1") .. " (" .. 200 - GetWineQnt("pinot_noir",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("pinot_noir",3,200)) then
		   return GetString("australia_d_step_1");
		  else
		   return GetString("australia_d_step_1") .. " (" .. 200 - GetWineQnt("pinot_noir",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("pinot_noir",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("merlot",3,200)) then
		   return GetString("australia_d_step_2");
		  else
		   return GetString("australia_d_step_2") .. " (" .. 200 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("merlot",3,200)) then
		   return GetString("australia_d_step_2");
		  else
		   return GetString("australia_d_step_2") .. " (" .. 200 - GetWineQnt("merlot",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("merlot",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("australia_d_step_3");
		   end,
		 hint=function()
		   return GetString("australia_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  98 
argentina_c = 
{
	condition = function ()
		if(HasThisLot("chardonnay",3,200) and
		HasThisLot("semillon",3,200)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("chardonnay",3,200);
		RemoveWine("semillon",3,200);
		GiveMoney(12000);
		UnlockQuest("france", "france_f");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("argentina_c_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("argentina_c_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("argentina_c_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("argentina_c_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("argentina_c_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chardonnay",3,200)) then
		   return GetString("argentina_c_step_1");
		  else
		   return GetString("argentina_c_step_1") .. " (" .. 200 - GetWineQnt("chardonnay",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chardonnay",3,200)) then
		   return GetString("argentina_c_step_1");
		  else
		   return GetString("argentina_c_step_1") .. " (" .. 200 - GetWineQnt("chardonnay",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chardonnay",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("semillon",3,200)) then
		   return GetString("argentina_c_step_2");
		  else
		   return GetString("argentina_c_step_2") .. " (" .. 200 - GetWineQnt("semillon",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("semillon",3,200)) then
		   return GetString("argentina_c_step_2");
		  else
		   return GetString("argentina_c_step_2") .. " (" .. 200 - GetWineQnt("semillon",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("semillon",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("argentina_c_step_3");
		   end,
		 hint=function()
		   return GetString("argentina_c_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  99 
canada_f = 
{
	condition = function ()
		if(HasThisLot("chianti",3,200) and
		HasThisLot("rose",3,200)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("chianti",3,200);
		RemoveWine("rose",3,200);
		GiveMoney(12000);
		UnlockQuest("germany","germany_d");
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("canada_f_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("canada_f_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("canada_f_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("canada_f_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("canada_f_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("chianti",3,200)) then
		   return GetString("canada_f_step_1");
		  else
		   return GetString("canada_f_step_1") .. " (" .. 200 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("chianti",3,200)) then
		   return GetString("canada_f_step_1");
		  else
		   return GetString("canada_f_step_1") .. " (" .. 200 - GetWineQnt("chianti",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("chianti",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("rose",3,200)) then
		   return GetString("canada_f_step_2");
		  else
		   return GetString("canada_f_step_2") .. " (" .. 200 - GetWineQnt("rose",3) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("rose",3,200)) then
		   return GetString("canada_f_step_2");
		  else
		   return GetString("canada_f_step_2") .. " (" .. 200 - GetWineQnt("rose",3) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("rose",3,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("canada_f_step_3");
		   end,
		 hint=function()
		   return GetString("canada_f_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  100 
germany_d = 
{
	condition = function ()
		if(HasThisLot("gamay",4,150) and
		HasThisLot("barolo",4,150)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("gamay",4,150);
		RemoveWine("barolo",4,150);
		GiveMoney(10000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("germany_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("germany_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("germany_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("germany_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("germany_d_reminder"));
	end,
	steps = 
	{
		{ 
		 text=function()
		  if(HasThisLot("gamay",4,150)) then
		   return GetString("germany_d_step_1");
		  else
		   return GetString("germany_d_step_1") .. " (" .. 150 - GetWineQnt("gamay",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("gamay",4,150)) then
		   return GetString("germany_d_step_1");
		  else
		   return GetString("germany_d_step_1") .. " (" .. 150 - GetWineQnt("gamay",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("gamay",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("barolo",4,150)) then
		   return GetString("germany_d_step_2");
		  else
		   return GetString("germany_d_step_2") .. " (" .. 150 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("barolo",4,150)) then
		   return GetString("germany_d_step_2");
		  else
		   return GetString("germany_d_step_2") .. " (" .. 150 - GetWineQnt("barolo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("barolo",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("germany_d_step_3");
		   end,
		 hint=function()
		   return GetString("germany_d_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  101 
georgia_f = 
{
	condition = function ()
		if(HasThisLot("pinot_noir",4,150) and
		HasThisLot("riesling",4,150)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("pinot_noir",4,150);
		RemoveWine("riesling",4,150);
		GiveMoney(10000);
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("georgia_f_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("georgia_f_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("georgia_f_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("georgia_f_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("georgia_f_reminder"));
	end,
	steps = 
	{
		{
		 text=function()
		  if(HasThisLot("pinot_noir",4,150)) then
		   return GetString("georgia_f_step_1");
		  else
		   return GetString("georgia_f_step_1") .. " (" .. 150 - GetWineQnt("pinot_noir",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("pinot_noir",4,150)) then
		   return GetString("georgia_f_step_1");
		  else
		   return GetString("georgia_f_step_1") .. " (" .. 150 - GetWineQnt("pinot_noir",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("pinot_noir",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		  if(HasThisLot("riesling",4,150)) then
		   return GetString("georgia_f_step_2");
		  else
		   return GetString("georgia_f_step_2") .. " (" .. 150 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		   if(HasThisLot("riesling",4,150)) then
		   return GetString("georgia_f_step_2");
		  else
		   return GetString("georgia_f_step_2") .. " (" .. 150 - GetWineQnt("riesling",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("riesling",4,150)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("georgia_f_step_3");
		   end,
		 hint=function()
		   return GetString("georgia_f_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  102 
france_f = 
{
	condition = function ()
		if(HasThisLot("tempranillo",4,200) and
		HasThisLot("petite_sirah",4,200)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("petite_sirah",4,200);
		RemoveWine("tempranillo",4,200);
		GiveMoney(12000);
		GiveVinoUltimaePiece();
		UnlockQuest("usa","usa_d");
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("france_f_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("france_f_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("france_f_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("france_f_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("france_f_reminder"));
	end,
	steps = 
	{
		{
		 text=function()
		  if(HasThisLot("tempranillo",4,200)) then
		   return GetString("france_f_step_1");
		  else
		   return GetString("france_f_step_1") .. " (" .. 200 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("tempranillo",4,200)) then
		   return GetString("france_f_step_1");
		  else
		   return GetString("france_f_step_1") .. " (" .. 200 - GetWineQnt("tempranillo",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("tempranillo",4,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		{
		 text=function()
		  if(HasThisLot("petite_sirah",4,200)) then
		   return GetString("france_f_step_2");
		  else
		   return GetString("france_f_step_2") .. " (" .. 200 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("petite_sirah",4,200)) then
		   return GetString("france_f_step_2");
		  else
		   return GetString("france_f_step_2") .. " (" .. 200 - GetWineQnt("petite_sirah",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("petite_sirah",4,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("france_f_step_3");
		   end,
		 hint=function()
		   return GetString("france_f_step_3");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  103 
usa_d = 
{
	condition = function ()
		if(HasThisLot("syrah",4,200) and
		HasThisLot("pinot_noir",4,200) and
		HasThisLot("champagne",4,200)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("syrah",4,200);
		RemoveWine("pinot_noir",4,200);
		RemoveWine("champagne",4,200);
		GiveMoney(15000);
		GiveVinoUltimaePiece();
		UnlockQuest("italy","italy_vu");
		UpdateVinoUltimaePieces();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("usa_d_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("usa_d_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("usa_d_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("usa_d_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("usa_d_reminder"));
	end,
	steps = 
	{
		{
		 text=function()
		  if(HasThisLot("syrah",4,200)) then
		   return GetString("usa_d_step_1");
		  else
		   return GetString("usa_d_step_1") .. " (" .. 200 - GetWineQnt("syrah",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("syrah",4,200)) then
		   return GetString("usa_d_step_1");
		  else
		   return GetString("usa_d_step_1") .. " (" .. 200 - GetWineQnt("syrah",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("syrah",4,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{
		 text=function()
		  if(HasThisLot("pinot_noir",4,200)) then
		   return GetString("usa_d_step_2");
		  else
		   return GetString("usa_d_step_2") .. " (" .. 200 - GetWineQnt("pinot_noir",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("pinot_noir",4,200)) then
		   return GetString("usa_d_step_2");
		  else
		   return GetString("usa_d_step_2") .. " (" .. 200 - GetWineQnt("pinot_noir",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("pinot_noir",4,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{
		 text=function()
		  if(HasThisLot("champagne",4,200)) then
		   return GetString("usa_d_step_3");
		  else
		   return GetString("usa_d_step_3") .. " (" .. 200 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("champagne",4,200)) then
		   return GetString("usa_d_step_3");
		  else
		   return GetString("usa_d_step_3") .. " (" .. 200 - GetWineQnt("champagne",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("champagne",4,200)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("usa_d_step_4");
		   end,
		 hint=function()
		   return GetString("usa_d_step_4");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}

-- Current Row:  104 
italy_vu = 
{
	condition = function ()
		if(HasThisLot("vino_ultimae",0,10)) then
		SetCondition("guild_deliver");
		else
		SetCondition("");
		end;
	end,
	accept = function ()
	end,
	update = function ()
	end,
	complete = function ()
		RemoveWine("vino_ultimae",2,10);
		CompleteVinoUltimae();
		SetComplete(true);
	end,
	getAvailableText = function ()
		SetAvailableTxt(GetString("italy_vu_available"));
	end,
	getConfirmationText = function ()
		SetPendingTxt(GetString("italy_vu_confirmation"));
	end,
	getPendingText = function ()
		SetPendingTxt(GetString("italy_vu_pending"));
	end,
	getFulfilledText = function ()
		SetFulfilledTxt(GetString("italy_vu_fulfilled"));
	end,
	getReminderText = function ()
		SetReminderTxt(GetString("italy_vu_reminder"));
	end,
	steps = 
	{
		{
		 text=function()
		  if(HasThisLot("vino_ultimae",0,10)) then
		   return GetString("italy_vu_step_1");
		  else
		   return GetString("italy_vu_step_1") .. " (" .. 10 - GetWineQnt("vino_ultimae",4) ..GetString("to_go_txt");
		  end
		   end,
		 hint=function()
		  if(HasThisLot("vino_ultimae",0,10)) then
		   return GetString("italy_vu_step_1");
		  else
		   return GetString("italy_vu_step_1") .. " (" .. 10 - GetWineQnt("vino_ultimae",4) ..GetString("to_go_txt");
		  end
		   end,
		 condition = function()
		   if(HasThisLot("vino_ultimae",0,10)) then
		    return true;
		   else
		    return false;
		   end
		    end,
		},
		
		{ 
		 text=function()
		   return GetString("italy_vu_step_2");
		   end,
		 hint=function()
		   return GetString("italy_vu_step_2");
		   end,
		    condition = function()
		    return false;
		 end,
		},
	},
}
