wyskoczył mi błędy
Error in EvalLeaf. ( line 2 )
Code - Error in Tree - Expression ! ( line 2 )
co zrobiłem nie tak oto kod pliku DIA
const int zaczynam = 0;
////////////////////////////*linijka 2*/const int skonczylem = Wld_GetDay();
instance Vlk_5009_Bartek_opal (C_INFO)
{
npc = Vlk_5009_Bartek;
condition = Vlk_5009_Bartek_opal_Condition;
information = Vlk_5009_Bartek_opal_Info;
important = 0;
permanent = 0;
description = "idz narąb drewna";
};
FUNC int Vlk_5009_Bartek_opal_Condition()
{
if (npc_knowsInfo(other, DIA_Rafal_attak))
{
return 1;
};
};
FUNC void Vlk_5009_Bartek_opal_Info()
{
AI_Output (other, self,"Vlk_5009_Bartek_opal_Info_15_01");//idz narąb drewna
AI_Output (self, other,"Vlk_5009_Bartek_opal_Info_07_02"); //ok przyjdz jutro napwno bęnde miał
zaczynam = Wld_GetDay();
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
instance Vlk_5009_Bartek_koniecopal (C_INFO)
{
npc = Vlk_5009_Bartek;
condition = Vlk_5009_Bartek_koniecopal_Condition;
information = Vlk_5009_Bartek_koniecopal_Info;
important = 0;
permanent = 0;
description = "masz juz drewno";
};
FUNC int Vlk_5009_Bartek_koniecopal_Condition()
{
const int czytokoniec = zaczynam-skonczylem;
if (czytokoniec >= 1)
{
return 1;
};
};
FUNC void Vlk_5009_Bartek_koniecopal_Info()
{
AI_Output (other, self,"Vlk_5009_Bartek_koniecopal_Info_15_01");//masz juz drewno
AI_Output (self, other,"Vlk_5009_Bartek_koniecopal_Info_07_02"); //tak prosze
};