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

<action>dialogs_agroprom.varjag_companion</action>


function start_varjag_agr_offline()
    amk.g_start_timer("varjag_agr_offline",0,0,5)
end	
	
function varjag_agr_offline()
	local npc = alife():story_object(1814)
	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 start_varjag_agr_offline_2()
    amk.g_start_timer("varjag_agr_offline_2",0,0,5)
end	
	
function varjag_agr_offline_2()
	local npc = alife():story_object(1815)
	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


