I don't think that's a noob question.
In GW, the convention has been that friendly NPCs are green and enemies are red. Sometimes, you'll see someone is green while they're just talking and turn to red when the battle begins. Alternatively, some of the "friendly contest" type skill challenges...