Scales are much more than a run of notes. Learning how they work is useful for all sorts of things, including writing your own guitar riffs.
Guitar Columns by David Hodge
David Hodge has written over a hundred guitar columns and lessons for Guitar Noise. The complete archive of these guitar lessons is available here. Click through to the last page if you want to read everything in the order it was written.