instance DIA_Cassia_ThiefQuest4_End(C_Info)
{
npc = VLK_447_Cassia;
nr = 2;
condition = DIA_Cassia_ThiefQuest4_End_Condition;
information = DIA_Cassia_ThiefQuest4_End_Info;
description = "Я выявил стукача.";
};
func int DIA_Cassia_ThiefQuest4_End_Condition()
{
if((MIS_Thiefquest4 == 6) && ((ThiefQuest4_Nagur == 6) || (ThiefQuest4_Rengaru == 6) || (ThiefQuest4_Joe == 6)))
{
return true;
};
};
func void DIA_Cassia_ThiefQuest4_End_Info()
{
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_00");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_01");
if(ThiefQuest4_Nagur == 6)
{
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_02");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_03");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_04");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_05");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_06");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_07");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_08");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_09");
MIS_Thiefquest4 = LOG_SUCCESS;
B_LogEntry(TOPIC_Thief_quest4, "Я рассказал Кассии, что Нагур оказался стукачем.");
Log_SetTopicStatus(TOPIC_Thief_quest4,LOG_SUCCESS);
thiefquestday = Wld_GetDay();
B_CloseTopic_Now(TOPIC_Thief_quest4,MIS_Thiefquest4,0,2);
ai_printbonus("Репутация в Гильдии Воров +2");
B_GivePlayerXP(1000);
B_GiveInvItems(self,other, ItMi_Gold, 1000);
MIS_Thiefquest5 = LOG_Running;
Log_CreateTopic(TOPIC_Thief_quest5,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Thief_quest5,LOG_Running);
B_LogEntry(TOPIC_Thief_quest5, "Кассия поручила мне передать приказ Аттиле убить Нагура.");
};
if(ThiefQuest4_Rengaru == 6)
{
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_10");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_03");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_04");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_11");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_06");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_07");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_08");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_12");
MIS_Thiefquest4 = LOG_SUCCESS;
B_LogEntry(TOPIC_Thief_quest4, "Я рассказал Кассии, что Ренгару оказался стукачем.");
Log_SetTopicStatus(TOPIC_Thief_quest4,LOG_SUCCESS);
thiefquestday = Wld_GetDay();
B_CloseTopic_Now(TOPIC_Thief_quest4,MIS_Thiefquest4,0,2);
ai_printbonus("Репутация в Гильдии Воров +2");
B_GivePlayerXP(1000);
B_GiveInvItems(self,other, ItMi_Gold, 1000);
MIS_Thiefquest5 = LOG_Running;
Log_CreateTopic(TOPIC_Thief_quest5,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Thief_quest5,LOG_Running);
B_LogEntry(TOPIC_Thief_quest5, "Кассия поручила мне передать приказ Аттиле убить Ренгару.");
};
if(ThiefQuest4_Joe == 6)
{
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_13");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_03");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_04");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_14");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_06");
AI_Output(other,self,"DIA_Cassia_ThiefQuest4_End_07");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_08");
AI_Output(self,other,"DIA_Cassia_ThiefQuest4_End_15");
MIS_Thiefquest4 = LOG_SUCCESS;
B_LogEntry(TOPIC_Thief_quest4, "Я рассказал Кассии, что Джо оказался стукачем.");
Log_SetTopicStatus(TOPIC_Thief_quest4,LOG_SUCCESS);
thiefquestday = Wld_GetDay();
B_CloseTopic_Now(TOPIC_Thief_quest4,MIS_Thiefquest4,0,2);
ai_printbonus("Репутация в Гильдии Воров +2");
B_GivePlayerXP(1000);
B_GiveInvItems(self,other, ItMi_Gold, 1000);
MIS_Thiefquest5 = LOG_Running;
Log_CreateTopic(TOPIC_Thief_quest5,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Thief_quest5,LOG_Running);
B_LogEntry(TOPIC_Thief_quest5, "Кассия поручила мне передать приказ Аттиле убить Джо.");
};
AI_StopProcessInfos(self);
};
func void rtn_Thiefquest5_493()
{
TA_Sit_Chair(14, 0, 23, 50, "NW_CITY_HABOUR_TAVERN01_02");
TA_Stand_Armscrossed(23, 50, 6, 0, "NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_01");
TA_Sit_Chair(6, 0, 14, 0, "NW_CITY_HABOUR_TAVERN01_02");
};
func void rtn_Thiefquest5_492()
{
TA_Stand_Armscrossed(18, 0, 23, 50, "NW_CITY_HABOUR_KASERN_19");
TA_Stand_Armscrossed(23, 50, 6, 0, "NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_01");
TA_Stand_Armscrossed(6, 0, 18, 00, "NW_CITY_HABOUR_KASERN_19");
};
func void rtn_Thiefquest5_448()
{
TA_Sit_Bench(12, 0, 15, 0, "NW_CITY_WAY_TO_SHIP_03");
TA_Stand_Drinking(15, 0, 23, 50, "NW_CITY_HABOUR_TAVERN01_08");
TA_Stand_Armscrossed(23, 50, 6, 0, "NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_01");
TA_Sit_Bench(6, 0, 12, 0, "NW_CITY_WAY_TO_SHIP_03");
};
instance dia_attila_Thiefquest5_start(C_INFO)
{
npc = Vlk_494_Attila;
nr = 2;
condition = dia_attila_Thiefquest5_start_condition;
information = dia_attila_Thiefquest5_start_info;
description = "Передать приказ Кассии.";
};
func int dia_attila_Thiefquest5_start_condition()
{
if(MIS_Thiefquest5 == LOG_Running)
{
return TRUE;
};
};
func void dia_attila_Thiefquest5_start_info()
{
AI_Output(other, self, "dia_attila_Thiefquest5_start_00");
AI_Output(self, other, "dia_attila_Thiefquest5_start_01");
if(ThiefQuest4_Nagur == 6)
{
AI_Output(other, self, "dia_attila_Thiefquest5_start_02");
Npc_ExchangeRoutine(Vlk_494_Attila,"Thiefquest5");
Npc_ExchangeRoutine(Vlk_493_Nagur,"Thiefquest5");
B_LogEntry(TOPIC_Thief_quest5, "Аттила назначит встресу с Нагуром за домом Хальвора ночью. Нужно подготовится к смертельной драке.");
MIS_Thiefquest5 = 2;
};
if(ThiefQuest4_Rengaru == 6)
{
AI_Output(other, self, "dia_attila_Thiefquest5_start_03");
Npc_ExchangeRoutine(Vlk_494_Attila,"Thiefquest5");
Npc_ExchangeRoutine(Vlk_492_Rengaru,"Thiefquest5");
B_LogEntry(TOPIC_Thief_quest5, "Аттила назначит встресу с Ренгару за домом Хальвора ночью. Нужно подготовится к смертельной драке.");
MIS_Thiefquest5 = 3;
};
if(ThiefQuest4_Joe == 6)
{
AI_Output(other, self, "dia_attila_Thiefquest5_start_04");
Npc_ExchangeRoutine(Vlk_494_Attila,"Thiefquest5");
Npc_ExchangeRoutine(Vlk_448_Joe,"Thiefquest5");
B_LogEntry(TOPIC_Thief_quest5, "Аттила назначит встресу с Джо за домом Хальвора ночью. Нужно подготовится к смертельной драке.");
MIS_Thiefquest5 = 4;
};
AI_Output(self, other, "dia_attila_Thiefquest5_start_05");
AI_Output(other, self, "dia_attila_Thiefquest5_start_06");
AI_Output(self, other, "dia_attila_Thiefquest5_start_07");
AI_Output(self, other, "dia_attila_Thiefquest5_start_08");
B_LogEntry(TOPIC_Thief_quest5, "По возможности Аттила просит хороший меч и броню перед боем. Лучше это сделать до встречи со стукачом.");
self.aivar[AIV_PARTYMEMBER] = true;
AI_StopProcessInfos(self);
};
instance bdt_Thiefquest5_l(NPC_DEFAULT)
{
name = NAME_BANDIT;
guild = GIL_BDT;
flags = 0;
npctype = NPCTYPE_AMBIENT;
B_SetAttributesToChapter(bdt_Thiefquest5_l, 2);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(bdt_Thiefquest5_l, itmw_schwert2);
B_CreateAmbientInv(bdt_Thiefquest5_l);
B_SetNpcVisual(bdt_Thiefquest5_l, MALE, "Hum_Head_Bald", FACE_L_TOUGH02, BODYTEX_L, 25039);
Mdl_SetModelFatness(bdt_Thiefquest5_l, 0.00);
Mdl_ApplyOverlayMds(bdt_Thiefquest5_l, "Humans_Relaxed.mds");
B_GiveNpcTalents(bdt_Thiefquest5_l);
B_SetFightSkills(bdt_Thiefquest5_l, 30);
start_aistate = zs_bandit;
};
instance bdt_Thiefquest5_2(NPC_DEFAULT)
{
name = NAME_BANDIT;
guild = GIL_BDT;
flags = 0;
npctype = NPCTYPE_AMBIENT;
B_SetAttributesToChapter(bdt_Thiefquest5_2, 2);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(bdt_Thiefquest5_2, itmw_schwert2);
B_CreateAmbientInv(bdt_Thiefquest5_2);
B_SetNpcVisual(bdt_Thiefquest5_2, MALE, "Hum_Head_Bald", FACE_L_TOUGH02, BODYTEX_L, 25039);
Mdl_SetModelFatness(bdt_Thiefquest5_2, 0.00);
Mdl_ApplyOverlayMds(bdt_Thiefquest5_2, "Humans_Relaxed.mds");
B_GiveNpcTalents(bdt_Thiefquest5_2);
B_SetFightSkills(bdt_Thiefquest5_2, 30);
start_aistate = zs_bandit;
};
instance dia_attila_Thiefquest5_Next(C_INFO)
{
npc = Vlk_494_Attila;
condition = dia_attila_Thiefquest5_Next_condition;
information = dia_attila_Thiefquest5_Next_info;
important = true;
};
func int dia_attila_Thiefquest5_Next_condition()
{
if((Npc_GetDistToWP(hero, "NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_01") <= 500) && (Wld_IsTime(0, 10, 5, 50)) && ((MIS_Thiefquest5 == 2) || (MIS_Thiefquest5 == 3) || (MIS_Thiefquest5 == 4)))
{
return TRUE;
};
};
func void dia_attila_Thiefquest5_Next_info()
{
if(ThiefQuest4_Nagur == 6)
{
AI_Output(self, other, "dia_attila_Thiefquest5_Next_00");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_01");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_02");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_03");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_04");
Vlk_493_Nagur.guild = GIL_BDT;
Vlk_493_Nagur.aivar[AIV_DROPDEADANDKILL] = TRUE;
B_Attack(Vlk_493_Nagur,Vlk_494_Attila,AR_KILL,2);
B_LogEntry(TOPIC_Thief_quest5, "Нагур привёл головорезов, чтобы избавится от нас.");
MIS_Thiefquest5 = 5;
};
if(ThiefQuest4_Rengaru == 6)
{
AI_Output(self, other, "dia_attila_Thiefquest5_Next_00");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_01");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_02");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_03");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_04");
Vlk_492_Rengaru.guild = GIL_BDT;
Vlk_492_Rengaru.aivar[AIV_DROPDEADANDKILL] = TRUE;
B_Attack(Vlk_492_Rengaru,Vlk_494_Attila,AR_KILL,3);
B_LogEntry(TOPIC_Thief_quest5, "Ренгару привёл головорезов, чтобы избавится от нас.");
MIS_Thiefquest5 = 6;
};
if(ThiefQuest4_Joe == 6)
{
AI_Output(self, other, "dia_attila_Thiefquest5_Next_00");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_01");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_02");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_03");
AI_Output(self, other, "dia_attila_Thiefquest5_Next_04");
Vlk_448_Joe.guild = GIL_BDT;
Vlk_448_Joe.aivar[AIV_DROPDEADANDKILL] = TRUE;
B_Attack(Vlk_448_Joe,Vlk_494_Attila,AR_KILL,3);
B_LogEntry(TOPIC_Thief_quest5, "Джо привёл головорезов, чтобы избавится от нас.");
MIS_Thiefquest5 = 7;
};
AI_StopProcessInfos(self);
Vlk_494_Attila.aivar[AIV_CANNODEAD] = TRUE;
Wld_InsertNpc(bdt_Thiefquest5_l,"NW_CITY_HABOUR_POOR_AREA_PATH_01_03");
AI_Teleport(bdt_Thiefquest5_l,"NW_CITY_HABOUR_POOR_AREA_PATH_01_03");
Wld_InsertNpc(bdt_Thiefquest5_2,"NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_02");
AI_Teleport(bdt_Thiefquest5_2,"NW_CITY_HABOUR_POOR_AREA_BACK_ALLEY_02");
B_Attack(bdt_Thiefquest5_l,Vlk_494_Attila,AR_NONE,3);
B_Attack(bdt_Thiefquest5_2,Vlk_494_Attila,AR_NONE,3);
};
instance dia_attila_Thiefquest5_End(C_INFO)
{
npc = Vlk_494_Attila;
condition = dia_attila_Thiefquest5_End_condition;
information = dia_attila_Thiefquest5_End_info;
important = true;
};
func int dia_attila_Thiefquest5_End_condition()
{
if((((MIS_Thiefquest5 == 5) && (Npc_IsDead(Vlk_493_Nagur))) || ((MIS_Thiefquest5 == 6) && (Npc_IsDead(Vlk_492_Rengaru))) || ((MIS_Thiefquest5 == 7) && (Npc_IsDead(Vlk_448_Joe)))) && (Npc_IsDead(bdt_Thiefquest5_l)) && (Npc_IsDead(bdt_Thiefquest5_2)))
{
return TRUE;
};
};
func void dia_attila_Thiefquest5_End_info()
{
self.aivar[AIV_PARTYMEMBER] = false;
self.attribute[1] += 500;
self.attribute += 500;
self.attribute[4] += 50;
if((MIS_Thiefquest5 == 5) && (Npc_IsDead(Vlk_493_Nagur)))
{
AI_Output(self, other, "dia_attila_Thiefquest5_End_00");
B_LogEntry(TOPIC_Thief_quest5, "Нагур и его подельники мерты. Нужно рассказать об этом Кассии.");
MIS_Thiefquest5 = 8;
};
if((MIS_Thiefquest5 == 6) && (Npc_IsDead(Vlk_492_Rengaru)))
{
AI_Output(self, other, "dia_attila_Thiefquest5_End_00");
B_LogEntry(TOPIC_Thief_quest5, "Ренгару и его подельники мерты. Нужно рассказать об этом Кассии.");
MIS_Thiefquest5 = 9;
};
if((MIS_Thiefquest5 == 7) && (Npc_IsDead(Vlk_448_Joe)))
{
AI_Output(self, other, "dia_attila_Thiefquest5_End_00");
B_LogEntry(TOPIC_Thief_quest5, "Джо и его подельники мерты. Нужно рассказать об этом Кассии.");
MIS_Thiefquest5 = 10;
};
AI_StopProcessInfos(self);
};
instance DIA_Cassia_ThiefQuest5_End(C_Info)
{
npc = VLK_447_Cassia;
nr = 2;
condition = DIA_Cassia_ThiefQuest5_End_Condition;
information = DIA_Cassia_ThiefQuest5_End_Info;
description = "Стукач наказан.";
};
func int DIA_Cassia_ThiefQuest5_End_Condition()
{
if((MIS_Thiefquest5 == 8) || (MIS_Thiefquest5 == 9) || (MIS_Thiefquest5 == 10))
{
return true;
};
};
func void DIA_Cassia_ThiefQuest5_End_Info()
{
if(MIS_Thiefquest5 == 8)
{
AI_Output(other, self, "DIA_Cassia_ThiefQuest5_End_00");
};
if(MIS_Thiefquest5 == 9)
{
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_01");
};
if(MIS_Thiefquest5 == 10)
{
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_02");
};
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_03");
AI_Output(other, self, "DIA_Cassia_ThiefQuest5_End_04");
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_05");
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_06");
AI_Output(other, self, "DIA_Cassia_ThiefQuest5_End_07");
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_08");
AI_Output(self, other, "DIA_Cassia_ThiefQuest5_End_09");
AI_Output(other, self, "DIA_Cassia_ThiefQuest5_End_10");
MIS_Thiefquest5 = LOG_SUCCESS;
B_LogEntry(TOPIC_Thief_quest5, "Я рассказал Кассии, что Джо оказался стукачем.");
Log_SetTopicStatus(TOPIC_Thief_quest5,LOG_SUCCESS);
thiefquestday = Wld_GetDay();
B_CloseTopic_Now(TOPIC_Thief_quest5,MIS_Thiefquest5,0,2);
ai_printbonus("Репутация в Гильдии Воров +3");
B_GivePlayerXP(1000);
B_GiveInvItems(self,other, ItMi_Gold, 2500);
MIS_Thiefquest6 = LOG_Running;
Log_CreateTopic(TOPIC_Thief_quest6,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Thief_quest6,LOG_Running);
B_LogEntry(TOPIC_Thief_quest6, "Нужно каким-либо способом (уговорить) Ристера снять обвинения против Рамиреса, только не убивать.");
AI_StopProcessInfos(self);
};