func void use_itmi_innosstatue() {
var c_npc her;
her = hlp_getnpc(pc_hero);
if(hlp_getinstanceid(self) == hlp_getinstanceid(her)) {
if Npc_getDistToWP(hero,"WP_VATRAS_IN_HOUSE_01") >= 235 && Npc_getDistToWP(hero,"WP_VATRAS_IN_HOUSE_01") <= 330 && Npc_getDistToWP(hero,"WP_VATRAS_IN_HOUSE") >= 470 && Npc_getDistToWP(hero,"WP_VATRAS_IN_HOUSE") <= 520 && Npc_getDistToWP(hero,"NW_CITY_SIT_VATRAS") >= 420 && Npc_getDistToWP(hero,"NW_CITY_SIT_VATRAS") <= 535
{
ai_playani(hero, "T_STAND_2_PRAY");
b_say(hero, hero, "$HELLO_INNOS");
AI_Wait(hero, 5);
rx_playeffect("SPELLFX_HEALSHRINE", hero);
ai_playani(hero, "T_PRAY_2_STAND");
}
else {
ai_playani(hero, "T_STAND_2_PRAY");
b_say(self, self, "$HELLO_INNOS");
praymobilecheck = true;
ai_processinfos(self);
if(cinemamod == true) {
rx_playeffect("DIALOGSCOPE_FX", hero);
};
};
};
};