[codebox]
INSTANCE DIA_SLD_899_Kosa_Winiacz (C_INFO)
{
npc = SLD_899_Kosa;
nr = 2;
condition = DIA_SLD_899_Kosa_Winiacz_Condition;
information = DIA_SLD_899_Kosa_Winiacz_Info;
permanent = FALSE;
description = "Podobno jesteś znawcą wina";
};
FUNC INT DIA_SLD_899_Kosa_Winiacz_Condition()
{
return TRUE;
};
FUNC VOID DIA_SLD_899_Kosa_Winiacz_Info()
{
AI_Output (other,self ,"DIA_SLD_899_Kosa_Winiacz_15_00"); //Podobno jesteś znawcą wina.
AI_Output (self ,other,"DIA_SLD_899_Kosa_Winiacz_01_01"); //Ano jestem.
AI_Output (other,self ,"DIA_SLD_899_Kosa_Winiacz_15_02"); //To chcę jakieś mocne wino.
AI_Output (self ,other,"DIA_SLD_899_Kosa_Winiacz_01_03"); //Mam tu takich cały karton. Za karton chcę... 240 Sztuk złota.
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Oto twoja kasa", DIA_SLD_899_Kosa_Winiacz_Kasa);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Tożto zdzierstwo", DIA_SLD_899_Kosa_Winiacz_Zdzierstwo);
};
func void DIA_SLD_899_Kosa_Winiacz_Kasa()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Kasa_15_00"); //Oto twoja kasa.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Kasa_04_01"); //Dobra, dawaj.
B_giveinvitems (other, self, itmi_gold, 240);
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Kasa_15_02"); //Oto kasa...
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Kasa_04_03"); //Świetnie, bierz tego winiacza.
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
CreateInvItems (self, Itfo_StrongWine, 6);
B_giveinvitems (self, other, Itfo_Strongwine, 6);
};
func void DIA_SLD_899_Kosa_Winiacz_Zdzierstwo()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_15_00"); //Tożto zdzierstwo!
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_04_01"); //Ta cena jest normalna. To bieżesz winko?
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Biorę", DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Żądam rabatu albo nie kupuję", DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat);
};
func void DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa_15_00"); //Biorę, oto twoja kasa.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa_04_01"); //Dobra, dawaj.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa_15_02"); //Oto kasa...
B_giveinvitems (other, self, itmi_gold, 240);
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Kasa_04_03"); //Świetnie, bierz tego winiacza.
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
CreateInvItems (self, Itfo_StrongWine, 6);
B_giveinvitems (self, other, Itfo_Strongwine, 6);
};
func void DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_15_00"); //Żądam rabatu albo nie kupuję!!!
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_04_01"); //Rabat? To może 200 sztuk złota?
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_15_02"); //Hmmm...
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_04_03"); //To jak?
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Biorę", DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa);
Info_AddChoice (DIA_SLD_899_Kosa_Winiacz, "Za wysoka", DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc);
};
func void DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa_15_00"); //Biorę, oto twoja kasa.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa_04_01"); //Dobra, dawaj.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa_15_02"); //Oto kasa...
B_giveinvitems (other, self, itmi_gold, 200);
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Kasa_04_03"); //Świetnie, bierz tego winiacza.
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
CreateInvItems (self, Itfo_StrongWine, 6);
B_giveinvitems (self, other, Itfo_Strongwine, 6);
};
func void DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc()
{
AI_Output (other, self, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc_15_00"); //Za wysoka.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc_04_01"); //Nie zniżę już ceny.
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc_15_02"); //Hmmm... Masz te 200.
B_giveinvitems (other, self, itmi_gold, 200);
AI_Output (self, other, "DIA_SLD_899_Kosa_Winiacz_Zdzierstwo_Rabat_Dosc_04_03"); //To dobrze. Masz skrzynkę.
Info_ClearChoices (DIA_SLD_899_Kosa_Winiacz);
CreateInvItems (self, Itfo_StrongWine, 6);
B_giveinvitems (self, other, Itfo_Strongwine, 6);
};[/codebox]
Poprawiony kod. Wszystko powinno pięknie działać.