Drugs run is not really family friendly topic
At a quick glance you have a price function which takes 2 parameters (looks like a min & max), I guess this is doing it as the arrays are populated from the database.
I'd go back to the place you bought the script from as they should know the code.