[logic]
active = sr_idle@wait_for_start

[sr_idle@wait_for_start]
on_info = {+zat_b29_exclusive_conditions -zat_b30_compass_task_start} %+zat_b30_compass_task_start%
on_info2 = {+zat_b30_compass_task_start} sr_idle@wait_for_give_task

[sr_idle@wait_for_give_task]
on_info = {+zat_b30_compass_to_sultan} sr_idle@get_sultan_af
on_info2 = {+zat_b30_sultan_got_af} sr_idle@nil
on_info3 = {=actor_has_item(af_compass) -zat_b30_actor_with_af} %+zat_b30_actor_with_af%
on_info4 = {+zat_b30_barmen_got_af} sr_idle@nil

[sr_idle@get_sultan_af]
;ïðîâåðèòü, ÷òîáû ðàáîòàëî, êîãäà àðò â ñëîòå
on_info = {=actor_has_item(af_compass) -zat_b30_actor_with_af} sr_idle@bring_af %+zat_b30_actor_with_af%
on_info2 = {+zat_b30_compass_to_sultan_reversed} sr_idle@nil

[sr_idle@bring_af]
on_info = {!actor_has_item(af_compass) +zat_b30_actor_with_af} sr_idle@get_sultan_af %-zat_b30_actor_with_af%
on_info2 = {+zat_b30_sultan_got_af} sr_idle@nil
on_info3 = {+zat_b30_compass_to_sultan_reversed} sr_idle@nil
on_info4 = {+zat_b30_barmen_got_af} sr_idle@nil

[sr_idle@nil]
