First, I suggest that you download Context text editor. It's not mandatory/necessary to work with this particular editor, but its the best text editor for your purposes. It can be obtained from here:
http://www.context.cx/Second, in order to have your NPC spawn, you need to make a text file with the name of the area in which your NPC will spawn. Then you should rename your text file's extension to .baf
Use the context program to make the text file and then rename it. For example if you want your NPC spawn in bridge district, your text file's name will be AR0500.baf
AR0500 is bridge district's area code. A list of other area codes can be found here:
http://mikesrpgcenter.com/bgate2/cheats.html#areaAs to what you need to type in this text file:
Let's assume that your NPC's script name (or death value) is g2gah. And you want it to spawn somewhere in bridge district. You should type the following in your AR0500.baf text file:
IF
Global("g2gah","AR0500",0)
THEN
RESPONSE #100
SetGlobal("g2gah","AR0500",1)
CreateCreature("g2gah",[x.y],z)
END
Where x and y are the coordinates of the exact location and z is a number which show the direction of your NPCs face where he is standing (it ranges from 0 to 15).
Then you will just need to append this to your AR0500.bcs file.
You do not need to use the RUN command on your computer. It is a way, but you do not need to do it in that way.
I am also a comparatively novice modder, Gah!. If I have made any mistakes (in what I have written above) others here will kindly correct them.