Koniec
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Artemid_EXIT(C_INFO)
{
npc = VLK_4305_Artemid;
nr = 999;
condition = DIA_Artemid_EXIT_Condition;
information = DIA_Artemid_EXIT_Info;
permanent = TRUE;
description = "KONIEC";
};
FUNC INT DIA_Artemid_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Artemid_EXIT_Info()
{
AI_StopProcessInfos (self);
};
Tam gdzie wywala błąd
//========================================
//-----------------> HELLO8
//========================================
INSTANCE DIA_Artemid_HELLO8 (C_INFO)
{
npc = VLK_4305_Artemid;
nr = 8;
condition = DIA_Artemid_HELLO8_Condition;
information = DIA_Artemid_HELLO8_Info;
permanent = FALSE;
description = "Wszystkie potwory nie żyją.";
};
FUNC INT DIA_Artemid_HELLO8_Condition()
{
var C_NPC whodie0; whodie0 = Hlp_GetNpc(YWolf);
var C_NPC whodie1; whodie1 = Hlp_GetNpc(YGobbo_Green);
var C_NPC whodie2; whodie2 = Hlp_GetNpc(YGiant_Bug);
if (MIS_Polowanie_na_bestie == LOG_RUNNING)
&& (Npc_IsDead(whodie0))
&& (Npc_IsDead(whodie1))
&& (Npc_IsDead(whodie2))
{
return TRUE;
};
};
FUNC VOID DIA_Artemid_HELLO8_Info()
{
AI_Output (other, self ,"DIA_Artemid_HELLO8_15_01"); //Wszystkie potwory nie żyją.
AI_Output (self, other ,"DIA_Artemid_HELLO8_03_02"); //Świetnie.Zgodnie z umową wybierz sobie nagrodę.
B_LogEntry (TOPIC_Polowanie_na_bestie,"Wykonałem zadanie.Teraz pozostaje mi tylko wybrać nagrodę.");
Log_SetTopicStatus (TOPIC_Polowanie_na_bestie, LOG_SUCCESS);
MIS_Polowanie_na_bestie = LOG_SUCCESS;
B_GivePlayerXP (150);
Info_ClearChoices (DIA_Artemid_HELLO8);
Info_AddChoice (DIA_Artemid_HELLO8, "Daj mi jakąś runę.", DIA_Artemid_HELLO8_WezmeRune);
Info_AddChoice (DIA_Artemid_HELLO8, "Wezmę eliksir zręczności.", DIA_Artemid_HELLO8_WybieramEliksir);
Info_AddChoice (DIA_Artemid_HELLO8, "Wezmę złoto.", DIA_Artemid_HELLO8_Zloto);
};
FUNC VOID DIA_Artemid_HELLO8_WezmeRune()
{
AI_Output (other, self ,"DIA_Artemid_HELLO8_WezmeRune_15_01"); //Daj mi jakąś runę.
AI_Output (self, other ,"DIA_Artemid_HELLO8_WezmeRune_03_02"); //Niech ta runa spopieli twoich wrogów.
CreateInvItems (self, ItRu_InstantFireball, 1);
B_GiveInvItems (self, other, ItRu_InstantFireball, 1);
Info_ClearChoices (DIA_Artemid_HELLO8);
Wld_RemoveNpc (VLK_4305_Artemid);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Artemid_HELLO8_WybieramEliksir()
{
AI_Output (other, self ,"DIA_Artemid_HELLO8_WybieramEliksir_15_01"); //Wezmę eliksir zręczności.
AI_Output (self, other ,"DIA_Artemid_HELLO8_WybieramEliksir_03_02"); //Niech się zwiększy twój spryt.
CreateInvItems (self, ItPo_Perm_DEX, 1);
B_GiveInvItems (self, other, ItPo_Perm_DEX, 1);
Info_ClearChoices (DIA_Artemid_HELLO8);
Wld_RemoveNpc (VLK_4305_Artemid);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Artemid_HELLO8_Zloto()
{
AI_Output (other, self ,"DIA_Artemid_HELLO8_Zloto_15_01"); //Wezmę złoto.
AI_Output (self, other ,"DIA_Artemid_HELLO8_Zloto_03_02"); //Masz.Tylko nie daj się okraść!
CreateInvItems (self, ItMi_Gold, 100);
B_GiveInvItems (self, other, ItMi_Gold, 100);
Info_ClearChoices (DIA_Artemid_HELLO8);
Wld_RemoveNpc (VLK_4305_Artemid);
AI_StopProcessInfos (self);
};