Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. //*********************************************************************
  2. // Info EXIT
  3. //*********************************************************************
  4. INSTANCE DIA_SLD_888_Klapek_EXIT (C_INFO)
  5. {
  6. npc = SLD_888_Klapek;
  7. nr = 999;
  8. condition = DIA_SLD_888_Klapek_EXIT_Condition;
  9. information = DIA_SLD_888_Klapek_EXIT_Info;
  10. permanent = TRUE;
  11. description = DIALOG_ENDE;
  12. };
  13.  
  14. FUNC INT DIA_SLD_888_Klapek_EXIT_Condition()
  15. {
  16. return TRUE;
  17. };
  18.  
  19. FUNC VOID DIA_SLD_888_Klapek_EXIT_Info()
  20. {
  21. AI_StopProcessInfos (self);
  22. };
  23.  
  24. //*********************************************************************
  25. // Info Hello
  26. //*********************************************************************
  27. INSTANCE DIA_SLD_888_Klapek_Witaj (C_INFO)
  28. {
  29. npc = SLD_888_Klapek;
  30. nr = 4;
  31. condition = DIA_SLD_888_Klapek_Witaj_Condition;
  32. information = DIA_SLD_888_Klapek_Witaj_Info;
  33. permanent = FALSE;
  34. description = "Co słychać?";
  35. };
  36.  
  37. FUNC INT DIA_SLD_888_Klapek_Witaj_Condition()
  38. {
  39. return TRUE;
  40. };
  41.  
  42. FUNC VOID DIA_SLD_888_Klapek_Witaj_Info()
  43. {
  44. AI_Output (other,self ,"DIA_SLD_888_Klapek_Witaj_15_00"); //Co słychać?
  45. AI_Output (self,other ,"DIA_SLD_888_Klapek_Witaj_55_01"); //Umieram...
  46.  
  47. };
  48.  
  49. //*********************************************************************
  50. // Zadanie
  51. //*********************************************************************
  52. INSTANCE DIA_SLD_888_Klapek_Zadanie (C_INFO)
  53. {
  54. npc = SLD_888_Klapek;
  55. nr = 4;
  56. condition = DIA_SLD_888_Klapek_Zadanie_Condition;
  57. information = DIA_SLD_888_Klapek_Zadanie_Info;
  58. permanent = FALSE;
  59. description = "Umierasz?";
  60. };
  61.  
  62. FUNC INT DIA_SLD_888_Klapek_Zadanie_Condition()
  63. {
  64. if (npc_knowsinfo (other, DIA_SLD_888_Klapek_Witaj))
  65. {
  66. return TRUE;
  67. };
  68. };
  69.  
  70. FUNC VOID DIA_SLD_888_Klapek_Zadanie_Info()
  71. {
  72. AI_Output (other,self ,"DIA_SLD_888_Klapek_Zadanie_15_00"); //Jak to umierasz?
  73. AI_Output (self,other ,"DIA_SLD_888_Klapek_Zadanie_55_01"); //Umieram bo mam kaca. We panie skocz po browara.
  74. AI_Output (self,other ,"DIA_SLD_888_Klapek_Zadanie_55_02"); //Zapłace ci za nie. Tylko po nie zajdź.
  75.  
  76. Log_CreateTopic (TOPIC_Piwko, LOG_MISSION);
  77. Log_SetTopicStatus (TOPIC_Piwko, LOG_RUNNING);
  78. B_LogEntry (TOPIC_Piwko, "Klapcio chce piwo.");
  79. };
  80.  
  81. //*********************************************************************
  82. // Koniec Zadania
  83. //*********************************************************************
  84. INSTANCE DIA_SLD_888_Klapek_browar (C_INFO)
  85. {
  86. npc = SLD_888_Klapek;
  87. nr = 4;
  88. condition = DIA_SLD_888_Klapek_browar_Condition;
  89. information = DIA_SLD_888_Klapek_browar_Info;
  90. permanent = FALSE;
  91. description = "Mam browara?";
  92. };
  93.  
  94. FUNC INT DIA_SLD_888_Klapek_browar_Condition()
  95. {
  96. if (npc_knowsinfo (other, DIA_SLD_888_Klapek_Zadanie))
  97. && (npc_hasitems (other, itfo_beer) >=1)
  98. {
  99. return TRUE;
  100. };
  101. };
  102.  
  103. FUNC VOID DIA_SLD_888_Klapek_browar_Info()
  104. {
  105. AI_Output (other,self ,"DIA_SLD_888_Klapek_browar_15_00"); //Mam Piwo.
  106. AI_Output (self,other ,"DIA_SLD_888_Klapek_browar_55_01"); //O cie paaanie. Bracie ratujesz mi życie!
  107. AI_Output (self,other ,"DIA_SLD_888_Klapek_browar_55_02"); //Proszę kilka złotych za fatyge i piwo.
  108.  
  109. B_giveinvitems (other, self, itfo_beer, 1);
  110. Createinvitems (self, itmi_gold, 50);
  111. B_giveinvitems (self, other, itmi_gold, 50);
  112. B_LogEntry (TOPIC_Piwko, "Dałem Klapkowi piwo");
  113. Log_SetTopicStatus (TOPIC_Piwko, LOG_SUCCESS);
  114. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement