Dla testu napisałem sobie dialog z questem.Ale gdy go wybieram to pojawia się tylko wpis w dzienniku,jaki powinien byc a wszystko przeskakuje.
Przy okazji zadam drugie pytanie:Dlaczego wszystko mam w moim modzie po niemiecku?
To jest Dialog:
///////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Pruti_EXIT (C_INFO)
{
npc = VLK_2012_Pruti;
nr = 999;
condition = DIA_Pruti_EXIT_Condition;
information = DIA_Pruti_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Pruti_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Pruti_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// *********************************************************
// Hallo
// *********************************************************
instance DIA_Pruti_QUEST (C_INFO)
{
npc = VLK_2012_Pruti;
nr = 3;
condition = DIA_Pruti_QUEST_Condition;
information = DIA_Pruti_QUEST_Info;
permanent = FALSE;
description = "Chce Questa!";
};
func int DIA_Pruti_QUEST_Condition ()
{
return TRUE;};
func void DIA_Pruti_QUEST_Info ()
{
AI_Output (other, self, "DIA_Pruti_QUEST_15_00"); //Chcę questa!
AI_Output (self, other, "DIA_Pruti_QUEST_15_01"); //Mam coś dla ciebie.
AI_Output (self, other, "DIA_Pruti_QUEST_15_02"); //Przynieś mi grzyba.
AI_Output (other, self, "DIA_Pruti_QUEST_15_03"); //OK.
Log_CreateTopic (TOPIC_QUESTTUT,LOG_MISSION);
Log_SetTopicStatus (TOPIC_QUESTTUT,LOG_RUNNING);
B_LogEntry (TOPIC_QUESTTUT,"Mam przynieść grzyba dla Prutiego");
};
// *********************************************************
// Hallo
// *********************************************************
instance DIA_Pruti_MAMGRZYBA (C_INFO)
{
npc = VLK_2012_Pruti;
nr = 5;
condition = DIA_Pruti_MAMGRZYBA_Condition;
information = DIA_Pruti_MAMGRZYBA_Info;
permanent = FALSE;
description = "Mam grzyba";
};
func int DIA_Pruti_MAMGRZYBA_Condition ()
{
if Npc_KnowsInfo (other, DIA_Pruti_QUEST)
&& (Npc_HasItems(other, Itpl_mushroom_01) > 0)
{
return TRUE;
};
};
func void DIA_Pruti_MAMGRZYBA_Info ()
{
AI_Output (other, self, "DIA_Pruti_MAMGRZYBA_15_00"); //Mam grzyba,mistrzu.
B_GiveInvItems (other, self, itpl_mushroom_01, 1);
AI_Output (self, other, "DIA_Pruti_MAMGRZYBA_15_01"); //Świetnie!
CreateInvItems (self, ItMi_Gold, 500);
B_GiveInvItems (self, other, ItMi_Gold, 500);
Log_SetTopicStatus(TOPIC_QUESTTUT, LOG_SUCCESS);
B_LogEntry (TOPIC_QUESTTUT,"Dałem grzyba Prutiemu")
B_GivePlayerXP (XP_Prutigrzyb);
};
Dialog z questem napisałem na podstawie tutoriala Dekstera17.(żeby nie było ;] )