

function doc_saharov_relocate(gg,npc)
	dialogs.relocate_item_section(npc,"doc_saharov","out")
end

function doc_saharov_relocate_2(npc,gg)
	dialogs.relocate_item_section(gg,"ecolog_outfit","in")
end

function saharov_quest(gg, npc)
	dialogs.relocate_item_section(npc,"medkit_scientic","in",2)
	dialogs.relocate_item_section(npc,"bandage","in",5)
	dialogs.relocate_item_section(npc,"antirad","in",5)
	dialogs.relocate_item_section(npc,"conserva","in",2)	
end


function doc_saharov_have()
	if db.actor:object("doc_saharov") then
		return true and
		db.actor:give_info_portion("doc_saharov_compl")
	end
	return false
end

function doc_kruglov_have()
	if db.actor:object("doc_1") and db.actor:object("doc_2") then
		return true and
		db.actor:give_info_portion("doc_1_doc_2_compl")
	end
	return false
end

function doc_kruglov_relocate(gg,npc)
	dialogs.relocate_item_section(npc,"doc_1","out")
	dialogs.relocate_item_section(npc,"doc_2","out")
end

function kruglov_relocate(gg,npc)
	dialogs.relocate_item_section(gg,"af_gold_fish","in")
end


function quest_kruglov(gg, npc)
	local obj = level_object_by_sid (900)
	if obj ~= nil then
		dialogs.companion_start_following(obj, db.actor)
		dialogs.companion_beh_walk_low_aggr(obj, db.actor)
	end
end


function start_kruglov_offline()
    amk.g_start_timer("kruglov_offline",0,0,5)
end	
	
function kruglov_offline()
	local npc = alife():story_object(900)
	if npc then
		alife():set_switch_offline (npc.id, true)
		alife():set_switch_online (npc.id, false)
		alife():set_interactive (npc.id, false)
	end
end		