Restore shop script function