So I've been getting the same NoMethodError and after looking through the script I found this:
What I discovered is that "pbAddDependency2(x, "Dependent", 50)" calls for the common event "50" which isn't already set in Essentials. The script doesn't need a specific common event, but it does...