[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+pr_a8_fp_agent_squad_dead +pr_a8_fp_1_agent_squad_dead} sr_idle@quest_control_1 %=remove_squads(mil_a9_winchester_squad)%

[sr_idle@quest_control_1]
on_info  = {=dist_between_actor_and_smart_ge(pr_a11:300) +fplay_winch_dialog_money} sr_idle@quest_control_2 %=send_message( dark_a2_winchester_message:dark_a2_winchester:dark_a2_winchester_name:30000 ) =give_money_to_actor(15000)%
on_info2 = {=dist_between_actor_and_smart_ge(pr_a11:300) +fplay_winch_dialog_habar} sr_idle@quest_control_2_1 %=spawn_ids_objects(winch_treasure)%

[sr_idle@quest_control_2_1]
on_game_timer = 30 | sr_idle@quest_control_2 %=send_message( dark_a2_winchester_message1:dark_a2_winchester:dark_a2_winchester_name:30000 ) =set_treasure_spot(winch_treasure)%

[sr_idle@quest_control_2]
on_info = sr_idle@nil %=create_squad(pr_a11_fp_freedom_squad:pr_a11) +fplay_winchester_quest_done%

[sr_idle@nil]
