[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info  = {+magnit_deactive_anom_done} sr_timer@antimagnit
on_info2 = {=actor_in_zone(jup_magnito_restrictor) =actor_magnito_weapon} %=drop_activ_item_and_tele(actor:jup_magnito_weapon_way:jup_magnito_restrictor) +actor_drop_weapon_in_magnito%
on_info3 = {=any_npc_in_zone(jup_magnito_restrictor)} %=drop_activ_item_and_tele(npc:jup_magnito_weapon_way:jup_magnito_restrictor)%
on_info4 = {=actor_in_zone(jup_magnito_restrictor) =actor_has_item(jup_rukzak_magnito)} %=drop_object_item_on_point(jup_rukzak_magnito:jup_rukzak_magnito_way) +actor_take_rukzak_magnito%

[sr_timer@antimagnit]
type = dec
string = "У вас 10 секунд, чтобы поднять вещи"
start_value = 10000
on_value = 0 | sr_idle@wait_1 %-magnit_deactive_anom_done%


[sr_idle@wait_1]
on_info  = {=actor_has_item(jup_rukzak_magnito)} sr_idle@wait_2
on_info2 = {!actor_has_item(jup_rukzak_magnito)} sr_idle@wait

[sr_idle@wait_2]
on_info  = {=actor_in_zone(jup_magnito_restrictor) =actor_magnito_weapon} %=drop_activ_item_and_tele(actor:jup_magnito_weapon_way:jup_magnito_restrictor) +actor_drop_weapon_in_magnito%
on_info2 = {=any_npc_in_zone(jup_magnito_restrictor)} %=drop_activ_item_and_tele(npc:jup_magnito_weapon_way:jup_magnito_restrictor)%
