Zaraz sprawdzę...jakby co piszcie odpowiedzi,jeśli coś wiecie.
Edit:I dalej ch....
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Marian_EXIT(C_INFO)
{
npc = VLK_4400_Marian;
nr = 999;
condition = DIA_Marian_EXIT_Condition;
information = DIA_Marian_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Marian_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Marian_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Marian_HELLO1 (C_INFO)
{
npc = VLK_4400_Marian;
nr = 1;
condition = DIA_Marian_HELLO1_Condition;
information = DIA_Marian_HELLO1_Info;
permanent = FALSE;
description = "Daj mi runy";
};
FUNC INT DIA_Marian_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Marian_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Marian_HELLO1_15_01"); //Daj mi runy.
AI_Output (self, other ,"DIA_Marian_HELLO1_03_02"); //Wybierz sobie 2 z 4.
Info_ClearChoices (DIA_Marian_HELLO1);
Info_AddChoice (DIA_Marian_HELLO1, "Gejzer", DIA_Marian_HELLO1_RuneGeyser);
Info_AddChoice (DIA_Marian_HELLO1, "Światło.", DIA_Marian_HELLO1_RuneLight);
Info_AddChoice (DIA_Marian_HELLO1, "Grom.", DIA_Marian_HELLO1_RuneThunderstorm);
Info_AddChoice (DIA_Marian_HELLO1, "Kula ognia.", DIA_Marian_HELLO1_RuneFireball);
};
FUNC void DIA_Marian_HELLO1_RuneGeyser()
{
CreateInvItems (self, ItRu_Geyser, 1);
B_GiveInvItems (self, other, ItRu_Geyser, 1);
Marian_Three=Marian_Three+1;
if (Marian_Three == 3)
{
AI_Output (other, self ,"DIA_Marian_HELLO1_HELLO1_RuneGeyser_15_01"); //
Info_ClearChoices (DIA_Marian_HELLO1);
};
};
FUNC void DIA_Marian_HELLO1_RuneLight()
{
CreateInvItems (self, ItRu_Light, 1);
B_GiveInvItems (self, other, ItRu_Light, 1);
if (Marian_Three == 3)
{
AI_Output (other, self ,"DIA_Marian_HELLO1_HELLO1_RuneLight_15_01"); //
Info_ClearChoices (DIA_Marian_HELLO1);
Marian_Three=Marian_Three+1;
};
};
FUNC void DIA_Marian_HELLO1_RuneThunderstorm()
{
CreateInvItems (self, ItRu_Thunderstorm, 1);
B_GiveInvItems (self, other, ItRu_Thunderstorm, 1);
Marian_Three=Marian_Three+1;
if (Marian_Three == 3)
{
AI_Output (other, self ,"DIA_Marian_HELLO1_HELLO1_RuneThunderstorm_15_01"); //
Info_ClearChoices (DIA_Marian_HELLO1);
};
};
FUNC void DIA_Marian_HELLO1_RuneFireball()
{
CreateInvItems (self, ItRu_InstantFireball, 1);
B_GiveInvItems (self, other, ItRu_InstantFireball, 1);
Marian_Three=Marian_Three+1;
if (Marian_Three == 3)
{
AI_Output (other, self ,"DIA_Marian_HELLO1_HELLO1_RuneFireball_15_01"); //
Info_ClearChoices (DIA_Marian_HELLO1);
};
};
Cały czas da radę wybrać tylko wszystkie,a nie 3....