instance mil_miliz_sleep(NPC_DEFAULT)
instance vlk_fisher_sleeploc(NPC_DEFAULT)
instance pc_psionicquest_templatedialog_685(C_INFO)
{
npc = Vlk_Fisher_Sleeploc;
condition = pc_psionicquest_templatedialog_685_condition;
information = pc_psionicquest_templatedialog_685_info;
important = FALSE;
permanent = TRUE;
description = "Ты рыбак?";
};
func int pc_psionicquest_templatedialog_685_condition()
{
return TRUE;
};
func void pc_psionicquest_templatedialog_685_info()
{
var int rnd;
rnd = Hlp_Random(2);
rx_diaaddnpc(mil_miliz_sleep);
rx_diastart(TRUE);
AI_Output(other, self, "DIA_Addon_Farim_Hallo_15_00"); //Ты рыбак?
if (rx_sl_fisherknowshero && rx_getchance(35))
{
if (rnd == 0)
{
rx_diasetactive(vlk_fisher_sleeploc);
AI_Output(self, other, "DIA_FARIM_SL_EXACTLY"); //Именно так.
rx_diastop();
if (!rx_sleepfishdialog_0)
{
rx_sleepfishdialog_0 = TRUE;
B_GivePlayerXP(50);
};
return;
}
else if (rnd == 1)
{
rx_diasetactive(vlk_fisher_sleeploc);
AI_Output(self, other, "DIA_Addon_Farim_Add_11_01"); //А, это снова ты!
AI_Output(self, other, "DIA_FARIM_FISHSOLO"); //Рыба!
rx_diastop();
if (!rx_sleepfishdialog_1)
{
rx_sleepfishdialog_1 = TRUE;
B_GivePlayerXP(50);
};
return;
};
};
rx_diasetactive(mil_miliz_sleep);
AI_TurnToNpc(self, other);
AI_Output(self, other, "DIA_FARIM_HEISFISHER"); //Он - рыбак!
rx_diasetactive(vlk_fisher_sleeploc);
if (!rx_sl_fisherknowshero)
{
AI_Output(self, other, "DIA_FARIM_KABAK"); //Эх, пойду-ка я в кабак.
}
else if (rnd == 0)
{
AI_Output(self, other, "DIA_FARIM_FISHSOLO"); //Рыба!
if (!rx_sleepfishdialog_2) {
rx_sleepfishdialog_2 = TRUE;
B_GivePlayerXP(50);
};
}
else if (rnd == 1)
{
AI_Output(self, other, "DIA_FARIM_KABAK"); // Эх, пойду-ка я в кабак.
if (!rx_sleepfishdialog_3)
{
rx_sleepfishdialog_3 = TRUE;
B_GivePlayerXP(50);
};
};
rx_sl_fisherknowshero = TRUE;
rx_diastop();
};