If the array is 0-based then it should be this:

OnTime(7) = PRI_HULL_LGHTS_ON_MS
OffTime(7) = PRI_HULL_LGHTS_OFF_MS

Oh, man - a real newbie mistake. Thanks Steve!