Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////////////////////
- // Info EXIT
- ///////////////////////////////////////////////////////////////////////
- INSTANCE DIA_Wiechu_EXIT(C_INFO)
- {
- npc = SLD_888_Wiechu;
- nr = 999;
- condition = DIA_Wiechu_EXIT_Condition;
- information = DIA_Wiechu_EXIT_Info;
- permanent = TRUE;
- description = "KONIEC";
- };
- FUNC INT DIA_Wiechu_EXIT_Condition()//PIERWSZA KTÓRĄ WYWOŁUJESZ
- {
- return TRUE;
- };
- FUNC VOID DIA_Wiechu_EXIT_Info()//DRUGA...TEJ AKTUALNIE BRAKUJE :(
- {
- AI_StopProcessInfos (self);
- };
- // *********************************************************
- // Hallo
- // *********************************************************
- instance DIA_Wiechu_QUEST (C_INFO)
- {
- npc = SLD_888_Wiechu;
- nr = 3;
- condition = DIA_Wiechu_QUEST_Condition;
- information = DIA_Wiechu_QUEST_Info;
- permanent = FALSE;
- description = "Szukam pracy.";
- };
- func int DIA_Wiechu_QUEST_Condition ()
- {
- return TRUE;};
- func void DIA_Wiechu_QUEST_Info ()
- {
- AI_Output (other, self, "DIA_Wiechu_Quest_15_00"); // Szukam pracy.
- AI_Output (self, other, "DIA_Wiechu_Quest_15_01"); // Mam dla ciebie małą robótkę tylko musisz coś dla mnie zrobić.
- AI_Output (self, other, "DIA_Wiechu_Quest_15_02"); // Musisz przynieść mi Piwo to pogadamy o robocie.
- AI_Output (other, self, "DIA_Wiechu_Quest_15_03"); // Więc wyruszam.
- Log_CreateTopic (TOPIC_QUESTTUT, LOG_MISSION);
- Log_SetTopicStatus (TOPIC_QUESTTUT, LOG_RUNNING);
- B_LogEntry (TOPIC_QUESTTUT,"Mam przynieść Piwo dla Wiecha.");
- };
- // *********************************************************
- // Hallo
- // *********************************************************
- instance DIA_Wiechu_MAMBROWAR (C_INFO)
- {
- npc = SLD_888_Wiechu;
- nr = 5;
- condition = DIA_Wiechu_MAMBROWAR_Condition;
- information = DIA_Wiechu_MAMBROWAR_Info;
- permanent = FALSE;
- description = "Mam piwo";
- };
- func int DIA_Wiechu_MAMBROWAR_Condition ()
- {
- if Npc_KnowsInfo (other, DIA_Wiechu_QUEST)
- && (Npc_HasItems(other, ITFO_BEER) > 0)
- {
- return TRUE;
- };
- };
- func void DIA_Wiechu_MAMBROWAR_Info ()
- {
- AI_Output (other, self, "DIA_Wiechu_MAMBROWAR_15_00"); //Mam Piwo.
- B_GiveInvItems (other, self, ITFO_BEER, 1);
- AI_Output (self,other, "DIA_Wiechu_MAMBROWAR_15_01"); // Świetnie! Teraz możemy pogadać o tej robocie.
- CreateInvItems (self, ItMi_Gold, 500);
- B_GiveInvItems (self, other, ItMi_Gold, 500);
- Log_SetTopicStatus(TOPIC_QUESTTUT, Log_SUCCESS);
- };
Advertisement
Add Comment
Please, Sign In to add comment