Wow, it's worse than I thought. Only difference is the content and command.
Though.. This is how I would write it. Even though this is a very simple script.
On *:Text:!fortune*:#: {
var %fortune $rand(1,9)
if (%fortune == 1) { .msg $chan $me looks into $nick $+ 's future and sees sadness in their day. }
if (%fortune == 2) { .msg $chan $me looks into $nick $+ 's future and sees happiness in their day. }
if (%fortune == 3) { .msg $chan An Unexpected Surprise waits in your day to come. }
if (%fortune == 4) { .msg $chan An Unexpected Visit from a friend will arrive at your door today. }
if (%fortune == 5) { .msg $chan You will have a good week. }
if (%fortune == 6) { .msg $chan Somone close by needs your comfort. }
if (%fortune == 7) { .msg $chan Patience is Nessecary in life. }
if (%fortune == 8) { .msg $chan Friends are Nessecary in life, treat them kindly and good fortune will come to you. }
if (%fortune == 9) { .msg $chan Comfort in life comes from Family, treat them with kindness and kindess will be recived. }
}
Not that it makes it any better. Just fixes the variable, and sets it as a local var, and I fixed the puncuation and added . before the msg to silence it. And reworded a couple of things.