[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+radar_a6_agent_squad_dead +radar_a7_agent_squad_dead} sr_idle@quest_control_1 %+radar_a4_lider_quest_is_done%

[sr_idle@quest_control_1]
on_game_timer  = 30 | {+fplay_oss_dialog_money} sr_idle@quest_control_2 %=send_message( radar_a4_lider_night_message:radar_a4_lider_night:radar_a4_lider_night_name:30000 ) =give_money_to_actor(5000)%
on_info = {+fplay_oss_dialog_habar} sr_idle@quest_control_1_1 %=spawn_ids_objects(oss_treasure)%

[sr_idle@quest_control_1_1]
on_game_timer = 30 | sr_idle@quest_control_2 %=send_message( radar_a4_lider_night_message1:radar_a4_lider_night:radar_a4_lider_night_name:30000 ) =set_treasure_spot(oss_treasure)%

[sr_idle@quest_control_2]
on_info = {=dist_between_actor_and_smart_ge(radar_a7:200) !squad_exist(bar_a1_night_squad)} sr_idle@quest_control_3 %=create_squad(radar_a7_night_squad:radar_a7)%

[sr_idle@quest_control_3]
on_game_timer = 30 | sr_idle@quest_control_4 %=give_task( fplay_vlad_quest )%

[sr_idle@quest_control_4]
on_game_timer = 30 | {+jup_a14_under_cherep_bandit} sr_idle@nil %=give_task( fplay_nikolay_quest )%

[sr_idle@nil]
