Mam mały a zarazem irytujący problem chodzi o to że zrobiłem nowego NPC i zrobiłem prosty dialog i questa, ale z NPC nie ma żadnej interakcji nie mogę z nim nawet porozmawiać także nie reaguje na rutyny które mu przypisałem.
Zapewne to jakiś głupi błąd który popełniłem przy skryptach jeśli ktoś wie o co chodzi to prosił bym o pomoc.
Spoiler
INSTANCE DIA_Fenriz_EXIT(C_INFO)
{
npc = NON_6675_Fenriz;
nr = 999;
condition = DIA_Fenriz_EXIT_Condition;
information = DIA_Fenriz_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Fenriz_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Fenriz_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Fenriz_HELLO1 (C_INFO)
{
npc = NON_6675_Fenriz;
nr = 1;
condition = DIA_Fenriz_HELLO1_Condition;
information = DIA_Fenriz_HELLO1_Info;
permanent = FALSE;
Important = FALSE;
};
FUNC INT DIA_Fenriz_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Fenriz_HELLO1_Info()
{
AI_Output (self, other ,"DIA_Fenriz_HELLO1_03_01"); //A ty coś za jeden?
AI_Output (other, self ,"DIA_Fenriz_HELLO1_15_02"); //Jestem Vendrick.
AI_Output (self, other ,"DIA_Fenriz_HELLO1_03_03"); //Mam na imię Fenriz, czego tu szukasz Vendricku?
AI_Output (other, self ,"DIA_Fenriz_HELLO1_15_05"); //Nie twój interes!
AI_Output (self, other ,"DIA_Fenriz_HELLO1_03_06"); //Czyżby?
};
//========================================
//-----------------> HELLO2
//========================================
INSTANCE DIA_Fenriz_HELLO2 (C_INFO)
{
npc = NON_6675_Fenriz;
nr = 2;
condition = DIA_Fenriz_HELLO2_Condition;
information = DIA_Fenriz_HELLO2_Info;
permanent = FALSE;
description = "Muszę dostać się do Górskiej Fortecy.";
};
FUNC INT DIA_Fenriz_HELLO2_Condition()
{
return TRUE;
};
FUNC VOID DIA_Fenriz_HELLO2_Info()
{
AI_Output (other, self ,"DIA_Fenriz_HELLO2_15_01"); //Muszę dostać się do Górskiej Fortecy.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_02"); //A po co chcesz tam iść? Zapuszczanie się w tamte tereny to samobójstwo.
AI_Output (other, self ,"DIA_Fenriz_HELLO2_15_03"); //Mam tam pewną sprawę do załatwienia.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_04"); //Radzę Ci zdobyć jakąś mapę.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_05"); //Tak się składa że mam jedną i mogę Ci ją oddać. Jeśli tylko zrobisz dla mnie malutką przystługę.
AI_Output (other, self ,"DIA_Fenriz_HELLO2_15_06"); //O co chodzi?
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_07"); //Przed upadkiem bariery byłem kopaczem w starym obozie. Pracowałem w starej kopalni.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_08"); //Zostawiłem tam mój amulet. Zdobądź go dla mnie a dostaniesz mapę.
AI_Output (other, self ,"DIA_Fenriz_HELLO2_15_09"); //Jak dostanę się do starej kopalni?
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_10"); //Idź prosto aż dotrzesz do Starego Obozu potem zobaczysz niewielki most przejdź przez niego i idź w lewo wzdłóż rzeki.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_11"); //Powinieneś dotrzeć.
AI_Output (other, self ,"DIA_Fenriz_HELLO2_15_12"); //Dobra. Przyniosę Ci ten amulet.
AI_Output (self, other ,"DIA_Fenriz_HELLO2_03_13"); //W takim razie czekam.
MIS_AMULET_FENRIZ = LOG_RUNNING;
Log_CreateTopic (CH1_AMULET_FENRIZ, LOG_MISSION);
Log_SetTopicStatus (CH1_AMULET_FENRIZ, LOG_RUNNING);
B_LogEntry (CH1_AMULET_FENRIZ,"Fenriz poprosił mnie o znalezienie jego amuletu w starej kopalni.");
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO3
//========================================
INSTANCE DIA_Fenriz_HELLO3 (C_INFO)
{
npc = NON_6675_Fenriz;
nr = 3;
condition = DIA_Fenriz_HELLO3_Condition;
information = DIA_Fenriz_HELLO3_Info;
permanent = FALSE;
description = "Mam twój Amulet.";
};
FUNC INT DIA_Fenriz_HELLO3_Condition()
{
if (Npc_KnowsInfo (other, DIA_Fenriz_HELLO2))
&& (Npc_HasItems (other, ItMi_Amulet_Fenriz) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Fenriz_HELLO3_Info()
{
AI_Output (other, self ,"DIA_Fenriz_HELLO3_15_01"); //Mam twój Amulet.
AI_Output (self, other ,"DIA_Fenriz_HELLO3_03_02"); //Świetnie! Oto twoja mapa.
AI_Output (other, self ,"DIA_Fenriz_HELLO3_15_03"); //Dzięki, przyda się na pewno.
AI_Output (self, other ,"DIA_Fenriz_HELLO3_03_04"); //Posłuchaj.
AI_Output (self, other ,"DIA_Fenriz_HELLO3_03_05"); //Nie wiem jaki masz cel i czego szukasz w tej dolinie ale, uwierz mi to nie jest tego warte dolina roi się od orków i innych paskud.
AI_Output (self, other ,"DIA_Fenriz_HELLO3_03_06"); //Wyjście na otwarty teren to samobójstwo.
AI_Output (other, self ,"DIA_Fenriz_HELLO3_15_07"); //Potrafię o siebie zadbać.
AI_Output (self, other ,"DIA_Fenriz_HELLO3_03_08"); //W takim razie życzę Ci powodzenia.
B_LogEntry (CH1_AMULET_FENRIZ,"Przyniosłem Fenrizowi jego Amulet w zamian dostałem mapę Koloni.");
Log_SetTopicStatus (CH1_AMULET_FENRIZ, LOG_SUCCESS);
MIS_AMULET_FENRIZ = LOG_SUCCESS;
B_GiveXP (250);
CreateInvItems (self, ItWrWorldmap, 1);
B_GiveInvItems (self, other, ItWrWorldmap, 1);
B_GiveInvItems (other, self, ItMi_Amulet_Fenriz, 1);
};
Spoiler
instance NON_6675_Fenriz (Npc_Default)
{
//Generated by Gothic NPC Maker
//----------Info ogolne----------
name = "Fenriz";
Npctype = Npctype_Main;
guild = GIL_NONE;
level = 30;
voice = 9;
id = 6675;
//----------Statystyki----------
attribute[ATR_STRENGTH] = 60;
attribute[ATR_DEXTERITY] = 60;
attribute[ATR_MANA_MAX] = 25;
attribute[ATR_MANA] = 25;
attribute[ATR_HITPOINTS_MAX] = 300;
attribute[ATR_HITPOINTS] = 300;
//----------Wyglad----------
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Relaxed.mds");
Mdl_SetVisualBody (self,"hum_body_naked0",1, 1,"Hum_Head_Thief",79, 1,VLK_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,0);
//----------Umiejetnasci----------
Npc_SetTalentSkill (self, NPC_TALENT_1H,2);
Npc_SetTalentSkill (self, NPC_TALENT_2H,1);
Npc_SetTalentSkill (self, NPC_TALENT_BOW,1);
Npc_SetTalentSkill (self, NPC_TALENT_CROSSBOW,1);
//----------Ekwipunek----------
EquipItem (self, ItMw_1H_Axe_03);
CreateInvItems (self,ItLsTorch,1);
CreateInvItems (self,ItMiLute,1);
CreateInvItems (self,ItKeLockpick,1);
CreateInvItems (self,ItFo_Potion_Water_01,1);
CreateInvItems (self,ItForice,1);
//----------Pozostale----------
fight_tactic = FAI_HUMAN_Strong;
daily_routine = Rtn_start_666875;
//Generated by Gothic NPC Maker
};
FUNC VOID Rtn_Start_666875 ()
{
};
FUNC VOID Rtn_Stand_666875 ()
{
};