instance dia_attila_ThiefQuest6_Start(C_INFO)
{
npc = Vlk_494_Attila;
nr = 2;
condition = dia_attila_ThiefQuest6_Start_condition;
information = dia_attila_ThiefQuest6_Start_info;
permanent = true;
description = "Мне опять нужна твоя помощь с охранником судьи.";
};
func int dia_attila_ThiefQuest6_Start_condition()
{
if((MIS_Thiefquest6 > 0) && (npc_isdoingroutine(Vlk_494_Attila, "chieflair")) && (MIS_Thiefquest6 != LOG_SUCCESS))
{
return true;
};
};
func void dia_attila_ThiefQuest6_Start_info()
{
AI_Output(other, self, "dia_attila_ThiefQuest6_Start_00");
AI_Output(self, other, "dia_attila_ThiefQuest6_Start_01");
Npc_ExchangeRoutine(self,"quest3");
AI_StopProcessInfos(self);
};
instance dia_richter_ThiefQuest6_Start(C_INFO)
{
npc = Vlk_402_Richter;
nr = 1;
condition = dia_richter_ThiefQuest6_Start_condition;
information = dia_richter_ThiefQuest6_Start_info;
permanent = false;
description = "Мне нужно с тобой поговорить.";
};
func int dia_richter_ThiefQuest6_Start_condition()
{
if(MIS_Thiefquest6 == 1)
{
return true;
};
};
func void dia_richter_ThiefQuest6_Start_info()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_00");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_01");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_02");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_03");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_04");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_05");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_06");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_07");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_08");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_09");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_10");
Vlk_402_Richter.aivar[93] = true;
Info_ClearChoices(dia_richter_ThiefQuest6_Start);
if(npc_hasitems(hero,ItMi_Gold) >= 2000)
{
Info_AddChoice(dia_richter_ThiefQuest6_Start, "Потому что ты станешь богаче на 2000 золотых.", dia_richter_ThiefQuest6_Start_1);
};
if((npc_hasitems(hero,ItMi_Gold) >= 1000) && (Rhetorikskillvalue[1] >= 40))
{
Info_AddChoice(dia_richter_ThiefQuest6_Start, "Потому что ты станешь богаче на 1000 золотых (Риторика 40).", dia_richter_ThiefQuest6_Start_2);
};
Info_AddChoice(dia_richter_ThiefQuest6_Start, "Потому что для тебя могут быть печальные последствия (угроза)", dia_richter_ThiefQuest6_Start_3);
Info_AddChoice(dia_richter_ThiefQuest6_Start, "Потому что я готов выполнить твои условия.", dia_richter_ThiefQuest6_Start_4);
};
func void dia_richter_ThiefQuest6_Start_1()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_11");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_12");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_13");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_14");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_15");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_16");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_17");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_18");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_19");
B_GiveInvItems(other,self, ItMi_Gold, 2000);
npc_removeinvitems(self, ItMi_Gold, 2000);
MIS_Thiefquest6 = 2;
B_LogEntry(TOPIC_Thief_quest6, "Удалось договориться с Ристером за 2000 золотых. Нужно сообщить об этом Кассии.");
AI_StopProcessInfos(self);
};
func void dia_richter_ThiefQuest6_Start_2()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_20");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_12");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_13");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_14");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_21");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_16");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_17");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_18");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_19");
B_GiveInvItems(other,self, ItMi_Gold, 1000);
npc_removeinvitems(self, ItMi_Gold, 1000);
MIS_Thiefquest6 = 2;
B_LogEntry(TOPIC_Thief_quest6, "Удалось договориться с Ристером за 1000 золотых. Нужно сообщить об этом Кассии.");
AI_StopProcessInfos(self);
};
func void dia_richter_ThiefQuest6_Start_3()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_22");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_23");
self.aivar[AIV_ToughGuy] = true;
self.aivar[AIV_IGNORESFAKEGUILD] = true;
AI_StopProcessInfos(self);
MIS_Thiefquest6 = 3;
B_Attack(Mil_306_Tuerwache,hero,AR_GUARDSTOPSINTRUDER,1);
B_Say(self, other, "$ALARM");
B_Attack(self, other, AR_GUARDSTOPSINTRUDER, 1);
toarmshighcitygate = FALSE;
global_make_bandit_forcity = 1;
ai_printred("Городские власти объявили вас вне закона!");
B_LogEntry(TOPIC_Thief_quest6, "Переговоры с Ристером провалились, теперь нужно его силой заставить принять условия.");
};
func void dia_richter_ThiefQuest6_Start_4()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_24");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_25");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_26");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_27");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_28");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_29");
AI_Output(other, self, "dia_richter_ThiefQuest6_Start_30");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_31");
AI_Output(self, other, "dia_richter_ThiefQuest6_Start_32");
MIS_Thiefquest6 = 4;
B_LogEntry(TOPIC_Thief_quest6, "Ристер перестанет копать под Рамиреса, если я заберу его долг у Лютеро в 6000 золотых.");
AI_StopProcessInfos(self);
};
instance dia_richter_ThiefQuest6_Next(C_Info)
{
npc = Vlk_402_Richter;
nr = 1;
condition = dia_richter_ThiefQuest6_Next_Condition;
information = dia_richter_ThiefQuest6_Next_Info;
permanent = true;
important = true;
};
func int dia_richter_ThiefQuest6_Next_Condition()
{
if((self.aivar[AIV_ToughGuy] == true) && (self.aivar != fight_none) && (MIS_Thiefquest6 == 3) && (self.aivar == FIGHT_LOST))
{
return true;
};
};
func void dia_richter_ThiefQuest6_Next_Info()
{
AI_Output(other, self, "dia_richter_ThiefQuest6_Next_00");
AI_Output(self, other, "dia_richter_ThiefQuest6_Next_01");
AI_Output(other, self, "dia_richter_ThiefQuest6_Next_02");
AI_Output(self, other, "dia_richter_ThiefQuest6_Next_03");
AI_Output(other, self, "dia_richter_ThiefQuest6_Next_04");
self.aivar[AIV_ToughGuy] = false;
self.aivar[AIV_IGNORESFAKEGUILD] = false;
MIS_Thiefquest6 = 5;
B_LogEntry(TOPIC_Thief_quest6, "После физических уговоров Ристер согласился прекратить преследование Рамиреса. Нужно рассказать обо всём Кассии.");
AI_StopProcessInfos(self);
};
instance DIA_Lutero_ThiefQuest6_Start(C_Info)
{
npc = VLK_404_Lutero;
nr = 1;
condition = DIA_Lutero_ThiefQuest6_Start_Condition;
information = DIA_Lutero_ThiefQuest6_Start_Info;
permanent = true;
description = "Спросить про долг Ристера";
};
func int DIA_Lutero_ThiefQuest6_Start_Condition()
{
if(MIS_Thiefquest6 == 4)
{
return true;
};
};
func void DIA_Lutero_ThiefQuest6_Start_Info()
{
AI_Output(other, self, "DIA_Lutero_ThiefQuest6_Start_00");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_01");
AI_Output(other, self, "DIA_Lutero_ThiefQuest6_Start_02");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_03");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_04");
AI_Output(other, self, "DIA_Lutero_ThiefQuest6_Start_05");
if(TradeGuildReputation >= 3)
{
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_06");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_07");
AI_Output(other, self, "DIA_Lutero_ThiefQuest6_Start_08");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_09");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_10");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_11");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_12");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_13");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_14");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_15");
AI_Output(other, self, "DIA_Lutero_ThiefQuest6_Start_16");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_17");
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_18");
}
else
{
AI_Output(self, other, "DIA_Lutero_ThiefQuest6_Start_18");
};
};