Spoiler
//*********************************************************************
// Kannst du mir dieses Amulett reparieren?
//*********************************************************************
instance DIA_Bennet_GiveInnosEye (C_INFO)
{
npc = SLD_809_Bennet;
nr = 8;
condition = DIA_Bennet_GiveInnosEye_Condition;
information = DIA_Bennet_GiveInnosEye_Info;
permanent = FALSE;
description = "Oto amulet, proszę, napraw go dla mnie.";
};
func int DIA_Bennet_GiveInnosEye_Condition ()
{
IF (Npc_HasItems (other,ItMi_InnosEye_Broken_Mis) >=1)
&& (MIS_SCKnowsInnosEyeIsBroken == TRUE)
&& (MIS_REscueBennet == LOG_SUCCESS)
&& (MIS_Bennet_InnosEyeRepairedSetting != LOG_SUCCESS)
{
return TRUE;
};
};
func void DIA_Bennet_GiveInnosEye_Info ()
{
AI_Output (other, self, "DIA_Bennet_GiveInnosEye_15_00"); //Oto amulet, proszę, napraw go dla mnie.
AI_Output (self, other, "DIA_Bennet_GiveInnosEye_06_01"); //W porządku. Do jutra zrobię nową oprawę.
AI_Output (self, other, "DIA_Bennet_GiveInnosEye_06_02"); //Możesz do mnie wtedy przyjść i go odebrać.
Npc_RemoveInvItems (other, ItMi_InnosEye_Broken_Mis,1);
AI_PrintScreen (Print_InnoseyeGiven, -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
Bennet_RepairDay = Wld_GetDay ();
};
///////////////////////////////////////////////////////////////////////
// Kannst du mir dieses Amulett reparieren?
///////////////////////////////////////////////////////////////////////
instance DIA_Bennet_GetInnosEye (C_INFO)
{
npc = SLD_809_Bennet;
nr = 8;
condition = DIA_Bennet_GetInnosEye_Condition;
information = DIA_Bennet_GetInnosEye_Info;
permanent = TRUE;
description = "Czy amulet jest gotowy?";
};
func int DIA_Bennet_GetInnosEye_Condition ()
{
IF (Npc_KnowsInfo (other,DIA_Bennet_GiveInnosEye)
&& (MIS_Bennet_InnosEyeRepairedSetting != LOG_SUCCESS))
{
return TRUE;
};
};
func void DIA_Bennet_GetInnosEye_Info ()
{
AI_Output (other, self, "DIA_Bennet_GetInnosEye_15_00"); //Czy amulet jest gotowy?
if (Bennet_RepairDay < Wld_GetDay())
{
AI_Output (self, other, "DIA_Bennet_GetInnosEye_06_01"); //Tak, proszę.
TEXT_Innoseye_Setting = TEXT_Innoseye_Setting_Repaired;
CreateInvItems (other,ItMi_InnosEye_Broken_Mis,1);
AI_PrintScreen (Print_InnoseyeGet, -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
AI_Output (self, other, "DIA_Bennet_GetInnosEye_06_02"); //Musiałem zrobić nową oprawę dla kamienia.
AI_Output (self, other, "DIA_Bennet_GetInnosEye_06_03"); //Pracowałem przez całą noc. Wygląda jak nowy.
B_LogEntry (TOPIC_INNOSEYE, "Bennet naprawił oprawę amuletu.");
MIS_Bennet_InnosEyeRepairedSetting = LOG_SUCCESS;
B_GivePlayerXP (XP_InnosEyeIsRepaired);
}
else
{ //Hack Mattes
B_SayBennetLATER();
//AI_Output (self, other, "DIA_Bennet_GetInnosEye_06_04"); //Nein, noch nicht. Komm später wieder.
AI_Output (self, other, "DIA_Bennet_GetInnosEye_06_05"); //Jeśli będziesz mi przeszkadzał, potrwa to dłużej.
AI_StopProcessInfos (self);
};
};