First get your bass set up properly with a new set of strings.
Next, learn your major and minor scales and spend some time finding whatever riffs you can in there - after all 99.999 of all riffs are based on these two scales.
Using an open E and the G and A on the same string yields loads of riffs from Another one bites the dust, Jean Genie, 5 to 1, among others.