instance PC_ItPo_Perm_Health(C_INFO)
{
nr = 3;
npc = PC_Hero;
condition = PC_ItPo_Perm_Health_Condition;
information = PC_ItPo_Perm_Health_Info;
permanent = TRUE;
description = "Elixier des Lebens (1 Heilwurzel, 1 Kronstöckel)";
};
func int PC_ItPo_Perm_Health_Condition()
{
if((PLAYER_MOBSI_PRODUCTION == MOBSI_POTIONALCHEMY) && (PLAYER_TALENT_ALCHEMY[POTION_Perm_Health] == TRUE) && (SpecialStart == TRUE))
{
return TRUE;
};
};
func void PC_ItPo_Perm_Health_Info()
{
if((Npc_HasItems(hero, ItPl_Health_Herb_03) >= 1) && (Npc_HasItems(hero, ItPl_Perm_Herb) >= 1))
{
Npc_RemoveInvItems(hero, ItPl_Health_Herb_03, 1);
Npc_RemoveInvItems(hero, ItPl_Perm_Herb, 1);
CreateInvItems(hero, ItPo_Perm_Health, 1);
Print(PRINT_AlchemySuccess);
}
else
{
Print(PRINT_ProdItemsMissing);
CreateInvItems(self, itmi_flask, 1);
};
B_ENDPRODUCTIONDIALOG();
};