INSTANCE PC_Undead (C_INFO)
{
nr = 2;
npc = PC_Hero;
condition = PC_Undead_Condition;
information = PC_Undead_Info;
permanent = TRUE;
description = "Boski Błysk (5 Szczawiów Królewskich, 2 Czarne Perły, 1 Eliksir Życia)";
};
FUNC INT PC_Undead_Condition()
{
if((PLAYER_MOBSI_PRODUCTION == MOBSI_POTIONALCHEMY)
&& (PLAYER_TALENT_ALCHEMY[POTION_UNDEAD] == TRUE))
&& (BoozeStart == FALSE)
&& (TabakStart == FALSE)
&& (HealthStart == FALSE)
&& (ManaStart == FALSE)
&& (SpecialStart == FALSE)
{
return TRUE;
};
};
FUNC VOID PC_Undead_Info ()
{
if (Npc_HasItems (hero, ItPl_Perm_Herb) >= 5)
&& (Npc_HasItems (hero, ItMi_DarkPearl) >= 2)
&& (Npc_HasItems (hero, ItPo_Perm_Health) >= 1)
{
Npc_RemoveInvItems (hero,ItPl_Perm_Herb ,5);
Npc_RemoveInvItems (hero,ItMi_DarkPearl ,2);
Npc_RemoveInvItems (hero,ItPo_Perm_Health ,1);
CreateInvItems (hero,ItPo_Undead,1);
Print (PRINT_AlchemySuccess);
}
else
{
Print (PRINT_ProdItemsMissing);
CreateInvItems (self, ItMi_Flask,1);
};
B_ENDPRODUCTIONDIALOG ();
};
Zobacz teraz.