function aver_snork_quest_have()
	local k = 0
	db.actor:iterate_inventory(function (dummy, item) 
		if item:section() == "mutant_snork_leg" then 
			k = k + 1 
		end 
	end, nil)
	if k >= 10 then
		return true
	end
	return false
end

function aver_joker_quest_have()
	if db.actor:object("af_4") then
		return true
	end
	return false
end

function aver_joker_quest_no_have()
	if db.actor:object("af_4") then
		return false
	end
	return true
end


function aver_snork_quest_end(gg, npc)
	items.relocate_n_items_section(npc, "mutant_snork_leg", "out", 10)
end

function aver_joker_quest_spawn()
	alife():create("af_4",vector():set(329.74099731445, -7.4258890151978, -30.990274429321), 1455344, 2902)
end

function doc_shram_2_have()
	if db.actor:object("doc_shram_2") then
		return true
	end
	return false
end

function spawn_dusha()
	local AverBox_1 = alife():object("aver_inventory_box_0003")
	alife():create("af_dusha_zony",AverBox_1.position, AverBox_1.m_level_vertex_id, AverBox_1.m_game_vertex_id, AverBox_1.id)
end

function aver_dusha_quest_have()
	if db.actor:object("af_dusha_zony") then
		return true
	end
	return false
end

function relocate_dusha(gg, npc)
	items.relocate_n_items_section(npc, "af_dusha_zony", "out", 1)
end

function relocate_dusha_2(npc,gg)
	dialogs.relocate_item_section(gg,"af_dusha_zony","in")
end

function spawn_mutants()
	amk.spawn_item("pseudodog_weak",vector():set(-309.479,-20.505,236.528), 339452, 2891, 7)
	amk.spawn_item("tushkano_normal",vector():set(-257.842,-27.139,135.208), 428769, 2893, 10)
	amk.spawn_item("boar_strong",vector():set(-228.613,-32.421,227.034), 478081, 2891, 5)
end

function spawn_mutants_2()
	amk.spawn_item("snork_strong",vector():set(-361.328,63.992,347.254), 248060, 2887, 6)
	amk.spawn_item("tushkano_normal",vector():set(-397.054,60.406,408.853), 186239, 2887, 12)
end
