Mam taki błąd Expected ')' line 121. Tak wygląda skrypt:
//----------------------------------------------------------------------
// Info EXIT
//----------------------------------------------------------------------
INSTANCE DIA_Teny_EXIT (C_INFO)
{
npc = NONE_8989_Teny;
nr = 998;
condition = DIA_Teny_EXIT_Condition;
information = DIA_Teny_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Teny_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Teny_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//----------------------------------------------------------------------
// Info Hello
//----------------------------------------------------------------------
INSTANCE DIA_Teny_Hello (C_INFO)
{
npc = NONE_8989_Teny;
nr = 1;
condition = DIA_Teny_Hello_Condition;
information = DIA_Teny_Hello_Info;
permanent = FALSE;
description = "Jak leci?";
};
FUNC INT DIA_Teny_Hello_Condition()
{
return TRUE;
};
FUNC VOID DIA_Teny_Hello_Info()
{
AI_Output (other, self, "DIA_NONE_8989_Teny_Hello_15_00"); //Jak leci?
AI_Output (self, other, "DIA_NONE_8989_Teny_Hello_89_01"); //Może być. Odkąd otworzyłem ten interes wiedzie mi się coraz lepiej.
};
//----------------------------------------------------------------------
// Hello2
//----------------------------------------------------------------------
INSTANCE DIA_Teny_Hello2 (C_INFO)
{
npc = NONE_8989_Teny;
nr = 1;
condition = DIA_Teny_Hello2_Condition;
information = DIA_Teny_Hello2_Info;
permanent = FALSE;
description = "Hodujesz psy?";
};
FUNC INT DIA_Teny_Hello2_Condition()
{
if (Npc_KnowsInfo (other, DIA_Teny_Hello))
{
return TRUE;
};
};
FUNC VOID DIA_Teny_Hello2_Info()
{
AI_Output (other, self, "DIA_NONE_8989_Teny_Hello2_15_00"); //Hodujesz psy?
AI_Output (self, other, "DIA_NONE_8989_Teny_Hello2_89_01"); //Tak, to nawet dość opłacalne zajęcie.
AI_Output (self, other, "DIA_NONE_8989_Teny_Hello2_89_02"); //Poza tym kocham te małe słodziaki.
};
//----------------------------------------------------------------------
// Hello3
//----------------------------------------------------------------------
INSTANCE DIA_Teny_Hello3 (C_INFO)
{
npc = NONE_8989_Teny;
nr = 1;
condition = DIA_Teny_Hello3_Condition;
information = DIA_Teny_Hello3_Info;
permanent = FALSE;
description = "Mogę kupić psa?";
};
FUNC INT DIA_Teny_Hello3_Condition()
{
if (Npc_KnowsInfo (other, DIA_Teny_Hello2))
{
return TRUE;
};
};
FUNC VOID DIA_Teny_Hello3_Info()
{
AI_Output (other, self, "DIA_NONE_8989_Teny_Hello3_15_00"); //Mogę kupić psa?
AI_Output (self, other, "DIA_NONE_8989_Teny_Hello3_89_01"); //Jasne. Tylko będzie cię to kosztować 150 sztuk złota.
AI_Output (self, other, "DIA_NONE_8989_Teny_Hello3_89_02"); //To co? Zainteresowany?
};
//----------------------------------------------------------------------
// Trade
//----------------------------------------------------------------------
INSTANCE DIA_Teny_Trade (C_INFO)
{
npc = NONE_8989_Teny;
nr = 1;
condition = DIA_Teny_Trade_Condition;
information = DIA_Teny_Trade_Info;
permanent = FALSE;
description = "Kupuję psa";
};
FUNC INT DIA_Teny_Trade_Condition()
{
if (Npc_KnowsInfo (other, DIA_Teny_Hello3))
{
return TRUE;
};
};
FUNC VOID DIA_Teny_Trade_Info()
{
AI_Output (other, self, "DIA_NONE_8989_Teny_Trade_15_00"); //Kupuję psa.
if (Npc_HasItems (other, ItMi_gold, 150))
{
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade_89_01"); //Dobra, weź jednego.
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade_89_02"); //Tylko dbaj o niego.
B_GiveInvItems (other, self, ItMi_gold, 150);
Wld_InsertNpc (Dog_my,"XXX");
}
else
{
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade_89_03"); //Nie masz wystarczającej ilości złota.
}
};
//----------------------------------------------------------------------
// Trade2
//----------------------------------------------------------------------
INSTANCE DIA_Teny_Trade (C_INFO)
{
npc = NONE_8989_Teny;
nr = 1;
condition = DIA_Teny_Trade2_Condition;
information = DIA_Teny_Trade2_Info;
permanent = TRUE;
description = "Kupuję psa";
};
FUNC INT DIA_Teny_Trade2_Condition()
{
if (Npc_KnowsInfo (other, DIA_Teny_Trade))
{
return TRUE;
};
};
FUNC VOID DIA_Teny_Trade2_Info()
{
AI_Output (other, self, "DIA_NONE_8989_Teny_Trade2_15_00"); //Kupuję psa.
if (Npc_HasItems (other,ItMi_Gold, 150))
{
if (Npc_IsDead(Dog_my))
{
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade2_89_01"); //Jasne.
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade2_89_02"); //Ale nie pozwól mu zginąć, dobra?
B_GiveInvItems (other, self, itmi_gold, 150);
Wld_InsertNpc (Dog_my,"XXX");
}
else
{
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade2_89_03"); //Po co ci dwa psy, hę? Nie dam ci drugiego.
}
}
else
{
AI_Output (self, other, "DIA_NONE_8989_Teny_Trade2_89_04"); //Nie masz wystarczającej ilości złota.
}
};
Pogrubiłem 121 linijkę. Ale nie mogę znaleźć w niej żadnego błędu. Pomocy!!!