[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info  = {+bar_russibic_help_amazons_dialog_end -jup_give_money_self} sr_idle@quest_control_1
on_info2 = {+jup_bubble_money_yes_dialog_start -jup_give_money_self} sr_idle@quest_control_14
on_info3 = {+jup_give_money_self} sr_idle@quest_control_14

[sr_idle@quest_control_1]
on_info  = {+jup_lena_debt_repayment_dialog_money} sr_idle@quest_control_2
on_info2 = {+jup_lena_debt_repayment_dialog_task} sr_idle@quest_control_4

[sr_idle@quest_control_2]
on_game_timer = 16 | sr_idle@quest_control_3 %=give_task( lena_qwest_money )%

[sr_idle@quest_control_3]
on_game_timer = 43200 | sr_idle@end %+lena_qwest_money_task_fail%
on_info = {+jup_klava_debt_repayment_dialog_end} sr_idle@quest_control_14

[sr_idle@quest_control_4]
on_game_timer = 16 | sr_idle@quest_control_5 %=give_task( lena_qwest_task )%

;-------------------------------------Стоим в Плавнях
[sr_idle@quest_control_5]
on_info  = {+actor_attack_smuggler_squad}            sr_idle@ecolog_squad     %+lena_qwest_money_task_fail%
on_info2 = {+jup_a2_ecolog_squad_dead}               sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
on_info3 = {+actor_attack_jup_a1_squad}              sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
on_info4 = {+actor_attack_smuggler_squad}            sr_idle@ecolog_squad     %+lena_qwest_money_task_fail%
on_info5 = {+jup_vasilkov_debt_repayment_dialog_end} sr_idle@quest_control_6


;------------------------------------Бежим до контейнерной
[sr_idle@quest_control_6]
on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
on_info2 = {+actor_attack_jup_a1_squad} sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
on_info3 = {+actor_attack_smuggler_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info4 = {+jup_a24_smuggler_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
;on_info5 = {+jup_vasilkov_debt_repayment_dialog_1_end} sr_idle@quest_control_8
on_info5 = {+jup_vasilkov_debt_repayment_dialog_1_end} sr_idle@quest_control_8 %=disable_ui =run_postprocess(black:3009:true) =add_cs_text(seleznev_doctor)%

;------------------------------------Поговорили, ждём 6 часов
[sr_idle@quest_control_8]
;on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
;on_info2 = {+actor_attack_jup_a1_squad} sr_idle@quest_control_13 %+lena_qwest_money_task_fail%
;on_info3 = {+jup_a24_smuggler_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
;on_info4 = {+actor_attack_smuggler_squad} sr_idle@end %+lena_qwest_money_task_fail%
;on_game_timer = 21600 | sr_idle@quest_control_9 %+it_is_time_to_speack_seleznev%
on_game_timer = 40 | sr_idle@quest_control_9 %=del_cs_text =stop_postprocess(3009) =enable_ui =forward_game_time(6) +it_is_time_to_speack_seleznev%

;------------------------------------Сталкеры вылечены
[sr_idle@quest_control_9]
on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info2 = {+actor_attack_jup_a1_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info3 = {+jup_a24_smuggler_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info4 = {+actor_attack_smuggler_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info5 = {+jup_vasilkov_debt_repayment_dialog_2_end} sr_idle@quest_control_10

;------------------------------------Сталкеры побежали
[sr_idle@quest_control_10]
on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info2 = {+actor_attack_jup_a1_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info3 = {+jup_a24_smuggler_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info4 = {+actor_attack_smuggler_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info5 = {+smugler_arrived_jup_a18 +jup_a18_agent_2_squad_dead +jup_a18_agent_1_squad_dead +jup_a18_agent_squad_dead} sr_idle@quest_control_11 %-squads_jup_a19_jup_a24_enemy%
on_info6 = {=is_squad_online(jup_a19_killer_squad) =is_squad_online(jup_a24_smuggler_squad) -squads_jup_a19_jup_a24_enemy} %+squads_jup_a19_jup_a24_enemy =set_squads_enemies(jup_a24_smuggler_squad:jup_a19_killer_squad)%

;------------------------------------Сталкеров отвели, бежим за Селезнёвым
[sr_idle@quest_control_11]
on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info2 = {+actor_attack_jup_a1_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info3 = {+jup_a24_smuggler_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info4 = {+actor_attack_smuggler_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info5 = {=dist_actor_to_obj_le(pri_stalker_seleznev:5)} sr_idle@quest_control_12 %=remove_squad(jup_a24_smuggler_squad) +lets_go_to_anomal%

;------------------------------------Забираем Селезнёва и бежим с ним
[sr_idle@quest_control_12]
on_info  = {+jup_a2_ecolog_squad_dead} sr_idle@end %+lena_qwest_money_task_fail%
on_info2 = {+actor_attack_jup_a1_squad} sr_idle@end %+lena_qwest_money_task_fail%
on_info3 = {+lena_qwest_task_done} sr_idle@quest_control_14

[sr_idle@quest_control_13]
on_game_timer = 16 | sr_idle@end %=give_task( qwest_kill_smugler )%

[sr_idle@ecolog_squad]
on_game_timer = 20 | sr_idle@end %=remove_squad(jup_a2_ecolog_squad)%

[sr_idle@end]
on_game_timer = 40 | sr_idle@quest_control_14 %=send_message( sherkchan_bandit_message_6:jup_a18_sherkchan_bandit:jup_a18_sherkchan_name:30000 ) =give_task( sherkhan_give_money )%

[sr_idle@quest_control_14]
on_info  = {+jup_aspirant_scientific_question_dialog_no}  sr_idle@nil
on_info2 = {+jup_aspirant_scientific_question_dialog_yes} sr_idle@quest_control_15

[sr_idle@quest_control_15]
on_game_timer = 86400 | sr_idle@nil %+actor_gave_case_aspirant_over_day%
on_info = {+jup_aspirant_scientific_question_dialog_1_end} sr_idle@nil

[sr_idle@nil]
