///////////////////////////////////////////////////////
////////////// EXIT
///////////////////////////////////////////////////////
instance Dia_Zenek_EXIT (C_INFO)
{
npc = SLD_999_Zenek;
nr = 999;
condition = Dia_Zenek_EXIT_condition;
information = Dia_Zenek_EXIT_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC int Dia_Zenek_EXIT_condition()
{
return TRUE;
};
FUNC VOID DIA_Zenek_EXIT_info()
{
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////
////////////// hello
///////////////////////////////////////////////////////
instance Dia_Zenek_hello (C_INFO)
{
npc = SLD_999_Zenek;
nr = 1;
condition = Dia_Zenek_hello_condition;
information = Dia_Zenek_hello_info;
permanent = FALSE;
important = FALSE;
description = "Jak leci?";
};
FUNC int Dia_Zenek_hello_condition()
{
return TRUE;
};
FUNC VOID DIA_Zenek_hello_info()
{
AI_Output (self, other,"DIA_Zenek_hello_1_01"); //Jak leci?
AI_Output (self, other,"DIA_Zenek_hello_1_02"); //Nie jest źle... Tylko nurtuje mnie jedna rzecz...
AI_Output (other,self,"DIA_Zenek_hello_1_03"); //Mianowicie
AI_Output (self, other,"DIA_Zenek_hello_1_04"); //Napił bym się dobrego piwka
AI_Output (other,self,"DIA_Zenek_hello_1_05"); //Myśle, że dam rade coś z tym zrobić.
Log_CreateTopic(TOPIC_PIWKO_1, LOG_MISSION);
Log_SetTopicStatus(TOPIC_PIWKO_1, LOG_RUNNING);
B_LogEntry(TOPIC_PIWKO_1, "Mam przynieść piwko dla Zenka");
};
// *********************************************************
// Hallo
// *********************************************************
instance DIA_Zenek_Piwo (C_INFO)
{
npc = SLD_999_Zenek ;
nr = 1;
condition = DIA_Zenek_Piwo_Condition;
information = DIA_Zenek_Piwo_Info;
permanent = FALSE;
description = "Mam Piwo";
};
func int DIA_Zenek_Piwo_Condition ()
{
if Npc_KnowsInfo (other, Dia_Zenek_hello)
&& (Npc_HasItems(other, ItFo_Beer) >= 1)
{
return TRUE;
};
};
func void DIA_Zenek_Piwo_Info ()
{
AI_Output (other, self, "DIA_Zenek_Piwo_15_00"); //Mam Piwko.
B_GiveInvItems (other, self, ItFo_Beer, 1);
AI_Output (self, other, "DIA_Zenek_Piwo_15_01"); //Świetnie! Dzięki!
CreateInvItems (self, ItMi_Gold, 500);
B_GiveInvItems (self, other, ItMi_Gold, 500);
Log_SetTopicStatus (TOPIC_PIWKO_1, LOG_SUCCESS);
B_GivePlayerXP (200);
};
Proszę.