Witajcie. Otóż sobie zacząłem dzisiaj skryptować. Sugerowałem się czipem17. I mam pewien błąd. A dokładniej: U:PAR \WORK\DATA\SCRIPTS\CONTENT\STORY\DIALOGE\DIA_SLD_888_ADDON_SEGOHS.D: Unknown identifier : DIA_SLD_888_SEGOHS_SIEMA Oto mój skrypt dialogu bo o niego chodzi.
//*********************************************************************
// Info EXIT
//*********************************************************************
INSTANCE DIA_Sld_888_Addon_Segohs_EXIT (C_INFO)
{
npc = Sld_888_Addon_Segohs;
nr = 999;
condition = DIA_Sld_888_Addon_Segohs_EXIT_Condition;
information = DIA_Sld_888_Addon_Segohs_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Sld_888_Addon_Segohs_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Sld_888_Addon_Segohs_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//*********************************************************************
// Info siema
//*********************************************************************
INSTANCE DIA_Sld_888_Addon_Segohs_siema (C_INFO)
{
npc = Sld_888_Addon_Segohs;
nr = 1;
condition = DIA_Sld_888_Addon_Segohs_siema_Condition;
information = DIA_Sld_888_Addon_Segohs_siema_Info;
permanent = FALSE;
description = "Czemu jesteś taki smutny?";
};
FUNC INT DIA_Sld_888_Addon_Segohs_siema_Condition()
{
return TRUE;
};
FUNC VOID DIA_Sld_888_Addon_Segohs_siema_Info()
{
AI_Output (other,self ,"DIA_Sld_888_Addon_Segohs_siema_15_00"); //Co ci jest?
AI_Output (self ,other,"DIA_Sld_Sld_888_Addon_Segohs_siema_01_01"); //Otóż.. Brakuje mi wielu rzeczy..
AI_Output (other,self,"DIA_Sld_Sld_888_Addon_Segohs_siema_01_02"); //Czyli?
AI_Output (self ,other,"DIA_Sld_Sld_888_Addon_Segohs_siema_01_03"); //Brakuje mi piwa, pieniędzy, znajomych..
};
//*********************************************************************
// Zadanie
//*********************************************************************
INSTANCE DIA_Sld_888_Addon_Segohs_Zadanie (C_INFO)
{
npc = Sld_888_Addon_Segohs;
nr = 1;
condition = DIA_Sld_888_Addon_Segohs_Zadanie_Condition;
information = DIA_Sld_888_Addon_Segohs_Zadanie_Info;
permanent = FALSE;
description = "Mogę ci jakoś pomóc?";
};
FUNC INT DIA_Sld_888_Addon_Segohs_Zadanie_Condition()
{
if (Npc_KnowsInfo (other,Dia_Sld_888_Segohs_siema))
{
return TRUE;
};
};
FUNC VOID DIA_Sld_888_Addon_Segohs_Zadanie_Info()
{
AI_Output (other,self ,"DIA_Sld_888_Addon_Segohs_Zadanie_15_00"); //Czy mogę ci jakoś pomóc?
AI_Output (self ,other,"DIA_Sld_Sld_888_Addon_Segohs_Zadanie_01_01"); //Możesz.. Możesz przynieść mi piwko.
Log_CreateTopic (TOPIC_piwko, LOG_MISSION);
Log_SetTopicStatus (Topic_piwko, LOG_RUNNING);
B_LogEntry (TOPIC_piwko, "Jakiś strażnik potrzebuje piwa. Może kupię je w karczmie..");
};
//*********************************************************************
// Koniec Zadankaa
//*********************************************************************
INSTANCE DIA_Sld_888_Addon_Segohs_browar (C_INFO)
{
npc = Sld_888_Addon_Segohs;
nr = 1;
condition = DIA_Sld_888_Addon_Segohs_browar_Condition;
information = DIA_Sld_888_Addon_Segohs_browar_Info;
permanent = FALSE;
description = "Mam piwo.";
};
FUNC INT DIA_Sld_888_Addon_Segohs_browar_Condition()
{
if (Npc_KnowsInfo (other,Dia_Sld_888_Segohs_Zadanie))
&& (Npc_hasitems (other, itfo_beer) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Sld_888_Addon_Segohs_browar_Info()
{
AI_Output (other,self ,"DIA_Sld_888_Addon_Segohs_browar_15_00"); //Mam piwo
AI_Output (self ,other,"DIA_Sld_Sld_888_Addon_Segohs_browar_01_01"); //Dzięki.. Ratujesz mi życie..
B_giveinvitems (other, self, itfo_beer, 1);
Createinvitems (self, itmi_gold, 50);
B_giveinvitems (self, other, itmi_gold, 50);
B_LogEntry (TOPIC_piwko, "Zdobyłem to piwo, dałem je strażnikowi, chyba to już koniec..");
Log_SetTopicStatus (Topic_piwko, LOG_SUCCESS);
};