A G17 hammer spring will work in a G18. They're actually quite easy to take apart, I used this guide:
The G18 is slightly different, but the only difference is the second sear that it uses for full auto. So long as you watch where it comes from and can put it back (which is very easy, I managed it without a guide) then you'll be able to use the video to change the spring.