Witam a wiem odrazu do rzeczy.
Jak mam przypisać ten skrypt do konkretnego npc i umieścić go pod wieżą xardasa.
Spoiler
//========================================
//-----------------> EXIT
//========================================
INSTANCE DIA_Ash_EXIT(C_INFO)
{
npc = DIA_VLK_1009_Ash;
nr = 999;
condition = DIA_Ash_EXIT_Condition;
information = DIA_Ash_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Ash_EXIT_Condition()
{
return TRUE;
};
FUNC INT DIA_Ash_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> PICKPOCKET
//========================================
INSTANCE DIA_Ash_PICKPOCKET(C_INFO)
{
npc = DIA_VLK_1009_Ash;
nr = 900;
condition = DIA_Ash_PICKPOCKET_Condition;
information = DIA_Ash_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_120;
};
FUNC INT DIA_Ash_PICKPOCKET_Condition()
{
C_Beklauen (111, 666);
};
FUNC INT DIA_Ash_PICKPOCKET_Info()
{
Info_ClearChoices (DIA_Ash_PICKPOCKET);
Info_AddChoice (DIA_Ash_PICKPOCKET, DIALOG_BACK ,DIA_Ash_PICKPOCKET_BACK);
Info_AddChoice (DIA_Ash_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Ash_PICKPOCKET_DoIt);
};
FUNC INT DIA_Ash_PICKPOCKET_DoIt()
{
B_Beklauen ();
Info_ClearChoices (DIA_Ash_PICKPOCKET);
};
FUNC INT DIA_Ash_PICKPOCKET_BACK()
{
Info_ClearChoices (DIA_Ash_PICKPOCKET);
};
//========================================
//-----------------> HELLO2
//========================================
INSTANCE DIA_Ash_HELLO2 (C_INFO)
{
npc = VLK_1009_Ash;
nr = 2;
condition = DIA_Ash_HELLO2_Condition;
information = DIA_Ash_HELLO2_Info;
permanent = FALSE;
description = "stary_wojak"
};
FUNC INT DIA_Ash_HELLO2_Condition()
{
&& (Hero.Level < 1)
{
return TRUE;
};
};
func VOID DIA_Ash_HELLO2_Info()
{
AI_Output (other, self ,"DIA_Ash_HELLO2_15_01"); //Witaj!
AI_Output (other, self ,"DIA_Ash_HELLO2_15_02"); //Kim jeste?
AI_Output (self, other ,"DIA_Ash_HELLO2_03_03"); //Jestem starym wojownikiem z kontynentu.
AI_Output (other, self ,"DIA_Ash_HELLO2_15_04"); //Mam do ciebie prośbę.
AI_Output (self, other ,"DIA_Ash_HELLO2_03_05"); //Hmmmm ?
AI_Output (other, self ,"DIA_Ash_HELLO2_15_06"); //Mógłbyś mi pomóc ?
AI_Output (other, self ,"DIA_Ash_HELLO2_15_07"); //Zapomniałem wielu rzeczy i zostałem bez grosza a khorinis nie jest zbyt przyjaznym miejscem dla obdartych podróżnych.
AI_Output (self, other ,"DIA_Ash_HELLO2_03_10"); //Słuchaj mam pomysł.
AI_Output (self, other ,"DIA_Ash_HELLO2_03_11"); //Ty pomożesz mnie a ja tobie.
AI_Output (other, self ,"DIA_Ash_HELLO2_15_12"); //W jaki sposób ?
AI_PlayAni (self, "T_SEARCH");
AI_PlayAni (self, "T_SEARCH");
AI_Output (self, other ,"DIA_Ash_HELLO2_03_13"); //Znajdz mój stary sztylet który zgubiłem w okolicy a czeka cię ciekawa nagroda.
AI_Output (other, self ,"DIA_Ash_HELLO2_15_14"); //W takim razie idę go poszukać.
B_LogEntry (TOPIC_Wojak_Sztylet,"Stary wojownik polecił mi znaleźć jego stary sztylet.");
B_GivePlayerXP (1900);
if (Npc_HasItems (other, ItAm_Prot_Fire_01) >=1)
{
B_GiveInvItems (self, other, ItMi_Gold, 2500);
};
AI_StopProcessInfos (self);
};
PS. nie śmiejcie się z dialogu wiem że troche głupio to wymyśliłem ale jest to wgl pierwszy dialog jaki wymyśliłem do gothica.