Since the error message was related to not being able to do something while dead, I would say make sure you put "AcceptQuest()" after the repopme line. Everything else requires a popup or dialog box of some sort. AcceptQuest doesn't work while you are dead, and if you use Jamba or JambaDev there is no need for this line.

Good to see it's working for you either way anyway.