Witajcie. Otóż zacząłem już robić zaawansowane dialogi wedlug poradnika czip17. Lecz wyskakuje mi taki błąd:
U:PAR Assignment : Left operand is not a lvalue (line 134). Wyskakuje mi to po zrobieniu dodatkowego questa u mojej postaci wiec to chyba u niej to zachodzi. A co do listu i Hagena tam się znajdującego to wszystko oskryptowalem i jest spokojnie.
//*********************************************************************
// 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_Addon_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_Addon_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);
};
//*********************************************************************
// ostateczny klest
//*********************************************************************
INSTANCE DIA_Sld_888_Addon_Segohs_quest (C_INFO)
{
npc = Sld_888_Addon_Segohs;
nr = 1;
condition = DIA_Sld_888_Addon_Segohs_quest_Condition;
information = DIA_Sld_888_Addon_Segohs_quest_Info;
permanent = FALSE;
description = "Mam piwo.";
};
FUNC INT DIA_Sld_888_Addon_Segohs_quest_Condition()
{
if (Npc_KnowsInfo (other,DIA_Lord_Hagen_segohs))
&& (Npc_hasitems (other, ItWr_list) >=1) 134 linijka!!!!!
{
return TRUE;
};
};
FUNC VOID DIA_Sld_888_Addon_Segohs_quest_Info()
{
AI_Output (other,self ,"DIA_Sld_888_Addon_Segohs_quest_15_00"); //Masz czytaj..
B_giveinvitems (other, self, ItWr_list, 1);
UseItem (self, ItWr_list)
AI_Output (self ,other,"DIA_Sld_Sld_888_Addon_Segohs_quest_01_01"); //O nie.. Musimy biec do miasta!
B_LogEntry (TOPIC_str, "Muszę iść za Segohsem");
};