function disk_for_korsak(gg, npc)
	dialogs.relocate_item_section(npc,"pre_aleks_disk","out")
end

function korsak_nagrada(npc, gg)
	dialogs.relocate_item_section(npc, "af_gold_fish", "in")
	dialogs.relocate_money(gg, 1000, "in")
end

function korsak_medikamenty(npc, gg)
	dialogs.relocate_item_section(gg, "medikamenty_doktoru", "in")
end

function medikamenty_doktor(gg, npc)
	dialogs.relocate_item_section(npc,"medikamenty_doktoru","out")
end

function start_timer_doktor()
    amk.g_start_timer("timer_doktor",0,8,0)
end

function timer_doktor_end()
    if not has_alife_info("doktor_quest_complete")then
	db.actor:give_info_portion("doktor_dialog_3")
	end
end

function medikamenty_have()
	if db.actor:object("medkit_doktoru_1") and
		db.actor:object("medkit_doktoru_2") and
		db.actor:object("medkit_doktoru_3") then
		return true
	end
	return false
end

function medikamenty_doktor_2(gg, npc)
	dialogs.relocate_item_section(npc,"medkit_doktoru_1","out")
	dialogs.relocate_item_section(npc,"medkit_doktoru_2","out")
	dialogs.relocate_item_section(npc,"medkit_doktoru_3","out")
end

function udacha_trup()
	local sim = alife()
	local se_obj = sim:story_object(1833)
	if se_obj then
		sim:release(se_obj, true)
	end
end

function udacha_1_offline()
	local npc = alife():story_object(1832)
	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

function korsak_patrony(npc, gg)
	dialogs.relocate_item_section(gg, "ammo_5.45x39_fmj", "in",5)
	dialogs.relocate_item_section(gg, "ammo_12x70_buck", "in",5)
	dialogs.relocate_item_section(gg, "grenade_f1", "in",5)
end

function swamp_chimera_quest()
	local swampchimera = level_object_by_sid(15019)
	if swampchimera and not swampchimera:alive() then
		db.actor:give_info_portion("chimera_gotova")
		swamp_teleport()
	local sim = alife()
	local se_obj = sim:story_object(15019)
	if se_obj then
		sim:release(se_obj, true)
	end	
		return true
	end
	return false
end

function swamp_teleport()
	lwc_guide.start_guide(-308.128,2.400,62.034)
end

function quest_hunter(npc, gg)
	dialogs.relocate_item_section(gg, "sayga_hunter", "in")
end

function quest_hunter_complete(gg, npc)
	dialogs.relocate_item_section(npc, "sayga_hunter", "out")
	dialogs.relocate_money(gg, 50000, "in")
end

