im new to scripting in sandbox i was wondering if some one would explane how to atach the script to the shop keper so when you walk near him he would talk an bring up the shop menu also how to make quest and rewards for the compleation of the quest thanks

To get the shopkeeper to work, you need to place an ogre model (F1, tab 4 or 5, I think), add an invisible model where the ogre is (in the console: / newent mapmodel -1 ) and give it trigger type 11, trigger tag 2 (or whatever the shopkeeper tag is in the script.)