Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*********************************************************************
- // Info EXIT
- //*********************************************************************
- INSTANCE DIA_SLD_888_Klapek_EXIT (C_INFO)
- {
- npc = SLD_888_Klapek;
- nr = 999;
- condition = DIA_SLD_888_Klapek_EXIT_Condition;
- information = DIA_SLD_888_Klapek_EXIT_Info;
- permanent = TRUE;
- description = DIALOG_ENDE;
- };
- FUNC INT DIA_SLD_888_Klapek_EXIT_Condition()
- {
- return TRUE;
- };
- FUNC VOID DIA_SLD_888_Klapek_EXIT_Info()
- {
- AI_StopProcessInfos (self);
- };
- //*********************************************************************
- // Info Hello
- //*********************************************************************
- INSTANCE DIA_SLD_888_Klapek_Witaj (C_INFO)
- {
- npc = SLD_888_Klapek;
- nr = 4;
- condition = DIA_SLD_888_Klapek_Witaj_Condition;
- information = DIA_SLD_888_Klapek_Witaj_Info;
- permanent = FALSE;
- description = "Co słychać?";
- };
- FUNC INT DIA_SLD_888_Klapek_Witaj_Condition()
- {
- return TRUE;
- };
- FUNC VOID DIA_SLD_888_Klapek_Witaj_Info()
- {
- AI_Output (other,self ,"DIA_SLD_888_Klapek_Witaj_15_00"); //Co słychać?
- AI_Output (self,other ,"DIA_SLD_888_Klapek_Witaj_55_01"); //Umieram...
- };
- //*********************************************************************
- // Zadanie
- //*********************************************************************
- INSTANCE DIA_SLD_888_Klapek_Zadanie (C_INFO)
- {
- npc = SLD_888_Klapek;
- nr = 4;
- condition = DIA_SLD_888_Klapek_Zadanie_Condition;
- information = DIA_SLD_888_Klapek_Zadanie_Info;
- permanent = FALSE;
- description = "Umierasz?";
- };
- FUNC INT DIA_SLD_888_Klapek_Zadanie_Condition()
- {
- if (npc_knowsinfo (other, DIA_SLD_888_Klapek_Witaj))
- {
- return TRUE;
- };
- };
- FUNC VOID DIA_SLD_888_Klapek_Zadanie_Info()
- {
- AI_Output (other,self ,"DIA_SLD_888_Klapek_Zadanie_15_00"); //Jak to umierasz?
- AI_Output (self,other ,"DIA_SLD_888_Klapek_Zadanie_55_01"); //Umieram bo mam kaca. We panie skocz po browara.
- AI_Output (self,other ,"DIA_SLD_888_Klapek_Zadanie_55_02"); //Zapłace ci za nie. Tylko po nie zajdź.
- Log_CreateTopic (TOPIC_Piwko, LOG_MISSION);
- Log_SetTopicStatus (TOPIC_Piwko, LOG_RUNNING);
- B_LogEntry (TOPIC_Piwko, "Klapcio chce piwo.");
- };
- //*********************************************************************
- // Koniec Zadania
- //*********************************************************************
- INSTANCE DIA_SLD_888_Klapek_browar (C_INFO)
- {
- npc = SLD_888_Klapek;
- nr = 4;
- condition = DIA_SLD_888_Klapek_browar_Condition;
- information = DIA_SLD_888_Klapek_browar_Info;
- permanent = FALSE;
- description = "Mam browara?";
- };
- FUNC INT DIA_SLD_888_Klapek_browar_Condition()
- {
- if (npc_knowsinfo (other, DIA_SLD_888_Klapek_Zadanie))
- && (npc_hasitems (other, itfo_beer) >=1)
- {
- return TRUE;
- };
- };
- FUNC VOID DIA_SLD_888_Klapek_browar_Info()
- {
- AI_Output (other,self ,"DIA_SLD_888_Klapek_browar_15_00"); //Mam Piwo.
- AI_Output (self,other ,"DIA_SLD_888_Klapek_browar_55_01"); //O cie paaanie. Bracie ratujesz mi życie!
- AI_Output (self,other ,"DIA_SLD_888_Klapek_browar_55_02"); //Proszę kilka złotych za fatyge i piwo.
- B_giveinvitems (other, self, itfo_beer, 1);
- Createinvitems (self, itmi_gold, 50);
- B_giveinvitems (self, other, itmi_gold, 50);
- B_LogEntry (TOPIC_Piwko, "Dałem Klapkowi piwo");
- Log_SetTopicStatus (TOPIC_Piwko, LOG_SUCCESS);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement