instance DIA_Cassia_ThiefQuest3_Start(C_Info)
{
npc = VLK_447_Cassia;
condition = DIA_Cassia_ThiefQuest3_Start_Condition;
information = DIA_Cassia_ThiefQuest3_Start_Info;
important = true;
};
func int DIA_Cassia_ThiefQuest3_Start_Condition()
{
var int daynow;
daynow = Wld_GetDay();
if((thiefquestday + 1 <= daynow) && (MIS_Thiefquest2 == LOG_SUCCESS))
{
return true;
};
};
func void DIA_Cassia_ThiefQuest3_Start_Info()
{
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_00");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_01");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_02");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_03");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_04");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_05");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_06");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_07");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_08");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_09");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_10");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_11");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_12");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_13");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_14");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_Start_15");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_Start_16");
MIS_Thiefquest3 = LOG_Running;
Log_CreateTopic(TOPIC_Thief_quest3,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Thief_quest3,LOG_Running);
mil_306_tuerwache.aivar[AIV_BOSS] = TRUE;
mil_306_tuerwache.attribute[1] += 1000;
mil_306_tuerwache.attribute += 1000;
B_LogEntry(TOPIC_Thief_quest3, "Кассия дала мне задание выкрасть из секретного сундука судьи Ристера документы о деле против Рамиреса, в которых указаны данные свидетеля против Рамиреса.");
Npc_ExchangeRoutine(mil_306_tuerwache,"chest");
Mob_CreateItems("NW_CHEST_95", itwr_richterdoc, 1);
AI_StopProcessInfos(self);
};
instance DIA_Cassia_ThiefQuest3_End(C_Info)
{
npc = VLK_447_Cassia;
nr = 2;
condition = DIA_Cassia_ThiefQuest3_End_Condition;
information = DIA_Cassia_ThiefQuest3_End_Info;
description = "Документы Ристера у меня.";
};
func int DIA_Cassia_ThiefQuest3_End_Condition()
{
if((npc_hasitems(hero,itwr_richterdoc) >= 1) && (MIS_Thiefquest3 == LOG_Running))
{
return true;
};
};
func void DIA_Cassia_ThiefQuest3_End_Info()
{
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_00");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_01");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_02");
B_UseFakeScroll();
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_03");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_04");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_05");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_06");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_07");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_08");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_09");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_10");
AI_Output(other,self,"DIA_Cassia_ThiefQuest3_End_11");
AI_Output(self,other,"DIA_Cassia_ThiefQuest3_End_12");
npc_removeinvitems(hero, itwr_richterdoc, 1);
MIS_Thiefquest3 = LOG_SUCCESS;
if(attila_ThiefQuest3 == 2)
{
Vlk_494_Attila.attribute[1] += 250;
Vlk_494_Attila.attribute += 250;
};
THIEF_REPUTATION += 1;
mil_306_tuerwache.aivar[AIV_BOSS] = false;
Vlk_494_Attila.aivar[AIV_PARTYMEMBER] = false;
thiefquestday = Wld_GetDay();
Log_SetTopicStatus(TOPIC_Thief_quest3,LOG_SUCCESS);
B_CloseTopic_Now(TOPIC_Thief_quest3,MIS_Thiefquest3,0,2);
ai_printbonus("Репутация в Гильдии Воров +1");
B_GivePlayerXP(500);
B_GiveInvItems(self,other, ItMi_Gold, 400);
AI_StopProcessInfos(self);
};
instance Mil_306_ThiefQuest3_1(C_INFO)
{
npc = Mil_306_Tuerwache;
condition = Mil_306_ThiefQuest3_1_condition;
information = Mil_306_ThiefQuest3_1_info;
important = true;
};
func int Mil_306_ThiefQuest3_1_condition()
{
if (MIS_Thiefquest3 == LOG_Running)
{
return TRUE;
};
};
func void Mil_306_ThiefQuest3_1_info()
{
AI_Output(self, other, "Mil_306_ThiefQuest3_1_00");
AI_Output(self, other, "Mil_306_ThiefQuest3_1_01");
AI_Output(other, self, "Mil_306_ThiefQuest3_1_02");
MIS_Thiefquest3 = 2;
B_LogEntry(TOPIC_Thief_quest3, "Охранник судьи не пускает никого в дом. Мне нужна помощь, чтобы его выманить, нужно поговорить с Аттилой.");
AI_StopProcessInfos(self);
};
instance Mil_306_ThiefQuest3_2(C_INFO)
{
npc = Mil_306_Tuerwache;
condition = Mil_306_ThiefQuest3_2_condition;
information = Mil_306_ThiefQuest3_2_info;
important = true;
permanent = true;
};
func int Mil_306_ThiefQuest3_2_condition()
{
if(((MIS_Thiefquest3 == 2) || (MIS_Thiefquest3 == 3)) && (Npc_KnowsInfo(other,Mil_306_ThiefQuest3_1)) && (Npc_GetDistToWP(hero, "NW_CITY_RICHTER") <= 500))
{
return TRUE;
};
};
func void Mil_306_ThiefQuest3_2_info()
{
if((attila_ThiefQuest3 > 0) && (npc_isdoingroutine(Vlk_494_Attila, "quest3")))
{
AI_Output(other, self, "Mil_306_ThiefQuest3_2_00");
AI_Output(self, other, "Mil_306_ThiefQuest3_2_01");
AI_StopProcessInfos(self);
attila_ThiefQuest3 = 2;
B_Attack(Mil_306_Tuerwache,Vlk_494_Attila,AR_NONE,1);
Npc_ExchangeRoutine(Vlk_494_Attila,"quest2");
AI_GotoWP(Vlk_494_Attila, "NW_CITY_MERCHANT_PATH_09");
AI_SetWalkMode(Vlk_494_Attila, NPC_RUN);
}
else
{
AI_Output(self, other, "Mil_306_ThiefQuest3_2_02");
AI_StopProcessInfos(self);
B_Attack(Mil_306_Tuerwache,hero,AR_NONE,2);
};
};
var int attila_ThiefQuest3;
instance dia_attila_ThiefQuest3(C_INFO)
{
npc = Vlk_494_Attila;
nr = 2;
condition = dia_attila_ThiefQuest3_condition;
information = dia_attila_ThiefQuest3_info;
permanent = true;
description = "Мне нужна твоя помощь.";
};
func int dia_attila_ThiefQuest3_condition()
{
if(((MIS_Thiefquest3 == 2) || (MIS_Thiefquest3 == 3)) && (npc_isdoingroutine(Vlk_494_Attila, "quest2")))
{
return TRUE;
};
};
func void dia_attila_ThiefQuest3_info()
{
if(attila_ThiefQuest3 == 0)
{
AI_Output(other, self, "dia_attila_ThiefQuest3_00");
AI_Output(self, other, "dia_attila_ThiefQuest3_01");
AI_Output(other, self, "dia_attila_ThiefQuest3_02");
AI_Output(self, other, "dia_attila_ThiefQuest3_03");
attila_ThiefQuest3 = 1;
B_LogEntry(TOPIC_Thief_quest3, "Аттила поможет мне выманить охранника.");
}
else
{
AI_Output(self, other, "dia_attila_ThiefQuest3_03");
};
Npc_ExchangeRoutine(self,"quest3");
AI_StopProcessInfos(self);
};