Guest User

Untitled

a guest
Jun 28th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////
  2. // Info EXIT
  3. ///////////////////////////////////////////////////////////////////////
  4. INSTANCE DIA_Wiechu_EXIT(C_INFO)
  5. {
  6. npc = SLD_888_Wiechu;
  7. nr = 999;
  8. condition = DIA_Wiechu_EXIT_Condition;
  9. information = DIA_Wiechu_EXIT_Info;
  10. permanent = TRUE;
  11. description = "KONIEC";
  12. };
  13.  
  14. FUNC INT DIA_Wiechu_EXIT_Condition()//PIERWSZA KTÓRĄ WYWOŁUJESZ
  15. {
  16. return TRUE;
  17. };
  18. FUNC VOID DIA_Wiechu_EXIT_Info()//DRUGA...TEJ AKTUALNIE BRAKUJE :(
  19. {
  20. AI_StopProcessInfos (self);
  21. };
  22. // *********************************************************
  23. // Hallo
  24. // *********************************************************
  25. instance DIA_Wiechu_QUEST (C_INFO)
  26. {
  27. npc = SLD_888_Wiechu;
  28. nr = 3;
  29. condition = DIA_Wiechu_QUEST_Condition;
  30. information = DIA_Wiechu_QUEST_Info;
  31. permanent = FALSE;
  32. description = "Szukam pracy.";
  33. };
  34. func int DIA_Wiechu_QUEST_Condition ()
  35. {
  36. return TRUE;};
  37. func void DIA_Wiechu_QUEST_Info ()
  38. {
  39. AI_Output (other, self, "DIA_Wiechu_Quest_15_00"); // Szukam pracy.
  40. AI_Output (self, other, "DIA_Wiechu_Quest_15_01"); // Mam dla ciebie małą robótkę tylko musisz coś dla mnie zrobić.
  41. AI_Output (self, other, "DIA_Wiechu_Quest_15_02"); // Musisz przynieść mi Piwo to pogadamy o robocie.
  42. AI_Output (other, self, "DIA_Wiechu_Quest_15_03"); // Więc wyruszam.
  43.  
  44. Log_CreateTopic (TOPIC_QUESTTUT, LOG_MISSION);
  45. Log_SetTopicStatus (TOPIC_QUESTTUT, LOG_RUNNING);
  46. B_LogEntry (TOPIC_QUESTTUT,"Mam przynieść Piwo dla Wiecha.");
  47.  
  48. };
  49.  
  50.  
  51. // *********************************************************
  52. // Hallo
  53. // *********************************************************
  54. instance DIA_Wiechu_MAMBROWAR (C_INFO)
  55. {
  56. npc = SLD_888_Wiechu;
  57. nr = 5;
  58. condition = DIA_Wiechu_MAMBROWAR_Condition;
  59. information = DIA_Wiechu_MAMBROWAR_Info;
  60. permanent = FALSE;
  61. description = "Mam piwo";
  62.  
  63. };
  64.  
  65. func int DIA_Wiechu_MAMBROWAR_Condition ()
  66. {
  67. if Npc_KnowsInfo (other, DIA_Wiechu_QUEST)
  68. && (Npc_HasItems(other, ITFO_BEER) > 0)
  69. {
  70. return TRUE;
  71. };
  72. };
  73. func void DIA_Wiechu_MAMBROWAR_Info ()
  74. {
  75. AI_Output (other, self, "DIA_Wiechu_MAMBROWAR_15_00"); //Mam Piwo.
  76. B_GiveInvItems (other, self, ITFO_BEER, 1);
  77. AI_Output (self,other, "DIA_Wiechu_MAMBROWAR_15_01"); // Świetnie! Teraz możemy pogadać o tej robocie.
  78. CreateInvItems (self, ItMi_Gold, 500);
  79. B_GiveInvItems (self, other, ItMi_Gold, 500);
  80. Log_SetTopicStatus(TOPIC_QUESTTUT, Log_SUCCESS);
  81. };
Advertisement
Add Comment
Please, Sign In to add comment